havelib: Avoid linking with libc.a on GNU systems.
[gnulib.git] / ChangeLog
blobf094e97f15fd19ac623348833512918633fa961e
1 2020-09-19  Bruno Haible  <bruno@clisp.org>
3         havelib: Avoid linking with libc.a on GNU systems.
4         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
5         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
6         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
7         dependency_libs value of a .la file, ignore '-lc' options on GNU
8         systems.
10 2020-09-19  Bruno Haible  <bruno@clisp.org>
12         Fix recognition of musl libc on Alpine Linux 3.10.
13         Reported by Jeffrey Walton <noloader@gmail.com> in
14         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
15         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
16         (gl_MUSL_LIBC): Require it.
17         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
18         * modules/setlocale-null (Files): Add m4/musl.m4.
20 2020-09-19  Bruno Haible  <bruno@clisp.org>
22         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
23         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
24         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
25         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
26         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
27         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
28         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
29         or <threads.h>.
30         (ITEMS, MAX_RESULT_LEN): New macros.
31         (nl_langinfo_unlocked): New function.
32         (gl_get_nl_langinfo_lock): New declaration.
33         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
34         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
35         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
36         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
37         REPLACE_NL_LANGINFO.
38         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
39         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
40         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
41         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
42         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
44 2020-09-18  Bruno Haible  <bruno@clisp.org>
46         fsusage, getaddrinfo: Produce more regular configure output.
47         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
48         corresponding AC_MSG_RESULT.
49         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
51 2020-09-18  Bruno Haible  <bruno@clisp.org>
53         Add back gl_SILENT.
54         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
56 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58         c-stack-tests: fix -fsanitize=undefined false alarm
59         * tests/test-c-stack2.sh: Skip the test-harness self-test
60         if ‘gcc -fsanitize=undefined’ is in use.
62 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
64         signalblocking: simplify and remove gl_SILENT
65         gl_SILENT was problematic because if a trap was sprung, stderr
66         generated during the trap was lost.  Avoid the problem by
67         removing the need for gl_SILENT.
68         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
69         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
70         Simplify, avoiding the need for gl_SILENT while preserving the
71         ability of the user to override the value of the cache variable,
72         now ac_cv_func_sigprocmask.
74 2020-09-17  Bruno Haible  <bruno@clisp.org>
76         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
77         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
78         (gl_SILENT): Use 'exec', not a compound statement, to redirect
79         AS_MESSAGE_FD.
81 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
83         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
84         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
85         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
86         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
87         Define to 0.
88         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
89         Do not use __builtin_mul_overflow_p.
91         libc-config: port __THROW to Ubuntu 4
92         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
93         for GCC 3.3.  Problem reported by Jeffrey Walton in:
94         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
95         The GCC 3.3.4 documentation says the attribute should work, but
96         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
97         little point or desire to research this circa-2004 platform further,
98         so just avoid the attribute there.
100 2020-09-17  Jim Meyering  <meyering@fb.com>
102         test-dfa-match.sh: port timeout work-around to newer Busybox
103         * tests/test-dfa-match.sh: Update timeout -t portability test to
104         accommodate Busybox 1.30.0 and newer.
106 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
108         fnmatch: adjust to match glibc fix
109         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
110         This does not affect Gnulib; it merely keeps Gnulib and glibc
111         closer together, to help with any eventual merge, by incorporating
112         a recent glibc patch.  The patch and the following commentary is
113         by Andreas Schwab.
114         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
115         contains the index into the extra array, whereas wextra points
116         into the extra array at this index, containing the length of the
117         following collating sequence in the wide character representation.
119 2020-09-16  Bruno Haible  <bruno@clisp.org>
121         stat, fstat: Fix compilation error with old mingw headers.
122         Reported by Eli Zaretskii <eliz@gnu.org> in
123         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
124         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
125         define it.
127 2020-09-16  Bruno Haible  <bruno@clisp.org>
129         stat, fstat: Fix when compiling for versions older than Windows Vista.
130         Reported by Eli Zaretskii <eliz@gnu.org> in
131         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
132         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
133         that was originally set before we redefined it.
134         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
135         (gl_PREREQ_STAT): Require it.
136         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
138 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
140         dfa: remove dfa-heap-overrun workaround
141         * lib/dfa.c (reorder_tokens): Go back to a single pass that
142         both sets map[*] and does other things.  This reverts
143         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
144         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
145         fixed the underlying problem.
147 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
149         dfa: avoid use of uninitialized constraint
150         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
151         to zero here.
152         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
153         use of an uninitialized constraint by later code when ! (flags[i]
154         & OPT_QUEUED) means merge_nfa_state was not called to initialize
155         the constraint.  Problem found by running 'valgrind src/grep -E
156         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
158         dfa: assume C99 in reorder_tokens
159         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
161         dfa: fix dfa-heap-overrun failure
162         * lib/dfa.c (reorder_tokens): When setting
163         map[d->follows[i].elems[j].index], instead of incorrectly assuming
164         that (i < d->follows[i].elems[j].index), use two loops, one to set
165         the map array and the other to use it.  The incorrect assumption
166         caused some elements to be missed, and this in turn caused grep's
167         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
168         with GCC.  I found this bug while investigating
169         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
170         and I think the bug also occurs on GNU/Linux but with more-subtle
171         symptoms.  The bug predates the recent dfa.c changes; perhaps the
172         recent changes make the bug more likely.
174 2020-09-13  Bruno Haible  <bruno@clisp.org>
176         parse-datetime: Make the build rule work with parallel 'make'.
177         Reported by Daiki Ueno <ueno@gnu.org> in
178         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
179         * modules/parse-datetime (Makefile.am): Use a phony target and the
180         general idiom for rules that produce multiple files.
182 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
184         getpass: Check for nonnull prompt argument while avoiding warnings.
185         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
186         (getpass) [!_WIN32]: Print prompt only if nonnull.
188 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
190         dfa: epsilon-closure tweaks (Bug#40634)
191         Rename BACKWORD to BACKWARD consistently.
192         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
193         (addtok_mb): Redo slightly to make it act more like a state machine.
194         Check depth only when it increases.
195         (epsclosure): Let the switch test the tokens.
196         (dfaanalyze): Cache tindex.  Simplify position loops.
197         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
198         only if it is not null, since we're testing that anyway.
199         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
201 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
203         dfa: use backward set in removal of epsilon closure
204         When removing in epsilon closure, the code searched all nodes
205         sequentially, and this was slow for some cases.  Build a backward
206         set before search, and only check previous position with the set.
207         Problem reported in <https://bugs.gnu.org/40634>.
208         * lib/dfa.c (struct dfa): New member 'epsilon'.
209         (addtok_mb): Check whether a pattern has epsilon node or not.
210         (epsclosure): New arg BACKWORD; caller changed.  When removing
211         epsilon node and reconnecting, check only previous positions.
212         Treat BEG as if it were character.
213         (dfaanalyze): Build backward set.
215 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
217         canonicalize: fix pointer indexing bugs
218         Problem reported by Florian Weimer in:
219         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
220         * lib/canonicalize-lgpl.c (__realpath):
221         * lib/canonicalize.c (canonicalize_filename_mode):
222         Do not generate a pointer past the end of the array.
223         * lib/canonicalize.c (canonicalize_filename_mode):
224         Do not use a pointer after passing it to realloc.
226 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
228         tempname: help merge with glibc
229         Inspired by draft patches by Adhemerval Zanella in:
230         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
231         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
232         * lib/tempname.c: Include stdalign.h, time.h.
233         If _LIBC, do not include random-bits.h.
234         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
235         (RANDOM_BITS): Remove, replacing with ...
236         (random_bits): ... this new static function.  All uses changed.
237         Add entropy each time if getrandom is not supported.
238         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
239         Assume 64-bit support a la C99.
240         (try_tempname_len): Take advantage of ASLR when initializing
241         random value.
242         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
244         getcwd: merge recent glibc changes
245         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
246         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
248 2020-09-06  Bruno Haible  <bruno@clisp.org>
250         attribute: Clarify which file to include.
251         * modules/attribute (Include): Add "attribute.h".
253 2020-09-06  Bruno Haible  <bruno@clisp.org>
255         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
256         * lib/pipe-filter-ii.c: Include <process.h>.
257         * lib/pipe-filter-gi.c: Likewise.
259 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
261         verify: avoid __builtin_assume
262         Our latest attempt to use Clang’s __builtin_assume caused a crash
263         in GNU Emacs that we spent quite some time tracking down as being
264         caused by the switch to __builtin_assume.  It’s not known whether
265         the crash is due is a Clang bug or a portability bug in GNU Emacs.
266         For now, play it safe and avoid __builtin_assume.
267         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
268         (assume): Simplify by not trying to use Clang’s __builtin_assume.
270 2020-09-05  Bruno Haible  <bruno@clisp.org>
272         Fix several "warning: no previous prototype for function".
273         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
274         in front of the declaration of the lookup function in
275         unicase/locale-languages.h.
276         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
277         unictype/bidi_byname.h.
278         * modules/unictype/category-byname (Makefile.am): Likewise in
279         unictype/categ_byname.h.
280         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
281         unictype/combiningclass_byname.h.
282         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
283         unictype/joininggroup_byname.h.
284         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
285         unictype/joiningtype_byname.h.
286         * modules/unictype/property-byname (Makefile.am): Likewise in
287         unictype/pr_byname.h.
288         * modules/unictype/scripts (Makefile.am): Likewise in
289         unictype/scripts_byname.h.
290         * modules/uninorm/composition (Makefile.am): Likewise in
291         uninorm/composition-table.h.
293 2020-09-05  Bruno Haible  <bruno@clisp.org>
295         select: Fix "warning: no previous prototype for function".
296         * lib/select.c: Include <sys/select.h>.
298 2020-09-05  Bruno Haible  <bruno@clisp.org>
300         Use module 'c99' when needed for variadic macros with '...' syntax.
301         * modules/crypto/sm3 (Depends-on): Add c99.
303 2020-09-05  Bruno Haible  <bruno@clisp.org>
305         Use module 'c99' when needed for subobject initializer syntax.
306         * modules/tempname (Depends-on): Add c99.
307         * modules/nstrftime-tests (Depends-on): Likewise.
309 2020-09-05  Bruno Haible  <bruno@clisp.org>
311         Use module 'c99' when needed for declaration-after-statement syntax.
312         * modules/backup-rename (Depends-on): Add c99.
313         * modules/backupfile (Depends-on): Likewise.
314         * modules/bitset-tests (Depends-on): Likewise.
315         * modules/bitsetv (Depends-on): Likewise.
316         * modules/c-strtod (Depends-on): Likewise.
317         * modules/c-strtold (Depends-on): Likewise.
318         * modules/clean-temp (Depends-on): Likewise.
319         * modules/copy-file (Depends-on): Likewise.
320         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
321         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
322         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
323         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
324         * modules/crypto/md5-buffer (Depends-on): Likewise.
325         * modules/crypto/md5-tests (Depends-on): Likewise.
326         * modules/crypto/sha1-buffer (Depends-on): Likewise.
327         * modules/crypto/sha1-tests (Depends-on): Likewise.
328         * modules/crypto/sha256-buffer (Depends-on): Likewise.
329         * modules/crypto/sha256-tests (Depends-on): Likewise.
330         * modules/crypto/sha512-buffer (Depends-on): Likewise.
331         * modules/crypto/sha512-tests (Depends-on): Likewise.
332         * modules/diffseq (Depends-on): Likewise.
333         * modules/fatal-signal (Depends-on): Likewise.
334         * modules/fchmodat (Depends-on): Likewise.
335         * modules/fstrcmp (Depends-on): Likewise.
336         * modules/fsusage (Depends-on): Likewise.
337         * modules/fts (Depends-on): Likewise.
338         * modules/fts-tests (Depends-on): Likewise.
339         * modules/getumask (Depends-on): Likewise.
340         * modules/git-merge-changelog (Depends-on): Likewise.
341         * modules/hash-map (Depends-on): Likewise.
342         * modules/hash-set (Depends-on): Likewise.
343         * modules/lchmod (Depends-on): Likewise.
344         * modules/libgmp-tests (Depends-on): Likewise.
345         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
346         * modules/linkedhash-map (Depends-on): Likewise.
347         * modules/linkedhash-set (Depends-on): Likewise.
348         * modules/long-options (Depends-on): Likewise.
349         * modules/mbrtoc32 (Depends-on): Likewise.
350         * modules/memchr2-tests (Depends-on): Likewise.
351         * modules/memmem-tests (Depends-on): Likewise.
352         * modules/memrchr-tests (Depends-on): Likewise.
353         * modules/mktime-internal (Depends-on): Likewise.
354         * modules/nstrftime (Depends-on): Likewise.
355         * modules/opendirat (Depends-on): Likewise.
356         * modules/parse-datetime (Depends-on): Likewise.
357         * modules/quotearg-simple-tests (Depends-on): Likewise.
358         * modules/same (Depends-on): Likewise.
359         * modules/supersede (Depends-on): Likewise.
360         * modules/supersede-tests (Depends-on): Likewise.
361         * modules/time_rz (Depends-on): Likewise.
362         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
363         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
364         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
365         * modules/xalloc (Depends-on): Likewise.
366         * modules/xnanosleep (Depends-on): Likewise.
368 2020-09-05  Bruno Haible  <bruno@clisp.org>
370         Fix "warning: array initialized from parenthesized string constant".
371         * tests/test-memmem.c (main): Remove parentheses around string constant.
372         * tests/test-c-strcasestr.c (main): Likewise.
373         * tests/test-strcasestr.c (main): Likewise.
375 2020-09-05  Bruno Haible  <bruno@clisp.org>
377         argmatch tests: Fix ISO C compliance warning.
378         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
379         invocation.
381 2020-09-05  Bruno Haible  <bruno@clisp.org>
383         uniname/uniname: Fix -Wshadow warning.
384         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
385         * modules/uniname/uniname (Depends-on): Add c99.
387 2020-09-05  Bruno Haible  <bruno@clisp.org>
389         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
390         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
391         argument to size_t.
392         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
393         n to size_t.
395 2020-09-05  Bruno Haible  <bruno@clisp.org>
397         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
398         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
399         u32_uctomb): Change type of last argument to ptrdiff_t.
400         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
401         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
402         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
403         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
404         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
406 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
408         manywarnings: remove -Wchkp and -Wabi from C++ too
409         Suggested by Reuben Thomas in:
410         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
411         At some point somebody should merge the many other manywarnings-c.m4
412         changes into manywarnings-c++.m4 too, e.g.,
413         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
414         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
415         Remove -Wchkp, -Wabi.
417 2020-08-30  Bruno Haible  <bruno@clisp.org>
419         strerrorname_np: Add tests.
420         * tests/test-strerrorname_np.c: New file.
421         * modules/strerrorname_np-tests: New file.
423         strerrorname_np: New module.
424         * lib/string.in.h (strerrorname_np): New declaration.
425         * lib/strerrorname_np.c: New file.
426         * m4/strerrorname_np.m4: New file.
427         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
428         is declared.
429         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
430         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
431         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
432         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
433         * modules/strerrorname_np: New file.
434         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
435         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
436         the glibc 2.32 bug.
438 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
440         perror, strerror_r: remove unportable tests
441         Problem reported by Florian Weimer in:
442         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
443         * tests/test-perror2.c (main):
444         * tests/test-strerror_r.c (main): Omit unportable tests.
446 2020-08-26  Bruno Haible  <bruno@clisp.org>
448         stdint, wchar, wctype-h: Change configure message.
449         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
450         enough..." instead of "checking whether wint_t is too small...".
452 2020-08-26  Bruno Haible  <bruno@clisp.org>
454         time_rz: Change configure message.
455         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
456         near extrema..." instead of "checking whether localtime loops forever
457         near extrema...".
459 2020-08-26  Bruno Haible  <bruno@clisp.org>
461         stdint: Change configure message.
462         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
463         without ISO C predefines..." instead of "checking whether stdint.h
464         predates C++11...".
466 2020-08-26  Bruno Haible  <bruno@clisp.org>
468         socketlib: Change configure message.
469         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
470         instead of "checking if we need to call WSAStartup in winsock2.h and
471         -lws2_32...".
473 2020-08-26  Bruno Haible  <bruno@clisp.org>
475         include_next: Change configure message.
476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
477         code line length is unlimited..." instead of "checking whether system
478         header files limit the line length...".
480 2020-08-26  Bruno Haible  <bruno@clisp.org>
482         getcwd: Change configure message.
483         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
484         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
485         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
487 2020-08-26  Bruno Haible  <bruno@clisp.org>
489         chdir-long: Change configure message.
490         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
491         system supports file names of any length..." instead of "checking
492         whether this system has an arbitrary file name length limit...".
493         Set gl_cv_have_unlimited_file_name_length instead of
494         gl_cv_have_arbitrary_file_name_length_limit.
495         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
497 2020-08-26  Bruno Haible  <bruno@clisp.org>
499         ceill: Change configure message.
500         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
501         instead of "checking whether ceill() breaks with small values...".
503 2020-08-26  Bruno Haible  <bruno@clisp.org>
505         iconv: Change configure message.
506         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
507         with its POSIX signature..." instead of "checking for iconv
508         declaration...". Remove K&R C support.
510 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
512         getcwd: help the merge back into glibc
513         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
514         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
515         The idea is to make it easier for Gnulib lib/getcwd.c to match
516         glibc io/getcwd-generic.c.
517         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
518         Include not-cancel.h.
519         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
520         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
521         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
522         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
523         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
524         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
525         (__getcwd_generic): Rename from __getcwd.
526         Use the abovementioned macros for consistency with glibc.
527         (weak_alias): Remove.
529 2020-08-25  Bruno Haible  <bruno@clisp.org>
531         verify: Avoid warnings when assume(0) is used.
532         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
533         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
534         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
535         the constant 0.
536         * tests/test-verify.c (f): New function.
537         (state): New type.
538         (test_assume_expressions, test_assume_optimization,
539         test_assume_noreturn): New functions.
541 2020-08-25  Bruno Haible  <bruno@clisp.org>
543         fstrcmp: Clarification regarding NOTE_ORDERED.
544         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
546 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
548         diffseq: new option NOTE_ORDERED
549         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
550         * NEWS: Mention this.
551         * lib/diffseq.h (NOTE_ORDERED): New macro.
552         (IF_LINT2): Remove; no longer needed.
553         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
554         subproblem and iterate to do the larger.
556 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
558         sys_types: let Autoconf 2.70 do pid_t
559         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
560         only for Autoconf versions 2.69 and earlier, since 2.70
561         will be fixed.
563 2020-08-23  Bruno Haible  <bruno@clisp.org>
565         tests: Don't assume that pid_t fits in an 'int'.
566         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
567         of 'int'.
568         * tests/test-nonblocking-socket-main.c (main): Likewise.
570         sys_types: Fix definition of pid_t on 64-bit MSVC.
571         * m4/pid_t.m4: New file.
572         * modules/sys_types (Files): Add it.
573         * modules/dirent (Files): Likewise.
574         * modules/fcntl-h (Files): Likewise.
575         * modules/sched (Files): Likewise.
576         * modules/signal-h (Files): Likewise.
577         * modules/spawn (Files): Likewise.
578         * modules/sys_stat (Files): Likewise.
579         * modules/sys_wait (Files): Likewise.
580         * modules/termios (Files): Likewise.
581         * modules/unistd (Files): Likewise.
583 2020-08-23  Bruno Haible  <bruno@clisp.org>
585         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
586         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
587         program.
589 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
591         intprops: be consistent about +X vs X+0
592         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
594         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
595         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
596         is a bit-field, on older GCC or non-GCC compilers where we do
597         things ourselves instead of using __builtin_mul_overflow.
598         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
599         to applying sizeof to a bit-field.
600         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
601         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
603 2020-08-23  Bruno Haible  <bruno@clisp.org>
605         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
606         Reported by Jörg Sonnenberger <joerg@netbsd.org>
607         via Thomas Klausner <tk@giga.or.at> in
608         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
609         * lib/supersede.c (open_supersede): When opening an existing non-regular
610         file on Solaris, use O_CREAT although it should not be necessary.
612 2020-08-23  Bruno Haible  <bruno@clisp.org>
614         verify: Make assume work on bit field expressions (regr. 2020-08-22).
615         Reported by Benno Schulenberg <bensberg@telfort.nl> in
616         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
617         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
618         variable.
620 2020-08-23  Bruno Haible  <bruno@clisp.org>
622         libc-config: Improve comments.
623         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
624         cannot use clang's __diagnose_if__ here.
626 2020-08-22  Bruno Haible  <bruno@clisp.org>
628         verify: Do use __builtin_assume on clang.
629         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
630         variable in a statement expression.
632 2020-08-22  Bruno Haible  <bruno@clisp.org>
634         sig2str: Add more signals.
635         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
637 2020-08-22  Bruno Haible  <bruno@clisp.org>
639         doc: Update for OpenBSD 6.0, 6.7.
640         * doc/*/*.texi: Update.
641         * m4/printf.m4: Update comments and cross-compilation guesses.
642         * m4/ceill.m4: Update comments.
643         * m4/getcwd-abort-bug.m4: Likewise.
644         * m4/ilogb.m4: Likewise.
645         * m4/ilogbf.m4: Likewise.
646         * m4/langinfo_h.m4: Likewise.
647         * m4/modf.m4: Likewise.
648         * m4/modff.m4: Likewise.
650 2020-08-22  Bruno Haible  <bruno@clisp.org>
652         doc: Mention sig2str module.
653         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
655 2020-08-21  Bruno Haible  <bruno@clisp.org>
657         sigdescr_np: Add tests.
658         * tests/test-sigdescr_np.c: New file.
659         * modules/sigdescr_np-tests: New file.
661         sigdescr_np: New module.
662         * lib/string.in.h (sigdescr_np): New declaration.
663         * lib/sigdescr_np.c: New file.
664         * m4/sigdescr_np.m4: New file.
665         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
666         declared.
667         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
668         HAVE_SIGDESCR_NP.
669         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
670         HAVE_SIGDESCR_NP.
671         * modules/sigdescr_np: New file.
672         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
673         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
675 2020-08-20  Bruno Haible  <bruno@clisp.org>
677         sigabbrev_np: Add tests.
678         * tests/test-sigabbrev_np.c: New file.
679         * modules/sigabbrev_np-tests: New file.
681         sigabbrev_np: New module.
682         * lib/string.in.h (sigabbrev_np): New declaration.
683         * lib/sigabbrev_np.c: New file.
684         * m4/sigabbrev_np.m4: New file.
685         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
686         declared.
687         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
688         HAVE_SIGABBREV_NP.
689         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
690         HAVE_SIGABBREV_NP.
691         * modules/sigabbrev_np: New file.
692         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
693         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
695 2020-08-20  Bruno Haible  <bruno@clisp.org>
697         stdalign tests: Skip test with AIX xlclang.
698         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
700 2020-08-20  Bruno Haible  <bruno@clisp.org>
702         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
703         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
704         workaround as for GCC versions < 4.9.
706 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
708         Sync up ProjectQuirks comments and documentation
709         Transform the ProjectQuirks comments into a docstring so that it can
710         be accessed from python as ProjectQuirks.__doc__ and harmonize
711         descriptions with the documentation.
712         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
713         Transform comments into a docstring.
714         * doc/vcs-to-changelog.texi: Sync up description with comments.
716         Split ProjectQuirks out into its own file
717         ProjectQuirks is used by external quirks files and importing it from
718         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
719         is cleaner to put it in its own file anyway.
720         * build-aux/vcstocl/projectquirks.py: A new file...
721         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
722         we move ProjectQuirks and import the file.
724 2020-08-19  Bruno Haible  <bruno@clisp.org>
726         uchar: Fix compilation errors in C++ mode on macOS.
727         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
728         system header file before attempting to use 'char16_t' and 'char32_t'.
730 2020-08-19  Bruno Haible  <bruno@clisp.org>
732         ansi-c++-opt: Work around an autoconf macro reordering problem.
733         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
734         section.
736 2020-08-19  Bruno Haible  <bruno@clisp.org>
738         math C++ tests: Fix compilation error in with GCC 10.
739         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
740         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
741         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
743 2020-08-19  Bruno Haible  <bruno@clisp.org>
745         uchar: Fix compilation errors in C++ mode on OpenBSD.
746         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
747         CXX_HAS_UCHAR_TYPES is 1.
748         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
749         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
750         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
752 2020-08-19  Bruno Haible  <bruno@clisp.org>
754         Fix compilation errors in C++ mode on OpenBSD.
755         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
756         OpenBSD with clang, use the approach without C preprocessor macro.
758 2020-08-18  Bruno Haible  <bruno@clisp.org>
760         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
761         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
762         AC_LANG_POP.
764 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
766         verify: avoid __built_assume on Clang
767         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
768         Clang 9 incorrectly diagnoses arguments as having side effects
769         even when they do not.  I guess Clang 9 considers any function
770         call as if it had a side effect here.
772         libc-config: avoid Clang’s __diagnose_if__
773         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
774         For now, do not use __diagnose_if__ here, as this fails
775         on Fedora 31 with Clang 9.0.1, with diagnostic
776         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
777         size than length of destination buffer
778         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
779         for functions that are not called?
781         careadlinkat: speedup for GCC 10 with GCC_LINT
782         Inspired by a suggestion by Bruno Haible in:
783         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
784         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
785         (readlink_stk): New function, with most of the old careadlinkat
786         contents and with a new STACK_BUF arg.  Inline it in GCC 10
787         if GCC_LINT.
788         (careadlinkat): Use the new function for everything but the
789         stack buffer.
791         * build-aux/gcc-warning.spec: Update comments.
793 2020-08-17  Bruno Haible  <bruno@clisp.org>
795         Assume autoconf >= 2.64.
796         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
798 2020-08-17  Bruno Haible  <bruno@clisp.org>
800         Revert autoupdate's revert.
801         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
803 2020-08-17  Bruno Haible  <bruno@clisp.org>
805         uchar C++ tests: Fix build error on FreeBSD 12.
806         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
807         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
808         <cuchar> does not exist.
810 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
812         time_rz: remove unused functions
813         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
815         time_rz: fix issues with mktime_z failures
816         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
817         Use a cheaper tm_yday test for failed mktime.
819 2020-08-16  Bruno Haible  <bruno@clisp.org>
821         intprops test: Strengthen on clang.
822         * tests/test-intprops.c (VERIFY): Use verify_stmt.
824 2020-08-16  Bruno Haible  <bruno@clisp.org>
826         nstrftime: Guide inlining also on clang.
827         * lib/nstrftime.c (iso_week_days): Inline also on clang.
829 2020-08-16  Bruno Haible  <bruno@clisp.org>
831         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
832         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
834 2020-08-16  Bruno Haible  <bruno@clisp.org>
836         log2l: Disable MSVC workaround on clang.
837         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
839 2020-08-16  Bruno Haible  <bruno@clisp.org>
841         argp: Emit a warning also with clang.
842         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
843         clang.
845 2020-08-16  Bruno Haible  <bruno@clisp.org>
847         libc-config: Enable __REDIRECT macro also on clang.
848         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
849         __ASMNAME2): Define on clang like on GCC.
851 2020-08-16  Bruno Haible  <bruno@clisp.org>
853         regex: Use initializer shorthand syntax also with clang.
854         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
855         with clang.
857 2020-08-16  Bruno Haible  <bruno@clisp.org>
859         regex: Use space optimization also with clang.
860         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
861         with clang.
863 2020-08-16  Bruno Haible  <bruno@clisp.org>
865         Use _Static_assert and static_assert primitives when present on clang.
866         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
867         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
868         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
870 2020-08-16  Bruno Haible  <bruno@clisp.org>
872         Use 'throw ()' for optimization in C++ mode also on clang.
873         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
874         * lib/getopt-cdefs.in.h (__THROW): Likewise.
875         * lib/md5.h (__THROW): Likewise.
877 2020-08-16  Bruno Haible  <bruno@clisp.org>
879         absolute-header: Add support for clang.
880         * modules/absolute-header (Makefile.am): Include '__clang__' in the
881         HAVE_INCLUDE_NEXT expression.
883 2020-08-16  Bruno Haible  <bruno@clisp.org>
885         Fix "warning: implicitly declaring library function 'strcasecmp'".
886         * lib/argp-help.c: Include <strings.h>.
888 2020-08-16  Bruno Haible  <bruno@clisp.org>
890         stdio: Don't break attribute 'scanf' on clang.
891         * lib/stdio.in.h (scanf): Treat clang like GCC.
893 2020-08-16  Bruno Haible  <bruno@clisp.org>
895         Use __restrict also on clang.
896         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
897         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
898         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
900 2020-08-16  Bruno Haible  <bruno@clisp.org>
902         pthread-spin: Use GCC built-ins also on clang.
903         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
904         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
905         also on clang.
907 2020-08-16  Bruno Haible  <bruno@clisp.org>
909         asyncsafe-spin tests: Update.
910         * tests/test-asyncsafe-spin2.c: Update to match the change in
911         lib/asyncsafe-spin.c from 2020-08-11.
913 2020-08-16  Bruno Haible  <bruno@clisp.org>
915         setenv: Use tree code also with clang.
916         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
918 2020-08-16  Bruno Haible  <bruno@clisp.org>
920         math: Optimize signbit also on clang.
921         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
922         on clang.
924 2020-08-16  Bruno Haible  <bruno@clisp.org>
926         avltreehash-list, rbtreehash-list: Optimize also on clang.
927         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
928         __builtin_expect also on clang.
930 2020-08-16  Bruno Haible  <bruno@clisp.org>
932         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
933         * lib/socket.c: Use WSASocketW, not WSASocketA.
935         Fix "warning: format specifies type 'unsigned long'".
936         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
937         argument to match the format directive.
939         Fix "warning: no case matching constant switch condition '0'".
940         * tests/test-fcntl.c (check_flags): Add a 'default' case.
942         Fix "warning: integer overflow in expression".
943         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
944         remove a 'long' overflow.
946         Fix "warning: "getpagesize" redefined".
947         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
948         macro.
950         Fix "warning: implicitly declaring library function 'strncasecmp'".
951         * lib/strptime.c: Include <strings.h>.
953         Fix "warning: 'snprintf' macro redefined".
954         * lib/strerror_r.c (snprintf): Undefine before redefining.
956         Fix "warning: address of array 'locale' will always evaluate to 'true'".
957         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
959         Fix "warning: '__stat64' macro redefined".
960         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
962         Fix "warning: 'format' attribute argument not supported: rpl_printf".
963         * lib/stdio.in.h (printf): Treat clang like GCC.
965         Fix "warning: attribute declaration must precede definition" with clang.
966         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
967         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
968         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
969         on non-glibc systems.
970         * lib/netdb.in.h (gai_strerror): Likewise.
971         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
972         * lib/sys_stat.in.h (fstat): Likewise.
973         * lib/utime.in.h (utime): Likewise.
975         Fix undesired warnings.
976         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
977         clang.
979 2020-08-16  Bruno Haible  <bruno@clisp.org>
981         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
982         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
983         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
984         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
985         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
987 2020-08-16  Bruno Haible  <bruno@clisp.org>
989         Don't use Autoconf quadrigraphs.
990         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
991         Autoconf quadrigraph.
992         * m4/free.m4 (gl_FUNC_FREE): Likewise.
993         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
994         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
995         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
996         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
997         * m4/math_h.m4 (gl_MATH_H): Likewise.
998         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1000 2020-08-16  Bruno Haible  <bruno@clisp.org>
1002         Fix quoting of AC_LANG_PROGRAM arguments.
1003         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
1004         arguments through [[...]].
1005         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1006         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1007         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1008         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
1009         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
1010         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1011         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
1012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1013         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1014         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1015         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1016         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1017         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1019 2020-08-16  Bruno Haible  <bruno@clisp.org>
1021         Assume autoconf >= 2.64.
1022         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
1023         * DEPENDENCIES: Require Autoconf 2.64 or newer.
1024         * NEWS: Mention the changed requirement.
1025         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
1026         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
1027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
1028         variables.
1029         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1030         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1031         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1032         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
1033         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
1034         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
1035         Likewise.
1036         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
1037         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
1038         * m4/configmake.m4: Update comment.
1040 2020-08-16  Bruno Haible  <bruno@clisp.org>
1042         sys_ioctl: Simplify.
1043         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
1044         AC_INCLUDES_DEFAULT.
1046 2020-08-16  Bruno Haible  <bruno@clisp.org>
1048         Fix quoting of AC_LANG_SOURCE arguments.
1049         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
1050         GL_NOCRASH expansion.
1051         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
1052         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1053         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1054         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1055         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1057 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1059         nstrftime: be more predictable about errno
1060         This aligns nstrftime better with draft POSIX 202x strftime.
1061         * lib/nstrftime.c: Include errno.h.
1062         (width_add, __strftime_internal): Set errno on failure,
1063         and preserve it on success.  Check for mktime_z failure.
1064         * modules/nstrftime (Depends-on): Add errno.
1065         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
1066         * tests/test-nstrftime.c: Include intprops.h, limits.h.
1067         (errno_test): New test function.
1068         (main): Call it.
1070 2020-08-15  Bruno Haible  <bruno@clisp.org>
1072         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
1073         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
1074         from dependency analysis first.
1076 2020-08-15  Bruno Haible  <bruno@clisp.org>
1078         Determine asm output option and filename suffix for MSVC/clang.
1079         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
1080         clang-cl.
1082 2020-08-15  Bruno Haible  <bruno@clisp.org>
1084         doc: Update for MSVC/clang.
1085         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
1086         that MSVC 14 does not have.
1088 2020-08-15  Bruno Haible  <bruno@clisp.org>
1090         Revert autoupdate's revert.
1091         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
1093 2020-08-15  Bruno Haible  <bruno@clisp.org>
1095         frexpl: Fix configuration test result on MSVC.
1096         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
1097         zero.
1099 2020-08-15  Bruno Haible  <bruno@clisp.org>
1101         Support compiling without -loldnames on native Windows.
1102         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
1103         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
1104         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1105         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1106         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1108         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
1109         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
1110         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1111         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
1112         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1113         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
1114         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1115         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
1116         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
1117         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
1118         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
1121         Likewise.
1122         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
1123         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1124         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
1125         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1127         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
1128         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
1129         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1130         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1131         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
1132         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
1134         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1135         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1136         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
1137         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1138         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1139         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1140         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1142         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1143         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1144         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1145         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1146         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1147         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1148         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1149         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
1150         test for getcwd.
1151         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
1152         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
1153         with GL_MDA_DEFINES.
1154         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
1155         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
1156         prefixed symbol.
1157         * lib/search.in.h (lfind, lsearch): Likewise.
1158         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1159         Likewise.
1160         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1161         * lib/string.in.h (memccpy, strdup): Likewise.
1162         * lib/sys_stat.in.h (chmod, umask): Likewise.
1163         * lib/time.in.h (tzset): Likewise.
1164         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1165         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1166         read, rmdir, swab, unlink, write): Likewise.
1167         * lib/utime.in.h (utime): Likewise.
1168         * lib/wchar.in.h (wcsdup): Likewise.
1169         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
1170         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
1171         rpl_-prefixed macro.
1172         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
1173         * lib/close.c (close_nothrow): On native Windows, use _close.
1174         * lib/creat.c (orig_creat): On native Windows, use _creat.
1175         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
1176         * lib/dup2.c (dup2_nothrow): Use _dup2.
1177         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
1178         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
1179         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
1180         * lib/open.c (orig_open): On native Windows, use _open.
1181         * lib/read.c (read_nothrow): Use _read.
1182         * lib/rmdir.c: On native Windows, use _rmdir.
1183         * lib/unlink.c: On native Windows, use _unlink.
1184         * lib/write.c (write_nothrow): Use _write.
1185         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
1186         undefined symbol.
1187         * lib/sys_socket.in.h (close): Likewise.
1188         * lib/sys_time.in.h (close): Likewise.
1189         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
1191 2020-08-15  Bruno Haible  <bruno@clisp.org>
1193         Fix "unknown pragma ignored" warnings with clang on native Windows.
1194         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
1195         * lib/cbrtf.c: Likewise.
1196         * lib/ceil.c: Likewise.
1197         * lib/floor.c: Likewise.
1198         * lib/fma.c: Likewise.
1199         * lib/fmod.c: Likewise.
1200         * lib/rint.c: Likewise.
1201         * lib/round.c: Likewise.
1202         * lib/trunc.c: Likewise.
1203         * tests/test-ceil2.c: Likewise.
1204         * tests/test-ceilf2.c: Likewise.
1205         * tests/test-floor2.c: Likewise.
1206         * tests/test-floorf2.c: Likewise.
1207         * tests/test-trunc2.c: Likewise.
1208         * tests/test-truncf2.c: Likewise.
1209         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1212 2020-08-15  Bruno Haible  <bruno@clisp.org>
1214         Fix compilation errors in C++ mode with clang on native Windows.
1215         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
1216         non-glibc systems.
1217         * lib/sched.in.h (sched_yield): Likewise.
1219 2020-08-14  Bruno Haible  <bruno@clisp.org>
1221         stdnoreturn: Work around problem with MSVC/clang.
1222         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
1223         system header after <stdnoreturn.h>.
1224         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
1226 2020-08-14  Bruno Haible  <bruno@clisp.org>
1228         utime-h: Generate an utime.h file always.
1229         * modules/utime-h (Makefile.am): Generate utime.h always.
1230         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
1231         GL_GENERATE_UTIME_H.
1233 2020-08-14  Bruno Haible  <bruno@clisp.org>
1235         mktime, mktime-internal: Remove obsolete code.
1236         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
1238 2020-08-14  Bruno Haible  <bruno@clisp.org>
1240         getcwd: Remove obsolete code.
1241         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
1242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1244 2020-08-14  Bruno Haible  <bruno@clisp.org>
1246         tzset: Assume the function exists.
1247         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
1248         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
1249         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
1250         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
1251         HAVE_TZSET.
1252         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
1253         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
1255         nstrftime: Assume tzset exists.
1256         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
1257         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
1258         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
1260         mktime, mktime-internal: Assume tzset exists.
1261         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
1262         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
1264 2020-08-14  Bruno Haible  <bruno@clisp.org>
1266         strdup: Assume the function exists.
1267         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
1268         whether strdup exists.
1269         * modules/strdup (Files): Remove lib/strdup.c.
1270         (configure.ac): Don't compile strdup.c.
1271         * modules/strdup-posix (Depends-on, configure.ac): Don't test
1272         ac_cv_func_strdup.
1273         * doc/posix-functions/strdup.texi: Update.
1274         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
1275         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
1276         (Depends-on): Remove unistr/u8-strlen.
1278 2020-08-13  Bruno Haible  <bruno@clisp.org>
1280         sys_random: Work around an uClibc bug.
1281         Reported by akater <nuclearspace@gmail.com>
1282         via Stefan Kangas <stefan@marxist.se>
1283         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
1284         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
1285         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
1286         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
1287         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
1289 2020-08-12  Bruno Haible  <bruno@clisp.org>
1291         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
1292         Reported by Florian Weimer in
1293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
1294         * lib/gen-uni-tables.c (output_predicate): Change the element type of
1295         the level3 array to 'unsigned int'.
1296         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
1297         * lib/unictype/categ_*.h: Regenerated.
1298         * lib/unictype/ctype_*.h: Regenerated.
1299         * lib/unictype/pr_*.h: Regenerated.
1300         * lib/unictype/sy_*.h: Regenerated.
1301         * lib/unicase/cased.h: Regenerated.
1302         * lib/unicase/ignorable.h: Regenerated.
1304 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1306         stdint: port intptr_t to more-recent MinGW
1307         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
1308         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
1309         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
1310         Apparently those two macros were removed in mingwrt-3.22
1311         dated 2016-07-14.
1313 2020-08-12  Bruno Haible  <bruno@clisp.org>
1315         thread-optim: Export function-like macros only.
1316         Suggested by Paul Eggert.
1317         * lib/thread-optim.h (gl_multithreaded): New macro.
1318         (IF_MT_DECL, IF_MT): Remove macros.
1319         * doc/multithread.texi (Multithreading Optimizations): Add a small
1320         example.
1321         * lib/fatal-signal.c: Update all uses.
1322         * lib/clean-temp.c: Likewise.
1323         * lib/localename.c: Likewise.
1324         * modules/localename (Depends-on): Add stdbool.
1326 2020-08-12  Bruno Haible  <bruno@clisp.org>
1328         Revert autoupdate's revert.
1329         * config/srclist.txt: Mark regex.h as needing sync with glibc.
1331 2020-08-11  Bruno Haible  <bruno@clisp.org>
1333         thread-optim: Fix a compiler warning.
1334         * lib/thread-optim.h (IF_MT_DECL): Define differently.
1336 2020-08-11  Bruno Haible  <bruno@clisp.org>
1338         Use __restrict also on clang.
1339         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
1340         (__restrict_arr): On clang, define like on GCC.
1341         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
1342         (_Restrict_arr_): Use _Restrict_ also on clang.
1343         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
1344         (_Restrict_arr_): Use _Restrict_ also on clang.
1346 2020-08-11  Bruno Haible  <bruno@clisp.org>
1348         Use flexible array syntax also on clang.
1349         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
1350         define like for GCC 3.
1352 2020-08-11  Bruno Haible  <bruno@clisp.org>
1354         fcntl: On native Windows, use _setmode, not setmode.
1355         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
1356         * lib/binary-io.h: Update comment.
1357         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
1358         * tests/test-dup2.c: Likewise.
1359         * tests/test-dup-safer.c: Likewise.
1360         * tests/test-fcntl.c: Likewise.
1362 2020-08-11  Bruno Haible  <bruno@clisp.org>
1364         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
1365         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
1366         * lib/spawn-pipe.c (create_pipe): Likewise.
1367         * tests/test-nonblocking-pipe-main.c (main): Likewise.
1368         * tests/test-nonblocking-socket-main.c (main): Likewise.
1369         * lib/wait-process.c: Update comment.
1370         * doc/posix-functions/fork.texi: Update.
1372 2020-08-11  Bruno Haible  <bruno@clisp.org>
1374         asyncsafe-spin: Use GCC built-ins also on clang.
1375         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
1376         the newer GCC built-ins also on clang.
1378 2020-08-11  Bruno Haible  <bruno@clisp.org>
1380         Use expression statements also on clang.
1381         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1382         * lib/obstack.h (__extension__): Likewise.
1383         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1384         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1385         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1386         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1387         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1388         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1390 2020-08-10  Bruno Haible  <bruno@clisp.org>
1392         Use many __attribute__s with clang.
1393         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1394         on clang.
1395         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1396         New macros.
1397         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1398         on clang.
1399         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1400         also on older clang versions.
1401         (__attribute__): Don't define to empty on clang.
1402         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1403         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1404         (__attribute_const__): Use __attribute__ __const__ also on clang.
1405         (__attribute_used__): Use __attribute__ __used__ also on clang.
1406         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1407         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1408         clang.
1409         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1410         clang.
1411         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1412         also on clang.
1413         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1414         (__attribute_warn_unused_result__): Use __attribute__
1415         __warn_unused_result__ also on clang.
1416         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1417         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1418         clang >= 7.
1419         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1420         clang versions.
1421         (_Noreturn): Don't redefine on clang >= 3.5.
1422         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1423         also on clang.
1424         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1425         on clang.
1426         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1427         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1428         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1429         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1430         also on clang.
1431         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1432         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1433         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1434         also on clang.
1435         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1436         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1437         __attribute__ __noreturn__ also on clang.
1438         * lib/obstack.h (__attribute_noreturn__): Likewise.
1439         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1440         clang.
1441         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1442         always_inline also on clang.
1443         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1444         clang.
1446 2020-08-10  Bruno Haible  <bruno@clisp.org>
1448         c-ldtoastr tests: Fix test failure.
1449         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1450         is longer than 'double'.
1452 2020-08-10  Bruno Haible  <bruno@clisp.org>
1454         Revert autoupdate's revert.
1455         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1457 2020-08-09  Bruno Haible  <bruno@clisp.org>
1459         string: Fix build error in C++ mode with clang (regression from today).
1460         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1461         parameters, one for GCC, one for clang.
1462         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1463         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1464         as return type.
1466 2020-08-09  Bruno Haible  <bruno@clisp.org>
1468         ftruncate: Use _chsize, not chsize.
1469         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1470         * lib/ftruncate.c: Test HAVE__CHSIZE.
1471         (chsize_nothrow): Use _chsize, not chsize.
1473 2020-08-09  Bruno Haible  <bruno@clisp.org>
1475         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1476         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1477         clang >= 10.
1478         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1479         * lib/fts.c (FALLTHROUGH): Likewise.
1480         * tests/macros.h (FALLTHROUGH): Likewise.
1481         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1482         * config/srclist.txt: Mark it as needing sync with glibc.
1484 2020-08-09  Bruno Haible  <bruno@clisp.org>
1486         stdbool tests: Enable the stricter tests also on clang.
1487         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1488         (e): Enable the address-to-bool conversion test also on clang.
1490 2020-08-09  Bruno Haible  <bruno@clisp.org>
1492         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1493         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1495 2020-08-09  Bruno Haible  <bruno@clisp.org>
1497         Use attribute __aligned__ with clang.
1498         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1499         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1501 2020-08-09  Bruno Haible  <bruno@clisp.org>
1503         Use __alignof__ with clang.
1504         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1505         on clang.
1506         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1507         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1508         clang.
1509         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1510         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1511         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1512         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1514 2020-08-09  Bruno Haible  <bruno@clisp.org>
1516         ignore-value: Simplify on clang.
1517         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1518         workaround.
1520 2020-08-09  Bruno Haible  <bruno@clisp.org>
1522         Use __typeof__ with clang.
1523         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1524         "clang -std=gnu99".
1525         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1526         * tests/test-stdint.c (verify_same_types): Enable the check also on
1527         clang.
1529 2020-08-09  Bruno Haible  <bruno@clisp.org>
1531         Add ability to emit user-defined warnings and errors with clang.
1532         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1533         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1534         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1535         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1536         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1537         attribute for clang.
1539 2020-08-09  Bruno Haible  <bruno@clisp.org>
1541         intprops: Fix typo in comment.
1542         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1544 2020-08-09  Bruno Haible  <bruno@clisp.org>
1546         Use __builtin_signbit* with clang.
1547         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1548         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1549         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1551         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1552         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1553         not REPLACE_SIGNBIT_USING_GCC.
1555 2020-08-09  Bruno Haible  <bruno@clisp.org>
1557         Use __builtin_isnan with clang.
1558         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1559         not __builtin_isnanf. Also on clang.
1560         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1561         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1562         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1563         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1564         built-in.
1565         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1566         not __builtin_isnanl. Also on clang.
1567         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1568         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1569         * lib/math.in.h (__has_builtin): Remove macro.
1570         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1571         __builtin_isnanf. Also on clang.
1572         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1573         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1574         __builtin_isnanl. Also on clang.
1575         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1576         on clang.
1578 2020-08-09  Bruno Haible  <bruno@clisp.org>
1580         thread-optim: Fix logic error.
1581         Reported by Paul Eggert.
1582         * lib/thread-optim.h (IF_MT): Fix logic error.
1584 2020-08-08  Bruno Haible  <bruno@clisp.org>
1586         localename: Use module 'thread-optim'.
1587         * lib/localename.c: Include thread-optim.h.
1588         (struniq): Use IF_MT macro.
1589         * modules/localename (Depends-on): Add thread-optim.
1591         clean-temp: Use module 'thread-optim'.
1592         * lib/clean-temp.c: Include thread-optim.h.
1593         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1594         register_temp_file, unregister_temp_file, register_temp_subdir,
1595         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1596         close_temp, fclose_variant_temp): Use IF_MT macro.
1597         * modules/clean-temp (Depends-on): Add thread-optim.
1599         fatal-signal: Use module 'thread-optim'.
1600         * lib/fatal-signal.c: Include thread-optim.h.
1601         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1602         macro.
1603         * modules/fatal-signal (Depends-on): Add thread-optim.
1605 2020-08-08  Bruno Haible  <bruno@clisp.org>
1607         New module 'thread-optim'.
1608         * lib/thread-optim.h: New file.
1609         * modules/thread-optim: New file.
1610         * doc/multithread.texi (Multithreading Optimizations): New section.
1612 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1614         doc: more updates for glibc 2.32
1615         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1616         * doc/posix-functions/fchmodat.texi: Update.
1618 2020-08-07  Bruno Haible  <bruno@clisp.org>
1620         doc: Update for glibc 2.32.
1621         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1622         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1623         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1624         * doc/glibc-functions/sigabbrev_np.texi: New file.
1625         * doc/glibc-functions/sigdescr_np.texi: New file.
1626         * doc/glibc-functions/strerrordesc_np.texi: New file.
1627         * doc/glibc-functions/strerrorname_np.texi: New file.
1628         * doc/gnulib.texi: Include them.
1629         (Glibc sys/single_threaded.h): New section.
1630         * doc/pastposix-functions/h_errno.texi: Update.
1631         * doc/posix-functions/*.texi: Likewise.
1632         * doc/glibc-functions/*.texi: Likewise.
1634 2020-08-07  Bruno Haible  <bruno@clisp.org>
1636         alloca: No need to compile alloca.c with clang.
1637         * lib/alloca.c: Skip all code with clang.
1639         Use __builtin_alloca with clang.
1640         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1642 2020-08-06  Bruno Haible  <bruno@clisp.org>
1644         Use __builtin_assume with clang.
1645         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1646         (assume): Use __builtin_assume when available.
1648 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1650         libgmp: add <gmp/gmp.h> support
1651         * m4/libgmp.m4 (gl_LIBGMP):
1652         * modules/libgmp (configure.ac, Makefile.am):
1653         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1654         ‘#include <gmp.h>’.
1656 2020-08-06  Bruno Haible  <bruno@clisp.org>
1658         Consider that clang defines __OPTIMIZE__ like GCC does.
1659         * lib/streq.h: Define the inline functions also on clang.
1660         * lib/c-strcaseeq.h: Likewise.
1661         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1662         the GCC workaround to clang.
1664 2020-08-06  Bruno Haible  <bruno@clisp.org>
1666         safe-alloc: Remove unused code.
1667         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1669 2020-08-06  Bruno Haible  <bruno@clisp.org>
1671         Use __builtin_expect with clang everywhere.
1672         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1673         also on clang.
1675 2020-08-05  Bruno Haible  <bruno@clisp.org>
1677         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1678         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1679         built-in also on clang.
1680         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1681         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1683 2020-08-05  Bruno Haible  <bruno@clisp.org>
1685         Use __builtin_clz{,l,ll} with clang, also on Windows.
1686         * lib/integer_length.c: With clang, use the GCC built-in, not
1687         <intrin.h>.
1688         * lib/integer_length_l.c: Likewise.
1689         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1690         also on clang.
1691         * lib/vasnprintf.c (divide): Likewise.
1693 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1695         Update srclist.txt as per recent glibc changes
1696         * config/srclist.txt: Uncomment lines to reflect recent merges
1697         from Gnulib to glibc.
1699 2020-08-03  Bruno Haible  <bruno@clisp.org>
1701         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1702         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1704 2020-08-03  Bruno Haible  <bruno@clisp.org>
1706         integer_length_ll: Optimize for MSVC in 64-bit mode.
1707         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1708         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1710 2020-08-03  Bruno Haible  <bruno@clisp.org>
1712         integer_length_ll: Optimize for MSVC in 32-bit mode.
1713         * lib/integer_length_l.c: Include <intrin.h>.
1714         (integer_length): Define as inline function, like in
1715         lib/integer_length.c.
1717 2020-08-03  Bruno Haible  <bruno@clisp.org>
1719         integer_length: Optimize for MSVC.
1720         * lib/integer_length.c: Include <intrin.h>.
1721         (integer_length): With MSVC, use the _BitScanReverse built-in.
1723 2020-08-03  Bruno Haible  <bruno@clisp.org>
1725         ffsll: Optimize for MSVC in 64-bit mode.
1726         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1727         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1728         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1730 2020-08-03  Bruno Haible  <bruno@clisp.org>
1732         ffsll: Optimize for MSVC in 32-bit mode.
1733         * lib/ffsl.h: Include <intrin.h>.
1734         (ffs): Define as inline function, like in lib/ffs.c.
1736 2020-08-03  Bruno Haible  <bruno@clisp.org>
1738         ffs: Optimize for MSVC.
1739         * lib/ffs.c: Include <intrin.h>.
1740         (ffs): With MSVC, use the _BitScanForward built-in.
1742 2020-08-03  Bruno Haible  <bruno@clisp.org>
1744         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1745         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1746         variable.
1748 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1750         fopen: Avoid undesired interactions with glibc headers.
1751         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1752         __need_FILE, as the latter does not work with glibc.
1754 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1756         fcntl: document some F_SETLK errno variations
1757         * doc/posix-functions/fcntl.texi (fcntl): Document
1758         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1760 2020-08-02  Bruno Haible  <bruno@clisp.org>
1762         oset: Add an 'iterator_atleast' operation.
1763         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1764         extracted from gl_array_search_atleast.
1765         (gl_array_search_atleast): Use it.
1766         (gl_array_iterator_atleast): New function.
1767         (gl_array_oset_implementation): Use it.
1768         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1769         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1770         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1771         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1772         member.
1773         (gl_oset_iterator_atleast): New function.
1774         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1775         (gl_OSet::iterator): Add another auxiliary constructor.
1776         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1777         New functions.
1778         (main): Test also gl_oset_iterator_atleast.
1779         * tests/test-avltree_oset.c (is_at_least): New function.
1780         (main): Test also gl_oset_iterator_atleast.
1781         * tests/test-rbtree_oset.c (is_at_least): New function.
1782         (main): Test also gl_oset_iterator_atleast.
1783         * tests/test-oset-c++.cc (is_at_most): New function.
1784         (main): Test also gl_OSet::begin_atleast.
1786 2020-08-02  Bruno Haible  <bruno@clisp.org>
1788         oset-c++, omap-c++: Remove restriction for search_atleast method.
1789         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1790         a different type than the element.
1791         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1792         a different type than the key.
1794 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1796         gnumakefile: say ‘$(MAKE)’ not ‘make’
1797         * top/GNUmakefile (abort-due-to-no-makefile):
1798         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
1799         This change is backported from Autoconf.
1801 2020-08-01  Bruno Haible  <bruno@clisp.org>
1803         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1804         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
1805         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1806         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1807         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1808         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
1810 2020-08-01  Bruno Haible  <bruno@clisp.org>
1812         libtextstyle-optional: Update tests.
1813         * modules/libtextstyle-optional-tests (configure.ac): Invoke
1814         gl_LIBTEXTSTYLE_OPTIONAL.
1816 2020-08-01  Bruno Haible  <bruno@clisp.org>
1818         parse-datetime: Fix wrong #line statements.
1819         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1820         parse-datetime-gen.h.
1822 2020-08-01  Bruno Haible  <bruno@clisp.org>
1824         libtextstyle[-optional]: Allow requesting a minimum version.
1825         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1826         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1827         gl_LIBTEXTSTYLE_SEARCH): New macros.
1828         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1829         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1830         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1831         * modules/libtextstyle-optional (configure.ac): Don't invoke
1832         gl_LIBTEXTSTYLE_OPTIONAL.
1833         * NEWS: Mention the changes.
1835 2020-07-31  Bruno Haible  <bruno@clisp.org>
1837         _GL_CMP: Improve documentation.
1838         Reported by Paul Eggert in
1839         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1840         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1841         passed.
1843 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1845         largefile: sync with Autoconf master
1846         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1847         Avoid undefined behavior on platforms where off_t is 32 bits.
1848         See: https://bugs.debian.org/742780
1850         alloca: sync with Autoconf master
1851         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1852         Do not define if Autoconf 2.70 or later, since Autoconf master
1853         now matches us.
1855 2020-07-30  Bruno Haible  <bruno@clisp.org>
1857         unicodeio: Add comment.
1858         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1859         different iconv behaviours.
1861 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1863         Work around some Oracle Studio attribute bugs
1864         These were discovered when building bleeding-edge Emacs with
1865         Oracle Studio.
1866         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1867         Port to Oracle Studio 12.6, which mishandles __attribute__
1868         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1869         __has_attribute says they work.
1871 2020-07-29  Bruno Haible  <bruno@clisp.org>
1873         unicodeio: Fix wrong result on musl libc.
1874         Reported by A. Wilcox <awilfox@adelielinux.org> in
1875         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1876         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1877         on musl libc.
1878         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1879         * modules/unicodeio (Files): Add m4/musl.m4.
1881 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1883         fsusage, regex, stat-size: remove Cray support
1884         As near as I can make out this is actually support for UNICOS/mp,
1885         last released 2005, and Cray hasn’t supported that for years.
1886         * config/srclist.txt: Comment out regex.h for now.
1887         * lib/fsusage.c (get_fs_usage):
1888         * lib/regex.h (re_comp, re_exec):
1889         * lib/stat-size.h (ST_NBLOCKSIZE):
1890         Don’t worry about _CRAY.
1892 2020-07-29  Bruno Haible  <bruno@clisp.org>
1894         parse-datetime: Fix compilation error with bison 3.7.
1895         * modules/parse-datetime (Makefile.am): Create a generated header file
1896         parse-datetime-gen.h in the source directory. Correct #include and
1897         #line statements during preprocessing.
1899 2020-07-28  Bruno Haible  <bruno@clisp.org>
1901         fopen-gnu: Create files correctly (regression from 2020-05-24).
1902         * lib/fopen.c (rpl_open): Pass a third argument to open().
1904 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1906         xalloc-die: don’t depend on xalloc
1907         This removes a circular dependency, as xalloc depends on xalloc-die.
1908         * modules/xalloc-die (Files): Add lib/xalloc.h.
1909         (Depends-on): Remove xalloc.
1910         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1912         dfa-tests: port to MSVC
1913         Problem reported by Gisle Vanem in:
1914         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1915         Also, remove an unnecessary dependency on getprogname.
1916         * modules/dfa-tests (Depends-on): Remove getprogname.
1917         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1918         (exit_status): New static var.
1919         (dfawarn): Set it instead of exiting.
1920         Do not declare as _Noreturn, to pacify MSVC.
1921         (main): Return exit_status.
1923 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1925         argz: pacify MSVC
1926         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1927         Problem reported by Gisle Vanem.
1929         libgmp: remove dependency on havelib
1930         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1931         use the more-traditional AC_SEARCH_LIBS approach.
1932         This should work better with GNU Emacs configuration,
1933         which uses pkg-config instead of a havelib-style approach.
1934         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1935         * modules/libgmp (Depends-on): Remove havelib.
1937         libgmp: remove HAVE_GMP, LIB_GMP
1938         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1939         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1941 2020-07-26  Bruno Haible  <bruno@clisp.org>
1943         inttypes: Remove support for AIX 4.
1944         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1945         * m4/inttypes-pri.m4: Remove file.
1946         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1947         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1948         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1949         PRI_MACROS_BROKEN.
1950         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1952 2020-07-26  Bruno Haible  <bruno@clisp.org>
1954         gettimeofday: Remove workaround for Mac OS X 10.0.
1955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1956         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1957         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1958         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1959         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1960         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1961         * modules/localtime-buffer: Remove file.
1962         * lib/localtime-buffer.h: Remove file.
1963         * lib/localtime-buffer.c: Remove file.
1964         * m4/localtime-buffer.m4: Remove file.
1965         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1967 2020-07-26  Bruno Haible  <bruno@clisp.org>
1969         tzset: Remove workaround for Solaris 2.6.
1970         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1971         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1972         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1973         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1974         * lib/localtime-buffer.c: Likewise.
1975         * lib/localtime.c: Likewise.
1976         * lib/tzset.c: Don't include localtime-buffer.h.
1977         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1978         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1979         is 1.
1980         * modules/tzset (Depends-on): Remove localtime-buffer.
1982 2020-07-26  Bruno Haible  <bruno@clisp.org>
1984         expl: Simplify autoconf test.
1985         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1986         with small values..." test into the "checking whether expl works..."
1987         test.
1989 2020-07-26  Bruno Haible  <bruno@clisp.org>
1991         alloca: Remove Cray-2 and Cray Y-MP support.
1992         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1993         Enable also on Autoconf >= 2.69.
1994         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1995         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1996         i00afunc): Remove.
1998 2020-07-25  Bruno Haible  <bruno@clisp.org>
2000         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
2001         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
2003 2020-07-25  Bruno Haible  <bruno@clisp.org>
2005         sigprocmask: Small autoconf macro improvement.
2006         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
2007         user to override the value of gl_cv_func_sigprocmask.
2008         * m4/gnulib-common.m4 (gl_SILENT): New macro.
2010 2020-07-25  Bruno Haible  <bruno@clisp.org>
2012         Small autoconf macro improvements.
2013         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
2014         override the value of gl_cv_func_working_mktime.
2015         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
2016         compiler produces multi-arch binaries..." in the configure output.
2017         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
2018         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
2020 2020-07-25  Bruno Haible  <bruno@clisp.org>
2022         doc: Update for NetBSD 7.1, 8.0, 9.0.
2023         * doc/*/*.texi: Update.
2024         * m4/exp2l.m4: Update comments.
2025         * m4/expl.m4: Likewise.
2026         * m4/ilogb.m4: Likewise.
2027         * m4/ilogbf.m4: Likewise.
2028         * m4/log10l.m4: Likewise.
2029         * m4/logl.m4: Likewise.
2030         * m4/printf.m4: Likewise.
2031         * m4/rintl.m4: Likewise.
2032         * m4/wcwidth.m4: Likewise.
2034 2020-07-24  Bruno Haible  <bruno@clisp.org>
2036         doc: Update for Mac OS X 10.13.
2037         * doc/*/*.texi: Update.
2038         * m4/expm1l.m4: Update comments.
2039         * m4/getgroups.m4: Likewise.
2040         * m4/getlogin_r.m4: Likewise.
2041         * m4/linkat.m4: Likewise.
2042         * m4/printf.m4: Likewise.
2044 2020-07-24  Bruno Haible  <bruno@clisp.org>
2046         doc: Update for Cygwin 2.9.0.
2047         * doc/*/*.texi: Update.
2049 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2051         parse-datetime: modernize doc
2052         * doc/parse-datetime.texi: Use more-current examples.
2053         Don’t lead with 32-bit time_t, as it’s on its way out.
2054         Capitalize “Epoch” to be consistent with POSIX.
2056         timespec: remove dependence on ‘verify’
2057         * lib/timespec.h: Do not include verify.h; no longer needed.
2058         * modules/timespec (Depends-on): Remove ‘verify’.
2060         Optimize a few more three-valued comparisons
2061         * lib/timespec.h (timespec_cmp, timespec_sign):
2062         * lib/utimecmp.c (utimecmpat):
2063         Avoid conditional branches by using _GL_CMP.
2065         Fix _GL_CMP parenthesization typo
2066         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
2068 2020-07-24  Bruno Haible  <bruno@clisp.org>
2070         dfa: Revert breaking gawk.
2071         Reported by Arnold Robbins <arnold@skeeve.com>.
2072         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
2074 2020-07-23  Bruno Haible  <bruno@clisp.org>
2076         Optimize three-valued comparison between integers.
2077         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
2078         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
2079         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
2080         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
2081         * lib/dfa.c (compare): Likewise.
2082         * lib/fts.c (fts_compare_ino): Likewise.
2083         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
2084         * lib/mbscasecmp.c (mbscasecmp): Likewise.
2085         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
2086         * lib/memcasecmp.c (memcasecmp): Likewise.
2087         * lib/memcmp2.c (memcmp2): Likewise.
2088         * lib/savedir.c (direntry_cmp_inode): Likewise.
2089         * lib/strcasecmp.c (strcasecmp): Likewise.
2090         * lib/strncasecmp.c (strncasecmp): Likewise.
2091         * lib/unistr/u-cmp2.h (FUNC): Likewise.
2093 2020-07-23  Bruno Haible  <bruno@clisp.org>
2095         lchmod: Use /proc on Cygwin.
2096         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
2098 2020-07-23  Ken Brown  <kbrown@cornell.edu>
2100         fchmodat: Use /proc on Cygwin
2101         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
2103 2020-07-21  Bruno Haible  <bruno@clisp.org>
2105         aligned-malloc: Optionally use aligned_alloc.
2106         * lib/aligned-malloc.h: Verify the alignment.
2107         (aligned_malloc): Use aligned_alloc as an alternative.
2108         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
2109         * doc/posix-functions/aligned_alloc.texi: Mention the modules
2110         'aligned-malloc' and 'pagealign_alloc'.
2112 2020-07-21  Bruno Haible  <bruno@clisp.org>
2114         aligned-malloc: Add tests.
2115         * tests/test-aligned-malloc.c: New file.
2116         * modules/aligned-malloc-tests: New file.
2118         aligned-malloc: New module.
2119         * lib/aligned-malloc.h: New file.
2120         * m4/malloc-align.m4: New file.
2121         * modules/aligned-malloc: New file.
2122         * doc/posix-functions/posix_memalign.texi: Mention the new module.
2123         * doc/glibc-functions/memalign.texi: Likewise.
2125 2020-07-21  Bruno Haible  <bruno@clisp.org>
2127         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
2128         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
2129         sure PRIPTR_PREFIX is defined to "ll", not "l".
2131 2020-07-21  Bruno Haible  <bruno@clisp.org>
2133         printf-posix: Make an autoconf test more future-proof.
2134         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
2135         using uintptr_t.
2137 2020-07-20  Bruno Haible  <bruno@clisp.org>
2139         list, oset, omap: Relicense some of the container modules under LGPLv2+.
2140         * modules/list (License): Change to LGPLv2+.
2141         * modules/array-list (License): Likewise.
2142         * modules/carray-list (License): Likewise.
2143         * modules/linked-list (License): Likewise.
2144         * modules/avltree-list (License): Likewise.
2145         * modules/rbtree-list (License): Likewise.
2146         * modules/oset (License): Likewise.
2147         * modules/array-oset (License): Likewise.
2148         * modules/avltree-oset (License): Likewise.
2149         * modules/rbtree-oset (License): Likewise.
2150         * modules/omap (License): Likewise.
2151         * modules/array-omap (License): Likewise.
2152         * modules/avltree-omap (License): Likewise.
2153         * modules/rbtree-omap (License): Likewise.
2155 2020-07-20  Bruno Haible  <bruno@clisp.org>
2157         oset: Add an 'update' operation.
2158         * lib/gl_array_oset.c (gl_array_update): New function.
2159         (gl_array_oset_implementation): Use it.
2160         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2161         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2162         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
2163         extracted from gl_tree_nx_add_before.
2164         (gl_tree_nx_add_before): Invoke it.
2165         (gl_tree_add_node_after): New function, extracted from
2166         gl_tree_nx_add_after.
2167         (gl_tree_nx_add_after): Invoke it.
2168         (gl_tree_remove_node_no_free): New function, extracted from
2169         gl_tree_remove_node.
2170         (gl_tree_remove_node): Invoke it.
2171         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
2172         extracted from gl_tree_nx_add_before.
2173         (gl_tree_nx_add_before): Invoke it.
2174         (gl_tree_add_node_after): New function, extracted from
2175         gl_tree_nx_add_after.
2176         (gl_tree_nx_add_after): Invoke it.
2177         (gl_tree_remove_node_no_free): New function, extracted from
2178         gl_tree_remove_node.
2179         (gl_tree_remove_node): Invoke it.
2180         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
2181         from gl_tree_iterator_next.
2182         (gl_tree_iterator_next): Invoke it.
2183         (gl_tree_prev_node, gl_tree_update): New functions.
2184         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2185         (gl_avltree_oset_implementation): Use gl_tree_update.
2186         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2187         (gl_rbtree_oset_implementation): Use gl_tree_update.
2188         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
2189         (gl_oset_update): New function.
2190         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
2191         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
2192         * modules/rbtree-oset (configure.ac): Likewise.
2193         * tests/test-oset-update.h: New file.
2194         * tests/test-array_oset.c: Include test-oset-update.h.
2195         (main): Invoke test_update.
2196         * tests/test-avltree_oset.c: Likewise.
2197         * tests/test-rbtree_oset.c: Likewise.
2198         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
2199         * modules/avltree-oset-tests (Files): Likewise.
2200         * modules/rbtree-oset-tests (Files): Likewise.
2201         * tests/test-oset-c++.cc (action): New function.
2202         (main): Test the 'update' member function.
2204 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2206         md5, sha1, sha256, sha512: pacify Autoconf 2.70
2207         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
2208         shell if, so that the argument to AC_CHECK_HEADERS is
2209         a simple string that does not require shell evaluation.
2210         This fixes a warning generated by Autoconf 2.69b.
2212 2020-07-12  Bruno Haible  <bruno@clisp.org>
2214         libgmp: Avoid warning when --without-libgmp is used.
2215         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
2216         GCC >= 8, not for GCC >= 4.6.
2218 2020-07-12  Bruno Haible  <bruno@clisp.org>
2220         libgmp: Link to the correct shared library.
2221         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
2222         * modules/libgmp (Depends-on): Add havelib.
2223         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
2224         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
2226 2020-07-12  Bruno Haible  <bruno@clisp.org>
2228         libgmp tests: Add some safety checks.
2229         * modules/libgmp-tests (Depends-on): Add verify.
2230         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
2231         (main): Verify that gmp.h and libgmp versions match.
2233 2020-07-10  Bruno Haible  <bruno@clisp.org>
2235         unicodeio: Fix wrong result on NetBSD.
2236         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2237         characters also on NetBSD.
2239 2020-07-09  Bruno Haible  <bruno@clisp.org>
2241         unicodeio: Fix wrong result on Solaris 11.
2242         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
2243         via Akim Demaille <akim.demaille@gmail.com> in
2244         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
2245         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2246         characters on Solaris.
2247         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
2248         UTF-8 output or the specified fallback.
2250 2020-07-08  Bruno Haible  <bruno@clisp.org>
2252         unicodeio: Add tests.
2253         * tests/test-unicodeio.c: New file.
2254         * tests/test-unicodeio1.sh: New file.
2255         * tests/test-unicodeio2.sh: New file.
2256         * tests/test-unicodeio3.sh: New file.
2257         * modules/unicodeio-tests: New file.
2259 2020-07-08  Bruno Haible  <bruno@clisp.org>
2261         unicodeio: Document link requirements.
2262         * modules/unicodeio (Link): New section.
2264 2020-07-07  Bruno Haible  <bruno@clisp.org>
2266         doc: Remove support for some very old platforms.
2267         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
2268         * doc/posix-functions/memcpy.texi: Likewise.
2269         * doc/posix-functions/memmove.texi: Likewise.
2270         * doc/posix-functions/memset.texi: Likewise.
2271         * doc/posix-functions/getcwd.texi: Likewise.
2273         memchr: Remove support for some very old platforms.
2274         * m4/memchr-obsolete.m4: Remove file.
2275         * modules/memchr-obsolete: Remove file.
2276         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
2277         absent. Don't define HAVE_MEMCHR.
2278         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
2279         * modules/memchr (Depends-on): Remove memchr-obsolete.
2280         (configure.ac): Assume HAVE_MEMCHR is 1.
2281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2282         HAVE_MEMCHR.
2283         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
2284         * doc/posix-functions/memchr.texi: Don't mention module
2285         'memchr-obsolete'.
2286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2287         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2288         * modules/strnlen (Depends-on): Remove memchr-obsolete.
2290         dup2: Remove support for some very old platforms.
2291         * m4/dup2-obsolete.m4: Remove file.
2292         * modules/dup2-obsolete: Remove file.
2293         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
2294         Don't define HAVE_DUP2.
2295         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
2296         * lib/dup2.c: Likewise.
2297         * modules/dup2 (Depends-on, configure.ac): Likewise.
2298         (Depends-on): Remove dup2-obsolete.
2299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
2300         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
2301         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
2303 2020-07-07  Bruno Haible  <bruno@clisp.org>
2305         canonicalize: Trim module dependencies.
2306         * lib/hash-triple.h: Group declarations.
2307         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
2308         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
2309         (STREQ): Remove macro.
2310         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
2311         * modules/hash-triple-simple: New file, based on modules/hash-triple.
2312         * modules/hash-triple (Files): Remove lib/hash-triple.h.
2313         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
2314         * modules/canonicalize (Depends-on): Remove hash-triple. Add
2315         hash-triple-simple.
2316         * modules/file-set (Depends-on): Likewise.
2318 2020-07-07  Bruno Haible  <bruno@clisp.org>
2320         Clarify dependencies to double-slash-root.
2321         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
2322         (Depends-on): Add double-slash-root.
2323         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
2324         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
2326 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2328         libgmp: new module
2329         The idea is to let programs simply include <gmp.h>, and
2330         so long as they live within the mini-gmp subset they need
2331         not worry about whether the GMP libraries are installed.
2332         * MODULES.html.sh: Mention it.
2333         * config/srclist.txt: Mention files copied from GMP source.
2334         * config/srclistvars.sh (GMP): New var.
2335         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
2336         * modules/libgmp-tests, tests/test-libgmp.c: New files.
2337         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
2339 2020-07-05  Bruno Haible  <bruno@clisp.org>
2341         mkancesdirs: Trim module dependencies.
2342         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
2343         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
2345 2020-07-05  Bruno Haible  <bruno@clisp.org>
2347         getprogname: Trim module dependencies.
2348         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
2349         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
2350         basename-lgpl.
2352 2020-07-05  Bruno Haible  <bruno@clisp.org>
2354         filenamecat-lgpl: Trim module dependencies.
2355         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
2356         dirname.h.
2357         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
2358         basename-lgpl, filename.
2360 2020-07-05  Bruno Haible  <bruno@clisp.org>
2362         backupfile, backup-rename: Trim module dependencies.
2363         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
2364         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
2365         basename-lgpl.
2366         * modules/backup-rename (Depends-on): Likewise.
2368 2020-07-05  Bruno Haible  <bruno@clisp.org>
2370         argp: Trim module dependencies.
2371         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
2372         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
2374 2020-07-05  Bruno Haible  <bruno@clisp.org>
2376         basename-lgpl: New module.
2377         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
2378         lib/basename-lgpl.c.
2379         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2380         <stdbool.h>, filename.h.
2381         (last_component): Rename a local variable.
2382         * lib/dirname.h: Include basename-lgpl.h.
2383         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2384         (last_component, base_len): Remove declarations.
2385         * modules/basename-lgpl: New file.
2386         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2387         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2388         (Makefile.am): Don't compile basename-lgpl.c.
2389         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2390         not 'dirname'.
2392 2020-07-05  Bruno Haible  <bruno@clisp.org>
2394         dirname, dirname-lgpl: Simplify.
2395         * m4/dirname.m4: Remove file.
2396         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2397         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2398         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2400 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2402         tests: avoid shadowing warning
2403         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2405 2020-07-05  Bruno Haible  <bruno@clisp.org>
2407         supersede: Add tests.
2408         * tests/test-supersede.c: New file.
2409         * tests/test-supersede-open.h: New file.
2410         * tests/test-supersede-fopen.h: New file.
2411         * modules/supersede-tests: New file.
2413         supersede: New module.
2414         * lib/supersede.h: New file.
2415         * lib/supersede.c: New file.
2416         * m4/supersede.m4: New file.
2417         * modules/supersede: New file.
2419 2020-07-05  Bruno Haible  <bruno@clisp.org>
2421         Add some copyright headers.
2422         * lib/dev-ino.h: Add copyright header.
2423         * lib/di-set.h: Likewise.
2424         * lib/fchown-stub.c: Likewise.
2425         * lib/file-set.h: Likewise.
2426         * lib/hash-triple.h: Likewise.
2427         * lib/idcache.h: Likewise.
2428         * lib/ino-map.h: Likewise.
2429         * lib/mkancesdirs.h: Likewise.
2430         * lib/scratch_buffer.h: Likewise.
2431         * lib/se-context.in.h: Likewise.
2432         * lib/stdopen.h: Likewise.
2433         * lib/userspec.h: Likewise.
2435 2020-07-04  Bruno Haible  <bruno@clisp.org>
2437         getrandom: Relicense under LGPLv2+.
2438         Paul Eggert's approval is in
2439         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2440         * modules/getrandom (License): Change to LGPLv2+.
2442 2020-07-04  Bruno Haible  <bruno@clisp.org>
2444         getumask: Add tests.
2445         * tests/test-getumask.c: New file.
2446         * modules/getumask-tests: New file.
2448         getumask: New module.
2449         * lib/sys_stat.in.h (getumask): New declaration.
2450         * lib/getumask.c: New file.
2451         * m4/getumask.m4: New file.
2452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2453         declared.
2454         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2455         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2456         HAVE_GETUMASK.
2457         * modules/getumask: New file.
2458         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2459         * doc/glibc-functions/getumask.texi: New file.
2460         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2462 2020-07-04  Bruno Haible  <bruno@clisp.org>
2464         clean-temp: Add support for temporary files with given mode.
2465         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2466         * lib/clean-temp.c (struct try_create_file_params): New type.
2467         (try_create_file): New function.
2468         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2469         gen_tempname.
2471 2020-07-04  Bruno Haible  <bruno@clisp.org>
2473         clean-temp: Document limitations.
2474         * lib/clean-temp.h: Document limitations.
2476 2020-07-04  Bruno Haible  <bruno@clisp.org>
2478         clean-temp: Add support for temporary files with unpredictable names.
2479         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2480         * lib/clean-temp.c: Include tempname.h.
2481         (gen_register_open_temp): New function.
2482         * modules/tempname (configure.ac): Define a module indicator.
2484 2020-07-04  Bruno Haible  <bruno@clisp.org>
2486         clean-temp: Add support for temporary files anywhere in the file system.
2487         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2488         cleanup_temporary_file): New declarations.
2489         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2490         variables.
2491         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2492         (dir_cleanup_list): Renamed from cleanup_list.
2493         (cleanup_action): Process the file_cleanup_list as well.
2494         (do_init_clean_temp): New function.
2495         (clean_temp_once): New variable.
2496         (init_clean_temp): New function.
2497         (create_temp_dir): Invoke it.
2498         (register_temporary_file, unregister_temporary_file,
2499         cleanup_temporary_file): New functions.
2500         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2501         argument.
2503 2020-07-04  Bruno Haible  <bruno@clisp.org>
2505         clean-temp: Improve comments.
2506         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2507         fwriteerror_temp, close_stream_temp): Clarify intended use.
2508         * lib/clean-temp.c: Likewise.
2510 2020-07-04  Bruno Haible  <bruno@clisp.org>
2512         clean-temp: Make multithread-safe, part 2.
2513         * lib/fatal-signal.h: Include <signal.h>.
2514         (get_fatal_signal_set): New declaration.
2515         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2516         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2517         (struct closeable_fd): New type.
2518         (fatal_signal_set): New variable.
2519         (init_fatal_signal_set): New function.
2520         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2521         (cleanup_action): Invoke asyncsafe_close instead of close.
2522         (create_temp_dir): Invoke init_fatal_signal_set.
2523         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2524         element.
2525         (unregister_fd): Remove function.
2526         (close_temp): Cleanup descriptors list on the fly. Invoke
2527         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2528         (fclose_variant_temp): New function.
2529         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2530         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2532 2020-07-04  Bruno Haible  <bruno@clisp.org>
2534         clean-temp: Make multithread-safe, part 1.
2535         * lib/clean-temp.c: Include glthread/lock.h.
2536         (cleanup_list_lock): New variable.
2537         (register_temp_file, unregister_temp_file, register_temp_subdir,
2538         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2539         (create_temp_dir): Likewise. Don't free the old array.
2540         (descriptors_lock): New variable.
2541         (register_fd, unregister_fd): Use it.
2542         * modules/clean-temp (Depends-on): Add lock.
2544 2020-07-04  Bruno Haible  <bruno@clisp.org>
2546         fatal-signal: Make multithread-safe.
2547         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2548         (do_init_fatal_signal_set): New function, extracted from
2549         init_fatal_signal_set.
2550         (fatal_signal_set_once): New variable.
2551         (init_fatal_signal_set): Use gl_once.
2553 2020-07-03  Bruno Haible  <bruno@clisp.org>
2555         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2556         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2557         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2558         <bcrypt.h>.
2560 2020-07-03  Bruno Haible  <bruno@clisp.org>
2562         dfa tests: Follow common file naming conventions.
2563         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2564         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2565         * tests/test-dfa-invalid-char-class.sh: Renamed from
2566         tests/dfa-invalid-char-class.sh. Update.
2567         * modules/dfa-tests (Files, Makefile.am): Update.
2569 2020-07-03  Bruno Haible  <bruno@clisp.org>
2571         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2572         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2573         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2575 2020-07-03  Bruno Haible  <bruno@clisp.org>
2577         asyncsafe-spin: Reduce code duplication.
2578         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2579         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2580         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2582 2020-07-03  Bruno Haible  <bruno@clisp.org>
2584         lchmod: Simplify after 2020-02-22 change.
2585         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2587 2020-07-03  Bruno Haible  <bruno@clisp.org>
2589         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2590         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2592 2020-07-03  Bruno Haible  <bruno@clisp.org>
2594         dfa: Make sure the compiler does not barf on 'inline'.
2595         * modules/dfa (configure.ac): Require AC_C_INLINE.
2597 2020-07-03  Bruno Haible  <bruno@clisp.org>
2599         bitset: Make sure the compiler does not barf on 'inline'.
2600         * modules/bitset (configure.ac): New section.
2602 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2604         manywarnings: improve port to GCC 10.1
2605         * build-aux/gcc-warning.spec: Also list warnings that are default
2606         or are enabled by already-given flags.  This lets us speed up
2607         checking for attributes, and makes the generated compilation
2608         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2609         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2610         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2611         to shell variables that may have long values.
2612         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2613         consequences of other flags, to speed up checking and
2614         shorten commands.
2616         tests: pacify gcc -fanalyzer on zerosize_ptr
2617         * tests/test-memcasecmp.c (main):
2618         * tests/test-memchr.c (main):
2619         * tests/test-memchr2.c (main):
2620         * tests/test-memcmp.c (main):
2621         * tests/test-memmem.c (main):
2622         * tests/test-memrchr.c (main):
2623         * tests/unistr/test-chr.h (main):
2624         * tests/unistr/test-cmp.h (test_cmp):
2625         Check whether zerosize_ptr returns NULL before using it.
2626         This pacifies GCC 10.1’s new fanalyzer option, and matches
2627         other uses of zerosize_ptr.
2629 2020-07-01  Bruno Haible  <bruno@clisp.org>
2631         asyncsafe-spin: Add tests.
2632         * tests/test-asyncsafe-spin1.c: New file.
2633         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2634         tests/test-pthread-spin.c.
2635         * modules/asyncsafe-spin-tests: New file.
2637 2020-07-01  Bruno Haible  <bruno@clisp.org>
2639         asyncsafe-spin: New module.
2640         * lib/asyncsafe-spin.h: New file.
2641         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2642         * modules/asyncsafe-spin: New file.
2644 2020-07-01  Bruno Haible  <bruno@clisp.org>
2646         windows-spin: Fix race condition on multiprocessor systems.
2647         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2649 2020-07-01  Bruno Haible  <bruno@clisp.org>
2651         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2652         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2653         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2654         an implementation based on other GCC built-ins.
2656 2020-07-01  Bruno Haible  <bruno@clisp.org>
2658         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2659         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2660         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2661         lock byte.
2663 2020-07-01  Bruno Haible  <bruno@clisp.org>
2665         pthread-spin: Add error checking.
2666         * lib/pthread-spin.c: Include <stdbool.h>.
2667         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2668         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2669         the unlocks.
2670         * modules/pthread-spin (Depends-on): Add stdbool.
2672 2020-07-01  Bruno Haible  <bruno@clisp.org>
2674         pthread-spin: Add tests.
2675         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2676         * modules/pthread-spin-tests: New file.
2678 2020-07-01  Bruno Haible  <bruno@clisp.org>
2680         tests: Reduce code duplication.
2681         * tests/atomic-int-posix.h: New file, extracted from
2682         tests/test-pthread-mutex.c.
2683         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2684         * tests/test-pthread-rwlock.c: Likewise.
2685         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2686         * modules/pthread-rwlock-tests (Files): Likewise.
2688 2020-07-01  Bruno Haible  <bruno@clisp.org>
2690         tests: Refactor.
2691         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2692         * tests/test-mtx.c: Include it. Remove the corresponding code.
2693         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2695 2020-07-01  Bruno Haible  <bruno@clisp.org>
2697         tests: Refactor.
2698         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2699         * tests/test-lock.c: Include it. Remove the corresponding code.
2700         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2702 2020-06-29  Bruno Haible  <bruno@clisp.org>
2704         sys_socket: Don't define socklen_t if it is already defined on mingw.
2705         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2706         <https://savannah.gnu.org/bugs/?57725>,
2707         by Rahul Das <bokul_4u@yahoo.com> in
2708         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2709         and by Eli Zaretskii <eliz@gnu.org> in
2710         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2711         * lib/sys_socket.in.h (socklen_t): Remove definition.
2713 2020-06-29  Bruno Haible  <bruno@clisp.org>
2715         alloca-opt: Fix warning on mingw.
2716         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2717         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2718         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2719         whether alloca is defined.
2721 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2723         getrandom: do not depend on ‘open’ on mingw
2724         Similarly for at-internal, getloadavg.  These modules do not call
2725         the ‘open’ function when they are compiled on mingw.  On mingw,
2726         this avoids having to compile open.c when building Emacs, which
2727         does its own thing with ‘open’.
2728         * modules/at-internal, modules/getloadavg, modules/getrandom:
2729         (Depends-on): Don’t depend on ‘open’ on mingw.
2730         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2731         * modules/getloadavg (Depends-on):
2732         Depend on intprops, open, stdbool, stdlib only if compiling
2733         getloadavg.c.
2735 2020-06-28  Bruno Haible  <bruno@clisp.org>
2737         doc: Add a note about sigprocmask vs. pthread_sigmask.
2738         * doc/posix-functions/sigprocmask.texi: Add note.
2740 2020-06-28  Bruno Haible  <bruno@clisp.org>
2742         getrandom: Fix compilation errors on older versions of mingw.
2743         Reported by Eli Zaretskii <eliz@gnu.org> in
2744         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2745         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2746         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2747         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2748         BCryptGenRandom ourselves.
2750 2020-06-28  Bruno Haible  <bruno@clisp.org>
2752         clean-temp: Fix wrong errno in error message.
2753         * lib/clean-temp.c (create_temp_dir): Save errno around
2754         unblock_fatal_signals call.
2756 2020-06-27  Bruno Haible  <bruno@clisp.org>
2758         fatal-signal: Make multithread-safe.
2759         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2761 2020-06-27  Bruno Haible  <bruno@clisp.org>
2763         clean-temp: Don't force deletion of temporary files on native Windows.
2764         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2765         argument.
2766         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2767         * NEWS: Mention the change.
2768         * lib/javacomp.c (write_temp_file): Update.
2770 2020-06-27  Bruno Haible  <bruno@clisp.org>
2772         fatal-signal: Make multithread-safe.
2773         * lib/fatal-signal.c: Include glthread/lock.h.
2774         (at_fatal_signal_lock): New variable.
2775         (at_fatal_signal): Use it.
2776         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2777         (block_fatal_signals, unblock_fatal_signals): Use them.
2778         * modules/fatal-signal (Depends-on): Add lock.
2780 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2782         getloadavg: don’t depend on fopen-gnu
2783         This is for Emacs, which does not need fopen-gnu for anything else,
2784         and which would need it only on a NetBSD platform where getloadavg
2785         does not work (does that even happen?).
2786         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2787         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2789         * tests/test-getloadavg.c (main): Fix typo.
2791 2020-06-27  Bruno Haible  <bruno@clisp.org>
2793         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
2794         * modules/tempname (Link): New section.
2795         * modules/mkdtemp (Link): Likewise.
2796         * modules/clean-temp (Link): Likewise.
2797         * modules/mkstemp (Link): Likewise.
2798         * modules/stdlib-safer (Link): Likewise.
2799         * modules/mkstemps (Link): Likewise.
2800         * modules/mkostemp (Link): Likewise.
2801         * modules/mkostemps (Link): Likewise.
2802         * modules/tmpfile (Link): Likewise.
2803         * modules/tmpfile-safer (Link): Likewise.
2804         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
2805         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
2806         $(LIB_GETRANDOM).
2807         * NEWS: Mention the changes.
2809 2020-06-27  Bruno Haible  <bruno@clisp.org>
2811         fopen-gnu: Simplify code.
2812         * lib/fopen.c: Include <stdbool.h>.
2813         (rpl_fopen): Use a single variable open_flags instead of
2814         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
2815         * modules/fopen (Depends-on): Add stdbool.
2817 2020-06-26  Bruno Haible  <bruno@clisp.org>
2819         canonicalize: Improve documentation.
2820         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2821         return convention.
2823 2020-06-26  Bruno Haible  <bruno@clisp.org>
2825         xgetcwd: Improve documentation.
2826         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2828 2020-06-26  Bruno Haible  <bruno@clisp.org>
2830         getcwd: Improve documentation.
2831         * lib/getcwd.c (__getcwd): Document the failure return convention.
2833 2020-06-26  Bruno Haible  <bruno@clisp.org>
2835         fchdir: Improve documentation.
2836         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2837         convention.
2839 2020-06-26  Bruno Haible  <bruno@clisp.org>
2841         filenamecat-lgpl: Set errno upon failure.
2842         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2843         return convention.
2844         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2846 2020-06-26  Bruno Haible  <bruno@clisp.org>
2848         areadlink-with-size: Set errno upon failure.
2849         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2850         fails.
2851         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2853 2020-06-26  Bruno Haible  <bruno@clisp.org>
2855         copy-file: Shrink dependencies.
2856         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2857         qcopy-acl.
2859 2020-06-26  Bruno Haible  <bruno@clisp.org>
2861         doc: Mention declaration fixes implemented by some modules.
2862         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2863         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2864         declaration appear in <unistd.h>.
2865         * doc/posix-functions/dup.texi: Likewise.
2866         * doc/posix-functions/dup2.texi: Likewise.
2867         * doc/posix-functions/gethostname.texi: Likewise.
2868         * doc/posix-functions/isatty.texi: Likewise.
2869         * doc/posix-functions/lseek.texi: Likewise.
2870         * doc/posix-functions/unlink.texi: Likewise.
2871         * doc/posix-functions/read.texi: Mention the module 'read'.
2872         * doc/posix-functions/write.texi: Mention the effects of the module
2873         'write'.
2875 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2877         c-dtoastr, c-ldtoastr: new modules
2878         These modules provide the same functionality as the modules
2879         dtoastr and ldtoastr except for the formatting taking place in the
2880         C locale.
2881         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2882         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2883         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2884         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2885         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2886         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2887         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2888         modules/c-ldtoastr-tests: New files.
2889         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2890         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2892 2020-06-21  Bruno Haible  <bruno@clisp.org>
2894         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2895         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2897 2020-06-16  Bruno Haible  <bruno@clisp.org>
2899         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2900         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2902 2020-06-16  Bruno Haible  <bruno@clisp.org>
2904         thread, thrd: Avoid a compiler warning.
2905         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2907 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2909         windows-thread: Avoid a compiler warning.
2910         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2911         void.
2912         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2914 2020-06-15  Bruno Haible  <bruno@clisp.org>
2916         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2917         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2918         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2919         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2920         first.
2922 2020-06-06  Bruno Haible  <bruno@clisp.org>
2924         calloc-gnu tests: Avoid a test failure with clang.
2925         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2926         'volatile', to defeat compiler optimizations.
2928 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2930         getloadavg: fix double-increment bug
2931         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2932         Linux without glibc, Android, Cygwin.  This fixes a bug I
2933         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2934         Problem and fix reported by Semen Verchenko in:
2935         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2937         tempname: use getrandom, not getentropy
2938         This removes a dependency, as getentropy depends on getrandom.
2939         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2940         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2941         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2943 2020-06-01  Bruno Haible  <bruno@clisp.org>
2945         doc: New chapter 'Multithreading'.
2946         * doc/multithread.texi: New file.
2947         * doc/gnulib.texi: Include it.
2949 2020-06-01  Bruno Haible  <bruno@clisp.org>
2951         doc: Move 'Running self-tests under valgrind' section.
2952         * doc/gnulib.texi (Build Infrastructure Modules): Include
2953         valgrind-tests.texi here...
2954         (Miscellaneous Notes): ... not here.
2956 2020-06-01  Bruno Haible  <bruno@clisp.org>
2958         doc: Move 'Visual Studio Compatibility' section.
2959         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2960         here...
2961         (Build Infrastructure Modules): ... not here.
2963 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2965         doc: improve randomness discussion
2966         Inspired by comments from Jeffrey Walton in:
2967         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2968         * doc/glibc-functions/getentropy.texi (getentropy):
2969         * doc/glibc-functions/getrandom.texi (getrandom):
2970         Improve discussion of problems with "random" data,
2971         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2973 2020-06-01  Bruno Haible  <bruno@clisp.org>
2975         doc: Fix Texinfo syntax error.
2976         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2978 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2980         doc: Change '.' to '@.' where appropriate.
2981         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2982         * doc/glibc-functions/fstatfs.texi: Likewise.
2983         * doc/glibc-functions/fts_children.texi: Likewise.
2984         * doc/glibc-functions/fts_read.texi: Likewise.
2985         * doc/glibc-functions/getdirentries.texi: Likewise.
2986         * doc/glibc-functions/mkostemp.texi: Likewise.
2987         * doc/glibc-functions/mkostemps.texi: Likewise.
2988         * doc/glibc-functions/mkstemps.texi: Likewise.
2989         * doc/glibc-functions/preadv.texi: Likewise.
2990         * doc/glibc-functions/pwritev.texi: Likewise.
2991         * doc/glibc-functions/sendfile.texi: Likewise.
2992         * doc/glibc-functions/statfs.texi: Likewise.
2993         * doc/gnulib-intro.texi: Likewise.
2994         * doc/gnulib-tool.texi: Likewise.
2995         * doc/intprops.texi: Likewise.
2996         * doc/lib-symbol-visibility.texi: Likewise.
2997         * doc/licenses-texi.texi: Likewise.
2998         * doc/pastposix-functions/bcmp.texi: Likewise.
2999         * doc/pastposix-functions/bcopy.texi: Likewise.
3000         * doc/pastposix-functions/bzero.texi: Likewise.
3001         * doc/pastposix-functions/ecvt.texi: Likewise.
3002         * doc/pastposix-functions/fcvt.texi: Likewise.
3003         * doc/pastposix-functions/ftime.texi: Likewise.
3004         * doc/pastposix-functions/gcvt.texi: Likewise.
3005         * doc/pastposix-functions/getwd.texi: Likewise.
3006         * doc/pastposix-functions/index.texi: Likewise.
3007         * doc/pastposix-functions/mktemp.texi: Likewise.
3008         * doc/pastposix-functions/rindex.texi: Likewise.
3009         * doc/pastposix-functions/wcswcs.texi: Likewise.
3010         * doc/posix-functions/aio_cancel.texi: Likewise.
3011         * doc/posix-functions/aio_error.texi: Likewise.
3012         * doc/posix-functions/aio_fsync.texi: Likewise.
3013         * doc/posix-functions/aio_read.texi: Likewise.
3014         * doc/posix-functions/aio_return.texi: Likewise.
3015         * doc/posix-functions/aio_suspend.texi: Likewise.
3016         * doc/posix-functions/aio_write.texi: Likewise.
3017         * doc/posix-functions/creat.texi: Likewise.
3018         * doc/posix-functions/ctime.texi: Likewise.
3019         * doc/posix-functions/daylight.texi: Likewise.
3020         * doc/posix-functions/fgetpos.texi: Likewise.
3021         * doc/posix-functions/fopen.texi: Likewise.
3022         * doc/posix-functions/freopen.texi: Likewise.
3023         * doc/posix-functions/fseeko.texi: Likewise.
3024         * doc/posix-functions/fsetpos.texi: Likewise.
3025         * doc/posix-functions/fstatat.texi: Likewise.
3026         * doc/posix-functions/fstatvfs.texi: Likewise.
3027         * doc/posix-functions/ftello.texi: Likewise.
3028         * doc/posix-functions/ftruncate.texi: Likewise.
3029         * doc/posix-functions/getrlimit.texi: Likewise.
3030         * doc/posix-functions/lio_listio.texi: Likewise.
3031         * doc/posix-functions/localtime.texi: Likewise.
3032         * doc/posix-functions/lseek.texi: Likewise.
3033         * doc/posix-functions/mkstemp.texi: Likewise.
3034         * doc/posix-functions/mktime.texi: Likewise.
3035         * doc/posix-functions/open.texi: Likewise.
3036         * doc/posix-functions/openat.texi: Likewise.
3037         * doc/posix-functions/opendir.texi: Likewise.
3038         * doc/posix-functions/pread.texi: Likewise.
3039         * doc/posix-functions/pwrite.texi: Likewise.
3040         * doc/posix-functions/readdir.texi: Likewise.
3041         * doc/posix-functions/readdir_r.texi: Likewise.
3042         * doc/posix-functions/scandir.texi: Likewise.
3043         * doc/posix-functions/seekdir.texi: Likewise.
3044         * doc/posix-functions/setrlimit.texi: Likewise.
3045         * doc/posix-functions/statvfs.texi: Likewise.
3046         * doc/posix-functions/strftime.texi: Likewise.
3047         * doc/posix-functions/telldir.texi: Likewise.
3048         * doc/posix-functions/timezone.texi: Likewise.
3049         * doc/posix-functions/tmpfile.texi: Likewise.
3050         * doc/posix-functions/truncate.texi: Likewise.
3051         * doc/posix-functions/tzname.texi: Likewise.
3052         * doc/posix-functions/wcsftime.texi: Likewise.
3053         * doc/windows-sockets.texi: Likewise.
3055 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3057         getrandom-tests: do not assume GRND_RANDOM yields short read
3058         * tests/test-getrandom.c (main): Omit assertion that
3059         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
3060         when b’s size is 100000.  This assertion fails with Linux kernel
3061         5.6.13, as that kernel ignores the GRND_RANDOM flag.
3062         The separate blocking pool is going away in the Linux kernel, and
3063         they’ve added a flag GRND_INSECURE instead; see:
3064         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
3065         The assertion was iffy anyway; what’s to prevent a kernel from
3066         lazily filling a large buffer with random bytes?
3068         read-file-test: pacify --enable-gcc-warnings
3069         * tests/test-read-file.c (test_read_file): Now static.
3071         tempname: merge from glibc and coreutils
3072         Also, merge in Gnulib’s more-recent methods of making it easier
3073         to share between Gnulib and glibc, and fix a few randomness
3074         glitches.
3075         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
3076         (__set_errno): Remove; libc-config.h does that for us.
3077         Do not include <sys/time.h>.
3078         (__secure_getenv) [_LIBC]: New macro.
3079         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
3080         (RANDOM_BITS): Rewrite.
3081         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
3082         (random_value): New typedef.
3083         (try_file, try_dir, try_nocreate): Move up.
3084         (gen_tempname_len, try_tempname_len): New functions.
3085         (gen_tempname_len): Use a constant array rather than a switch.
3086         (try_tempname_len): Don’t assume string length fits in int.
3087         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
3088         has enough entropy (it’s a bit short).
3089         (__gen_tempname): Rewrite in terms of gen_tempname_len.
3090         (__try_tempname): Rewrite in terms of try_tempname_len.
3091         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
3092         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
3093         Add getentropy, libc-config.
3095 2020-05-31  Bruno Haible  <bruno@clisp.org>
3097         getrandom, getentropy: Mention the crypto/gc-random module.
3098         Suggested by Simon Josefsson in
3099         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
3100         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
3101         crypto/gc-random module.
3102         * doc/glibc-functions/getentropy.texi: Likewise.
3104 2020-05-31  Bruno Haible  <bruno@clisp.org>
3106         getentropy: Enhance tests.
3107         * tests/test-getentropy.c (main): Add one more test.
3108         * tests/test-unistd-c++.cc: Check the signature of getentropy.
3110 2020-05-31  Bruno Haible  <bruno@clisp.org>
3112         getentropy: Work around a macOS and Solaris problem.
3113         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
3114         'getentropy' module.
3115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3116         UNISTD_H_HAVE_SYS_RANDOM_H.
3117         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
3118         UNISTD_H_HAVE_SYS_RANDOM_H.
3119         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
3120         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
3121         problem. List more platforms.
3123 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3125         fnmatch: merge from glibc
3126         Also, merge in Gnulib’s more-recent methods of making it easier
3127         to share between Gnulib and glibc.
3128         * lib/fnmatch.c: Reorder includes to match glibc better.
3129         Include libc-config.h instead of config.h.
3130         Include alloca.h only if _LIBC || HAVE_ALLOCA.
3131         Do not include "../locale/elem-hash.h" if _LIBC.
3132         Define macros for btowc, etc. if _LIBC.  All uses simplified.
3133         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
3134         Include intprops.h, since glibc has it now.
3135         (SIZE_MAX): Remove; use (size_t) -1 instead.
3136         Omit the "Comment out all this code" ifdef, since Gnulib
3137         has never really needed it.
3138         (STREQ): Remove; no longer used.
3139         (__libc_use_alloca, alloca, alloca_account): Define as
3140         needed if !_LIBC.
3141         (ISWCTYPE): Remove; all uses replaced by iswctype.
3142         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
3143         (internal_function): Remove.  All uses removed.
3144         (STRUCT): New macro.
3145         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
3146         (WMEMCMP): New macro.
3147         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
3148         and <locale/weightwc.h>.
3149         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
3150         __builtin_expect.  Check for integer overflow more
3151         systematically.  Account for alloca storage better when
3152         recursive.  Use strnlen instead of strlen for efficiency.
3153         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
3154         (struct STRUCT): New type.
3155         (FCT, EXT): New ENDS and ALLOCA_USED args.
3156         All callers changed.
3157         (FCT): Prefer __glibc_unlikely to __builtin_expect.
3158         Simplify by assuming WIDE_CHAR_SUPPORT.
3159         Copy _LIBC code from glibc without worrying Gnulib compatibility.
3160         Cast cold to UCHAR to avoid signedness warning.
3161         (END): Check for invalid pattern.
3162         (EXT): Improve alloca/malloc checking (taken from glibc),
3163         and improve it some more by using intprops.h and checking
3164         for integer overflow and using bool for booleans.
3165         * lib/libc-config.h (compat_symbol): New macro.
3166         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
3167         acceptable to non-GCC when a trailing semicolon is added.
3168         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
3169         libc-config, strnlen.  Remove alloca.
3171 2020-05-31  Bruno Haible  <bruno@clisp.org>
3173         getrandom: Doc and test tweaks.
3174         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
3175         it sets errno when failing.
3176         * tests/test-getrandom.c (main): Disable the high-quality check on those
3177         platforms on which it fails.
3178         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
3179         Cygwin to the list of platforms that don't have the function. Add a note
3180         about the quality of the result.
3181         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
3182         declaration; this is fixed by module 'getrandom'.
3184 2020-05-31  Bruno Haible  <bruno@clisp.org>
3186         getrandom: Add support for native Windows.
3187         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
3188         <wincrypt.h>.
3189         (CRYPT_VERIFY_CONTEXT): New macro.
3190         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
3191         'A'.
3192         (GetProcAddress): New macro.
3193         (BCryptGenRandomFuncType): New type.
3194         (BCryptGenRandomFunc, initialized): New variables.
3195         (initialize): New function.
3196         (getrandom): On native Windows, use <bcrypt.h> API when available, and
3197         <wincrypt.h> API as fallback.
3198         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
3199         * modules/getrandom (Link): New section.
3200         * modules/getentropy (Link): Likewise.
3201         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
3202         $(LIB_GETRANDOM).
3203         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
3204         $(LIB_GETRANDOM).
3205         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
3206         against $(LIB_GETRANDOM).
3207         * doc/glibc-functions/getrandom.texi: Mention the native Windows
3208         support.
3210 2020-05-31  Bruno Haible  <bruno@clisp.org>
3212         getrandom: Simplify the determination of the random number devices.
3213         Suggested by Paul Eggert in
3214         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
3215         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
3216         macros.
3217         * modules/getrandom (Depends-on): Remove crypto/gc-random.
3219 2020-05-31  Bruno Haible  <bruno@clisp.org>
3221         crypto/gc-random: Fix list of crypto devices for Solaris.
3222         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
3224 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
3226         list: fix GCC warnings
3227         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
3228         (gl_tree_next_node, gl_tree_node_nx_set_value)
3229         (gl_tree_previous_node, gl_tree_next_node):
3230         Mark unused arguments.
3231         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3232         * lib/gl_anylinked_list2.h (gl_linked_node_value)
3233         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
3235         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
3236         the same variable name in nested scopes.
3238 2020-05-31  Bruno Haible  <bruno@clisp.org>
3240         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
3241         Reported by Akim Demaille in
3242         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
3243         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
3244         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
3245         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
3246         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
3247         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
3249 2020-05-30  Bruno Haible  <bruno@clisp.org>
3251         wmemchr: Relicense under LGPLv2+.
3252         * modules/wmemchr (License): Set to LGPLv2+.
3254 2020-05-30  Bruno Haible  <bruno@clisp.org>
3256         wmempcpy: New module.
3257         Reported by Paul Eggert in
3258         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
3259         * lib/wchar.in.h (wmempcpy): New declaration.
3260         * lib/wmempcpy.c: New file.
3261         * m4/wmempcpy.m4: New file.
3262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
3263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
3264         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
3265         HAVE_WMEMPCPY.
3266         * modules/wmempcpy: New file.
3267         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
3268         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
3269         * modules/mempcpy (Description): Fix typo.
3271 2020-05-30  Bruno Haible  <bruno@clisp.org>
3273         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
3274         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
3276 2020-05-30  Bruno Haible  <bruno@clisp.org>
3278         sys_random: Work around macOS bug.
3279         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
3280         <stdlib.h> before <sys/random.h>.
3281         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3282         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
3283         first.
3284         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
3286 2020-05-30  Bruno Haible  <bruno@clisp.org>
3288         getrandom: Override incompatible system function on Solaris 11.
3289         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
3290         * lib/getrandom.c (getrandom): When the system has getrandom, just
3291         invoke it.
3292         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
3293         system's getrandom function's prototype is not the expected one.
3294         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
3295         REPLACE_GETRANDOM.
3296         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
3297         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
3298         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
3299         EAGAIN.
3300         * doc/glibc-functions/getrandom.texi: Mention the new module and the
3301         Solaris problem.
3303 2020-05-30  Bruno Haible  <bruno@clisp.org>
3305         sys_random: Add C++ tests.
3306         * tests/test-sys_random-c++.cc: New file.
3307         * modules/sys_random-c++-tests: New file.
3308         * modules/sys_random-tests (Depends-on): Depend on it.
3310         sys_random: Add tests.
3311         * tests/test-sys_random.c: New file.
3312         * modules/sys_random-tests: New file.
3314         sys_random: New module.
3315         * lib/sys_random.in.h: Use the common idioms for overridable header
3316         files.
3317         * m4/sys_random_h.m4: New file.
3318         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
3319         * modules/sys_random: New file.
3320         * modules/getrandom (Files): Remove lib/sys_random.in.h.
3321         (Depends-on): Add sys_random.
3322         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
3323         gl_UNISTD_MODULE_INDICATOR.
3324         (Makefile.am): Don't generate sys/random.h here.
3325         * doc/glibc-headers/sys_random.texi: New file.
3326         * doc/gnulib.texi: Include it.
3328 2020-05-30  Bruno Haible  <bruno@clisp.org>
3330         unistd: Remove conflicting declaration of getrandom().
3331         * lib/unistd.in.h (getrandom): Remove declaration.
3332         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
3333         declared.
3334         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
3335         HAVE_GETRANDOM.
3336         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
3337         HAVE_GETRANDOM.
3339 2020-05-30  Bruno Haible  <bruno@clisp.org>
3341         getrandom: Add tests.
3342         * tests/test-getrandom.c: New file.
3343         * modules/getrandom-tests: New file.
3345 2020-05-30  Bruno Haible  <bruno@clisp.org>
3347         crypto/gc-random: Fix link error on MSVC.
3348         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
3349         * modules/crypto/gc-random (Link): New section.
3350         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
3351         $(LIB_GC_RANDOM).
3353 2020-05-30  Bruno Haible  <bruno@clisp.org>
3355         Don't assume that UNICODE is not defined.
3356         Many Windows API functions are defined differently (redirecting to a
3357         function with suffix 'W') if the application defines the macro UNICODE
3358         than by default (redirecting to a function with suffix 'A').
3359         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
3360         variant with suffix 'A'.
3361         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
3362         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
3363         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
3364         * lib/getlogin.c (GetUserName): Likewise.
3365         * lib/getlogin_r.c (GetUserName): Likewise.
3366         * lib/gettimeofday.c (LoadLibrary): Likewise.
3367         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
3368         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
3369         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
3370         * lib/mountlist.c (GetDriveType): Likewise.
3371         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
3372         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
3373         Likewise.
3374         * lib/physmem.c (GetModuleHandle): Likewise.
3375         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3376         PeekMessage, DispatchMessage): Likewise.
3377         * lib/progreloc.c (GetModuleFileName): Likewise.
3378         * lib/putenv.c (SetEnvironmentVariable): Likewise.
3379         * lib/read.c (GetNamedPipeHandleState): Likewise.
3380         * lib/readdir.c (FindNextFile): Likewise.
3381         * lib/relocatable.c (GetModuleFileName): Likewise.
3382         * lib/rename.c (MoveFileEx): Likewise.
3383         * lib/rewinddir.c (FindFirstFile): Likewise.
3384         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3385         PeekMessage, DispatchMessage): Likewise.
3386         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3387         * lib/socket.c (WSASocket): Likewise.
3388         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3389         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3390         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3391         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3392         * lib/tmpdir.c (GetTempPath): Likewise.
3393         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3394         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3395         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3396         * lib/windows-cond.c (CreateEvent): Likewise.
3397         * lib/windows-rwlock.c (CreateEvent): Likewise.
3398         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3399         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3400         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3401         * lib/write.c (GetNamedPipeHandleState): Likewise.
3403 2020-05-30  Bruno Haible  <bruno@clisp.org>
3405         physmem: Fix compilation errors on MSVC.
3406         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3407         * modules/physmem (Depends-on): Add unistd.
3409 2020-05-29  Bruno Haible  <bruno@clisp.org>
3411         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3412         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3413         LDADD a second time, after the second occurrence of libtests.a.
3414         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3416 2020-05-29  Bruno Haible  <bruno@clisp.org>
3418         fnmatch: Rely on more gnulib modules.
3419         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3420         wmempcpy, mempcpy.
3421         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3422         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3423         HAVE_MEMPCPY are all 1.
3424         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3425         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3427 2020-05-29  Bruno Haible  <bruno@clisp.org>
3429         Avoid dynamic lookup of Windows API functions when possible.
3430         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3431         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3432         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3433         (use_win32_p): Define differently.
3434         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3435         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3436         for Windows XP or higher.
3438 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3440         read-file: disable buffering if RF_SENSITIVE is set
3441         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3442         Suggested by Glenn Strauss.
3443         (fread_file): Suggest calling setvbuf before calling this
3444         function.  Suggested by Bruno Haible.
3446 2020-05-29  Bruno Haible  <bruno@clisp.org>
3448         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3449         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3450         program.
3451         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3452         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3453         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3454         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3456 2020-05-29  Bruno Haible  <bruno@clisp.org>
3458         Fix compilation error on native Windows (regression from 2020-05-28).
3459         Reported by Daiki Ueno.
3460         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3461         macro when not using dynamic loading.
3462         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3463         QueryFullProcessImageNameFunc): Likewise.
3464         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3465         GetFinalPathNameByHandleFunc): Likewise.
3467 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3469         fopen-gnu-tests: fix "\x" escape usage
3470         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3472 2020-05-28  Bruno Haible  <bruno@clisp.org>
3474         Avoid dynamic loading of Windows API functions when possible.
3475         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3476         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3477         * lib/gettimeofday.c (GetProcAddress,
3478         GetSystemTimePreciseAsFileTimeFuncType,
3479         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3480         define in a build for Windows 8 or higher.
3481         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3482         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3483         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3484         in a build for Windows Vista or higher.
3485         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3486         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3487         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3489 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3491         explicit_bzero-tests: improve -Wmissing-declarations pacification
3492         * tests/test-explicit_bzero.c: Now noinline.
3493         Suggested by Bruno Haible in:
3494         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3496 2020-05-28  Bruno Haible  <bruno@clisp.org>
3498         Fix build errors due to read-file changes (regression from 2020-05-27).
3499         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3500         invocation.
3501         * tests/test-sameacls.c (main): Likewise.
3502         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3503         read_binary_file.
3504         * tests/test-pipe-filter-ii1.c (main): Likewise.
3506 2020-05-28  Bruno Haible  <bruno@clisp.org>
3508         fts: Make more robust in multithreaded applications.
3509         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3510         * modules/fts (Depends-on): Add 'open'.
3512 2020-05-28  Bruno Haible  <bruno@clisp.org>
3514         relocatable-prog: Make more robust in multithreaded applications.
3515         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3516         relocatable-prog-wrapper.
3517         (find_executable): Pass an O_CLOEXEC flag to open().
3518         * modules/relocatable-prog (Depends-on): Add 'open'.
3520 2020-05-28  Bruno Haible  <bruno@clisp.org>
3522         getloadavg: Make more robust in multithreaded applications.
3523         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3524         Simplify use of O_CLOEXEC.
3525         * modules/getloadavg (Depends-on): Add 'open'.
3527 2020-05-28  Bruno Haible  <bruno@clisp.org>
3529         vma-iter: Make more robust in multithreaded applications.
3530         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3531         open().
3532         * modules/vma-iter (Depends-on): Add 'open'.
3534 2020-05-28  Bruno Haible  <bruno@clisp.org>
3536         truncate: Make more robust in multithreaded applications.
3537         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3539 2020-05-28  Bruno Haible  <bruno@clisp.org>
3541         pagealign_alloc: Make more robust in multithreaded applications.
3542         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3543         open().
3544         * modules/pagealign_alloc (Depends-on): Add 'open'.
3546 2020-05-28  Bruno Haible  <bruno@clisp.org>
3548         openat: Make more robust in multithreaded applications.
3549         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3551 2020-05-28  Bruno Haible  <bruno@clisp.org>
3553         at-internal: Make more robust in multithreaded applications.
3554         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3555         open().
3557 2020-05-28  Bruno Haible  <bruno@clisp.org>
3559         mountlist: Make more robust in multithreaded applications.
3560         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3561         open().
3562         * modules/mountlist (Depends-on): Add 'open'.
3564 2020-05-28  Bruno Haible  <bruno@clisp.org>
3566         login_tty: Make more robust in multithreaded applications.
3567         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3568         * modules/login_tty (Depends-on): Add 'open'.
3570 2020-05-28  Bruno Haible  <bruno@clisp.org>
3572         javacomp: Make more robust in multithreaded applications.
3573         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3574         open().
3575         * modules/javacomp (Depends-on): Add 'open'.
3577 2020-05-28  Bruno Haible  <bruno@clisp.org>
3579         getprogname: Make more robust in multithreaded applications.
3580         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3581         * modules/getprogname (Depends-on): Add 'open'.
3583 2020-05-28  Bruno Haible  <bruno@clisp.org>
3585         get_progname_of: Make more robust in multithreaded applications.
3586         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3587         open().
3588         * modules/get_progname_of (Depends-on): Add 'open'.
3590 2020-05-28  Bruno Haible  <bruno@clisp.org>
3592         get_ppid_of: Make more robust in multithreaded applications.
3593         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3594         * modules/get_ppid_of (Depends-on): Add 'open'.
3596 2020-05-28  Bruno Haible  <bruno@clisp.org>
3598         get-rusage-as: Make more robust in multithreaded applications.
3599         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3600         flag to open().
3601         * modules/get-rusage-as (Depends-on): Add 'open'.
3603 2020-05-28  Bruno Haible  <bruno@clisp.org>
3605         crypto/gc: Make more robust in multithreaded applications.
3606         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3607         * modules/crypto/gc (Depends-on): Add 'open'.
3609 2020-05-28  Bruno Haible  <bruno@clisp.org>
3611         copy-file: Make more robust in multithreaded applications.
3612         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3613         open().
3615 2020-05-28  Bruno Haible  <bruno@clisp.org>
3617         chown: Make more robust in multithreaded applications.
3618         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3620 2020-05-28  Bruno Haible  <bruno@clisp.org>
3622         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3623         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3625 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3627         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3628         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3629         specified on Windows.
3630         * tests/test-fopen-gnu.c (DATA): New define.
3631         (main): Add test for reading binary files with an 'e' flag.
3633 2020-05-27  Bruno Haible  <bruno@clisp.org>
3635         Don't assume that UNICODE is not defined.
3636         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3637         differently if the application defines the macro UNICODE.
3638         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3639         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3640         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3641         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3642         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3644 2020-05-27  Bruno Haible  <bruno@clisp.org>
3646         Improve pattern for defining _WIN32_WINNT.
3647         Newer versions of the Windows API may not only add, but also remove API
3648         functions. Therefore, when the user is e.g. building for Windows 10, we
3649         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3650         use of APIs that were present in Windows 8 but removed in Windows 10.
3651         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3652         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3653         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3654         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3655         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3657 2020-05-27  Bruno Haible  <bruno@clisp.org>
3659         javacomp: Make more robust in multithreaded applications.
3660         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3661         * modules/javacomp (Depends-on): Add fopen-gnu.
3663 2020-05-27  Bruno Haible  <bruno@clisp.org>
3665         mountlist: Make more robust in multithreaded applications.
3666         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3667         to fopen.
3668         * modules/mountlist (Depends-on): Add fopen-gnu.
3670 2020-05-27  Bruno Haible  <bruno@clisp.org>
3672         sethostname: Make more robust in multithreaded applications.
3673         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3674         * modules/sethostname (Depends-on): Add fopen-gnu.
3676 2020-05-27  Bruno Haible  <bruno@clisp.org>
3678         readutmp: Make more robust in multithreaded applications.
3679         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3680         * modules/readutmp (Depends-on): Add fopen-gnu.
3682 2020-05-27  Bruno Haible  <bruno@clisp.org>
3684         getpass: Make more robust in multithreaded applications.
3685         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3686         * modules/getpass (Depends-on): Add fopen-gnu.
3688 2020-05-27  Bruno Haible  <bruno@clisp.org>
3690         getloadavg: Make more robust in multithreaded applications.
3691         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3692         * modules/getloadavg (Depends-on): Add fopen-gnu.
3694 2020-05-27  Bruno Haible  <bruno@clisp.org>
3696         exclude: Make more robust in multithreaded applications.
3697         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3698         * modules/exclude (Depends-on): Add fopen-gnu.
3700 2020-05-27  Bruno Haible  <bruno@clisp.org>
3702         bitset: Make more robust in multithreaded applications.
3703         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3704         'e' flag to fopen.
3705         * modules/bitset (Depends-on): Add fopen-gnu.
3707 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3709         read-file: add RF_SENSITIVE flag
3710         * lib/read-file.h (RF_SENSITIVE): New define.
3711         * lib/read-file.c (fread_file, read_file): Take into account of
3712         RF_SENSITIVE flag.
3713         * modules/read-file (Depends-on): Add explicit_bzero.
3714         This adds an alternative behavior of those functions to explicitly
3715         clear the internal memory block when it becomes unused.  This is
3716         useful for reading sensitive information from a file.
3718 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3720         read-file: add flags to modify reading behavior
3721         * lib/read-file.h (RF_BINARY): New define.
3722         (fread_file, read_file): Take FLAGS argument.
3723         (read_binary_file): Remove.
3724         * lib/read-file.c (internal_read_file): Merge into ...
3725         (read_file): ... here.
3726         * modules/read-file-tests (Files): Add "tests/macros.h".
3727         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3728         * NEWS: Mention this change.
3730 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3732         doc/gnulib-intro.texi: add missing "to" in sentence
3733         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3734         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3735         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3737 2020-05-26  Bruno Haible  <bruno@clisp.org>
3739         count-one-bits: Fix MSVC specific code.
3740         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3741         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3742         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3743         using GCC.
3744         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3745         (__popcnt64): In 32-bit mode, define as an inline function.
3746         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3748 2020-05-26  Bruno Haible  <bruno@clisp.org>
3750         argz: Avoid name clashes through argz.h.
3751         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3752         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3753         * lib/argz.h: Don't use __ prefixed identifiers.
3754         (const): Remove definition.
3755         (argz_next): Remove inline definitions.
3757 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3759         read-file: make use of fopen-gnu
3760         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3761         (read_binary_file): Likewise.
3762         * modules/read-file (Depends-on): Add fopen-gnu.
3764 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3766         getentropy, getrandom: new modules
3767         * MODULES.html.sh (func_all_modules):
3768         * lib/unistd.in.h (getentropy, getrandom):
3769         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3770         * modules/unistd (unistd.h):
3771         Add support for getentropy, getrandom.
3772         * doc/glibc-functions/getentropy.texi (getentropy):
3773         * doc/glibc-functions/getrandom.texi (getrandom):
3774         These are now fixed on some platforms.
3775         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3776         * m4/getentropy.m4, m4/getrandom.m4:
3777         * modules/getentropy, modules/getentropy-tests:
3778         * modules/getrandom, modules/getrandom-tests:
3779         * tests/test-getentropy.c, tests/test-getrandom.c:
3780         New files.
3782 2020-05-25  Bruno Haible  <bruno@clisp.org>
3784         Add missing C99 dependencies.
3785         Reported by Paul Smith <psmith@gnu.org> in
3786         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3787         * modules/assert (Depends-on): Add c99.
3788         * modules/filenamecat-lgpl (Depends-on): Likewise.
3789         * modules/libc-config (Depends-on): Likewise.
3790         * modules/mktime (Depends-on): Likewise.
3791         * modules/random_r (Depends-on): Likewise.
3792         * modules/regex (Depends-on): Likewise.
3793         * modules/scratch_buffer (Depends-on): Likewise.
3794         * modules/timespec-add (Depends-on): Likewise.
3795         * modules/timespec-sub (Depends-on): Likewise.
3796         * modules/verify (Depends-on): Likewise.
3798 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3800         explicit_bzero-tests: pacify -Wmissing-declarations
3801         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
3802         Now static.
3804 2020-05-24  Bruno Haible  <bruno@clisp.org>
3806         fopen-gnu: Add tests.
3807         * tests/test-fopen-gnu.c: New file.
3808         * modules/fopen-gnu-tests: New file.
3810         fopen-gnu: New module.
3811         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
3812         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
3813         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
3814         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
3815         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
3816         * modules/fopen-gnu: New file.
3817         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3819 2020-05-24  Bruno Haible  <bruno@clisp.org>
3821         open, openat: Really support O_CLOEXEC.
3822         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3823         O_CLOEXEC flag to orig_open.
3824         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3825         pass a O_CLOEXEC flag to orig_openat.
3826         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3827         * modules/open-tests (Depends-on): Add fcntl.
3828         * modules/openat-tests (Depends-on): Likewise.
3829         * modules/fcntl-safer-tests (Depends-on): Likewise.
3831 2020-05-24  Bruno Haible  <bruno@clisp.org>
3833         fopen: Fix the trailing slash workaround.
3834         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3835         write access. Pass the right flags to open().
3836         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3838 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3840         assure: new macro ‘affirm’
3841         * lib/assure.h: Include verify.h.
3842         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3843         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3844         and commentary by Bruno Haible in:
3845         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3846         * modules/assure (Depends-on:): Add verify.
3848 2020-05-23  Bruno Haible  <bruno@clisp.org>
3850         calloc-gnu: Make test work in non-flat address spaces.
3851         Uses code by Paul Eggert.
3852         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3853         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3855 2020-05-23  Bruno Haible  <bruno@clisp.org>
3857         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3858         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3859         AC_RUN_IFELSE invocations.
3861 2020-05-23  Bruno Haible  <bruno@clisp.org>
3863         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3864         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3865         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3866         don't have it.
3867         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3868         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3869         don't have it.
3870         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3871         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3872         it.
3873         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3874         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3875         it.
3876         * lib/math.in.h (__has_builtin): New macro.
3877         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3878         it.
3879         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3880         it.
3881         (isnan): Don't use the builtins on clang versions that don't have
3882         __builtin_isnanf and __builtin_isnanl.
3884 2020-05-23  Bruno Haible  <bruno@clisp.org>
3886         calloc-gnu: Avoid wrong configure results with clang.
3887         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3888         'volatile', to defeat compiler optimizations.
3890 2020-05-23  Bruno Haible  <bruno@clisp.org>
3892         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3893         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3894         'long double' values by reference, with values taken from a statically
3895         allocated array.
3897 2020-05-23  Bruno Haible  <bruno@clisp.org>
3899         findprog-in: Ignore directories.
3900         Reported by Frederick Eaton via Dmitry Goncharov in
3901         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3902         * lib/findprog-in.c (find_in_given_path): When the file found is a
3903         directory, set errno to EACCES and, during a PATH search, continue
3904         searching.
3905         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3907 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3909         verify: document ‘assume’ better
3910         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3912 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3914         gendocs: Clarify licenses for templates.
3915         * doc/gendocs_template: Add a GNU All-Permissive license notice
3916         and bump Parent-Version.
3917         * doc/gendocs_template_min: Add a GNU All-Permissive license
3918         notice and copy the explanatory comment about the license notice
3919         at the bottom from gendocs_template.
3921 2020-05-21  Bruno Haible  <bruno@clisp.org>
3923         group-member: Relicense under LGPLv2+.
3924         Jim Meyering's approval is in
3925         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3926         Paul Eggert's approval is in
3927         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3928         Eric Blake's approval is in
3929         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3930         * modules/group-member (License): Change to LGPLv2+.
3932 2020-05-21  Bruno Haible  <bruno@clisp.org>
3934         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3935         Reported by Tim Rühsen in
3936         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3937         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3939 2020-05-21  Bruno Haible  <bruno@clisp.org>
3941         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3942         Reported by Tim Rühsen in
3943         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3944         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3945         before returning with status 0.
3947 2020-05-21  Bruno Haible  <bruno@clisp.org>
3949         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3950         Reported by Tim Rühsen in
3951         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3952         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3954 2020-05-21  Bruno Haible  <bruno@clisp.org>
3956         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3957         Reported by Tim Rühsen in
3958         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3959         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3960         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3961         respectively.
3963 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3965         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3968 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3970         ftoastr: fix ifndef typo
3971         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3973 2020-05-19  Bruno Haible  <bruno@clisp.org>
3975         havelib: Tweak documentation.
3976         * doc/havelib.texi (Searching for Libraries): Fix typo.
3978 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3980         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3981         This was needed earlier because modules had to import the main script,
3982         but that is no longer true.  Rename the script so that it is
3983         consistent with all other scripts in gnulib and uses hyphens.
3984         * build-aux/vcs_to_changelog.py: Rename to...
3985         * build-aux/vcs-to-changelog.py: ... this.
3986         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3987         * modules/vcs-to-changelog: Likewise.
3989 2020-05-17  Bruno Haible  <bruno@clisp.org>
3991         Clarify intended usage of the license file modules.
3992         Reported by Asher Gordon <AsDaGo@posteo.net> in
3993         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3994         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3995         GNU AGPL. Explain the intended usage of the modules.
3996         * modules/fdl (Notice): Discourage use as a module.
3997         * modules/fdl-1.3 (Notice): Likewise.
3999 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
4001         hash: add hash_xinsert
4002         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
4004 2020-05-16  Bruno Haible  <bruno@clisp.org>
4006         findprog-lgpl: Fix link error (existing since 2008-09-02).
4007         * modules/findprog-lgpl (Makefile.am): Arrange to compile
4008         findprog-lgpl.c, not findprog.c.
4009         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
4010         XNMALLOC.
4012 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
4014         c-stack: pacify -Wunused-result when DEBUG
4015         Problem reported by Marc Nieper-Wißkirchen in:
4016         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
4017         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4018         Explicitly ignore write failures.
4020 2020-05-13  Jim Meyering  <meyering@fb.com>
4022         announce-gen: improve a comment
4023         * build-aux/announce-gen: Improve comment.
4025 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4027         xalloc: pacify -Wanalyzer-possible-null-argument
4028         Problem reported for GCC 10.1.0 by Bruno Haible in:
4029         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
4030         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
4031         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
4032         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
4034 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4036         careadlinkat: fix GCC 10 workaround
4037         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4038         Massage the code so that it’s closer to what it was before
4039         the GCC 10.1.0 workaround was introduced.  This fixes
4040         a loop when !buffer and the bug workaround is in effect.
4041         Remove unnecessary casts.  Defend in a different way
4042         against (buffer && !buffer_size), by adding at least 1
4043         to buf_size each time through the loop.
4045 2020-05-10  Bruno Haible  <bruno@clisp.org>
4047         doc: Mark HP-UX as unsupported.
4048         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
4050 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4052         careadlinkat: limit GCC workaround
4053         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
4054         10.1.0 and later, since the workaround is pretty bad and the GCC
4055         bug should get fixed.
4057 2020-05-10  Bruno Haible  <bruno@clisp.org>
4059         havelib: Enhance documentation.
4060         * doc/havelib.texi (Searching for Libraries): Mention the bad
4061         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
4063 2020-05-10  Bruno Haible  <bruno@clisp.org>
4065         attribute: Clarify list of attributes.
4066         * lib/attribute.h: Reorder the list of attributes, and group them by
4067         purpose.
4069 2020-05-10  Bruno Haible  <bruno@clisp.org>
4071         string: Fix compilation error in C++ mode.
4072         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
4073         _GL_WARN_ON_USE.
4074         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
4075         instead of _GL_WARN_ON_USE.
4077 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
4079         announce-gen: add support for dist-lzip
4080         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
4082 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4084         manywarnings: port to GCC 10.1
4085         * build-aux/gcc-warning.spec:
4086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
4087         Add GCC 10.1.0 warnings.
4089         careadlinkat: pacify -Wreturn-local-addr
4090         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4091         Pacify gcc 10’s -Wreturn-local-addr option.
4092         Simplify some of the later code.
4094 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4096         attribute: remove ATTRIBUTE_DEPRECATED
4097         * lib/attribute.h: Improve recently-added comments, mostly
4098         by shortening them (use active voice, etc.).
4099         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
4100         Problem reported by Bruno Haible in:
4101         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
4103 2020-05-09  Bruno Haible  <bruno@clisp.org>
4105         attribute: Add comments.
4106         * lib/attribute.h: Document each macro.
4108 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
4110         bitset: use the attribute module
4111         * modules/bitset: Depend on 'attribute'.
4112         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
4113         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
4114         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
4115         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
4117 2020-05-09  Bruno Haible  <bruno@clisp.org>
4119         c-stack: Fix warning when DEBUG is enabled.
4120         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4121         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
4122         * lib/c-stack.c: Include <stdio.h>.
4124 2020-05-09  Bruno Haible  <bruno@clisp.org>
4126         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
4127         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
4128         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4129         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4130         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4131         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4132         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4133         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4134         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4135         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
4136         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4137         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4138         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4140 2020-05-09  Bruno Haible  <bruno@clisp.org>
4142         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
4143         Reported by Akim Demaille in
4144         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
4145         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
4146         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4147         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4149 2020-05-09  Bruno Haible  <bruno@clisp.org>
4151         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
4152         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
4153         that usually comes from m4/gnulib-common.m4.
4154         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4156 2020-05-09  Bruno Haible  <bruno@clisp.org>
4158         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
4159         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
4160         that usually comes from m4/gnulib-common.m4.
4161         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4162         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4163         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4165 2020-05-09  Bruno Haible  <bruno@clisp.org>
4167         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
4168         * lib/uchar.in.h (char16_t): Define as macro if
4169         GNULIB_OVERRIDES_CHAR16_T.
4170         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
4171         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
4172         (gl_UCHAR_H): Invoke them.
4173         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
4174         GNULIB_OVERRIDES_CHAR32_T.
4175         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
4176         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
4177         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
4178         GNULIB_OVERRIDES_CHAR32_T.
4180 2020-05-09  Bruno Haible  <bruno@clisp.org>
4182         Macro tweaks.
4183         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
4184         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
4186 2020-05-08  Bruno Haible  <bruno@clisp.org>
4188         c32rtomb: Avoid compilation failure on Haiku.
4189         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
4190         inline definitions.
4191         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
4193 2020-05-08  Bruno Haible  <bruno@clisp.org>
4195         mbrtoc32: Avoid compilation failure on Haiku.
4196         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
4197         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
4198         AC_CHECK_FUNCS_ONCE.
4199         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
4201 2020-05-08  Bruno Haible  <bruno@clisp.org>
4203         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
4204         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
4206 2020-05-08  Bruno Haible  <bruno@clisp.org>
4208         list: Update documentation.
4209         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4210         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
4211         * doc/containers.texi (Container data types): Document the new list
4212         operations and their complexity.
4214 2020-05-08  Bruno Haible  <bruno@clisp.org>
4216         ignore-value tests: Use module 'attribute'.
4217         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
4218         * tests/test-ignore-value.c: Include attribute.h.
4219         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
4220         * modules/ignore-value-tests (Depends-on): Add attribute.
4222 2020-05-08  Bruno Haible  <bruno@clisp.org>
4224         uniname/uniname: Use module 'attribute'.
4225         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
4226         * lib/uniname/uninames.h: Regenerated.
4227         * lib/uniname/uniname.c: Include attribute.h.
4228         * modules/uniname/uniname (Depends-on): Add attribute.
4230 2020-05-08  Bruno Haible  <bruno@clisp.org>
4232         c32rtomb: Use module 'attribute'.
4233         * lib/c32rtomb.c: Include attribute.h.
4234         (FALLTHROUGH): Remove macro.
4235         * modules/c32rtomb (Depends-on): Add attribute.
4237 2020-05-08  Bruno Haible  <bruno@clisp.org>
4239         xsize: Use module 'attribute'.
4240         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
4241         * modules/xsize (Depends-on): Add attribute.
4243 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4245         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
4247         * lib/attribute.h: Minor style fixes.
4249         Fix version-etc glitch on OpenIndiana
4250         Problem reported by Mats Erik Andersson in:
4251         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
4252         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
4253         that now clashes with gnulib-common.h.  All uses changed.
4255 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4257         attribute: new module
4258         This simplifies use of GCC and C2X attributes like ‘deprecated’.
4259         * MODULES.html.sh: Add attribute.
4260         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
4261         * doc/gnulib.texi (Particular Modules): Add Attributes.
4262         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
4263         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
4264         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
4265         * lib/vasnprintf.c:
4266         Include attribute.h, and let it define FALLTHROUGH.
4267         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
4268         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
4269         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
4270         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
4271         This is a copy since Gawk doesn’t use Gnulib.
4272         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
4273         is incompatible with gl_COMMON_BODY’s.  All uses changed.
4274         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
4275         Keep the existing FALLTHROUGH definition since Glibc might use it,
4276         and it does no harm to Gnulib’s FALLTHROUGH.
4277         * lib/fts_.h, lib/inttostr.h:
4278         (__GNUC_PREREQ): Remove; no longer needed.
4279         (__attribute_warn_unused_result__): Remove.  All uses
4280         replaced by _GL_ATTRIBUTE_NODISCARD.
4281         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
4282         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
4283         __attribute__ ((__warn_unused_result__)), for forward
4284         compatibility to C2X.
4285         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
4286         _GL_ATTRIBUTE_NODISCARD.
4287         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
4288         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
4289         replaced by gl_COMMON_BODY’s implementation, which has a
4290         slightly different signature.
4291         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
4292         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
4293         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
4294         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
4295         No doubt all uses should be replaced, at some point.
4296         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
4297         (_Noreturn): Use it.
4298         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
4299         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
4300         (_GL_ATTRIBUTE_COLD)
4301         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
4302         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
4303         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
4304         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
4305         (_GL_ATTRIBUTE_MAYBE_UNUSED)
4306         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
4307         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
4308         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
4309         (_GL_ATTRIBUTE_RETURNS_NONNULL)
4310         (_GL_ATTRIBUTE_SENTINEL): New macros.
4311         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
4312         * modules/fnmatch, modules/freopen-safer, modules/fts:
4313         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
4314         * modules/quotearg, modules/savewd:
4315         * modules/unistdio/u16-u16-vasnprintf:
4316         * modules/unistdio/u16-vasnprintf:
4317         * modules/unistdio/u32-u32-vasnprintf:
4318         * modules/unistdio/u32-vasnprintf:
4319         * modules/unistdio/u8-u8-vasnprintf:
4320         * modules/unistdio/u8-vasnprintf:
4321         * modules/unistdio/ulc-vasnprintf:
4322         * modules/unistr/u8-uctomb, modules/vasnprintf:
4323         (Depends-on:): Add attribute module.
4325 2020-05-03  Bruno Haible  <bruno@clisp.org>
4327         bison: Fix today's commit.
4328         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
4330 2020-05-03  Bruno Haible  <bruno@clisp.org>
4332         list-c++: Add get_first, get_last, set_first, set_last operations.
4333         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
4334         set_first, set_last.
4335         * lib/gl_list.h: Tweak comments.
4337 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
4339         bison: rely on bison's %require to check a version requirement
4340         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
4341         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
4342         enough of not.
4343         So far it is the only know Yacc tool that supports '%require'.
4344         Other yaccs will actually even choke on seeing the -o option after the
4345         input file name.
4346         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
4348 2020-05-02  Bruno Haible  <bruno@clisp.org>
4350         list: Add get_first, get_last, set_first, set_last operations.
4351         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
4352         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
4353         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
4355 2020-05-02  Bruno Haible  <bruno@clisp.org>
4357         list: Remove redundant code for remove_first and remove_last operations.
4358         * lib/gl_list.h (struct gl_list_implementation): Remove fields
4359         remove_first, remove_last.
4360         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
4361         * lib/gl_array_list.c: Revert last change.
4362         * lib/gl_carray_list.c: Likewise.
4363         * lib/gl_anylinked_list2.h: Likewise.
4364         * lib/gl_linked_list.c: Likewise.
4365         * lib/gl_linkedhash_list.c: Likewise.
4366         * lib/gl_anytree_list2.h: Likewise.
4367         * lib/gl_avltree_list.c: Likewise.
4368         * lib/gl_avltreehash_list.c: Likewise.
4369         * lib/gl_rbtree_list.c: Likewise.
4370         * lib/gl_rbtreehash_list.c: Likewise.
4371         * lib/gl_sublist.c: Likewise.
4373 2020-05-02  Bruno Haible  <bruno@clisp.org>
4375         bison-i18n: Add support for cross-compilation.
4376         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
4377         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
4378         via Akim Demaille <akim@lrde.epita.fr>.
4379         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4380         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4381         Don't use bison's --print-localedir option when cross-compiling.
4382         Also, fix an error message and a comment.
4384 2020-05-01  Bruno Haible  <bruno@clisp.org>
4386         list: Add remove_first and remove_last operations.
4387         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4388         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4389         * lib/gl_list.h (struct gl_list_implementation): Add fields
4390         remove_first, remove_last.
4391         (gl_list_remove_first, gl_list_remove_last): New functions.
4392         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4393         functions, based on gl_array_remove_at.
4394         (gl_array_list_implementation): Implement the new operations.
4395         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4396         New functions, based on gl_carray_remove_at.
4397         (gl_carray_list_implementation): Implement the new operations.
4398         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4399         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4400         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4401         new operations.
4402         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4403         Likewise.
4404         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4405         New functions, based on gl_tree_remove_at.
4406         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4407         new operations.
4408         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4409         Likewise.
4410         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4411         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4412         Likewise.
4413         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4414         New functions, based on gl_sublist_remove_at.
4415         (gl_sublist_list_implementation): Implement the new operations.
4416         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4417         remove_last.
4418         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4419         gl_list_remove_last.
4420         * tests/test-avltree_list.c (main): Likewise.
4421         * tests/test-avltreehash_list.c (main): Likewise.
4422         * tests/test-carray_list.c (main): Likewise.
4423         * tests/test-linked_list.c (main): Likewise.
4424         * tests/test-linkedhash_list.c (main): Likewise.
4425         * tests/test-rbtree_list.c (main): Likewise.
4426         * tests/test-rbtreehash_list.c (main): Likewise.
4428 2020-05-01  Bruno Haible  <bruno@clisp.org>
4430         parse-datetime: Fix a build failure with an older bison version.
4431         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4432         parse-datetime.tab.c if a suitable version of bison was not found.
4434 2020-05-01  Bruno Haible  <bruno@clisp.org>
4436         bison: New module.
4437         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4438         m4/parse-datetime.m4.
4439         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4440         * modules/bison: New file.
4441         * modules/parse-datetime (Files): Remove m4/bison.m4.
4442         (Depends-on): Add bison.
4444 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4446         Update users.txt.
4447         * users.txt: Add poke.
4449 2020-04-28  Bruno Haible  <bruno@clisp.org>
4451         posix_spawn_file_actions_addfchdir tests: Enhance test.
4452         * tests/test-posix_spawn5.c: Include findprog.h.
4453         (test): New function, extracted from main.
4454         (main): Invoke it. Also, invoke it with a program name such as
4455         "bin/pwd".
4456         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4457         findprog.
4459 2020-04-28  Bruno Haible  <bruno@clisp.org>
4461         posix_spawn_file_actions_addchdir tests: Enhance test.
4462         * tests/test-posix_spawn4.c: Include findprog.h.
4463         (test): New function, extracted from main.
4464         (main): Invoke it. Also, invoke it with a program name such as
4465         "bin/pwd".
4466         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4467         findprog.
4469 2020-04-28  Bruno Haible  <bruno@clisp.org>
4471         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4472         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4473         access elements of the wrong union member.
4475 2020-04-27  Bruno Haible  <bruno@clisp.org>
4477         getdate: Remove deprecated module.
4478         * modules/getdate: Remove file.
4479         * doc/getdate.texi: Remove file.
4480         * lib/getdate.h: Remove file.
4481         * NEWS: Mention the removal.
4483 2020-04-27  Bruno Haible  <bruno@clisp.org>
4485         realloc: Remove deprecated module.
4486         * modules/realloc: Remove file.
4487         * NEWS: Mention the removal.
4489 2020-04-27  Bruno Haible  <bruno@clisp.org>
4491         calloc: Remove deprecated module.
4492         * modules/calloc: Remove file.
4493         * NEWS: Mention the removal.
4495 2020-04-27  Bruno Haible  <bruno@clisp.org>
4497         malloc: Remove deprecated module.
4498         * modules/malloc: Remove file.
4499         * NEWS: Mention the removal.
4501 2020-04-27  Bruno Haible  <bruno@clisp.org>
4503         fnmatch-posix: Remove deprecated module.
4504         * modules/fnmatch-posix: Remove file.
4505         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4506         * NEWS: Mention the removal.
4508 2020-04-27  Bruno Haible  <bruno@clisp.org>
4510         pipe: Remove deprecated module.
4511         * modules/pipe: Remove file.
4512         * lib/pipe.h: Remove file.
4513         * NEWS: Mention the removal.
4515 2020-04-27  Bruno Haible  <bruno@clisp.org>
4517         getopt: Remove deprecated module.
4518         * modules/getopt: Remove file.
4519         * NEWS: Mention the removal.
4521 2020-04-27  Bruno Haible  <bruno@clisp.org>
4523         remove-dest-slash: Remove deprecated module.
4524         * modules/rename-dest-slash: Remove file.
4525         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4526         Update.
4527         * NEWS: Mention the removal.
4529 2020-04-27  Bruno Haible  <bruno@clisp.org>
4531         unictype/bidicategory-*: Remove deprecated modules.
4532         * modules/unictype/bidicategory-all: Remove file.
4533         * modules/unictype/bidicategory-byname: Remove file.
4534         * modules/unictype/bidicategory-name: Remove file.
4535         * modules/unictype/bidicategory-of: Remove file.
4536         * modules/unictype/bidicategory-test: Remove file.
4537         * MODULES.html.sh (Unicode string functions): Update.
4538         * NEWS: Mention the removals.
4540 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4542         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4543         From a suggestion by Askar Safin in:
4544         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4545         * lib/fts.c (fts_build): If file types are known, optimize
4546         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4547         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4548         non-directories.
4550 2020-04-19  Bruno Haible  <bruno@clisp.org>
4552         vasnprintf: Add support for printing wide characters using escapes.
4553         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4554         (wctomb_fallback): New function.
4555         (local_wctomb): New function.
4556         (local_wcrtomb): New function or macro.
4557         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4558         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4559         %lc.
4561 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4563         fts: remove NOSTAT_LEAF_OPTIMIZATION
4564         It caused ‘find’ and ‘du’ to dump core, and it was useful
4565         only for obsolescent Linux filesystems anyway.  Problem reported in:
4566         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4567         Quite possibly there is still a serious underlying fts bug with
4568         tight-loop-check and mutating file systems, but if so this patch
4569         should cause the bug to be triggered less often.
4570         * lib/fts.c (enum leaf_optimization): Remove
4571         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4572         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4573         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4574         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4575         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4576         Remove.  All uses removed.
4578 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4580         explicit_bzero: Improve code style.
4581         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4583 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4585         explicit_bzero: On native Windows, use SecureZeroMemory().
4586         * lib/explicit_bzero.c: Include <windows.h>.
4587         (explicit_bzero): On native Windows, use SecureZeroMemory.
4589 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4591         explicit_bzero: Use memset_s() when available.
4592         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4593         (explicit_bzero): Use memset_s when available.
4594         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4596 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4598         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4599         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4600         free() that overwrite the memory with canaries.
4602 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4604         bootstrap: recommend git submodule update --init
4605         Reported by Bruno Haible.
4606         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4607         * build-aux/bootstrap: recommand "git submodule update --init"
4608         rather than "git submodule init".
4610 2020-04-12  Bruno Haible  <bruno@clisp.org>
4612         explicit_bzero: Add tests.
4613         * tests/test-explicit_bzero.c: New file.
4614         * modules/explicit_bzero-tests: New file.
4616 2020-04-11  Bruno Haible  <bruno@clisp.org>
4618         explicit_bzero: Relicense under LGPLv2+.
4619         Approved by Paul Eggert.
4620         * modules/explicit_bzero (License): Change to LGPLv2+.
4622 2020-04-10  Bruno Haible  <bruno@clisp.org>
4624         findprog, relocatable-prog: Ignore directories during PATH search.
4625         Reported by Frederick Eaton via Dmitry Goncharov in
4626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4628         * lib/findprog.c (find_in_path): When the file found in a PATH element
4629         is a directory, continue searching.
4630         * modules/findprog (Depends-on): Add sys_stat, stat.
4631         * modules/findprog-lgpl (Depends-on): Likewise.
4633         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4634         element is a directory, continue searching.
4635         * lib/relocwrapper.c: Update comments.
4636         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4637         (configure.ac-early): New section.
4639 2020-04-10  Bruno Haible  <bruno@clisp.org>
4641         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4642         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4644         * MODULES.html.sh: In a git-less tarball, use the date of the first
4645         ChangeLog entry.
4647 2020-04-04  Bruno Haible  <bruno@clisp.org>
4649         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4650         * m4/gettext.m4: Fix comments regarding the gettext library.
4651         * m4/intl-thread-locale.m4: Likewise.
4652         * m4/intlmacosx.m4: Likewise.
4653         * m4/lcmessage.m4: Likewise.
4654         * m4/nls.m4: Likewise.
4655         * m4/po.m4: Likewise.
4656         * m4/progtest.m4: Likewise.
4658 2020-04-04  Jim Meyering  <meyering@fb.com>
4660         maint: remove a stray inter-word space in a 6x-repeated comment
4661         Induce the changes by running this:
4662           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4663         * build-aux/announce-gen: Change "by  perl" to "by perl".
4664         * build-aux/gitlog-to-changelog: Likewise.
4665         * build-aux/prefix-gnulib-mk: Likewise.
4666         * build-aux/update-copyright: Likewise.
4667         * build-aux/useless-if-before-free: Likewise.
4668         * tests/test-update-copyright.sh: Likewise.
4670 2020-03-28  Bruno Haible  <bruno@clisp.org>
4672         Use module 'filename' instead of module 'dosname'.
4674         * lib/at-func.c: Include filename.h instead of dosname.h.
4675         * lib/unlinkat.c: Likewise.
4676         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4677         * modules/areadlinkat-with-size (Depends-on): Likewise.
4678         * modules/faccessat (Depends-on): Likewise.
4679         * modules/fchmodat (Depends-on): Likewise.
4680         * modules/fchownat (Depends-on): Likewise.
4681         * modules/fstatat (Depends-on): Likewise.
4682         * modules/mkdirat (Depends-on): Likewise.
4683         * modules/mkfifoat (Depends-on): Likewise.
4684         * modules/readlinkat (Depends-on): Likewise.
4685         * modules/selinux-at (Depends-on): Likewise.
4686         * modules/symlinkat (Depends-on): Likewise.
4687         * modules/unlinkat (Depends-on): Likewise.
4688         * modules/utimensat (Depends-on): Likewise.
4690         * lib/at-func2.c: Include filename.h instead of dosname.h.
4691         * modules/linkat (Depends-on): Add filename. Remove dosname.
4692         * modules/renameatu (Depends-on): Likewise.
4694         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4695         * lib/canonicalize-lgpl.c: Likewise.
4696         * modules/canonicalize (Depends-on): Add filename.
4697         * modules/canonicalize-lgpl (Depends-on): Likewise.
4699         * lib/dirname.h: Include filename.h instead of dosname.h.
4700         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4702         * lib/fchdir.c: Include filename.h instead of dosname.h.
4703         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4705         * lib/openat.c: Include filename.h instead of dosname.h.
4706         * modules/openat (Depends-on): Add filename. Remove dosname.
4708         * lib/rmdir.c: Include filename.h instead of dosname.h.
4709         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4711         * lib/savewd.c: Include filename.h instead of dosname.h.
4712         * modules/savewd (Depends-on): Add filename. Remove dosname.
4714         * lib/unlink.c: Include filename.h instead of dosname.h.
4715         * modules/unlink (Depends-on): Add filename. Remove dosname.
4717         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4718         * lib/relocwrapper.c: Update comments.
4720         * modules/lstat (Depends-on): Remove dosname.
4722 2020-03-28  Bruno Haible  <bruno@clisp.org>
4724         dosname: Redirect to 'filename'.
4725         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4726         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4727         * lib/dosname.h: Remove all definitions. Just include filename.h.
4728         * modules/dosname (Status, Notice): Mark as deprecated.
4729         (Depends-on): Add 'filename'.
4731 2020-03-28  Bruno Haible  <bruno@clisp.org>
4733         dosname: Change IS_RELATIVE_FILE_NAME.
4734         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4735         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4736         * NEWS: Mention the change.
4738 2020-03-28  Bruno Haible  <bruno@clisp.org>
4740         filename: Copy some definitions from module 'dosname'.
4741         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4742         (HAS_DEVICE): Document macro.
4743         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4744         (IS_ABSOLUTE_FILE_NAME): Consider
4745         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4746         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4747         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4748         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4749         IS_PATH_WITH_DIR.
4750         (DllMain): Update.
4751         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4752         IS_PATH_WITH_DIR.
4753         (find_executable): Update.
4754         * NEWS: Document the deprecations.
4756 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4758         getopt-posix: port __GETOPT_PREFIX to macOS
4759         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4760         Define to work around a problem with asm on macOS (Bug#40205).
4762 2020-03-22  Bruno Haible  <bruno@clisp.org>
4764         MODULES.html.sh: Add support for reproducible builds.
4765         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4766         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4767         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4768         current date.
4770 2020-03-22  Bruno Haible  <bruno@clisp.org>
4772         Several modules: Depend on stat.
4773         * modules/acl-permissions (Depends-on): Add stat.
4774         * modules/canonicalize (Depends-on): Likewise.
4775         * modules/file-has-acl (Depends-on): Likewise.
4776         * modules/fstat (Depends-on): Likewise.
4777         * modules/fstatat (Depends-on): Likewise.
4778         * modules/glob (Depends-on): Likewise.
4779         * modules/javacomp (Depends-on): Likewise.
4780         * modules/linkat (Depends-on): Likewise.
4781         * modules/mkdir (Depends-on): Likewise.
4782         * modules/pt_chown (Depends-on): Likewise.
4783         * modules/ptsname_r (Depends-on): Likewise.
4784         * modules/readlinkat (Depends-on): Likewise.
4785         * modules/rename (Depends-on): Likewise.
4786         * modules/renameatu (Depends-on): Likewise.
4787         * modules/tmpdir (Depends-on): Likewise.
4788         * modules/utimens (Depends-on): Likewise.
4789         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4790         * modules/same (Depends-on): Remove stat.
4792 2020-03-22  Bruno Haible  <bruno@clisp.org>
4794         acl-permissions: Improve autoconf macro.
4795         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
4796         more reliably.
4798 2020-03-22  Bruno Haible  <bruno@clisp.org>
4800         file-has-acl: Fix module description.
4801         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
4802         (Depends-on): Depend on acl-permissions unconditionally.
4804 2020-03-21  Bruno Haible  <bruno@clisp.org>
4806         unlink: Ensure errno also on native Windows.
4807         * modules/unlink (Depends-on): Add malloc-posix.
4809 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4811         unlink: fix malloc errno typo
4812         Problem reported by Tim Rühsen in:
4813         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
4814         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
4816 2020-03-16  Bruno Haible  <bruno@clisp.org>
4818         *printf-posix: Fix m4 error (regression from 2020-03-08).
4819         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4820         brackets in AC_COMPILE_IFELSE invocation.
4822 2020-03-08  Bruno Haible  <bruno@clisp.org>
4824         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4825         * modules/crypto/af_alg (Depends-on): Add fstat.
4826         * modules/renameatu (Depends-on): Likewise.
4827         * modules/same (Depends-on): Likewise.
4828         * modules/term-style-control (Depends-on): Likewise.
4830 2020-03-08  Bruno Haible  <bruno@clisp.org>
4832         *printf-posix: Document why it's overridden on some glibc systems.
4833         Reported by Adrian Bunk <bunk@stusta.de> in
4834         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4835         * doc/posix-functions/*printf.texi: Document the problem with the %n
4836         directive on some glibc systems.
4837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4838         the cross-compilation guesses accordingly.
4840 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4842         open, openat: port to (O_RDWR | O_RDONLY) != 0
4843         Potential portability problem reported by Dan Gohman in:
4844         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4845         * lib/open.c (open):
4846         * lib/openat.c (rpl_openat):
4847         Don’t assume O_RDONLY is disjoint from O_RDWR.
4849 2020-03-07  Bruno Haible  <bruno@clisp.org>
4851         openat: Fix theoretically possible issue on GNU/Hurd.
4852         Reported by Dan Gohman <sunfish@mozilla.com> in
4853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4854         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4855         ignore the bits that are also set in O_RDONLY.
4857 2020-02-24  Bruno Haible  <bruno@clisp.org>
4859         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4860         Reported by Jens Rehsack <sno@netbsd.org> in
4861         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4862         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4863         cross-compiling.
4865 2020-02-24  Bruno Haible  <bruno@clisp.org>
4867         fcntl: Add witness of gnulib override.
4868         Reported by Jens Rehsack <sno@netbsd.org> in
4869         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4870         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4871         macros.
4873 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4875         Update users.txt.
4876         * users.txt: Add datamash, time.
4878 2020-02-23  Bruno Haible  <bruno@clisp.org>
4880         uni*/base: Use 'restrict'.
4881         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4882         from lib/regex.h.
4883         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4884         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4885         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4886         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4887         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4888         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4889         '_UC_RESTRICT'.
4890         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4891         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4892         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4893         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4894         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4895         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4896         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4897         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4898         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4899         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4900         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4901         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4902         '_UC_RESTRICT'.
4903         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4904         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4905         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4906         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4907         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4908         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4909         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4910         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4912 2020-02-23  Bruno Haible  <bruno@clisp.org>
4914         glob, spawn: Use improved '_Restrict_' definition.
4915         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4916         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4918 2020-02-23  Bruno Haible  <bruno@clisp.org>
4920         crypto/gc: Use 'restrict'.
4921         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4922         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4924         crypto/hmac-*: Use 'restrict'.
4925         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4926         'restrict'.
4927         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4928         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4929         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4930         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4932         crypto/sm3: Use 'restrict'.
4933         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4934         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4936         crypto/*-buffer: Use 'restrict'.
4937         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4938         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4940         crypto/sha512-buffer: Use 'restrict'.
4941         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4942         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4943         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4945         crypto/sha256-buffer: Use 'restrict'.
4946         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4947         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4948         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4950         crypto/sha1-buffer: Use 'restrict'.
4951         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4952         'restrict'.
4953         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4955         crypto/md5-buffer: Use 'restrict'.
4956         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4957         'restrict'.
4958         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4960         crypto/md4: Use 'restrict'.
4961         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4962         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4964         crypto/md2: Use 'restrict'.
4965         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4966         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4968         crypto/rijndael: Use 'restrict'.
4969         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4970         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4971         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4973         crypto/arctwo: Use 'restrict'.
4974         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4975         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4977         crypto/arcfour: Use 'restrict'.
4978         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4979         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4981         careadlinkat: Use 'restrict'.
4982         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4983         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4984         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4986         regex-quote: Use 'restrict'.
4987         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4988         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4990         system-quote: Use 'restrict'.
4991         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4992         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4994         sh-quote: Use 'restrict'.
4995         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4996         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4998         quotearg: Use 'restrict'.
4999         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
5000         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
5002         parse-datetime: Use 'restrict'.
5003         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
5004         'restrict'.
5005         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
5007         nstrftime: Use 'restrict'.
5008         * lib/strftime.h (nstrftime): Use 'restrict'.
5009         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
5011         mbstok_r: Use 'restrict'.
5012         * lib/string.in.h (mbstok_r): Use 'restrict'.
5014         xmemcoll: Use 'restrict'.
5015         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
5016         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
5018         memcoll: Use 'restrict'.
5019         * lib/memcoll.h (memcoll): Use 'restrict'.
5020         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
5022         vasnprintf: Use 'restrict'.
5023         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
5024         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
5026         c-vasnprintf: Use 'restrict'.
5027         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
5028         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
5030         c-vsnprintf: Use 'restrict'.
5031         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
5032         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
5034         c-snprintf: Use 'restrict'.
5035         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
5036         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
5038         astrxfrm: Use 'restrict'.
5039         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
5040         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
5042         amemxfrm: Use 'restrict'.
5043         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
5044         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
5046 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5048         fchmodat, lchmod: simplify
5049         It appears that we may have overengineered lchmod and fchmodat,
5050         in that the code was prepared for some hypothetical platforms but
5051         was so complicated that it was hard to understand.  I attempted to
5052         improve the situation by simplifying the code when this
5053         simplification should not hurt on real platforms; we can re-add
5054         complexity later to port to platforms I didn’t know about.
5055         * lib/fchmodat.c (fchmodat):
5056         * lib/lchmod.c (lchmod):
5057         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
5058         around the /proc code that needs it.
5059         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
5060         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
5061         Do not include <config.h> twice.
5062         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
5063         lchmod on any known hosts.
5064         (lchmod): Do not defer to fchmodat, so that the lchmod module
5065         need not depend on the fchmodat module (which is a circular
5066         dependency).  Do not use openat, since ‘open’ suffices.
5067         Coalesce calls to lchmod/chmod.
5068         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
5069         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
5070         * modules/lchmod (Depends-on, configure.ac):
5071         * modules/sys_stat (Depends-on):
5072         Do not worry about replacing lchmod, since that shouldn’t happen.
5073         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
5074         Do not worry about whether lchmod works on non-symlinks,
5075         since every known lchmod works on non-symlinks.
5076         * modules/lchmod (Depends-on):
5077         Remove circular dependency on fchmodat.
5079 2020-02-22  Bruno Haible  <bruno@clisp.org>
5081         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
5082         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
5083         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
5085 2020-02-22  Bruno Haible  <bruno@clisp.org>
5087         Use 'restrict' in all POSIX function declarations.
5088         * lib/iconv.in.h (iconv): Use 'restrict'.
5089         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
5090         * lib/monetary.in.h (strfmon_l): Likewise.
5091         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
5092         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
5093         pthread_mutex_timedlock, pthread_rwlock_init,
5094         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5095         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
5096         * lib/search.in.h (tdelete): Likewise.
5097         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
5098         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
5099         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
5100         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
5101         Likewise.
5102         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
5103         strtoull): Likewise.
5104         * lib/string.in.h (strncat): Likewise.
5105         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
5106         recvfrom): Likewise.
5107         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
5108         * lib/time.in.h (strftime): Likewise.
5109         * lib/unistd.in.h (readlink, readlinkat): Likewise.
5110         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
5111         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
5112         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
5113         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
5114         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
5115         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
5116         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5117         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5118         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5119         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5123         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5124         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
5125         other *_h.m4 files.
5126         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
5128 2020-02-22  Bruno Haible  <bruno@clisp.org>
5130         Update NEWS.
5131         * NEWS: Mention the last change.
5133 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5135         chmodat, chownat: new modules
5136         These are split from fchmodat, fchownat.  GNU Emacs needs the
5137         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
5138         lchmodat.  Split the latter two into a new module chmodat.
5139         Similarly for fchownat.  This the same basic idea for why statat
5140         was split from fstatat on 2013-01-23.
5141         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
5142         Rename from FCHMODAT_INLINE.  All uses changed.
5143         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
5144         Rename from FCHOWNAT_INLINE.  All uses changed.
5145         * lib/openat.h:
5146         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
5147         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
5148         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
5149         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
5150         (configure.ac): Remove fchmodat module indicator.
5151         (Makefile.am): Omit chmodat.c.
5152         (Maintainer): Add self.
5153         * modules/fchownat: Similarly, but for chown.
5154         * tests/test-fchownat.c (BASE): Don't define if already defined.
5155         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
5157 2020-02-22  Bruno Haible  <bruno@clisp.org>
5159         users.txt: Add groff.
5160         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
5161         * users.txt: Add groff.
5163 2020-02-22  Bruno Haible  <bruno@clisp.org>
5165         gnulib-tool: Ensure copied files are writable.
5166         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
5167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
5168         * gnulib-tool (func_ensure_writable): New function.
5169         (func_ln_s, func_hardlink, func_lookup_file, func_import,
5170         func_create_testdir, copy-file): Invoke it after copying a file.
5172 2020-02-22  Bruno Haible  <bruno@clisp.org>
5174         users.txt: Update.
5175         * users.txt: Update URLs to projects that have moved or switched to git.
5176         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
5177         over the summary view. Add gawk.
5179 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5181         largefile: remove _DARWIN_USE_64_BIT_INODE
5182         It’s not needed in currently-supported macOS versions, and was
5183         problematic anyway in MacOS X 10.5 which was the only version that
5184         could use it.  Problem reported by Peter Eisentraut in:
5185         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
5186         * m4/largefile.m4 (AC_SYS_LARGEFILE):
5187         Don’t define _DARWIN_USE_64_BIT_INODE.
5188         This syncs with Autoconf master.
5190         Add ‘extern "C"’ to count-one-bits.h etc.
5191         This ports these .h files to C++.
5192         Problem reported by Simon Marchi in:
5193         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
5194         * lib/count-leading-zeros.h, lib/count-one-bits.h:
5195         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
5197 2020-02-19  Bruno Haible  <bruno@clisp.org>
5199         uninorm/decompose-internal: Avoid "no previous prototype" warning.
5200         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5201         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
5202         * lib/array-mergesort.h: Accept an optional macro definition
5203         STATIC_FROMTO.
5204         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
5206 2020-02-16  Bruno Haible  <bruno@clisp.org>
5208         fchmodat: Make more future-proof.
5209         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
5210         NEED_FCHMODAT_NONSYMLINK_FIX.
5211         (gl_PREREQ_FCHMODAT): New macro.
5212         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
5213         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
5214         without lchmod function.
5215         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
5217 2020-02-16  Bruno Haible  <bruno@clisp.org>
5219         lchmod: Make more future-proof.
5220         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
5221         (gl_PREREQ_LCHMOD): New macro.
5222         * lib/lchmod.c (orig_lchmod): New function.
5223         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
5224         Return EOPNOTSUPP only on Linux and on platforms without lchmod
5225         function.
5226         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
5228         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
5229         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
5231 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5233         xnanosleep: prefer pause, and get remaining time
5234         Problem reported by Vladimir Panteleev in:
5235         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
5236         * lib/xnanosleep.c: Include intprops.h, unistd.h.
5237         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
5238         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
5239         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
5240         * modules/xnanosleep (Depends-on): Add intprops, unistd.
5242 2020-02-16  Bruno Haible  <bruno@clisp.org>
5244         lchmod: Improve cross-compilation guess.
5245         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
5246         cross-compiling, guess depending on the platform.
5248 2020-02-16  Bruno Haible  <bruno@clisp.org>
5250         fstrcmp: Add API to clean up resources.
5251         Reported by Akim Demaille <akim@lrde.epita.fr> in
5252         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
5253         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
5254         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
5256 2020-02-14  Bruno Haible  <bruno@clisp.org>
5258         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
5259         Reported by Christian Biesinger in
5260         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
5261         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
5262         corresponding module is not enabled.
5263         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
5264         prototype if the corresponding module is not enabled.
5266 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
5268         fchmodat, lchmod: port to buggy Linux filesystems
5269         Problem reported by Florian Weimer in:
5270         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
5271         * lib/fchmodat.c (fchmodat):
5272         * lib/lchmod.c (lchmod):
5273         Don’t assume that chmod on the O_PATH-opened fd will do
5274         the right thing on a symbolic link.
5275         * lib/fchmodat.c (fchmodat):
5276         Don’t attempt to special-case
5277         any flag value other than AT_SYMLINK_NOFOLLOW.
5279 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
5281         lchmod: pacify Coverity CID 1491216
5282         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
5283         not complain about unreachable code at the ‘struct stat st;’
5284         declaration.
5286 2020-02-10  Bruno Haible  <bruno@clisp.org>
5288         copysignf: Fix link error on HP-UX with cc.
5289         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
5290         HP-UX, set COPYSIGNF_LIBM to -lm.
5292 2020-02-10  Bruno Haible  <bruno@clisp.org>
5294         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
5295         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
5296         with $(LIB_SEMAPHORE).
5297         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
5298         with $(LIB_SEMAPHORE).
5300 2020-02-10  Bruno Haible  <bruno@clisp.org>
5302         ptsname_r-tests: Avoid unused function warning.
5303         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
5305 2020-02-08  Bruno Haible  <bruno@clisp.org>
5307         lchmod: Add tests.
5308         * tests/test-lchmod.c: New file.
5309         * modules/lchmod-tests: New file.
5311 2020-02-08  Bruno Haible  <bruno@clisp.org>
5313         lchmod: Ensure declaration on HP-UX.
5314         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
5315         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
5317 2020-02-08  Bruno Haible  <bruno@clisp.org>
5319         fchmodat: Strengthen tests.
5320         * tests/test-fchmodat.c (BASE): New macro.
5321         (main): Use it, to avoid conflicts with other unit tests. Verify that
5322         fchmodat changed the file permission bits.
5324 2020-02-08  Bruno Haible  <bruno@clisp.org>
5326         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
5327         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
5328         '#undef __need_system_sys_stat_h'.
5330 2020-02-08  Bruno Haible  <bruno@clisp.org>
5332         fchmodat: Improve cross-compilation guesses.
5333         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
5334         cross-compiling, guess depending on the platform.
5335         * doc/posix-functions/fchmodat.texi: Clarify.
5337 2020-02-08  Bruno Haible  <bruno@clisp.org>
5339         Fix compilation errors in a testdir created with --with-c++-tests.
5340         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
5341         since it does not work any more with g++ >= 4.4.
5343 2020-02-08  Bruno Haible  <bruno@clisp.org>
5345         doc: Update for glibc 2.31.
5346         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
5347         * doc/gnulib.texi: Include it.
5348         * doc/pastposix-functions/h_errno.texi: Update.
5349         * doc/posix-functions/*.texi: Likewise.
5351 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
5353         mountlist: consider smb3 file systems as remote
5354         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
5355         "smb3" as remote.
5357 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5359         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
5360         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
5361         they act like chmod on non-symlinks.
5362         * NEWS:
5363         * doc/glibc-functions/lchmod.texi (lchmod):
5364         * doc/posix-functions/fchmodat.texi (fchmodat):
5365         Mention this.
5366         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
5367         config.h, and undef it after including sys/stat.h the first time.
5368         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
5369         sys/stat.h a second time after defining orig_fchmodat.
5370         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
5371         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
5372         * lib/lchmod.c: New file.
5373         * lib/sys_stat.in.h (fchmodat, lchmod):
5374         Support replacing these functions.
5375         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
5376         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
5377         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
5378         Test that lchmod works on non-symlinks.
5379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5380         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5381         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5382         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5383         * modules/lchmod (Files): Add lib/lchmod.c.
5384         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5385         (configure.ac): Compile lchmod.c if needed.
5386         (lib_SOURCES): Add lchmod.c.
5387         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5388         and REPLACE_LCHMOD.
5389         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5390         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5392 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5394         mountlist: Consider AFS filesystems as remote
5395         df --local relies on the ME_REMOTE macro to determine if a given
5396         mount entry should be considered "local".  There is special logic
5397         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5398         kernel's kafs module or AuriStorFS is treated as a local mount.
5399         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5400         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5402 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5404         Port _Noreturn to older Clang
5405         Problem reported by Jeffery Walton in:
5406         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5407         * lib/_Noreturn.h (_Noreturn):
5408         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5409         Assume _Noreturn works in Clang 3.5 and later.
5410         It is documented to work in Clang 3.5:
5411         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5412         and is not documented in Clang 3.4:
5413         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5414         Apple sets __clang_version__ to a different value, so use
5415         __apple_build_version__ there.  See:
5416         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5418 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5420         test-canonicalize: avoid unused function warning
5421         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5422         with the same guard as that used to protect usage of the null_ptr
5423         function, so that one doesn't get a -Wunused warning.
5424         * tests/test-canonicalize-lgpl.c: Likewise.
5426 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5428         libc-config: port to Apple’s Clang variant
5429         * lib/libc-config.h (__glibc_clang_prereq):
5430         Port to Apple’s Clang variant, which uses a different
5431         numbering scheme for __clang_major__.
5433 2020-02-02  Bruno Haible  <bruno@clisp.org>
5435         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5436         * doc/containers.texi: Document these new modules.
5438 2020-02-02  Bruno Haible  <bruno@clisp.org>
5440         omap-c++: Add tests.
5441         * tests/test-omap-c++.cc: New file.
5442         * modules/omap-c++-tests: New file.
5444         omap-c++: New module.
5445         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5446         * modules/omap-c++: New file.
5448 2020-02-02  Bruno Haible  <bruno@clisp.org>
5450         map-c++: Add tests.
5451         * tests/test-map-c++.cc: New file.
5452         * modules/map-c++-tests: New file.
5454         map-c++: New module.
5455         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5456         * modules/map-c++: New file.
5458 2020-02-02  Bruno Haible  <bruno@clisp.org>
5460         oset-c++: Add tests.
5461         * tests/test-oset-c++.cc: New file.
5462         * modules/oset-c++-tests: New file.
5464         oset-c++: New module.
5465         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5466         * modules/oset-c++: New file.
5468 2020-02-02  Bruno Haible  <bruno@clisp.org>
5470         set-c++: Add tests.
5471         * tests/test-set-c++.cc: New file.
5472         * modules/set-c++-tests: New file.
5474         set-c++: New module.
5475         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5476         * modules/set-c++: New file.
5478 2020-02-02  Bruno Haible  <bruno@clisp.org>
5480         list-c++: Add tests.
5481         * tests/test-list-c++.cc: New file.
5482         * modules/list-c++-tests: New file.
5484         list-c++: New module.
5485         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5486         * modules/list-c++: New file.
5488 2020-02-02  Bruno Haible  <bruno@clisp.org>
5490         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5491         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5492         '_Noreturn'.
5493         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5495 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5497         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5498         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5499           error: argument 2 value '18446744073709551615'
5500           exceeds maximum object size 9223372036854775807
5501           [-Werror=alloc-size-larger-than=]
5502         The details of this restriction are discussed at:
5503         https://stackoverflow.com/q/42574890/4421
5504         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5506 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5508         sysctl.h: avoid including on glibc
5509         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5510         * lib/physmem.c: Likewise.
5512 2020-02-02  Bruno Haible  <bruno@clisp.org>
5514         list, set, oset, map, omap: Avoid imperative voice in documentation.
5515         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5516         in the specification of functions.
5517         * lib/gl_set.h: Likewise.
5518         * lib/gl_oset.h: Likewise.
5519         * lib/gl_map.h: Likewise.
5520         * lib/gl_omap.h: Likewise.
5521         * lib/gl_*.h: Likewise.
5523 2020-02-01  Bruno Haible  <bruno@clisp.org>
5525         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5526         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5527         does.
5529 2020-01-29  Bruno Haible  <bruno@clisp.org>
5531         array-map, hash-map, linkedhash-map: Fix module description.
5532         * modules/array-map (Description): Fix description.
5533         * modules/hash-map (Description): Likewise.
5534         * modules/linkedhash-map (Description): Likewise.
5536 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5538         dfa: do not depend on isblank
5539         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5540         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5541         * modules/dfa (Depends-on): Remove isblank.
5542         * modules/isblank: Add a module indicator, for lib/dfa.c.
5544         dfa: do not assume 64-bit int
5545         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5546         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5547         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5548         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5549         Fall back to 32-bit words.
5550         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5551         of 4 64-bit args.  All uses changed.
5553 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5555         regex: remove limits-h dependency
5556         * modules/regex (Depends-on): Remove limits-h, since the
5557         code no longer depends on ULONG_WIDTH already being defined.
5559         regex: port to non-GCC pre-IEC-60559
5560         Problem reported by Arnold Robbins in:
5561         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5562         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5564 2020-01-25  Bruno Haible  <bruno@clisp.org>
5566         c32isxdigit: Add tests.
5567         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5568         * tests/test-c32isxdigit.sh: New file.
5569         * modules/c32isxdigit-tests: New file.
5571         c32isxdigit: New module.
5572         * lib/c32isxdigit.c: New file.
5573         * modules/c32isxdigit: New file.
5574         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5576 2020-01-25  Bruno Haible  <bruno@clisp.org>
5578         c32isupper: Add tests.
5579         * tests/test-c32isupper.c: New file.
5580         * tests/test-c32isupper.sh: New file.
5581         * modules/c32isupper-tests: New file.
5583         c32isupper: New module.
5584         * lib/c32isupper.c: New file.
5585         * modules/c32isupper: New file.
5586         * doc/posix-functions/iswupper.texi: Mention the new module.
5588 2020-01-25  Bruno Haible  <bruno@clisp.org>
5590         c32isspace: Add tests.
5591         * tests/test-c32isspace.c: New file.
5592         * tests/test-c32isspace.sh: New file.
5593         * modules/c32isspace-tests: New file.
5595         c32isspace: New module.
5596         * lib/c32isspace.c: New file.
5597         * modules/c32isspace: New file.
5598         * doc/posix-functions/iswspace.texi: Mention the new module.
5600 2020-01-25  Bruno Haible  <bruno@clisp.org>
5602         c32ispunct: Add tests.
5603         * tests/test-c32ispunct.c: New file.
5604         * tests/test-c32ispunct.sh: New file.
5605         * modules/c32ispunct-tests: New file.
5607         c32ispunct: New module.
5608         * lib/c32ispunct.c: New file.
5609         * modules/c32ispunct: New file.
5610         * doc/posix-functions/iswpunct.texi: Mention the new module.
5612 2020-01-25  Bruno Haible  <bruno@clisp.org>
5614         c32isprint: Add tests.
5615         * tests/test-c32isprint.c: New file.
5616         * tests/test-c32isprint.sh: New file.
5617         * modules/c32isprint-tests: New file.
5619         c32isprint: New module.
5620         * lib/c32isprint.c: New file.
5621         * modules/c32isprint: New file.
5622         * doc/posix-functions/iswprint.texi: Mention the new module.
5624 2020-01-25  Bruno Haible  <bruno@clisp.org>
5626         c32islower: Add tests.
5627         * tests/test-c32islower.c: New file.
5628         * tests/test-c32islower.sh: New file.
5629         * modules/c32islower-tests: New file.
5631         c32islower: New module.
5632         * lib/c32islower.c: New file.
5633         * modules/c32islower: New file.
5634         * doc/posix-functions/iswlower.texi: Mention the new module.
5636 2020-01-25  Bruno Haible  <bruno@clisp.org>
5638         c32isgraph: Add tests.
5639         * tests/test-c32isgraph.c: New file.
5640         * tests/test-c32isgraph.sh: New file.
5641         * modules/c32isgraph-tests: New file.
5643         c32isgraph: New module.
5644         * lib/c32isgraph.c: New file.
5645         * modules/c32isgraph: New file.
5646         * doc/posix-functions/iswgraph.texi: Mention the new module.
5648 2020-01-25  Bruno Haible  <bruno@clisp.org>
5650         c32isdigit: Add tests.
5651         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5652         * tests/test-c32isdigit.sh: New file.
5653         * modules/c32isdigit-tests: New file.
5655         c32isdigit: New module.
5656         * lib/c32isdigit.c: New file.
5657         * modules/c32isdigit: New file.
5658         * doc/posix-functions/iswdigit.texi: Mention the new module.
5660 2020-01-25  Bruno Haible  <bruno@clisp.org>
5662         c32iscntrl: Add tests.
5663         * tests/test-c32iscntrl.c: New file.
5664         * tests/test-c32iscntrl.sh: New file.
5665         * modules/c32iscntrl-tests: New file.
5667         c32iscntrl: New module.
5668         * lib/c32iscntrl.c: New file.
5669         * modules/c32iscntrl: New file.
5670         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5672 2020-01-25  Bruno Haible  <bruno@clisp.org>
5674         c32isblank: Add tests.
5675         * tests/test-c32isblank.c: New file.
5676         * tests/test-c32isblank.sh: New file.
5677         * modules/c32isblank-tests: New file.
5679         c32isblank: New module.
5680         * lib/c32isblank.c: New file.
5681         * modules/c32isblank: New file.
5682         * doc/posix-functions/iswblank.texi: Mention the new module.
5684 2020-01-25  Bruno Haible  <bruno@clisp.org>
5686         c32isalpha: Add tests.
5687         * tests/test-c32isalpha.c: New file.
5688         * tests/test-c32isalpha.sh: New file.
5689         * modules/c32isalpha-tests: New file.
5691         c32isalpha: New module.
5692         * lib/c32isalpha.c: New file.
5693         * modules/c32isalpha: New file.
5694         * doc/posix-functions/iswalpha.texi: Mention the new module.
5696 2020-01-25  Bruno Haible  <bruno@clisp.org>
5698         c32isalnum: Add tests.
5699         * tests/test-c32isalnum.c: New file.
5700         * tests/test-c32isalnum.sh: New file.
5701         * modules/c32isalnum-tests: New file.
5703         c32isalnum: New module.
5704         * lib/c32isalnum.c: New file.
5705         * lib/c32is-impl.h: New file.
5706         * modules/c32isalnum: New file.
5707         * doc/posix-functions/iswalnum.texi: Mention the new module.
5709 2020-01-25  Bruno Haible  <bruno@clisp.org>
5711         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5712         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5713         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5714         c32isupper, c32isxdigit): New declarations.
5715         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5716         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5717         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5718         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5719         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5720         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5721         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5722         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5723         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5724         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5725         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5726         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5727         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5729 2020-01-25  Bruno Haible  <bruno@clisp.org>
5731         mbchar, wctype: Use the corrected iswxdigit function.
5732         * modules/mbchar (Depends-on): Add iswxdigit.
5733         * modules/wctype (Depends-on): Likewise.
5735         iswxdigit: Add tests.
5736         * tests/test-iswxdigit.c: New file.
5737         * tests/test-iswxdigit.sh: New file.
5738         * modules/iswxdigit-tests: New file.
5740         iswxdigit: New module.
5741         * m4/iswxdigit.m4: New file.
5742         * lib/wctype.in.h (iswxdigit): Potentially override.
5743         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5744         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5745         * lib/iswxdigit.c: New file.
5746         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5747         REPLACE_ISWXDIGIT.
5748         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5749         REPLACE_ISWXDIGIT.
5750         * modules/iswxdigit: New file.
5751         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5753 2020-01-25  Bruno Haible  <bruno@clisp.org>
5755         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5756         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5757         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5758         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5759         off_t on mingw, invoke _lseeki64 instead of lseek.
5761 2020-01-25  Bruno Haible  <bruno@clisp.org>
5763         iswdigit tests: Avoid test failure on Cygwin.
5764         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5765         byte sequence, return 0.
5767         iswdigit: Fix test failure on native Windows.
5768         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5770         mbchar, wctype: Use the corrected iswdigit function.
5771         * modules/mbchar (Depends-on): Add iswdigit.
5772         * modules/wctype (Depends-on): Likewise.
5774         iswdigit: Add tests.
5775         * tests/test-iswdigit.c: New file.
5776         * tests/test-iswdigit.sh: New file.
5777         * modules/iswdigit-tests: New file.
5779         iswdigit: New module.
5780         * m4/iswdigit.m4: New file.
5781         * lib/wctype.in.h (iswdigit): Potentially override.
5782         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5783         * lib/iswdigit.c: New file.
5784         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5785         REPLACE_ISWDIGIT.
5786         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5787         REPLACE_ISWDIGIT.
5788         * modules/iswdigit: New file.
5789         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5791 2020-01-25  Bruno Haible  <bruno@clisp.org>
5793         hard-locale tests: Make it easy to reuse the musl test.
5794         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
5795         * modules/hard-locale-tests (Files): Add it.
5796         (configure.ac): Invoke gl_MUSL_LIBC.
5798 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5800         regex: port to Gawk on nonstandard platforms
5801         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
5802         This is useful for Gawk, which does not use the Gnulib stdlib-h
5803         module.  Problem reported by Arnold Robbins in:
5804         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
5806 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5808         regex: fix bug with >=16 subexpressions
5809         * lib/regex_internal.h (struct re_backref_cache_entry):
5810         Use bitset_word_t as the type of eps_reachable_subexps_map,
5811         instead of unsigned short int.  This fixes a bug I introduced
5812         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
5813         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
5814         Remove unused member 'unused'.
5816         regex: simplify definition of BITSET_WORD_BITS
5817         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5818         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5819         * lib/regex_internal.h (BITSET_WORD_BITS):
5820         * modules/regex (Depends-on): Add limits-h.
5821         Simplify now that we can use ULONG_WIDTH.
5823 2020-01-20  Bruno Haible  <bruno@clisp.org>
5825         mbrtoc32: Add note about FreeBSD 12.
5826         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5827         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5828         affected.
5830 2020-01-20  Bruno Haible  <bruno@clisp.org>
5832         unistr/u8-uctomb: Fix warning.
5833         Reported by Andreas Schwab <schwab@suse.de> in
5834         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5835         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5836         (u8_uctomb): Add FALLTHROUGH markers.
5838 2020-01-20  Bruno Haible  <bruno@clisp.org>
5840         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5841         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5842         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5843         (glthread_once): Use it.
5845 2020-01-19  Bruno Haible  <bruno@clisp.org>
5847         threadlib: Disable use of weak symbols on FreeBSD 11.
5848         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5849         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5850         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5851         against a bug in FreeBSD 11.
5853 2020-01-19  Bruno Haible  <bruno@clisp.org>
5855         iconv_open: Improve z/OS support.
5856         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5857         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5858         Remove mapping for EUC-TW.
5860 2020-01-18  Bruno Haible  <bruno@clisp.org>
5862         Rename ~~gnulib.m4 to zzgnulib.m4.
5863         Suggested by Paul Eggert.
5864         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5865         * gnulib-tool (func_get_filelist): Update.
5866         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5868 2020-01-18  Bruno Haible  <bruno@clisp.org>
5870         doc: Update license notices.
5871         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5872         reference to a section or to a "file as part of this distribution".
5874 2020-01-18  Bruno Haible  <bruno@clisp.org>
5876         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5879         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5880         AC_EGREP_CPP.
5882 2020-01-18  Bruno Haible  <bruno@clisp.org>
5884         Ensure Automake does not drop ~~gnulib.m4.
5885         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5886         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5888 2020-01-18  Bruno Haible  <bruno@clisp.org>
5890         Fix major regression from 2020-01-10.
5891         Reported by Paul Eggert in
5892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5893         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5894         Don't AC_REQUIRE anything.
5895         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5896         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5897         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5898         use ac_compile instead.
5899         (AC_CHECK_DECL): Remove override.
5900         * m4/~~gnulib.m4: New file.
5901         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5902         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5904 2020-01-17  Bruno Haible  <bruno@clisp.org>
5905             Paul Eggert  <eggert@cs.ucla.edu>
5907         glob: Fix use-after-free bug.
5908         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5909         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5910         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5911         end_name.
5913 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5915         vcs-to-changelog: Fix parsing of fndecl without args.
5916         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5917         for empty arguments.
5919 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5921         vcs-to-changelog: Add documentation.
5922         * doc/vcs-to-changelog.texi: New file.
5923         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5924         section.
5926 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5928         vcs-to-changelog: Allow loading of custom quirks file.
5929         * build-aux/vcs_to_changelog.py: New commandline option -q.
5931 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5933         vcs-to-changelog: Fix formatting of ChangeLog output.
5934         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5935         output.
5937 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5939         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5940         Reported in
5941         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5942         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5944 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5946         crypto/gc-pbkdf2: New module.
5947         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5948         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5949         * lib/gc-pbkdf2.c: New file.
5950         * lib/gc-pbkdf2-sha1.c: Use new interface.
5951         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5952         * modules/crypto/gc-pbkdf2: New file.
5953         * modules/crypto/gc-pbkdf2-tests: New file.
5954         * tests/test-gc-pbkdf2.c: New file.
5956 2020-01-12  Bruno Haible  <bruno@clisp.org>
5958         c32stombs: Add tests.
5959         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5960         * tests/test-c32stombs-1.sh: New file, based on
5961         tests/test-c32srtombs-1.sh.
5962         * tests/test-c32stombs-2.sh: New file, based on
5963         tests/test-c32srtombs-2.sh.
5964         * tests/test-c32stombs-3.sh: New file, based on
5965         tests/test-c32srtombs-3.sh.
5966         * tests/test-c32stombs-4.sh: New file, based on
5967         tests/test-c32srtombs-4.sh.
5968         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5970         c32stombs: New module.
5971         * lib/uchar.in.h (c32stombs): New declaration.
5972         * lib/c32stombs.c: New file.
5973         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5974         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5975         * modules/c32stombs: New file.
5976         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5977         * doc/posix-functions/wcstombs.texi: Mention the new module.
5979 2020-01-11  Jim Meyering  <meyering@fb.com>
5981         perl: require the "warnings" module
5982         * m4/perl.m4: Also "use warnings", so we reject the perl found
5983         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5984         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5986 2020-01-10  Bruno Haible  <bruno@clisp.org>
5988         Fix major regression from 2020-01-04.
5989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5990         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5991         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5992         AC_DEFUN_ONCE.
5993         (AC_CHECK_DECL): Invoke, not require, it.
5995 2020-01-10  Bruno Haible  <bruno@clisp.org>
5997         c32snrtombs: Add tests.
5998         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5999         * tests/test-c32snrtombs-1.sh: New file, based on
6000         tests/test-wcsnrtombs1.sh.
6001         * tests/test-c32snrtombs-2.sh: New file, based on
6002         tests/test-wcsnrtombs2.sh.
6003         * tests/test-c32snrtombs-3.sh: New file, based on
6004         tests/test-wcsnrtombs3.sh.
6005         * tests/test-c32snrtombs-4.sh: New file, based on
6006         tests/test-wcsnrtombs4.sh.
6007         * modules/c32snrtombs-tests: New file, based on
6008         modules/wcsnrtombs-tests.
6010         c32snrtombs: New module.
6011         * lib/uchar.in.h (c32snrtombs): New declaration.
6012         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6013         INTERNAL_STATE, WCRTOMB.
6014         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6015         * lib/c32snrtombs.c: New file.
6016         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
6017         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
6018         * modules/c32snrtombs: New file.
6019         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
6020         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6022 2020-01-09  Bruno Haible  <bruno@clisp.org>
6024         c32srtombs: Add tests.
6025         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
6026         * tests/test-c32srtombs-1.sh: New file, based on
6027         tests/test-wcsrtombs1.sh.
6028         * tests/test-c32srtombs-2.sh: New file, based on
6029         tests/test-wcsrtombs2.sh.
6030         * tests/test-c32srtombs-3.sh: New file, based on
6031         tests/test-wcsrtombs3.sh.
6032         * tests/test-c32srtombs-4.sh: New file, based on
6033         tests/test-wcsrtombs4.sh.
6034         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
6036         c32srtombs: New module.
6037         * lib/uchar.in.h (c32srtombs): New declaration.
6038         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6039         INTERNAL_STATE, WCRTOMB.
6040         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6041         * lib/c32srtombs.c: New file.
6042         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
6043         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
6044         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
6045         * modules/c32srtombs: New file.
6046         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
6047         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
6049 2020-01-08  Bruno Haible  <bruno@clisp.org>
6051         c32tob: Make consistent with mbrtoc32.
6052         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
6053         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
6054         use c32rtomb, not wctob.
6055         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
6056         (Depends-on): Add c32rtomb.
6057         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
6059 2020-01-08  Bruno Haible  <bruno@clisp.org>
6061         c32rtomb: Add tests.
6062         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
6063         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
6064         * tests/test-c32rtomb-w32.c: New file, based on
6065         tests/test-wcrtomb-w32.c.
6066         * tests/test-c32rtomb-w32-1.sh: New file, based on
6067         tests/test-wcrtomb-w32-1.sh.
6068         * tests/test-c32rtomb-w32-2.sh: New file, based on
6069         tests/test-wcrtomb-w32-2.sh.
6070         * tests/test-c32rtomb-w32-3.sh: New file, based on
6071         tests/test-wcrtomb-w32-3.sh.
6072         * tests/test-c32rtomb-w32-4.sh: New file, based on
6073         tests/test-wcrtomb-w32-4.sh.
6074         * tests/test-c32rtomb-w32-5.sh: New file, based on
6075         tests/test-wcrtomb-w32-5.sh.
6076         * tests/test-c32rtomb-w32-6.sh: New file, based on
6077         tests/test-wcrtomb-w32-6.sh.
6078         * tests/test-c32rtomb-w32-7.sh: New file, based on
6079         tests/test-wcrtomb-w32-7.sh.
6080         * modules/c32rtomb-tests: New file.
6082         c32rtomb: New module.
6083         * lib/uchar.in.h (c32rtomb): New declaration.
6084         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
6085         * m4/c32rtomb.m4: New file.
6086         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
6087         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
6088         REPLACE_C32RTOMB.
6089         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
6090         HAVE_C32RTOMB, REPLACE_C32RTOMB.
6091         * modules/c32rtomb: New file.
6092         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
6093         * doc/posix-functions/c32rtomb.texi: Document the new module.
6094         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6096 2020-01-08  Bruno Haible  <bruno@clisp.org>
6098         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
6099         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
6100         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
6101         but is not working.
6102         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
6103         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
6104         differ, use the system's mbrtoc32, adding workarounds.
6105         * modules/mbrtoc32 (Depends-on): Add hard-locale.
6106         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
6107         Windows problem.
6108         * lib/btoc32.c: Include <stdio.h>, <string.h>.
6109         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
6110         use mbrtoc32, not btowc.
6111         * modules/btoc32 (Depends-on): Add mbrtoc32.
6112         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
6113         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
6114         * modules/mbsrtoc32s (Depends-on): Update conditions.
6115         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6116         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
6117         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
6118         * modules/mbsnrtoc32s (Depends-on): Update conditions.
6119         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6121 2020-01-07  Bruno Haible  <bruno@clisp.org>
6123         wcrtomb: Make multithread-safe, except possibly on IRIX.
6124         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
6125         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
6126         WCRTOMB_RETVAL_BUG.
6127         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
6128         wctomb only on IRIX.
6130 2020-01-05  Jim Meyering  <meyering@fb.com>
6132         tests: skip thread-using tests when threading is disabled
6133         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
6134         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
6135         of those, so they are skipped in this case.
6136         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
6137         * tests/test-setlocale_null-mt-all.c (main): Likewise.
6138         * tests/test-setlocale_null-mt-one.c (main): Likewise.
6140 2020-01-05  Bruno Haible  <bruno@clisp.org>
6142         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
6143         Reported by Jim Meyering in
6144         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
6145         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
6146         (GNULIB_defined_ptsname_r): New macro.
6147         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
6148         (main): Disable the NULL argument test if canonicalize_file_name does
6149         not come from gnulib.
6150         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
6151         (main): Disable the NULL argument test if canonicalize_file_name does
6152         not come from gnulib.
6153         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
6154         (test_errors): Disable the NULL argument test if ptsname_r does not come
6155         from gnulib.
6157 2020-01-04  Jim Meyering  <meyering@fb.com>
6159         update-copyright: reenable its always-skipped test
6160         * tests/test-update-copyright.sh: Restore the "-pi" options removed
6161         on 2019-06-15. Without those, an internal preliminary test would
6162         fail, causing this test always to be skipped.
6163         Verify that the test is now run and passes via this:
6164           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
6166 2020-01-05  Bruno Haible  <bruno@clisp.org>
6168         mbstoc32s: Add tests.
6169         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
6170         * tests/test-mbstoc32s-1.sh: New file, based on
6171         tests/test-mbsrtoc32s-1.sh.
6172         * tests/test-mbstoc32s-2.sh: New file, based on
6173         tests/test-mbsrtoc32s-2.sh.
6174         * tests/test-mbstoc32s-3.sh: New file, based on
6175         tests/test-mbsrtoc32s-3.sh.
6176         * tests/test-mbstoc32s-4.sh: New file, based on
6177         tests/test-mbsrtoc32s-4.sh.
6178         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
6180         mbstoc32s: New module.
6181         * lib/uchar.in.h (mbstoc32s): New declaration.
6182         * lib/mbstoc32s.c: New file.
6183         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
6184         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
6185         * modules/mbstoc32s: New file.
6186         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
6187         * doc/posix-functions/mbstowcs.texi: Mention the new module.
6189 2020-01-05  Bruno Haible  <bruno@clisp.org>
6191         Tweak recently added tests.
6192         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
6193         * tests/test-mbsrtoc32s.c: Likewise.
6194         * tests/test-mbsnrtoc32s.c: Likewise.
6196 2020-01-04  Bruno Haible  <bruno@clisp.org>
6198         mbsnrtoc32s: Add tests.
6199         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
6200         * tests/test-mbsnrtoc32s-1.sh: New file, based on
6201         tests/test-mbsnrtowcs1.sh.
6202         * tests/test-mbsnrtoc32s-2.sh: New file, based on
6203         tests/test-mbsnrtowcs2.sh.
6204         * tests/test-mbsnrtoc32s-3.sh: New file, based on
6205         tests/test-mbsnrtowcs3.sh.
6206         * tests/test-mbsnrtoc32s-4.sh: New file, based on
6207         tests/test-mbsnrtowcs4.sh.
6208         * modules/mbsnrtoc32s-tests: New file, based on
6209         modules/mbsnrtowcs-tests.
6211         mbsnrtoc32s: New module.
6212         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
6213         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6214         INTERNAL_STATE, MBRTOWC.
6215         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6216         * lib/mbsnrtoc32s.c: New file.
6217         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
6218         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
6219         * modules/mbsnrtoc32s: New file.
6220         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
6221         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
6223 2020-01-04  Bruno Haible  <bruno@clisp.org>
6225         mbsrtoc32s tests: Enhance test.
6226         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
6227         test strings for UTF-8 and GB18030.
6229 2020-01-04  Bruno Haible  <bruno@clisp.org>
6231         mbsrtoc32s: Fix bug.
6232         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
6233         that SMALL_WCHAR_T is defined.
6235 2020-01-04  Bruno Haible  <bruno@clisp.org>
6237         mbsrtoc32s: Add tests.
6238         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
6239         * tests/test-mbsrtoc32s-1.sh: New file, based on
6240         tests/test-mbsrtowcs1.sh.
6241         * tests/test-mbsrtoc32s-2.sh: New file, based on
6242         tests/test-mbsrtowcs2.sh.
6243         * tests/test-mbsrtoc32s-3.sh: New file, based on
6244         tests/test-mbsrtowcs3.sh.
6245         * tests/test-mbsrtoc32s-4.sh: New file, based on
6246         tests/test-mbsrtowcs4.sh.
6247         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
6249         mbsrtoc32s: New module.
6250         * lib/uchar.in.h (mbsrtoc32s): New declaration.
6251         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6252         INTERNAL_STATE, MBRTOWC.
6253         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6254         * lib/mbsrtoc32s.c: New file.
6255         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
6256         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
6257         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
6258         * modules/mbsrtoc32s: New file.
6259         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
6260         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
6262 2020-01-04  Bruno Haible  <bruno@clisp.org>
6264         mbrtowc, mbrtoc32: Tighten dependendies.
6265         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
6266         REPLACE_MBSTATE_T is 1.
6267         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6268         REPLACE_MBSTATE_T is 0.
6269         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
6270         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
6271         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6272         REPLACE_MBSTATE_T is 0.
6274 2020-01-04  Bruno Haible  <bruno@clisp.org>
6276         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
6277         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
6278         * modules/uchar (Files): Add stdint.m4.
6279         (Makefile.am): Substitute SMALL_WCHAR_T.
6280         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
6282 2020-01-04  Bruno Haible  <bruno@clisp.org>
6284         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
6285         Reported by Martin Storsjö <martin@martin.st> in
6286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
6287         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6288         New macros.
6289         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
6291 2020-01-04  Bruno Haible  <bruno@clisp.org>
6293         btoc32: Add tests.
6294         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
6295         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
6296         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
6297         * modules/btoc32-tests: New file, based on modules/btowc-tests.
6299         btoc32: New module.
6300         * lib/uchar.in.h (btoc32): New declaration.
6301         * lib/btoc32.c: New file.
6302         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
6303         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
6304         * modules/btoc32: New file.
6305         * tests/test-uchar-c++.cc: Test the signature of btoc32.
6306         * doc/posix-functions/btowc.texi: Mention the new module.
6308 2020-01-03  Bruno Haible  <bruno@clisp.org>
6310         uchar tests: Avoid compilation error with HP cc.
6311         * tests/test-uchar.c: Disable a test when HP cc is in use.
6313 2020-01-03  Bruno Haible  <bruno@clisp.org>
6315         mbrtoc32: Add tests.
6316         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
6317         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
6318         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
6319         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
6320         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
6321         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
6322         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
6323         * tests/test-mbrtoc32-w32-1.sh: New file, based on
6324         tests/test-mbrtowc-w32-1.sh.
6325         * tests/test-mbrtoc32-w32-2.sh: New file, based on
6326         tests/test-mbrtowc-w32-2.sh.
6327         * tests/test-mbrtoc32-w32-3.sh: New file, based on
6328         tests/test-mbrtowc-w32-3.sh.
6329         * tests/test-mbrtoc32-w32-4.sh: New file, based on
6330         tests/test-mbrtowc-w32-4.sh.
6331         * tests/test-mbrtoc32-w32-5.sh: New file, based on
6332         tests/test-mbrtowc-w32-5.sh.
6333         * tests/test-mbrtoc32-w32-6.sh: New file, based on
6334         tests/test-mbrtowc-w32-6.sh.
6335         * tests/test-mbrtoc32-w32-7.sh: New file, based on
6336         tests/test-mbrtowc-w32-7.sh.
6337         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
6339         mbrtoc32: New module.
6340         * lib/uchar.in.h (mbrtoc32): New declaration.
6341         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
6342         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
6343         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
6344         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
6345         REPLACE_MBRTOC32.
6346         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
6347         HAVE_MBRTOC32, REPLACE_MBRTOC32.
6348         * modules/mbrtoc32: New file, based on modules/mbrtowc.
6349         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
6350         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
6351         $(LIB_MBRTOWC).
6352         * doc/posix-functions/mbrtoc32.texi: Document the new module.
6353         * doc/posix-functions/mbrtowc.texi: Mention the new module.
6355 2020-01-03  Bruno Haible  <bruno@clisp.org>
6357         mbrtowc: Refactor to share code with mbrtoc32.
6358         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
6359         * lib/mbrtowc-impl-utf8.h: Likewise.
6360         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
6361         mbrtowc-impl.h.
6362         * modules/mbrtowc (Files): Add the new files.
6364 2020-01-03  Jim Meyering  <meyering@fb.com>
6366         doc: fix time.texi wording
6367         * doc/posix-headers/time.texi (time.h): Typo.
6369 2020-01-03  Bruno Haible  <bruno@clisp.org>
6371         mbrtowc: Refactor locale charset dispatching.
6372         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
6373         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
6374         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
6375         localcharset.h, streq.h.
6376         (enc_t): Remove type.
6377         (locale_enc): Remove function.
6378         (cached_locale_enc): Remove variable.
6379         (locale_enc_cached): Remove function.
6380         (mbrtowc): Invoke locale_encoding_classification.
6381         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6382         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6383         lc-charset-dispatch.c.
6384         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6386 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6388         doc: mention 32-bit time_t issue
6389         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6390         * doc/posix-headers/time.texi (time.h): Mention 2038.
6392 2020-01-03  Bruno Haible  <bruno@clisp.org>
6394         mbrtowc: Ensure the mbtowc_lock is unique.
6395         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6396         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6397         lib/setlocale_null.c.
6398         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6399         glthread/lock.h. Include mbtowc-lock.h.
6400         (mbtowc_lock): Remove declaration.
6401         (mbrtowc): Use mbtowc_with_lock.
6402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6403         threads.h. Set LIB_MBRTOWC.
6404         (gl_PREREQ_MBTOWC_LOCK): New macro.
6405         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6406         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6407         (Depends-on): Remove lock.
6408         (configure.ac): Arrange to compile mbtowc-lock.c.
6409         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6410         * modules/acl (Link): Likewise.
6411         * modules/argmatch (Link): Likewise.
6412         * modules/backup-rename (Link): Likewise.
6413         * modules/backupfile (Link): Likewise.
6414         * modules/closein (Link): Likewise.
6415         * modules/closeout (Link): Likewise.
6416         * modules/copy-file (Link): Likewise.
6417         * modules/csharpcomp (Link): Likewise.
6418         * modules/csharpexec (Link): Likewise.
6419         * modules/dfa (Link): Likewise.
6420         * modules/exclude (Link): Likewise.
6421         * modules/fnmatch (Link): Likewise.
6422         * modules/fnmatch-gnu (Link): Likewise.
6423         * modules/fnmatch-posix (Link): Likewise.
6424         * modules/glob (Link): Likewise.
6425         * modules/human (Link): Likewise.
6426         * modules/javacomp (Link): Likewise.
6427         * modules/javaexec (Link): Likewise.
6428         * modules/javaversion (Link): Likewise.
6429         * modules/mbfile (Link): Likewise.
6430         * modules/mbiter (Link): Likewise.
6431         * modules/mbmemcasecmp (Link): Likewise.
6432         * modules/mbmemcasecoll (Link): Likewise.
6433         * modules/mbrlen (Link): Likewise.
6434         * modules/mbscasecmp (Link): Likewise.
6435         * modules/mbscasestr (Link): Likewise.
6436         * modules/mbschr (Link): Likewise.
6437         * modules/mbscspn (Link): Likewise.
6438         * modules/mbsinit (Link): Likewise.
6439         * modules/mbslen (Link): Likewise.
6440         * modules/mbsncasecmp (Link): Likewise.
6441         * modules/mbsnlen (Link): Likewise.
6442         * modules/mbsnrtowcs (Link): Likewise.
6443         * modules/mbspbrk (Link): Likewise.
6444         * modules/mbspcasecmp (Link): Likewise.
6445         * modules/mbsrchr (Link): Likewise.
6446         * modules/mbsrtowcs (Link): Likewise.
6447         * modules/mbssep (Link): Likewise.
6448         * modules/mbsspn (Link): Likewise.
6449         * modules/mbsstr (Link): Likewise.
6450         * modules/mbstok_r (Link): Likewise.
6451         * modules/mbswidth (Link): Likewise.
6452         * modules/mbuiter (Link): Likewise.
6453         * modules/mkdir-p (Link): Likewise.
6454         * modules/propername (Link): Likewise.
6455         * modules/quote (Link): Likewise.
6456         * modules/quotearg (Link): Likewise.
6457         * modules/quotearg-simple (Link): Likewise.
6458         * modules/regex-quote (Link): Likewise.
6459         * modules/rpmatch (Link): Likewise.
6460         * modules/sh-quote (Link): Likewise.
6461         * modules/system-quote (Link): Likewise.
6462         * modules/trim (Link): Likewise.
6463         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6464         * modules/unistdio/ulc-fprintf (Link): Likewise.
6465         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6466         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6467         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6468         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6469         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6470         * modules/xfreopen (Link): Likewise.
6471         * modules/xmemcoll (Link): Likewise.
6472         * modules/yesno (Link): Likewise.
6473         * modules/regex (Link): Add $(LIB_MBRTOWC).
6474         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6475         instead of $(LIBTHREAD).
6476         * modules/argmatch-tests (Makefile.am): Likewise.
6477         * modules/closein-tests (Makefile.am): Likewise.
6478         * modules/copy-file-tests (Makefile.am): Likewise.
6479         * modules/dfa-tests (Makefile.am): Likewise.
6480         * modules/fnmatch-tests (Makefile.am): Likewise.
6481         * modules/glob-tests (Makefile.am): Likewise.
6482         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6483         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6484         * modules/mbrtowc-tests (Makefile.am): Likewise.
6485         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6486         * modules/mbscasestr-tests (Makefile.am): Likewise.
6487         * modules/mbschr-tests (Makefile.am): Likewise.
6488         * modules/mbscspn-tests (Makefile.am): Likewise.
6489         * modules/mbsinit-tests (Makefile.am): Likewise.
6490         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6491         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6492         * modules/mbspbrk-tests (Makefile.am): Likewise.
6493         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6494         * modules/mbsrchr-tests (Makefile.am): Likewise.
6495         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6496         * modules/mbsspn-tests (Makefile.am): Likewise.
6497         * modules/mbsstr-tests (Makefile.am): Likewise.
6498         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6499         * modules/quotearg-tests (Makefile.am): Likewise.
6500         * modules/readtokens-tests (Makefile.am): Likewise.
6501         * modules/sh-quote-tests (Makefile.am): Likewise.
6502         * modules/system-quote-tests (Makefile.am): Likewise.
6503         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6504         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6505         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6506         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6507         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6508         * modules/yesno-tests (Makefile.am): Likewise.
6509         * modules/exclude-tests (Makefile.am): Link the programs with
6510         $(LIB_MBRTOWC).
6511         * modules/regex-tests (Makefile.am): Likewise.
6512         * modules/regex-quote-tests (Makefile.am): Likewise.
6514 2020-01-03  Bruno Haible  <bruno@clisp.org>
6516         getopt-posix: Fix compilation failure in testdirs.
6517         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6518         when the gnulib module 'getopt-posix' is enabled.
6519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6520         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6521         module indicator.
6522         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6524 2020-01-03  Bruno Haible  <bruno@clisp.org>
6526         doc: Mention the 64-bit inode number problem.
6527         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6528         64-bit inode number problem.
6529         * doc/posix-functions/stat.texi: Mention that this module fixes the
6530         64-bit inode number problem.
6531         * doc/posix-functions/lstat.texi: Likewise.
6532         * doc/posix-functions/fstat.texi: Likewise.
6533         * doc/posix-functions/readdir.texi: Add more details.
6534         * doc/posix-functions/readdir_r.texi: Likewise.
6536 2020-01-02  Bruno Haible  <bruno@clisp.org>
6538         wcrtomb: Add more tests.
6539         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6540         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6541         locale_charset() returns the expected value; otherwise, skip the test.
6542         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6543         * tests/test-wcrtomb-w32-7.sh: Likewise.
6544         * modules/wcrtomb-tests (Files): Add these files.
6545         (Depends-on): Add localcharset.
6546         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6548 2020-01-02  Bruno Haible  <bruno@clisp.org>
6550         mbrtowc: Add more tests.
6551         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6552         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6553         locale_charset() returns the expected value; otherwise, skip the test.
6554         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6555         * tests/test-mbrtowc-w32-7.sh: Likewise.
6556         * modules/mbrtowc-tests (Files): Add these files.
6557         (Depends-on): Add localcharset.
6558         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6560 2020-01-02  Bruno Haible  <bruno@clisp.org>
6562         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6563         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6564         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6565         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6566         MBRTOWC_STORES_INCOMPLETE_BUG.
6567         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6569 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6571         doc: mention glibc bug 24269
6572         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6573         Reformat slightly so that it looks nicer in the Grep manual.
6575 2020-01-02  Bruno Haible  <bruno@clisp.org>
6577         mbrtowc: Don't replace mbstate_t on MSVC.
6578         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6579         a missing mbsinit function on native Windows.
6580         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6581         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6582         MSVC bug.
6583         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6585 2020-01-02  Bruno Haible  <bruno@clisp.org>
6587         setlocale-null: Avoid crashing the MSVC linker.
6588         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6589         MSVC.
6591 2020-01-02  Bruno Haible  <bruno@clisp.org>
6593         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6594         * modules/wchar (Depends-on): Add inttypes-incomplete.
6595         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6596         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6597         of strtoimax.
6599 2020-01-02  Bruno Haible  <bruno@clisp.org>
6601         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6602         * lib/mbrtowc.c: Include <stdint.h>.
6603         * modules/mbrtowc (Depends-on): Add stdint.
6605 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6607         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6608         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6609         which will auto enable use of openssl, only for >= version 3,
6610         which is newly licensed under the Apache Software License.
6612 2020-01-01  Bruno Haible  <bruno@clisp.org>
6614         mbrtowc: Include function name in macro names.
6615         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6616         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6617         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6618         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6619         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6620         C_LOCALE_MAYBE_EILSEQ.
6622 2020-01-01  Bruno Haible  <bruno@clisp.org>
6624         c32tob: New module.
6625         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6626         (c32tob): New declaration.
6627         * lib/c32tob.c: New file.
6628         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6629         macros.
6630         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6631         * modules/uchar (Depends-on): Add snippet/c++defs.
6632         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6633         uchar.h.
6634         * modules/c32tob: New file.
6635         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6636         defined.
6637         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6638         c32tob.
6639         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6640         * doc/posix-functions/wctob.texi: Mention the new module.
6642 2020-01-01  Bruno Haible  <bruno@clisp.org>
6644         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6645         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6646         $(LIB_SETLOCALE).
6648 2020-01-01  Bruno Haible  <bruno@clisp.org>
6650         hard-locale tests: Fix a conflict with the C++ tests.
6651         * modules/hard-locale-tests (Makefile.am): Build a program named
6652         'current-locale', not 'locale'.
6654 2020-01-01  Bruno Haible  <bruno@clisp.org>
6656         doc: Update documentation about wchar_t.
6657         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6658         wchar_t type.
6660 2020-01-01  Bruno Haible  <bruno@clisp.org>
6662         mbrtowc tests: Fix typos.
6663         * tests/test-mbrtowc.c (main): Fix typo.
6664         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6666 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6668         maint: update copyright notices
6669         Before doing the following changes done by hand, I also ran ‘make
6670         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6671         to do most of the copyright years automatically.  A few upstream
6672         sources are still in 2019 but these should eventually be changed
6673         automatically too.
6674         * build-aux/declared.sh (func_version):
6675         * build-aux/libtool-next-version (func_version):
6676         * build-aux/run-test (func_version):
6677         Update these notices by hand.  Put just the last year
6678         in output of programs, as per GNU coding standards.
6680 2019-12-31  Bruno Haible  <bruno@clisp.org>
6682         uchar: Add C++ tests.
6683         * tests/test-uchar-c++.cc: New file.
6684         * tests/test-uchar-c++2.cc: New file.
6685         * modules/uchar-c++-tests: New file.
6687         uchar: Add tests.
6688         * tests/test-uchar.c: New file.
6689         * modules/uchar-tests: New file.
6691         uchar: New module.
6692         * lib/uchar.in.h: New file.
6693         * m4/uchar.m4: New file.
6694         * modules/uchar: New file.
6695         * doc/posix-headers/uchar.texi: Mention the new module.
6697 2019-12-30  Jim Meyering  <meyering@fb.com>
6699         localeinfo: ->simple would be wrong for LC_ALL=C
6700         That would lead to using unnecessary and expensive code paths in dfa.c.
6701         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6702         error that would have made grep many times slower in the C locale.
6703         With this change, and a file created like this:
6704           yes 00 | head -10000000 > in
6705         Running grep as follows becomes more than 40 times faster:
6706           LC_ALL=C grep -Fw 0 in
6708 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6710         doc: document trouble with back-references
6711         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6713 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6715         doc: use “back-reference” for \1 etc.
6716         * doc/regex.texi: Consistently spell “back-reference” with
6717         a hyphen, since that’s how POSIX does it.
6719 2019-12-26  Jim Meyering  <meyering@fb.com>
6721         test-framework-sh: tighten an internal grep regexp
6722         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6723         that helps test for a working printf.
6725 2019-12-26  Bruno Haible  <bruno@clisp.org>
6727         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6728         Reported by Paul Eggert in
6729         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6730         Simplification by Jim Meyering.
6731         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6732         octal escape sequence in a UTF-8 locale.
6734 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6736         mbrtowc: port better to narrow-wchar_t platforms
6737         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6738         wchar_t is too narrow to represent all the Unicode characters,
6739         consider a byte sequence for an out-of-wchar_t-range character to
6740         be an encoding error.  This fixes grep’s surrogate-pair test
6741         failure on AIX 7.2.
6743 2019-12-24  Bruno Haible  <bruno@clisp.org>
6745         localcharset: Avoid referencing rpl_setlocale on native Windows.
6746         * lib/localcharset.c (setlocale): Undefine.
6748 2019-12-24  Bruno Haible  <bruno@clisp.org>
6750         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6751         * m4/semaphore.m4: New file.
6752         * modules/lock-tests (Files): Add it.
6753         (configure.ac): Require gl_SEMAPHORE.
6754         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6756 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6758         strptime: fix typo in previous patch
6759         Problem and fix reported by Bruno Haible in:
6760         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6761         * lib/strptime.c (day_of_the_week): Fix paren bug.
6763 2019-12-24  Bruno Haible  <bruno@clisp.org>
6765         setlocale-null: Make it easy to rely on the lock in another library.
6766         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6767         defined.
6769 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6771         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6772         Performanced analyzed by Bruno Haible in:
6773         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6774         * config/srclist.txt: Do not sync mktime.c for now.
6775         * lib/mktime.c (shr, ydhms_diff):
6776         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6777         * lib/strptime.c (day_of_the_week):
6778         * lib/xtime.h (xtime_sec):
6779         Redo with neither ‘%’ nor conditional branches.
6781 2019-12-23  Bruno Haible  <bruno@clisp.org>
6783         setlocale-null: Export the lock function also on non-Windows platforms.
6784         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6785         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6786         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6787         * modules/setlocale-null (configure.ac): Invoke it.
6788         (Files): Add m4/visibility.m4.
6790 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6792         gethrxtime: fix rounding bug with negative args
6793         Problem reported by Bruno Haible in:
6794         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
6795         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
6796         with negative rounding.  Common platforms can compute / and % with
6797         a single instruction, so the simplified code should be shorter and
6798         faster on these platforms anyway.
6800 2019-12-22  Bruno Haible  <bruno@clisp.org>
6802         gethrxtime: remove incorrect overflow detection
6803         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
6804         integer overflow, as it didn’t suffice.  This reverts the xtime.h
6805         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
6806         cannot now see the need for anyway (even in cases where it works),
6807         as the patch is helpful only when the signs of S and NS disagree,
6808         and all callers pass nonnegative values for S and NS.
6810 2019-12-22  Bruno Haible  <bruno@clisp.org>
6812         setlocale-null: Add standalone include file.
6813         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
6814         * lib/locale.in.h: Include setlocale_null.h.
6815         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
6816         setlocale_null): Remove declarations.
6817         * lib/setlocale_null.c: Include setlocale_null.h.
6818         * lib/localename.c: Likewise.
6819         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6820         (Depends-on): Add snippet/arg-nonnull.
6821         (Include): Allow either "setlocale_null.h" or <locale.h>.
6823 2019-12-22  Bruno Haible  <bruno@clisp.org>
6825         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6826         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6827         AC_RUN_IFELSE test.
6828         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6829         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6830         problem.
6832 2019-12-22  Bruno Haible  <bruno@clisp.org>
6834         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6835         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6836         unconditional AC_LIBOBJ.
6837         * modules/selinux-at: Likewise.
6838         * modules/xmemdup0: Likewise.
6839         * modules/xstrtoll: Likewise.
6841 2019-12-22  Bruno Haible  <bruno@clisp.org>
6843         longlong: Mark module obsolete.
6844         * modules/longlong (Status, Notice): New sections.
6846         stdint: Assume that the compiler supports 'long long'.
6847         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6848         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6849         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6850         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6851         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6852         * modules/stdint (Files): Remove longlong.m4.
6853         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6854         HAVE_UNSIGNED_LONG_LONG_INT.
6856         inttypes-incomplete: Assume that the compiler supports 'long long'.
6857         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6858         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6859         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6860         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6861         HAVE_LONG_LONG_INT to be 1.
6862         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6863         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6865         malloca: Assume that the compiler supports 'long long'.
6866         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6867         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6868         * modules/malloca (Files): Remove longlong.m4.
6869         * modules/relocatable-prog-wrapper (Files): Likewise.
6871         atoll: Assume that the compiler supports 'long long'.
6872         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6873         * modules/atoll (Files): Remove longlong.m4.
6875         strtoll: Assume that the compiler supports 'long long'.
6876         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6877         * modules/strtoll (Files): Remove longlong.m4.
6879         strtoull: Assume that the compiler supports 'long long'.
6880         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6881         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6882         * modules/strtoull (Files): Remove longlong.m4.
6884         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6885         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6886         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6887         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6888         AC_TYPE_LONG_LONG_INT.
6889         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6890         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6891         * modules/strtoimax (Files): Remove longlong.m4.
6892         * modules/strtoumax (Files): Likewise.
6894         xstrtoll: Assume that the compiler supports 'long long'.
6895         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6896         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6898         vasnprintf: Assume that the compiler supports 'long long'.
6899         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6900         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6901         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6902         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6903         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6904         require AC_TYPE_LONG_LONG_INT.
6905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6906         gl_PREREQ_VASNPRINTF): Likewise.
6907         * modules/vasnprintf (Files): Remove longlong.m4.
6908         * modules/c-vasnprintf (Files): Likewise.
6909         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6910         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6911         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6912         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6913         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6914         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6915         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6917         gethrxtime: Assume that the compiler supports 'long long'.
6918         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6919         (XTIME_PRECISION): Define to 1000000000 always.
6920         (xtime_make, xtime_sec): Optimize accordingly.
6921         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6922         * modules/gethrxtime (Files): Remove longlong.m4.
6924         integer_length*: Assume that the compiler supports 'long long'.
6925         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6926         * modules/integer_length (Files): Remove longlong.m4.
6927         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6928         * modules/integer_length_l (Files): Remove longlong.m4.
6929         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6930         * modules/integer_length_ll (Files): Remove longlong.m4.
6931         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6933         count-one-bits: Assume that the compiler supports 'long long'.
6934         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6935         * m4/count-one-bits.m4: Remove file.
6936         * modules/count-one-bits (Files): Remove it.
6937         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6938         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6939         unconditionally.
6941         count-trailing-zeros: Assume that the compiler supports 'long long'.
6942         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6943         unconditionally.
6944         * m4/count-trailing-zeros.m4: Remove file.
6945         * modules/count-trailing-zeros (Files): Remove it.
6946         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6947         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6948         unconditionally.
6950         count-leading-zeros: Assume that the compiler supports 'long long'.
6951         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6952         unconditionally.
6953         * m4/count-leading-zeros.m4: Remove file.
6954         * modules/count-leading-zeros (Files): Remove it.
6955         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6956         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6957         unconditionally.
6959 2019-12-22  Bruno Haible  <bruno@clisp.org>
6961         localcharset: Update support for OpenBSD.
6962         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6964 2019-12-21  Bruno Haible  <bruno@clisp.org>
6966         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6967         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6968         NetBSD.
6969         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6971 2019-12-21  Bruno Haible  <bruno@clisp.org>
6973         threadlib: Improve code structure.
6974         * m4/threadlib.m4: Reorder macros. Add comments.
6976 2019-12-21  Bruno Haible  <bruno@clisp.org>
6978         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6979         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6980         here from m4/threads.m4).
6981         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6982         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6983         (gl_STDTHREADLIB): New macro.
6984         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6985         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6987 2019-12-21  Bruno Haible  <bruno@clisp.org>
6989         sched_yield: Don't depend on threadlib and yield.
6990         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6991         LIB_SCHED_YIELD.
6992         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6993         m4/yield.m4).
6994         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6995         gl_THREADLIB and gl_YIELD.
6996         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6997         based on $(LIB_SCHED_YIELD).
6998         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6999         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7000         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
7001         (Depends-on): Remove threadlib.
7002         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7003         * modules/threads-h (Files): Remove m4/yield.m4.
7004         * modules/pthread-cond-tests (Makefile.am): Link the programs against
7005         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7006         * modules/pthread-mutex-tests (Makefile.am): Likewise.
7007         * modules/pthread-once-tests (Makefile.am): Likewise.
7008         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
7009         * modules/pthread-tss-tests (Makefile.am): Likewise.
7011 2019-12-21  Bruno Haible  <bruno@clisp.org>
7013         threads-h: Don't depend on threadlib.
7014         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
7015         not gl_THREADLIB_EARLY.
7017 2019-12-21  Bruno Haible  <bruno@clisp.org>
7019         nl_langinfo tests: Fix link error (regression from 2019-12-18).
7020         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
7021         with $(LIB_SETLOCALE).
7023 2019-12-21  Bruno Haible  <bruno@clisp.org>
7025         threadlib: Remove unused dependency (left over from 2019-07-06).
7026         * modules/threadlib (Depends-on): Remove havelib.
7028 2019-12-21  Bruno Haible  <bruno@clisp.org>
7030         New convention for multithread-safety tests.
7031         * tests/test-setlocale_null-mt-one.c: Renamed from
7032         tests/test-setlocale_null-one.c.
7033         * tests/test-setlocale_null-mt-all.c: Renamed from
7034         tests/test-setlocale_null-all.c.
7035         * modules/setlocale-null-tests (Files, Makefile.am): Update.
7037 2019-12-21  Bruno Haible  <bruno@clisp.org>
7039         quotearg tests: Fix conflict with hard-locale tests.
7040         * tests/testlocale: Renamed from tests/locale.
7041         * modules/quotearg-tests (Files): Update.
7042         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
7044 2019-12-21  Bruno Haible  <bruno@clisp.org>
7046         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
7047         Reported by Daniel Richard G. in
7048         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
7049         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
7050         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
7051         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
7052         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
7053         alternative to PTHREAD_RWLOCK_INITIALIZER.
7054         * lib/glthread/lock.c: Likewise.
7056 2019-12-21  Bruno Haible  <bruno@clisp.org>
7058         memcmp tests: Work around the clang bug.
7059         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
7060         the clang optimization.
7062 2019-12-20  Bruno Haible  <bruno@clisp.org>
7064         localcharset: Add support for z/OS encoding names.
7065         * lib/localcharset.h: Mention which encodings are used as locale
7066         encodings on z/OS.
7068 2019-12-20  Bruno Haible  <bruno@clisp.org>
7070         iconv_open: Add support for z/OS encoding names.
7071         Reported by Daniel Richard G. in
7072         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
7073         * lib/iconv_open-zos.gperf: New file.
7074         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
7075         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
7076         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
7077         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
7078         * doc/posix-functions/iconv_open.texi: Mention z/OS.
7080 2019-12-20  Bruno Haible  <bruno@clisp.org>
7082         doc: Document the problem of the per-thread locale functions on z/OS.
7083         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
7084         * doc/posix-functions/newlocale.texi: Likewise.
7085         * doc/posix-functions/duplocale.texi: Likewise.
7086         * doc/posix-functions/freelocale.texi: Likewise.
7088 2019-12-20  Bruno Haible  <bruno@clisp.org>
7090         localename, gettext: Fix host_os value for z/OS.
7091         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
7092         cross-configuration code.
7094 2019-12-19  Jim Meyering  <meyering@fb.com>
7096         nstrftime: avoid a shadowing warning
7097         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
7098         to avoid shadowing an "i" declared hundreds of lines above.
7100 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7102         dfa: struct dfamust now uses flexible array
7103         * lib/dfa.c: Include flexmember.h.
7104         (dfamust, dfamustfree): Adjust to struct dfamust change.
7105         This saves a call to malloc+free.
7106         * lib/dfa.h (struct dfamust): Make the final member a
7107         flexible array member.
7108         * modules/dfa (Depends-on): Add flexmember.
7110         dfa: fast->small for array elements
7111         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
7112         since this type is used in arrays.  This change is more for
7113         documentation than for any practical effect, since the two types
7114         are the same on all known platforms.
7116 2019-12-19  Bruno Haible  <bruno@clisp.org>
7118         iconv tests: Test canonicalized, not system-dependent, encoding names.
7119         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
7120         * modules/iconv-tests (Depends-on): Add iconv_open.
7122 2019-12-18  Bruno Haible  <bruno@clisp.org>
7124         localename: Fix test failure on AIX 7.2.
7125         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
7126         locales on AIX.
7127         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
7128         locales on AIX.
7130 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7132         Improve port of AC_C_RESTRICT to Oracle C++
7133         Problem reported by Christian Biesinger in:
7134         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
7135         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
7136         Oracle Developer Studio C++ 12.5 or later.
7138 2019-12-18  Bruno Haible  <bruno@clisp.org>
7140         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
7141         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
7143 2019-12-18  Bruno Haible  <bruno@clisp.org>
7145         localename: Ensure multithread-safety in future changes.
7146         * lib/localename.c (setlocale): Reference the system's setlocale().
7147         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
7148         (gl_locale_name_posix): Likewise.
7149         * modules/localename (Depends-on): Add setlocale-null.
7151 2019-12-18  Bruno Haible  <bruno@clisp.org>
7153         setlocale-null: Make API more useful.
7154         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
7155         callers changed.
7156         (setlocale_null): New declaration.
7157         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
7158         extracted from setlocale_null_unlocked.
7159         (setlocale_null_unlocked): Invoke it.
7160         (setlocale_null_r): Renamed from setlocale_null.
7161         (setlocale_null): New function, extracted from setlocale_mtsafe in
7162         setlocale.c.
7163         * lib/setlocale.c: Don't include <errno.h>.
7164         (setlocale_mtsafe): Invoke setlocale_null.
7165         * lib/setlocale-lock.c: Update comments.
7166         * doc/posix-functions/setlocale.texi: Mention both functions.
7168 2019-12-18  Bruno Haible  <bruno@clisp.org>
7170         localename: Optimize code for native Windows.
7171         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
7172         category (not allowed here).
7174 2019-12-18  Bruno Haible  <bruno@clisp.org>
7176         setlocale: Make calls with NULL argument multithread-safe.
7177         * lib/setlocale.c: Include <errno.h>.
7178         (setlocale_mtsafe): New function.
7179         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
7180         (setlocale_improved): Renamed from rpl_setlocale.
7181         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7182         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
7183         LIB_SETLOCALE.
7184         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
7185         (Link): New section.
7186         * tests/locale.c: Undefine setlocale.
7187         * tests/test-setlocale_null-one.c: Likewise.
7188         * tests/test-setlocale_null-all.c: Likewise.
7189         * modules/setlocale-tests (Makefile.am): Link the test programs with
7190         $(LIB_SETLOCALE).
7191         * modules/astrxfrm-tests (Makefile.am): Likewise.
7192         * modules/btowc-tests (Makefile.am): Likewise.
7193         * modules/c-ctype-tests (Makefile.am): Likewise.
7194         * modules/c-snprintf-tests (Makefile.am): Likewise.
7195         * modules/c-strcase-tests (Makefile.am): Likewise.
7196         * modules/c-vasprintf-tests (Makefile.am): Likewise.
7197         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
7198         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
7199         * modules/dfa-tests (Makefile.am): Likewise.
7200         * modules/duplocale-tests (Makefile.am): Likewise.
7201         * modules/hard-locale-tests (Makefile.am): Likewise.
7202         * modules/localcharset-tests (Makefile.am): Likewise.
7203         * modules/localename-tests (Makefile.am): Likewise.
7204         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7205         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7206         * modules/mbrtowc-tests (Makefile.am): Likewise.
7207         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7208         * modules/mbscasestr-tests (Makefile.am): Likewise.
7209         * modules/mbschr-tests (Makefile.am): Likewise.
7210         * modules/mbscspn-tests (Makefile.am): Likewise.
7211         * modules/mbsinit-tests (Makefile.am): Likewise.
7212         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7213         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7214         * modules/mbspbrk-tests (Makefile.am): Likewise.
7215         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7216         * modules/mbsrchr-tests (Makefile.am): Likewise.
7217         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7218         * modules/mbsspn-tests (Makefile.am): Likewise.
7219         * modules/mbsstr-tests (Makefile.am): Likewise.
7220         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7221         * modules/quotearg-tests (Makefile.am): Likewise.
7222         * modules/regex-tests (Makefile.am): Likewise.
7223         * modules/strfmon_l-tests (Makefile.am): Likewise.
7224         * modules/strtod-tests (Makefile.am): Likewise.
7225         * modules/strtold-tests (Makefile.am): Likewise.
7226         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7227         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7228         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7229         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
7230         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7231         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7232         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7233         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7234         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7235         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7236         * modules/wcrtomb-tests (Makefile.am): Likewise.
7237         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7238         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7239         * modules/wcwidth-tests (Makefile.am): Likewise.
7240         * doc/posix-functions/setlocale.texi: Mention that the multithread-
7241         safety fix is also available in module 'setlocale'.
7243 2019-12-18  Bruno Haible  <bruno@clisp.org>
7245         hard-locale: Make multithread-safe.
7246         * lib/hard-locale.h (hard_locale): Move documentation to here.
7247         * lib/hard-locale.c: Don't include <stdlib.h>.
7248         (GLIBC_VERSION): Remove macro.
7249         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
7250         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
7251         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
7252         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
7253         (Link): New section.
7254         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
7255         $(LIB_HARD_LOCALE).
7257 2019-12-18  Bruno Haible  <bruno@clisp.org>
7259         hard-locale: Avoid test failure on Haiku.
7260         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
7262 2019-12-18  Bruno Haible  <bruno@clisp.org>
7264         setlocale-null: Handle NULL result from setlocale.
7265         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
7266         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
7267         from setlocale or _wsetlocale.
7269 2019-12-18  Bruno Haible  <bruno@clisp.org>
7271         hard-locale: Add test.
7272         * tests/test-hard-locale.c: New file.
7273         * tests/locale.c: New file.
7274         * modules/hard-locale-tests: New file.
7276 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7278         dfa: do not match invalid UTF-8
7279         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
7280         from 5 to 9 tokens; this is needed due to the changes to
7281         add_utf8_anychar.
7282         (charclass_index): 2nd arg is now pointer-to-const.
7283         (add_utf8_anychar): Match only valid UTF-8 byte sequences
7284         instead of allowing overlong encodings or surrogate halves.
7286         dfa: simplify charclass by assuming C99
7287         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
7288         (charclass_word): Now always uint_fast64_t.
7289         (CHARCLASS_PAIR): Remove.
7290         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
7292         fts: tune via calloc
7293         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
7295         dfa: tune via xzalloc
7296         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
7298 2019-12-17  Bruno Haible  <bruno@clisp.org>
7300         localcharset: Fix multithread-safety bug on Windows and OS/2.
7301         * lib/localcharset.h (locale_charset): Clarify when the result becomes
7302         invalid.
7303         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
7304         assemble the result.
7306 2019-12-17  Bruno Haible  <bruno@clisp.org>
7308         localcharset: Optimize code for native Windows.
7309         * lib/localcharset.c (locale_charset): Don't bother calling
7310         setlocale (LC_ALL, NULL) since we're not interested in its result.
7312 2019-12-17  Bruno Haible  <bruno@clisp.org>
7314         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
7315         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
7316         setlocale.
7317         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
7318         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
7319         * modules/nl_langinfo (Depends-on): Add setlocale-null.
7321 2019-12-17  Bruno Haible  <bruno@clisp.org>
7323         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
7324         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
7325         stack-allocated buffer to assemble each result and different static
7326         buffers to return it.
7327         * tests/test-nl_langinfo-mt.c: New file.
7328         * modules/nl_langinfo-tests (Files): Add it.
7329         (Depends-on): Add thread, nanosleep.
7330         (Makefile.am): Build test-nl_langinfo-mt test.
7332 2019-12-17  Bruno Haible  <bruno@clisp.org>
7334         langinfo: Document more details.
7335         * doc/posix-headers/langinfo.texi: List platform details.
7336         * doc/posix-functions/nl_langinfo.texi: Likewise.
7338 2019-12-17  Bruno Haible  <bruno@clisp.org>
7340         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
7341         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
7342         and Martin Storsjö <martin@martin.st>
7343         in <https://savannah.gnu.org/bugs/?57406>.
7344         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
7345         mingw.
7347 2019-12-17  Bruno Haible  <bruno@clisp.org>
7349         glob: Avoid warning on mingw.
7350         Reported by Christian Biesinger <cbiesinger@google.com> in
7351         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
7352         * lib/glob.c (__stat64): Undefine first.
7354 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7356         xalloc: tune xzalloc for fresh allocations
7357         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
7358         because when the memory is freshly allocated from the OS via sbrk
7359         or mmap, calloc can avoid doing the memset.
7361         dfa: new function dfacopysyntax
7362         * lib/dfa.c (struct dfa): Move syntax member later so
7363         that dfacopysyntax can easily clear earlier members.
7364         (dfacopysyntax): New function, used by Gawk.
7366 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7368         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
7369         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
7370         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
7371         if not already defined.
7373         dfa: remove one dependency on MB_CUR_MAX
7374         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
7376         dfa: remove struct lexer_state.cur_mb_len
7377         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
7378         as it’s not needed and the code is simpler without it.
7379         All uses removed.
7381 2019-12-16  Bruno Haible  <bruno@clisp.org>
7383         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7384         Reported by Arnold Robbins <arnold@skeeve.com>.
7385         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7386         copied from lib/glthread/lock.h.
7387         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7388         (setlocale_null_with_lock): If pthread_in_use() is false, use
7389         setlocale_null_unlocked directly.
7390         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7391         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7392         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7393         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7394         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7395         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7397 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7399         dfa: make dfasyntax thread-safe
7400         Problem reported by Bruno Haible in:
7401         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7402         * lib/dfa.c: Do not include locale.h.
7403         (struct dfa): Remove simple_locale member.
7404         All uses replaced by localeinfo.simple.
7405         (using_simple_locale): Remove; now present (with some
7406         changes) in localeinfo.c.
7407         (dfasyntax): No need to initialize removed member.
7409         localeinfo: record whether locale is simple
7410         * lib/localeinfo.c (using_simple_locale): New function,
7411         copied here from lib/dfa.c but with a change: it uses
7412         strcoll for its heuristic, instead of using setlocale.
7413         This lets it be thread-safe.
7414         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7416 2019-12-15  Bruno Haible  <bruno@clisp.org>
7418         duplocale: Fix multithread-safety bug on AIX.
7419         * lib/duplocale.c: Don't include <stdlib.h>.
7420         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7421         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7422         Set LIB_DUPLOCALE.
7423         * modules/duplocale (Depends-on): Add setlocale-null.
7424         (Link): New section.
7425         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7426         $(LIB_DUPLOCALE).
7428 2019-12-15  Bruno Haible  <bruno@clisp.org>
7430         setlocale-null: Add tests.
7431         * tests/test-setlocale_null.c: New file.
7432         * tests/test-setlocale_null-one.c: New file.
7433         * tests/test-setlocale_null-all.c: New file.
7434         * modules/setlocale-null-tests: New file.
7436         setlocale-null: New module.
7437         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7438         setlocale_null): New declarations.
7439         * lib/setlocale_null.c: New file.
7440         * lib/setlocale-lock.c: New file.
7441         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7442         * m4/setlocale_null.m4: New file.
7443         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7444         GNULIB_SETLOCALE_NULL.
7445         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7446         * modules/setlocale-null: New file.
7447         * doc/posix-functions/setlocale.texi: Mention the new module.
7449 2019-12-15  Bruno Haible  <bruno@clisp.org>
7451         lock tests: Skip test when no multithreading is enabled.
7452         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7454 2019-12-14  Bruno Haible  <bruno@clisp.org>
7456         locale, duplocale, localename: Fix last patch.
7457         Reported by Daniel Richard G. in
7458         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7459         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7460         Don't define if locale_t does not exist.
7462 2019-12-13  Bruno Haible  <bruno@clisp.org>
7464         locale, duplocale, localename: Fix errors if locale_t does not exist.
7465         Reported by Daniel Richard G. in
7466         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7467         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7468         macros.
7469         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7470         HAVE_NEWLOCALE.
7471         * tests/test-localename.c: Likewise.
7472         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7473         HAVE_DUPLOCALE.
7474         * tests/test-locale-c++.cc: Likewise.
7476 2019-12-13  Bruno Haible  <bruno@clisp.org>
7478         wcstok: Fix test failure on HP-UX.
7479         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7480         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7482 2019-12-12  Bruno Haible  <bruno@clisp.org>
7484         strtod, strtold tests: Avoid test failure on AIX 7.2.
7485         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7486         '.' both are radix characters.
7487         * tests/test-strtold1.c (main): Likewise.
7489 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7491         dfa: prefer ptrdiff_t for API, too
7492         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7493         but do this only for internal use for now.
7494         * NEWS: Mention the API change.
7495         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7496         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7497         values known to be nonnegative.
7498         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7499         Prefer idx_t or ptrdiff_t to size_t for API.
7500         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7501         Prefer ptrdiff_t to size_t for API.
7503         stdalign: port to xlclang 16.01
7504         Problem reportd by Bruno Haible in:
7505         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7506         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7507         ((__aligned__ (...))) with xlclang, as a top-level
7508         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7509         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7511 2019-12-12  Bruno Haible  <bruno@clisp.org>
7513         duplocale: Fix test failure on AIX 7.2 with xlclang.
7514         * lib/duplocale.c: Include <stdlib.h>.
7515         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7516         value.
7518 2019-12-12  Bruno Haible  <bruno@clisp.org>
7520         stddef: Document the AIX xlc issue.
7521         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7523 2019-12-12  Bruno Haible  <bruno@clisp.org>
7525         duplocale: Don't attempt to override if locale_t does not exist.
7526         Reported by Daniel Richard G. in
7527         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7528         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7529         HAVE_DUPLOCALE to 0.
7531 2019-12-12  Bruno Haible  <bruno@clisp.org>
7533         wcwidth: Avoid test failure on AIX 7.2.
7534         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7535         negative.
7536         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7538 2019-12-12  Bruno Haible  <bruno@clisp.org>
7540         ilogbl: Work around Cygwin bug.
7541         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7542         correct.
7543         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7545 2019-12-12  Bruno Haible  <bruno@clisp.org>
7547         strtold: Work around Cygwin bug.
7548         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7549         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7550         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7551         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7552         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7554 2019-12-12  Bruno Haible  <bruno@clisp.org>
7556         strtold: Fix autoconf test.
7557         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7559 2019-12-11  Bruno Haible  <bruno@clisp.org>
7561         fsync tests: Skip test that is known to fail.
7562         * doc/posix-functions/fsync.texi: Update list of platforms.
7563         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7564         that is known to fail on AIX and Cygwin.
7566 2019-12-11  Bruno Haible  <bruno@clisp.org>
7568         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7570         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7571         HAVE_GETADDRINFO as a C macro.
7572         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7573         declare as replacement functions.
7574         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7575         define as no-op overrides.
7576         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7577         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7578         * modules/getaddrinfo (Depends-on, configure.ac): Test
7579         REPLACE_GETADDRINFO.
7580         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7581         problem.
7582         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7583         convention problems.
7585 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7587         dfa: prefer signed integers for internals
7588         Signed integers can be checked more easily for integer overflow.
7589         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7590         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7591         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7592         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7593         (replace, state_index, epsclosure, charclass_context)
7594         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7595         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7596         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7597         (comsubs, inboth, allocmust):
7598         Prefer a signed to an unsigned integer when calculating indexes,
7599         unless the integer is part of the external API (a bigger deal,
7600         and to be done later).
7602         dfa: fix index overflow
7603         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7604         very large regular expressions.
7606         dfa: update commentary for previous change
7607         * NEWS: Mention the change.
7608         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7610 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7612         dfa: separate parse and compile phase
7613         ‘dfamust’ must be called after parsing and before tokens are
7614         reordered, but both are executed in the compilation phase.
7615         Token reordering was introduced in Gnulib commit
7616         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7617         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7618         * lib/dfa.c (dfaparse): Change it to global function.
7619         (dfacomp): If first argument is NULL, skip parse.
7620         * lib/dfa.h: (dfaparse): Add a prototype.
7622 2019-12-11  Bruno Haible  <bruno@clisp.org>
7624         unistd tests: Fix link error on MSVC.
7625         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7626         $(LIB_GETLOGIN).
7628 2019-12-11  Bruno Haible  <bruno@clisp.org>
7630         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7631         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7632         and POSIX substitutes are supported in C++ mode.
7633         * NEWS: Likewise.
7635 2019-12-11  Bruno Haible  <bruno@clisp.org>
7637         stddef: Fix compilation error in C++ mode on MSVC.
7638         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7639         instead, include <cstddef>.
7641 2019-12-11  Bruno Haible  <bruno@clisp.org>
7643         unistd: Fix compilation error in C++ mode on MSVC.
7644         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7645         does not have <unistd.h>.
7647 2019-12-11  Bruno Haible  <bruno@clisp.org>
7649         locale: Fix compilation error in C++ mode on MSVC.
7650         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7651         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7652         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7653         int_n_sep_by_space): Define as macros on MSVC.
7655 2019-12-11  Bruno Haible  <bruno@clisp.org>
7657         wchar: Fix compilation error in C++ mode on MSVC.
7658         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7660 2019-12-11  Bruno Haible  <bruno@clisp.org>
7662         pthread-thread: Fix compilation error in C++ mode on MSVC.
7663         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7664         _GL_CXXALIAS_RPL invocation.
7666 2019-12-08  Bruno Haible  <bruno@clisp.org>
7668         Fix compilation errors in C++ mode on Haiku.
7669         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7670         non-glibc systems.
7671         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7672         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7673         posix_spawnattr_setschedparam): Likewise.
7674         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7675         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7676         * lib/unistd.in.h (usleep): Likewise.
7678 2019-12-08  Bruno Haible  <bruno@clisp.org>
7680         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7681         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7682         * modules/fseeko (configure.ac-early): Require it instead of
7683         AC_FUNC_FSEEKO.
7684         * modules/ftello (configure.ac-early): Likewise.
7685         * modules/fflush (configure.ac-early): Likewise.
7687 2019-12-08  Bruno Haible  <bruno@clisp.org>
7689         Fix compilation error in C++ mode on HP-UX 11.
7690         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7691         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7693 2019-12-08  Bruno Haible  <bruno@clisp.org>
7695         Fix compilation errors on HP-UX 11/ia64.
7696         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7697         _GL_FUNCDECL_SYS.
7699 2019-12-08  Bruno Haible  <bruno@clisp.org>
7701         Fix compilation error in C++ mode on OpenBSD.
7702         * lib/signal.in.h (signal): Declare on OpenBSD.
7704 2019-12-08  Bruno Haible  <bruno@clisp.org>
7706         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7707         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7708         instead of #error.
7710 2019-12-08  Bruno Haible  <bruno@clisp.org>
7712         Fix compilation errors in C++ mode on FreeBSD.
7713         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7714         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7715         * lib/threads.in.h (thrd_exit): Likewise.
7716         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7718 2019-12-08  Bruno Haible  <bruno@clisp.org>
7720         Fix compilation errors in C++ mode on macOS and FreeBSD.
7721         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7722         or FreeBSD with clang, use the approach without C preprocessor macro.
7724 2019-12-07  Bruno Haible  <bruno@clisp.org>
7726         Fix compilation errors in C++ mode on AIX with xlclang++.
7727         Reported by Christian Biesinger <cbiesinger@google.com> in
7728         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7729         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7731 2019-12-07  Bruno Haible  <bruno@clisp.org>
7733         Document compilation error in C++ mode on NetBSD 8.0.
7734         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7736 2019-12-07  Bruno Haible  <bruno@clisp.org>
7738         Fix compilation errors in C++ mode on Solaris 10.
7739         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7740         to non-empty on Solaris with a non-GCC compiler.
7741         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7743 2019-12-07  Bruno Haible  <bruno@clisp.org>
7745         Reword NEWS entry.
7746         * NEWS: Reword the latest NEWS entry.
7748 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7750         Move xstrtol_fatal to a new xstrtol-error module.
7751         * lib/xstrtol.h: Stop including <getopt.h>.
7752         (xstrtol_fatal): Move ...
7753         * lib/xstrtol-error.h: ... here.  New file.
7754         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7755         * tests/test-xstrtol.c: Likewise.
7756         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7757         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7758         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7759         * modules/xstrtol-error: New file.
7760         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7761         * MODULES.html.sh: Add xstrtol-error.
7762         * NEWS: Document the change.
7764 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7766         nstrftime: better width support for %N, %z
7767         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7768         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7769         a new WIDTH parameter.
7770         (add, add1, cpy): Use these macros.
7771         (width_add): Do not treat digits == 0 as a special case,
7772         do not pad if padding is ‘-’, and do not use a negative width.
7773         (__strftime_internal): Redo formatting of nanoseconds and numeric
7774         timezones to avoid buffer misuse in unusual cases, and so that
7775         widths make more sense.  Add support for widths greater than 9 to
7776         the %N format; they are zero filled on the right.
7777         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7779 2019-12-05  Bruno Haible  <bruno@clisp.org>
7781         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7782         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7783         set REPLACE_ISFINITE to 1.
7784         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7785         REPLACE_ISINF to 1.
7786         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7787         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7788         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7789         * lib/threads.in.h (call_once): Likewise.
7790         * lib/iconv.in.h (iconv): Likewise.
7792 2019-12-05  Bruno Haible  <bruno@clisp.org>
7794         wchar: Add more C++ tests.
7795         Reported by Christian Biesinger <cbiesinger@google.com> in
7796         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7797         * tests/test-wchar-c++3.cc: New file.
7798         * modules/wchar-c++-tests (Files): Add it.
7799         (Makefile.am): Compile it.
7801 2019-12-05  Bruno Haible  <bruno@clisp.org>
7803         Add more C++ tests.
7805         assert-h: Add C++ tests.
7806         * tests/test-assert-h-c++.cc: New file.
7807         * tests/test-assert-h-c++2.cc: New file.
7808         * modules/assert-h-c++-tests: New file.
7809         * modules/assert-h-tests: New file.
7811         ctype: Add C++ tests.
7812         * tests/test-ctype-c++.cc: New file.
7813         * tests/test-ctype-c++2.cc: New file.
7814         * modules/ctype-c++-tests: New file.
7815         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
7817         errno: Add C++ tests.
7818         * tests/test-errno-c++.cc: New file.
7819         * tests/test-errno-c++2.cc: New file.
7820         * modules/errno-c++-tests: New file.
7821         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7823         float: Add C++ tests.
7824         * tests/test-float-c++.cc: New file.
7825         * tests/test-float-c++2.cc: New file.
7826         * modules/float-c++-tests: New file.
7827         * modules/float-tests (Depends-on): Add float-c++-tests.
7829         inttypes: Add more C++ tests.
7830         * tests/test-inttypes-c++2.cc: New file.
7831         * modules/inttypes-c++-tests (Files): Add it.
7832         (Makefile.am): Compile it.
7834         limits-h: Add C++ tests.
7835         * tests/test-limits-h-c++.cc: New file.
7836         * tests/test-limits-h-c++2.cc: New file.
7837         * modules/limits-h-c++-tests: New file.
7838         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7840         stdarg: Add C++ tests.
7841         * tests/test-stdarg-c++.cc: New file.
7842         * tests/test-stdarg-c++2.cc: New file.
7843         * modules/stdarg-c++-tests: New file.
7844         * modules/stdarg-tests: New file.
7846         stdbool: Add C++ tests.
7847         * tests/test-stdbool-c++.cc: New file.
7848         * tests/test-stdbool-c++2.cc: New file.
7849         * modules/stdbool-c++-tests: New file.
7850         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7852         stddef: Add C++ tests.
7853         * tests/test-stddef-c++.cc: New file.
7854         * tests/test-stddef-c++2.cc: New file.
7855         * modules/stddef-c++-tests: New file.
7856         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7858         stdint: Add C++ tests.
7859         * tests/test-stdint-c++.cc: New file.
7860         * tests/test-stdint-c++2.cc: New file.
7861         * modules/stdint-c++-tests: New file.
7862         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7864         wchar: Add more C++ tests.
7865         * tests/test-wchar-c++2.cc: New file.
7866         * modules/wchar-c++-tests (Files): Add it.
7867         (Makefile.am): Compile it.
7869         wctype-h: Add more C++ tests.
7870         * tests/test-wctype-h-c++2.cc: New file.
7871         * modules/wctype-h-c++-tests (Files): Add it.
7872         (Makefile.am): Compile it.
7874 2019-12-04  Bruno Haible  <bruno@clisp.org>
7876         Fix compilation errors in C++ mode with xlclang++ on AIX.
7877         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7878         C++ mode on AIX.
7879         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7880         without C preprocessor macro.
7881         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7882         _GL_CXXALIAS_SYS.
7883         * lib/threads.in.h (thrd_exit): Likewise.
7885 2019-12-04  Bruno Haible  <bruno@clisp.org>
7887         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7888         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7889         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7891 2019-12-04  Bruno Haible  <bruno@clisp.org>
7893         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7894         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7895         _GL_CXXALIASWARN invocation on non-glibc systems.
7896         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7897         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7898         iswctype, towlower, towupper): Likewise.
7900 2019-12-03  Bruno Haible  <bruno@clisp.org>
7902         Avoid hassles caused by [[noreturn]] in C++.
7903         Reported by Christian Biesinger <cbiesinger@google.com> in
7904         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7905         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7906         * lib/_Noreturn.h: Likewise.
7908 2019-12-02  Bruno Haible  <bruno@clisp.org>
7910         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7911         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7912         LIBMULTITHREAD.
7913         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7914         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7915         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7916         gl_THREADLIB.
7917         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7919 2019-12-02  Bruno Haible  <bruno@clisp.org>
7921         Fix some more link errors with --enable-threads=isoc.
7922         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7923         * modules/pthread-rwlock (Depends-on): Likewise.
7925 2019-12-02  Bruno Haible  <bruno@clisp.org>
7927         Fix link errors with --enable-threads=posix on AIX.
7928         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7929         program with $(LIBTHREAD).
7930         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7931         program with $(LIBTHREAD).
7933 2019-12-02  Bruno Haible  <bruno@clisp.org>
7935         Fix link errors with --enable-threads=posix on AIX.
7936         * modules/mbrtowc (Link): New section.
7937         * modules/acl (Link): Likewise.
7938         * modules/argmatch (Link): Likewise.
7939         * modules/backup-rename (Link): Likewise.
7940         * modules/backupfile (Link): Likewise.
7941         * modules/closein (Link): Likewise.
7942         * modules/closeout (Link): Likewise.
7943         * modules/copy-file (Link): Likewise.
7944         * modules/csharpcomp (Link): Likewise.
7945         * modules/csharpexec (Link): Likewise.
7946         * modules/dfa (Link): Likewise.
7947         * modules/exclude (Link): Likewise.
7948         * modules/fnmatch (Link): Likewise.
7949         * modules/fnmatch-gnu (Link): Likewise.
7950         * modules/fnmatch-posix (Link): Likewise.
7951         * modules/glob (Link): Likewise.
7952         * modules/human (Link): Likewise.
7953         * modules/javacomp (Link): Likewise.
7954         * modules/javaexec (Link): Likewise.
7955         * modules/javaversion (Link): Likewise.
7956         * modules/mbfile (Link): Likewise.
7957         * modules/mbiter (Link): Likewise.
7958         * modules/mbmemcasecmp (Link): Likewise.
7959         * modules/mbmemcasecoll (Link): Likewise.
7960         * modules/mbrlen (Link): Likewise.
7961         * modules/mbscasecmp (Link): Likewise.
7962         * modules/mbscasestr (Link): Likewise.
7963         * modules/mbschr (Link): Likewise.
7964         * modules/mbscspn (Link): Likewise.
7965         * modules/mbsinit (Link): Likewise.
7966         * modules/mbslen (Link): Likewise.
7967         * modules/mbsncasecmp (Link): Likewise.
7968         * modules/mbsnlen (Link): Likewise.
7969         * modules/mbsnrtowcs (Link): Likewise.
7970         * modules/mbspbrk (Link): Likewise.
7971         * modules/mbspcasecmp (Link): Likewise.
7972         * modules/mbsrchr (Link): Likewise.
7973         * modules/mbsrtowcs (Link): Likewise.
7974         * modules/mbssep (Link): Likewise.
7975         * modules/mbsspn (Link): Likewise.
7976         * modules/mbsstr (Link): Likewise.
7977         * modules/mbstok_r (Link): Likewise.
7978         * modules/mbswidth (Link): Likewise.
7979         * modules/mbuiter (Link): Likewise.
7980         * modules/mkdir-p (Link): Likewise.
7981         * modules/propername (Link): Likewise.
7982         * modules/quote (Link): Likewise.
7983         * modules/quotearg (Link): Likewise.
7984         * modules/quotearg-simple (Link): Likewise.
7985         * modules/regex-quote (Link): Likewise.
7986         * modules/rpmatch (Link): Likewise.
7987         * modules/sh-quote (Link): Likewise.
7988         * modules/system-quote (Link): Likewise.
7989         * modules/trim (Link): Likewise.
7990         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7991         * modules/unistdio/ulc-fprintf (Link): Likewise.
7992         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7993         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7994         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7995         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7996         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7997         * modules/xfreopen (Link): Likewise.
7998         * modules/xmemcoll (Link): Likewise.
7999         * modules/yesno (Link): Likewise.
8000         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
8001         * modules/argmatch-tests (Makefile.am): Likewise.
8002         * modules/closein-tests (Makefile.am): Likewise.
8003         * modules/copy-file-tests (Makefile.am): Likewise.
8004         * modules/dfa-tests (Makefile.am): Likewise.
8005         * modules/fnmatch-tests (Makefile.am): Likewise.
8006         * modules/glob-tests (Makefile.am): Likewise.
8007         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8008         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8009         * modules/mbrtowc-tests (Makefile.am): Likewise.
8010         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8011         * modules/mbscasestr-tests (Makefile.am): Likewise.
8012         * modules/mbschr-tests (Makefile.am): Likewise.
8013         * modules/mbscspn-tests (Makefile.am): Likewise.
8014         * modules/mbsinit-tests (Makefile.am): Likewise.
8015         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8016         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8017         * modules/mbspbrk-tests (Makefile.am): Likewise.
8018         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8019         * modules/mbsrchr-tests (Makefile.am): Likewise.
8020         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8021         * modules/mbsspn-tests (Makefile.am): Likewise.
8022         * modules/mbsstr-tests (Makefile.am): Likewise.
8023         * modules/quotearg-tests (Makefile.am): Likewise.
8024         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8025         * modules/readtokens-tests (Makefile.am): Likewise.
8026         * modules/regex-quote-tests (Makefile.am): Likewise.
8027         * modules/sh-quote-tests (Makefile.am): Likewise.
8028         * modules/system-quote-tests (Makefile.am): Likewise.
8029         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8030         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8031         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8032         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8033         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8034         * modules/yesno-tests (Makefile.am): Likewise.
8036 2019-12-02  Bruno Haible  <bruno@clisp.org>
8038         Simplify link sections.
8039         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
8040         * modules/lock (Link): Likewise.
8041         * modules/cond (Link): Likewise.
8042         * modules/tls (Link): Likewise.
8043         * modules/yield (Link): Likewise.
8044         * modules/regex (Link): Likewise.
8045         * modules/localename (Link): Likewise.
8046         * modules/unicase/locale-language (Link): Likewise.
8047         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
8049 2019-12-02  Bruno Haible  <bruno@clisp.org>
8051         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
8052         * tests/test-thread_self.c (main): Disable test on AIX.
8054 2019-12-01  Bruno Haible  <bruno@clisp.org>
8056         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
8057         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
8058         gl_THREADLIB_EARLY_BODY.
8059         (gl_THREADLIB_EARLY_BODY): Invoke it.
8060         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
8061         (gl_THREADLIB_BODY): Invoke it.
8062         (gl_PTHREADLIB): New macro.
8063         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
8064         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
8065         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
8066         * modules/pthread-h (Files): Add threadlib.m4.
8067         (Depends-on): Remove threadlib.
8068         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
8069         and _THREAD_SAFE here.
8070         (Link): Use LIBPTHREAD, not LIBTHREAD.
8071         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
8072         LIBMULTITHREAD.
8073         * modules/pthread-once (Link): Likewise.
8074         * modules/pthread-mutex (Link): Likewise.
8075         * modules/pthread-rwlock (Link): Likewise.
8076         * modules/pthread-cond (Link): Likewise.
8077         * modules/pthread-tss (Link): Likewise.
8078         * modules/pthread-spin (Link): Likewise.
8079         * modules/pthread (Link): Likewise.
8080         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
8081         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
8082         * modules/pthread-once-tests (test_pthread_once1_LDADD,
8083         test_pthread_once2_LDADD): Likewise.
8084         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
8085         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
8086         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
8087         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
8089 2019-12-01  Bruno Haible  <bruno@clisp.org>
8091         cond: State linking requirements.
8092         * modules/cond (Link): New section.
8094 2019-12-01  Bruno Haible  <bruno@clisp.org>
8096         threadlib: Remove unnecessary file (left over from 2019-07-06).
8097         * modules/threadlib (Files): Remove config.rpath.
8099 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
8101         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
8102         Reported by Dagobert Michelsen <dam@opencsw.org> in
8103         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
8104         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
8105         list of strings instead of one string.
8106         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
8107         * pygnulib/GLImport.py (execute): Likewise.
8109 2019-11-27  Bruno Haible  <bruno@clisp.org>
8111         openpty, forkpty: Fix build error on Solaris 11.4.
8112         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
8113         also in <termios.h>.
8114         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
8115         of the function also in <termios.h>.
8116         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
8117         * doc/glibc-functions/forkpty.texi: Likewise.
8119 2019-11-27  Bruno Haible  <bruno@clisp.org>
8121         New options --enable-threads=isoc and --enable-threads=isoc+posix.
8122         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
8123         --enable-threads=isoc and --enable-threads=isoc+posix.
8124         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
8125         When both the ISO C and the POSIX threads API are available, choose
8126         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
8127         --enable-threads=isoc+posix was specified. When only the ISO C threads
8128         API is available and --enable-threads=iso was specified, choose
8129         USE_ISOC_THREADS.
8130         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
8131         USE_ISOC_AND_POSIX_THREADS.
8132         * lib/glthread/lock.c: Likewise.
8133         * lib/glthread/cond.h: Likewise.
8134         * lib/glthread/cond.c: Likewise.
8135         * lib/glthread/tls.h: Likewise.
8136         * lib/glthread/tls.c: Likewise.
8137         * lib/glthread/yield.h: Likewise.
8138         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
8139         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
8140         * lib/glthread/thread.c: Likewise.
8141         * lib/glthread/threadlib.c: Likewise.
8142         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
8143         USE_ISOC_AND_POSIX_THREADS.
8144         * tests/test-cond.c: Consider USE_ISOC_THREADS and
8145         USE_ISOC_AND_POSIX_THREADS.
8146         * tests/test-tls.c: Likewise.
8147         * tests/test-thread_create.c (main): Likewise.
8148         * tests/test-pthread-cond.c: Likewise.
8149         * tests/test-pthread-mutex.c: Likewise.
8150         * tests/test-pthread-once2.c: Likewise.
8151         * tests/test-pthread-rwlock.c: Likewise.
8152         * tests/test-pthread-tss.c: Likewise.
8153         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
8154         USE_POSIX_THREADS.
8156 2019-11-24  Bruno Haible  <bruno@clisp.org>
8158         mbrtowc: Modernize autoconf test.
8159         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
8160         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
8161         try a UTF-8 locale.
8162         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
8164 2019-11-24  Bruno Haible  <bruno@clisp.org>
8166         Fix errors in C++ mode on mingw.
8167         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
8168         instead of _GL_CXXALIAS_SYS.
8169         * lib/signal.in.h (pthread_sigmask): Likewise.
8170         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
8171         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8172         Likewise.
8173         * lib/wchar.in.h (btowc): Likewise.
8175 2019-11-24  Bruno Haible  <bruno@clisp.org>
8177         sys_time: Fix errors in C++ mode on mingw.
8178         * lib/sys_time.in.h (timeval): Restore the redirection
8179         '#define timeval rpl_timeval', for when the symbol timeval is being used
8180         outside the 'gnulib' namespace.
8181         * lib/sys_select.in.h (select): In C++, write 'timeval', not
8182         'struct timeval'.
8184 2019-11-24  Bruno Haible  <bruno@clisp.org>
8186         iswctype: Fix errors in C++ mode on mingw.
8187         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
8188         is 1.
8189         * lib/iswctype.c (iswctype): Add another implementation, for the
8190         GNULIB_defined_wint_t case.
8191         * modules/iswctype (configure.ac): Compile iswctype.c also if
8192         GNULIB_OVERRIDES_WINT_T is 1.
8194 2019-11-24  Bruno Haible  <bruno@clisp.org>
8196         windows-timedmutex: Fix errors in C++ mode on mingw.
8197         * lib/windows-timedmutex.h: Add closing brace.
8199 2019-11-24  Bruno Haible  <bruno@clisp.org>
8201         Fix errors in C++ mode on Cygwin.
8202         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
8203         _GL_CXXALIAS_SYS.
8205 2019-11-24  Bruno Haible  <bruno@clisp.org>
8207         time_r: Fix for mingw (regression from 2019-11-16).
8208         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
8209         AC_LINK_IFELSE test only if the function does not appear to exist.
8211 2019-11-24  Bruno Haible  <bruno@clisp.org>
8213         wcstok: Add tests.
8214         * tests/test-wcstok.c: New file.
8215         * modules/wcstok-tests: New file.
8217 2019-11-24  Bruno Haible  <bruno@clisp.org>
8219         wcstok: Work around wrong signature on native Windows.
8220         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
8221         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
8222         REPLACE_WCSTOK.
8223         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
8224         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
8225         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
8226         * doc/posix-functions/wcstok.texi: Mention the problem.
8228 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8230         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
8231         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
8232         remove workaround for GCC bug 91450 as the bug should be fixed
8233         there too.
8235 2019-11-21  Bruno Haible  <bruno@clisp.org>
8237         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
8238         Reported by Christian Biesinger <cbiesinger@google.com> in
8239         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
8240         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
8241         non-glibc systems.
8242         * lib/locale.in.h (localeconv, setlocale): Likewise.
8243         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
8244         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
8245         rint, round, trunc): Likewise.
8246         * lib/monetary.in.h (strfmon_l): Likewise.
8247         * lib/pthread.in.h (pthread_mutexattr_getrobust,
8248         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
8249         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
8250         pthread_spin_destroy): Likewise.
8251         * lib/signal.in.h (raise, signal): Likewise.
8252         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
8253         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
8254         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
8255         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
8256         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
8257         Likewise.
8258         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
8259         Likewise.
8260         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
8261         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
8262         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
8263         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
8264         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
8265         wcsftime): Likewise.
8266         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
8268 2019-11-21  Bruno Haible  <bruno@clisp.org>
8270         Fix various errors in _GL_CXXALIAS_SYS invocations.
8271         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
8272         _GL_CXXALIAS_SYS.
8273         * lib/pthread.in.h (pthread_mutexattr_gettype,
8274         pthread_mutexattr_getrobust): Likewise.
8275         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
8276         * lib/sys_socket.in.h (recv, send): Likewise.
8277         * lib/unistd.in.h (getdtablesize): Likewise.
8278         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
8279         'struct timeval'.
8281 2019-11-21  Bruno Haible  <bruno@clisp.org>
8283         math tests: Update after 2019-08-28 change.
8284         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
8285         return type of 'bool', not 'int'.
8287 2019-11-21  Bruno Haible  <bruno@clisp.org>
8289         pthread-spin: Fix errors in C++ mode.
8290         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
8291         functions as nonexistent when <pthread.h> exists but does not define
8292         the pthread_spinlock_t type.
8294 2019-11-21  Bruno Haible  <bruno@clisp.org>
8296         pthread-mutex: Fix errors in C++ mode.
8297         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
8298         pthread_mutexattr_getrobust exists. If not, define
8299         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8300         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
8301         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
8302         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8303         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
8304         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
8305         definition.
8307 2019-11-19  Bruno Haible  <bruno@clisp.org>
8309         threads-h tests: Fix typo.
8310         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
8312 2019-11-19  Bruno Haible  <bruno@clisp.org>
8314         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
8315         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
8316         to 'const pthread_attr_t *'.
8317         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
8318         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
8320 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8322         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
8323         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
8324         work around GCC bug 91450 as the bug should be fixed there.
8326 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8328         glob: get closer to glibc glob.c
8329         Omit differences from glibc when the differences don’t matter.
8330         * lib/glob.c [_LIBC]: Include shlib-compat.h.
8331         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
8332         (glob_lstat): New function.
8333         (glob_in_dir): Use it.
8334         (GLOB_ATTRIBUTE): Define to empty if not already defined.
8335         Use changed.
8337 2019-11-18  Bruno Haible  <bruno@clisp.org>
8339         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
8340         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
8341         UINTPTR_MAX): Consider _WIN64.
8342         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
8343         a pointer.
8345 2019-11-18  Bruno Haible  <bruno@clisp.org>
8347         stdint: Fix value of WINT_MAX when we override wint_t.
8348         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
8349         when GNULIB_OVERRIDES_WINT_T is 1.
8351 2019-11-18  Bruno Haible  <bruno@clisp.org>
8353         vcs-to-changelog: New module.
8354         * modules/vcs-to-changelog: New file.
8355         * MODULES.html.sh (func_all_modules): Add it.
8357 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8359         vcs-to-changelog: New script to generate ChangeLog-like output.
8360         Discussion:
8361         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
8362         * build-aux/vcs_to_changelog.py: New file.
8363         * build-aux/vcstocl/frontend_c.py: New file.
8364         * build-aux/vcstocl/misc_util.py: New file.
8365         * build-aux/vcstocl/vcs_git.py: New file.
8367 2019-11-18  Bruno Haible  <bruno@clisp.org>
8369         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
8370         Reported by Keith Marshall <keith@users.osdn.me> in
8371         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
8372         and <https://osdn.net/projects/mingw/ticket/39677>.
8373         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
8374         already been defined by mingw's <crtdefs.h>.
8376 2019-11-18  Bruno Haible  <bruno@clisp.org>
8378         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
8379         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8380         conditionally enabled.
8382 2019-11-18  Bruno Haible  <bruno@clisp.org>
8384         gc: Mirror libgcrypt.m4 from libgcrypt.
8385         * config/srclistvars.sh (LIBGCRYPT): New variable.
8386         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8388 2019-11-17  Bruno Haible  <bruno@clisp.org>
8390         locale, localename: Improve z/OS support.
8391         Reported by Daniel Richard G. in
8392         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8393         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8394         gl_LOCALE_H.
8395         (gl_LOCALE_H): Require it.
8396         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8397         defined, don't even check for newlocale, duplocale, freelocale.
8398         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8399         locale_t is not defined.
8401 2019-11-17  Bruno Haible  <bruno@clisp.org>
8403         havelib: Make libdirstems processing more flexible.
8404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8405         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8406         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8407         patch from 2017-02-19).
8408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8409         libdirs, even when the first one exists as a directory.
8411 2019-11-17  Bruno Haible  <bruno@clisp.org>
8413         havelib: Match the bitness when searching for libraries.
8414         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8415         acl_is_expected_elfclass.
8416         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8417         file exists, in ELF, also test whether it has the ELF class that
8418         corresponds to the host's bitness.
8420 2019-11-17  Bruno Haible  <bruno@clisp.org>
8422         host-cpu-c-abi: Add support for unknown CPUs.
8423         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8424         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8425         32-bit or 64-bit.
8427 2019-11-17  Bruno Haible  <bruno@clisp.org>
8429         havelib: Remove redundant code.
8430         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8431         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8433 2019-11-17  Bruno Haible  <bruno@clisp.org>
8435         havelib: Fix a bug in dependency processing.
8436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8437         of .la files, don't overwrite the value of additional_libdir for the
8438         next rounds.
8440 2019-11-16  Bruno Haible  <bruno@clisp.org>
8442         wctype-h: When overriding wint_t, override also the related functions.
8443         Reported by Christian Biesinger <cbiesinger@google.com> in
8444         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8445         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8446         REPLACE_ISWCNTRL to 1.
8447         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8448         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8449         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8450         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8451         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8452         on mingw.
8453         * doc/posix-headers/wctype.texi: Likewise.
8455 2019-11-16  Bruno Haible  <bruno@clisp.org>
8457         time_r: Fix for mingw.
8458         Reported by Christian Biesinger <cbiesinger@google.com> in
8459         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8460         * lib/time.in.h: On mingw, include <unistd.h>.
8461         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8462         <time.h>. Test for localtime_r in a way that works when it is defined
8463         as an inline function.
8465 2019-11-13  Bruno Haible  <bruno@clisp.org>
8467         havelib: Revert last change.
8468         * build-aux/config.rpath: Revert last change. We can add msys2 support
8469         when it has been added to libtool.m4 upstream.
8471 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8473         config: add msys support
8474         Requested by Arnold Robbins in:
8475         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8476         He also requested a change to config.guess, which I’ll forward
8477         upstream.
8478         * build-aux/ar-lib (func_file_conv):
8479         * build-aux/compile (func_file_conv):
8480         * build-aux/config.rpath (wl, with_gnu_ld)
8481         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8482         Treat msys like cygwin.
8484 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8486         regex: now back in sync with glibc
8487         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8488         regexec.c got merged into glibc and are now copies again.
8490 2019-10-27  Bruno Haible  <bruno@clisp.org>
8492         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8493         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8494         statement.
8495         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8496         32-bit CPUs.
8498 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8500         timespec-add, timespec-sub: simplify
8501         * lib/timespec-add.c (timespec_add):
8502         * lib/timespec-sub.c (timespec_sub):
8503         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8504         work on unsigned integers.
8506 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8508         nstrftime: speed up integer overflow checking
8509         * lib/nstrftime.c: Include intprops.h.
8510         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8511         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8512         instead of doing it by hand.
8513         * modules/nstrftime (Depends-on): Add intprops.
8515         Port better to GCC under macOS
8516         Work around macOS header that has ‘#define __has_builtin(x) 0’
8517         when compiled by GCC.  Apple really, really doesn’t want you to
8518         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8519         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8520         The fix is to not trust __has_builtin when being compiled by
8521         recent-enough GCC.
8522         * lib/intprops.h (__has_builtin)
8523         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8524         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8525         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8526         Remove.  All uses removed.
8527         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8528         directly, if defined and if not newer GCC.
8529         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8530         New macro, that use __has_builtin directly, if defined and if
8531         not newer GCC.
8532         (assume): Use them.
8534 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8536         maintainer-makefile: update rule for argmatch.
8537         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8539 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8541         bitset: let freeing functions accept NULL.
8542         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8543         given NULL.
8544         * lib/bitset.h: Document that.
8545         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8547 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8549         inttypes: use more-robust test for int range
8550         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8551         Problem reported by Dagobert Michelsen in:
8552         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8553         * lib/inttypes.in.h: Rely only on limits.h when checking
8554         int range.
8556 2019-10-15  Bruno Haible  <bruno@clisp.org>
8558         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8559         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8560         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8561         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8562         term_ostream_set_hyperlink): New functions.
8563         (term_styled_ostream_get_hyperlink_ref,
8564         term_styled_ostream_get_hyperlink_id,
8565         term_styled_ostream_set_hyperlink): New function aliases.
8567 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8569         update-copyright: use en dashes in .texi ranges
8570         * build-aux/update-copyright: Match year ranges like "1998--2019",
8571         which are used in the Autoconf manual.  Also, update ranges in
8572         .tex, .texi, and .texinfo files to use en dashes instead of
8573         hyphens.
8575 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8577         * config/srclist.txt: Remove posix/regex_internal.c for now.
8579 2019-10-13  Bruno Haible  <bruno@clisp.org>
8581         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8582         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8583         contents to the empty string.
8585 2019-10-12  Bruno Haible  <bruno@clisp.org>
8587         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8588         * tests/test-intprops.c (main): Disable two more tests when using
8589         HP-UX cc.
8591 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8593         Simplify and regularize regex use of ‘assert’
8594         Also, tell GCC about the asserts even when compiling without
8595         debugging, to give it further optimization opportunities.
8596         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8597         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8598         (parse_expression, parse_bracket_exp):
8599         * lib/regex_internal.c (build_wcs_buffer)
8600         (build_wcs_upper_buffer, re_string_reconstruct)
8601         (re_string_context_at):
8602         * lib/regexec.c (re_search_stub, re_copy_regs)
8603         (re_search_internal, prune_impossible_nodes, check_matching)
8604         (check_halt_state_context, set_regs, sift_states_backward)
8605         (build_sifted_states, transit_state_mb, transit_state_bkref)
8606         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8607         (match_ctx_add_subtop):
8608         Use it instead of plain ‘assert’.
8610 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8612         regex: omit debug assignment when not debugging
8613         * lib/regexec.c (re_search_internal) [!DEBUG]:
8614         Remove unnecessary assignment.
8616         regex: tell compiler there’s at most 256 arcs out
8617         Partly this is to help the reader (and maybe help GCC);
8618         partly this is to pacify Coverity.
8619         * lib/regex_internal.h: Include verify.h.
8620         * lib/regexec.c (group_nodes_into_DFAstates):
8621         Tell the compiler that ndests cannot exceed SBC_MAX.
8622         * modules/regex (Depends-on): Add ‘verify’.
8624         regex: simplify by assuming C99
8625         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8626         temporarily.
8627         * lib/regex_internal.h (lock_define, re_match_context_t):
8628         Simplify by assuming C99 macros and const.
8629         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8630         initializers.  Remove unnecessary assignment, as mctx is now
8631         safely initialized earlier.
8633         regex: avoid copying of uninitialized storage
8634         * config/srclist.txt: Comment out regcomp.c temporarily.
8635         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8636         Initialize even when not checking for lint, as the behavior is
8637         arguably undefined otherwise and Coverity warns about it.
8639 2019-10-06  Bruno Haible  <bruno@clisp.org>
8641         access tests: Fix test failure when run as root.
8642         * tests/test-access.c: Include root-uid.h.
8643         (geteuid): Define fallback.
8644         (main): Don't expect that writing to a read-only file would fail when
8645         running as root. Also, remove the created files at the end.
8646         * modules/access-tests (Depends-on): Add root-uid.
8647         (configure.ac): Test whether geteuid exists.
8649 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8651         users.txt: add GNU nano
8652         Nano has been making use of gnulib since March 2017, version 2.8.0.
8654 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8656         bootstrap: simplify debugging of wget failures
8657         Problem reported by Tim Rühsen in:
8658         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8659         * build-aux/bootstrap (po_download_command_format):
8660         Invoke wget with -nv instead of -q, to make debugging easier.
8662 2019-09-29  Bruno Haible  <bruno@clisp.org>
8664         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8665         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8666         'const' attribute.
8668 2019-09-29  Bruno Haible  <bruno@clisp.org>
8670         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8671         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8673 2019-09-28  Bruno Haible  <bruno@clisp.org>
8675         Update comments that refer to POSIX.
8676         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8677         sentence about trailing slashes.
8678         * lib/fflush.c: Clarify the reasoning.
8679         * tests/test-fflush2.c: Cite the relevant sentence.
8681 2019-09-28  Bruno Haible  <bruno@clisp.org>
8683         access: Document limitations on Windows.
8684         Suggested by Zaretskii <eliz@gnu.org>.
8685         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8687 2019-09-28  Bruno Haible  <bruno@clisp.org>
8689         findprog-in: Fix comment.
8690         Reported by Eli Zaretskii <eliz@gnu.org>.
8691         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8692         condition.
8693         * lib/stat.c (rpl_stat): Fix typo in comment.
8694         * lib/utime.c (_gl_utimens_windows): Likewise.
8696 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8698         Update URLs and associated text
8699         (Thanks to Bruno Haible for proofreading this patch.)
8700         Prefer https: to http: in URLs where either will do, for the usual
8701         security reasons.  I also updated broken and/or moved URLs
8702         discovered during the process. In a few places I had to resort to
8703         archive.org, since I didn't find the originals elsewhere.
8705 2019-09-15  Paul Smith  <psmith@gnu.org>
8706             Bruno Haible  <bruno@clisp.org>
8708         findprog-in: Set errno when the search fails.
8709         * lib/findprog-in.c: Include <errno.h>.
8710         (find_in_given_path): Set errno before returning NULL.
8711         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8712         Define the term "slash".
8714 2019-09-15  Bruno Haible  <bruno@clisp.org>
8716         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8717         * modules/findprog (Depends-on): Add access.
8718         * modules/findprog-lgpl (Depends-on): Likewise.
8719         * modules/findprog-in (Depends-on): Likewise.
8721 2019-09-15  Bruno Haible  <bruno@clisp.org>
8723         access: Add tests.
8724         * tests/test-access.c: New file.
8725         * modules/access-tests: New file.
8727         access: New module.
8728         * lib/unistd.in.h (access): New declaration.
8729         * lib/access.c: New file.
8730         * m4/access.m4: New file.
8731         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8732         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8733         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8734         REPLACE_ACCESS.
8735         * modules/access: New file.
8736         * tests/test-unistd-c++.cc (access): Check signature.
8737         * doc/posix-functions/access.texi: Mention the new module.
8739 2019-09-15  Bruno Haible  <bruno@clisp.org>
8741         fcntl-h: Fix compilation error of creat.c on MSVC.
8742         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8743         defined.
8745 2019-09-15  Bruno Haible  <bruno@clisp.org>
8747         creat: Add tests.
8748         * tests/test-creat.c: New file, based on tests/test-open.h.
8749         * modules/creat-tests: New file.
8751         creat: New module.
8752         * lib/fcntl.in.h (creat): New declaration.
8753         * lib/creat.c: New file, based on lib/open.c.
8754         * m4/creat.m4: New file.
8755         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8756         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8757         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8758         * modules/open (Files): Add m4/open-slash.m4.
8759         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8760         REPLACE_CREAT.
8761         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8762         * modules/creat: New file.
8763         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8764         * doc/posix-functions/creat.texi: Mention the new module.
8766 2019-09-15  Bruno Haible  <bruno@clisp.org>
8768         open tests: Enhance test.
8769         * tests/test-open.h (test_open): Test the creation of an executable
8770         regular file. Also improve initial cleanup.
8772 2019-09-15  Bruno Haible  <bruno@clisp.org>
8774         intprops tests: Avoid build failure with HP-UX cc.
8775         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8776         "error 4018: Macro param too large after substitution - use -H option.".
8778 2019-09-14  Bruno Haible  <bruno@clisp.org>
8780         Make autoconf tests work with -Werror=implicit-function-declaration.
8781         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8782         towupper() declaration.
8783         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8784         declaration.
8786 2019-09-14  Bruno Haible  <bruno@clisp.org>
8788         findprog-in: Better mimic the system on native Windows.
8789         Reported by Paul Smith <psmith@gnu.org>.
8790         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8791         non-empty suffixes when the file name already contains a '.'.
8793 2019-09-10  Bruno Haible  <bruno@clisp.org>
8795         wctob: Fix autoconf test.
8796         Based on patch by Florian Weimer <fweimer@redhat.com>.
8797         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
8799 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
8801         xhash: provide hash_xinitialize.
8802         Suggested by Egor Pugin <egor.pugin@gmail.com>
8803         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
8804         * modules/xhash, lib/xhash.c: New.
8805         * lib/hash.h (hash_xinitialize): New.
8807 2019-09-09  Bruno Haible  <bruno@clisp.org>
8809         findprog-in: Make exec optimization optional.
8810         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
8811         (find_in_given_path): Add optimize_for_exec parameter.
8812         * lib/findprog-in.c (find_in_given_path): Likewise.
8814 2019-09-08  Bruno Haible  <bruno@clisp.org>
8816         Add option to assume the best, not the worst, when cross-compiling.
8817         Suggested by Jonas Termansen <sortie@maxsi.org>.
8818         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8819         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8820         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8821         lt_cv_sys_argz_works.
8822         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8823         ac_cv_func_calloc_0_nonnull.
8824         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8825         --enable-cross-guesses for gl_cv_func_realpath_works.
8826         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8827         gl_cv_func_cbrtl_ieee.
8828         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8829         gl_cv_func_ceil_ieee.
8830         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8831         gl_cv_func_ceilf_ieee.
8832         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8833         gl_cv_func_ceill_ieee.
8834         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8835         ac_cv_func_chown_works.
8836         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8837         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8838         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8839         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8840         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8841         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8842         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8843         gl_cv_func_expl_works.
8844         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8845         gl_cv_func_expm1_ieee.
8846         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8847         gl_cv_func_expm1l_works.
8848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8849         gl_cv_func_open_directory_works.
8850         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8851         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8852         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8853         gl_cv_func_fchownat_empty_filename_works.
8854         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8855         gl_cv_func_fdopendir_works.
8856         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8857         gl_cv_func_floor_ieee.
8858         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8859         gl_cv_func_floorf_ieee.
8860         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8861         gl_cv_func_fma_works.
8862         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8863         gl_cv_func_fmaf_works.
8864         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8865         gl_cv_func_fmal_works.
8866         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8867         gl_cv_func_fmod_ieee.
8868         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8869         gl_cv_func_fmodf_ieee.
8870         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8871         gl_cv_func_fmodl_ieee.
8872         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8873         gl_cv_func_fpurge_works.
8874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8875         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8876         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8877         gl_cv_func_getcwd_null.
8878         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8879         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8880         gl_cv_func_working_getdelim.
8881         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8882         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8883         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8884         gl_cv_func_getgroups_works.
8885         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8886         am_cv_func_working_getline.
8887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8888         for gl_cv_func_getopt_gnu.
8889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8890         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8891         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8892         gl_cv_func_hypot_ieee.
8893         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8894         gl_cv_func_hypotf_ieee.
8895         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8896         gl_cv_func_hypotl_ieee.
8897         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8898         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8899         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8900         gl_cv_func_link_works.
8901         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8902         gl_cv_func_linkat_slash.
8903         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8904         gl_cv_func_log_ieee.
8905         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8906         gl_cv_func_logf_ieee.
8907         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8908         gl_cv_func_logl_works.
8909         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8910         gl_cv_func_log10_ieee.
8911         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8912         gl_cv_func_log10f_ieee.
8913         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8914         gl_cv_func_log10l_works.
8915         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8916         gl_cv_func_log1p_ieee.
8917         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8918         gl_cv_func_log1pf_ieee.
8919         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8920         gl_cv_func_log1pl_ieee.
8921         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8922         gl_cv_func_log2_ieee.
8923         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8924         gl_cv_func_log2f_ieee.
8925         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8926         --enable-cross-guesses for
8927         gl_cv_func_lstat_dereferences_slashed_symlink.
8928         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8929         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8930         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8931         gl_cv_C_locale_sans_EILSEQ.
8932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8933         gl_cv_func_memchr_works.
8934         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8935         gl_cv_func_memmem_works_always.
8936         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8937         gl_cv_func_memmem_works_fast.
8938         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8939         gl_cv_func_mkdir_trailing_slash_works,
8940         gl_cv_func_mkdir_trailing_dot_works.
8941         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8942         gl_cv_func_mkfifo_works.
8943         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8944         gl_cv_func_mknod_works.
8945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8946         gl_cv_func_working_mkstemp.
8947         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8948         gl_cv_func_working_mktime.
8949         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8950         gl_cv_func_modf_ieee.
8951         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8952         gl_cv_func_modff_ieee.
8953         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8954         gl_cv_func_modfl_ieee.
8955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8956         gl_cv_func_nanosleep.
8957         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8958         gl_cv_func_perror_works.
8959         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8960         gl_cv_func_printf_sizes_c99.
8961         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8962         gl_cv_func_printf_infinite.
8963         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8964         gl_cv_func_printf_infinite_long_double.
8965         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8966         gl_cv_func_printf_directive_a.
8967         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8968         gl_cv_func_printf_directive_f.
8969         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8970         gl_cv_func_printf_flag_zero.
8971         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8972         gl_cv_func_printf_enomem.
8973         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8974         gl_cv_func_snprintf_truncation_c99.
8975         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8976         gl_cv_func_snprintf_retval_c99.
8977         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8978         gl_cv_func_snprintf_directive_n.
8979         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8980         gl_cv_func_vsnprintf_zerosize_c99.
8981         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8982         gl_cv_func_pselect_detects_ebadf.
8983         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8984         Obey --enable-cross-guesses for
8985         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8986         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8987         gl_cv_func_ptsname_sets_errno.
8988         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8989         gl_cv_func_svid_putenv.
8990         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8991         gl_cv_func_readlink_works.
8992         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8993         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8994         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8995         gl_cv_func_re_compile_pattern_working.
8996         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8997         gl_cv_func_remainder_ieee.
8998         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8999         gl_cv_func_remainderf_ieee.
9000         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
9001         gl_cv_func_remainderl_ieee.
9002         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
9003         gl_cv_func_rintl_works.
9004         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
9005         gl_cv_func_rmdir_works.
9006         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
9007         gl_cv_func_round_ieee.
9008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
9009         gl_cv_func_roundf_ieee.
9010         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
9011         gl_cv_func_roundl_ieee.
9012         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
9013         gl_cv_func_select_detects_ebadf.
9014         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
9015         gl_cv_func_setenv_works.
9016         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
9017         gl_cv_func_unsetenv_works.
9018         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
9019         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
9020         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
9021         gl_cv_func_sleep_works.
9022         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
9023         gl_cv_func_stat_file_slash.
9024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
9025         gl_cv_func_stpncpy.
9026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
9027         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
9028         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
9029         gl_cv_func_strcasestr_linear.
9030         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
9031         gl_cv_func_working_strerror.
9032         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
9033         gl_cv_func_strerror_0_works.
9034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
9035         --enable-cross-guesses for gl_cv_func_strerror_r_works.
9036         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
9037         gl_cv_func_strstr_works_always.
9038         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
9039         gl_cv_func_strstr_linear.
9040         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
9041         gl_cv_func_strtod_works.
9042         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
9043         gl_cv_func_strtold_works.
9044         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
9045         gl_cv_func_symlink_works.
9046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
9047         gl_cv_func_symlinkat_works.
9048         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
9049         gl_cv_func_trunc_ieee.
9050         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
9051         gl_cv_func_truncf_ieee.
9052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
9053         gl_cv_func_truncl_ieee.
9054         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
9055         gl_cv_func_tzset_clobber.
9056         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
9057         gl_cv_func_ungetc_works.
9058         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
9059         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
9060         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
9061         gl_cv_func_usleep_works.
9062         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
9063         gl_cv_func_futimesat_works.
9064         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
9065         gl_cv_func_working_utimes.
9066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
9067         gl_cv_func_wcwidth_works.
9068         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
9069         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
9070         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
9071         links for testing. Obey --enable-cross-guesses for
9072         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
9073         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
9075 2019-09-08  Bruno Haible  <bruno@clisp.org>
9077         Clarify that cross-compilation guesses are guesses.
9078         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
9079         cross-compiling.
9081 2019-09-08  Bruno Haible  <bruno@clisp.org>
9083         chown: Fix configure output (regression from 2019-03-23).
9084         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
9085         gl_cv_func_chown_follows_symlink variable.
9087 2019-09-08  Bruno Haible  <bruno@clisp.org>
9089         findprog-in: New module.
9090         Suggested by Paul Smith <psmith@gnu.org>.
9091         * lib/findprog.h (find_in_given_path): New declaration.
9092         * lib/findprog-in.c: New file, based on lib/findprog.c.
9093         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
9094         * modules/findprog-in: New file.
9096 2019-09-08  Bruno Haible  <bruno@clisp.org>
9098         findprog: Remove unused dependency.
9099         * modules/findprog (Depends-on): Remove strdup.
9101 2019-09-08  Bruno Haible  <bruno@clisp.org>
9103         findprog: Remove test that is obsolete since 2006-04-24.
9104         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
9106 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9108         bitset: style changes
9109         * lib/bitset/vector.c (vbitset_resize): Factor computation.
9110         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
9111         xzalloc to xcalloc.
9112         Suggested by Paul Eggert.
9114 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9116         bitset: check memory allocation
9117         Reported by 江 祖铭 (Zu-Ming Jiang).
9118         With help from Paul Eggert.
9119         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
9120         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
9121         instead of realloc.
9122         When shrinking, accept failures.
9123         * lib/bitset/vector.c (vbitset_resize): Likewise.
9125 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9127         scratch_buffer: sync from glibc
9128         * config/srclist.txt: Add the scratch_buffer source
9129         code from glibc, since these should be in sync.
9130         Autoupdate.
9132 2019-09-07  Bruno Haible  <bruno@clisp.org>
9134         doc: Update for glibc 2.30.
9135         * doc/glibc-functions/gettid.texi: New file.
9136         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
9137         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
9138         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
9139         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
9140         * doc/glibc-functions/sem_clockwait.texi: New file.
9141         * doc/glibc-functions/tgkill.texi: New file.
9142         * doc/glibc-functions/twalk_r.texi: New file.
9143         * doc/gnulib.texi: Include them.
9144         (Glibc semaphore.h): New section.
9145         * doc/pastposix-functions/h_errno.texi: Update.
9146         * doc/posix-functions/*.texi: Likewise.
9148 2019-09-06  Bruno Haible  <bruno@clisp.org>
9150         symlink tests: Avoid test failure on Linux with Lustre file system.
9151         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
9152         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
9153         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
9155 2019-09-01  Bruno Haible  <bruno@clisp.org>
9157         gitsub.sh: Add support for shallow-cloning of subdirectories.
9158         * top/gitsub.sh (func_usage): Document allowed git options with
9159         'git pull'.
9160         (func_pull): Accept GIT_OPTIONS argument.
9161         (pull): Parse git options before complaining about too many arguments.
9162         Pass the git options to func_pull.
9164 2019-08-29  Bruno Haible  <bruno@clisp.org>
9166         lock: Fix cross-compilation guesses.
9167         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9168         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
9169         platforms.
9171 2019-08-28  Bruno Haible  <bruno@clisp.org>
9173         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
9174         Reported by Martin Storsjö <martin@martin.st> in
9175         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
9176         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
9177         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
9178         files from GCC 6 or newer, use an override through '#define', because
9179         the inline definitions in the platform's <cmath> cannot be overridden
9180         in another way.
9182 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9184         Revert macOS INT_MULTIPLY_WRAPV patch
9185         Problem reported by Bruno Haible in:
9186         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
9187         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
9188         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9189         Go back to working around the Clang bug on macOS.
9191 2019-08-27  Bruno Haible  <bruno@clisp.org>
9193         libtool-next-version: Fix error output.
9194         * build-aux/libtool-next-version (func_fatal_error): Fix the program
9195         name.
9197 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9199         Speed up INT_MULTIPLY_WRAPV on macOS
9200         Assume that __builtin_mul_overflow works OK with Clang on macOS.
9201         Mattias Engdegård says it’s safe to assume the relevant library
9202         is always available there.
9203         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
9204         New temporary internal macro.
9205         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9206         No need to work around the Clang bug on macOS.
9208 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9210         intprops.h, verify.h: port better to clang
9211         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9212         with Clang.  Problem reported privately by Mattias Engdegård.
9213         Also, insulate intprops.h and verify.h better against each other’s
9214         definitions of __has_builtin on non-Clang hosts.
9215         * lib/intprops.h (__has_builtin): Define a temporary substitute
9216         if __has_builtin is not already defined.
9217         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9218         New temporary internal macros.
9219         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
9220         Now two separate macros, replacing the old
9221         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
9222         __builtin_mul_overflow is like the rest.  All uses changed.
9223         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
9224         Adjust to above changes.
9225         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
9226         longer relevant.  All uses changed.
9227         * lib/verify.h (__has_builtin): Treat like intprops.h,
9228         so that the two .h files do not collide with each other.
9229         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
9230         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
9232 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9234         intprops: say why not Clang __builtin_add_overflow
9235         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
9236         Mention Clang in comment, responding to a query from
9237         Mattias Engdegård.
9239 2019-08-24  Bruno Haible  <bruno@clisp.org>
9241         doc: Document most of the files outside of modules.
9242         * doc/gnulib.texi (Build Infrastructure Files,
9243         Release Management Files): New chapters.
9245 2019-08-24  Bruno Haible  <bruno@clisp.org>
9247         bootstrap: Keep in sync with the 'gettext' module.
9248         Reported by Assaf Gordon in
9249         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
9250         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
9251         * build-aux/po/remove-potcdate.sin: Likewise.
9253 2019-08-24  Bruno Haible  <bruno@clisp.org>
9255         crypto/gc-sha512: Add tests.
9256         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
9257         * modules/crypto/gc-sha512-tests: New file.
9259         crypto/gc-sha256: Add tests.
9260         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
9261         * modules/crypto/gc-sha256-tests: New file.
9263         crypto/gc-sha256, crypto/gc-sha512: New modules.
9264         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
9265         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
9266         (MAX_DIGEST_SIZE): Set to 64.
9267         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
9268         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
9269         (gc_sha256, gc_sha512): New functions.
9270         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
9271         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
9272         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
9274 2019-08-24  Bruno Haible  <bruno@clisp.org>
9276         crypto/gc-sha1 tests: Improve output when the test fails.
9277         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
9278         output.
9280 2019-08-24  Bruno Haible  <bruno@clisp.org>
9282         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
9283         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
9284         LIBGCRYPT_HAS_MD_SM3.
9285         * lib/gc-libgcrypt.c: Include sm3.h.
9286         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
9287         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
9288         implementation if libgcrypt does not support SM3.
9290 2019-08-24  Bruno Haible  <bruno@clisp.org>
9292         crypto/gc-md2: Optimize and clarify code.
9293         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
9294         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
9295         is not needed.
9297 2019-08-24  Bruno Haible  <bruno@clisp.org>
9299         crypto/gc-md2: Add comment.
9300         * lib/gc-libgcrypt.c: Add comment.
9302 2019-08-24  Bruno Haible  <bruno@clisp.org>
9304         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
9305         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
9306         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
9307         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
9308         variable.
9310 2019-08-24  Bruno Haible  <bruno@clisp.org>
9312         crypto/gc: Fix link error with --with-libgcrypt.
9313         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
9314         AC_LIB_HAVE_LINKFLAGS invocation.
9316 2019-08-24  Bruno Haible  <bruno@clisp.org>
9318         crypto/gc: Access the module indicators correctly.
9319         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
9320         * lib/gc-libgcrypt.c: Likewise.
9322 2019-08-24  Bruno Haible  <bruno@clisp.org>
9324         crypto/gc: Fix configuration with --with-libgcrypt.
9325         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
9326         * modules/crypto/gc (Files): Add it.
9327         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
9329 2019-08-24  Bruno Haible  <bruno@clisp.org>
9331         Remove unused file.
9332         * m4/stat-macros.m4: Remove file.
9334 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9336         New strip-trailing-space option for srclist-update
9337         * config/srclist-update (fixfile): Support new option.
9338         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
9339         Use it.
9341 2019-08-20  Eric Blake  <eblake@redhat.com>
9343         accept4: Support SOCK_NONBLOCK, if defined
9344         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
9346         accept4: Fix compilation when native accept4() exists.
9347         Reported by Richard W.M. Jones <rjones@redhat.com> in
9348         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
9349         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
9351 2019-08-18  Bruno Haible  <bruno@clisp.org>
9353         Defeat -flto GCC optimization in math autoconf tests.
9354         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
9355         at <https://savannah.gnu.org/bugs/?56109>.
9356         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
9357         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
9358         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9359         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9360         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9361         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
9362         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9363         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9364         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9365         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9366         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9367         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9369 2019-08-17  Bruno Haible  <bruno@clisp.org>
9371         windows-spin: Implement declared functions.
9372         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
9373         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
9374         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
9375         name.
9377 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9379         intprops: port to Oracle Developer Studio 12.6
9380         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9381         typos that were in a section not compiled by GCC.
9383 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9385         intprops: support uchar, ushort _WRAPV dests
9386         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9387         when __builtin_add_overflow etc. and _Generic are not used.
9388         (_GL_INT_OP_WRAPV): Use it to support destinations that
9389         are unsigned char or unsigned short, even in compilers
9390         that lack __typeof__ and are not C11-compatible.
9392         intprops: pacify picky GCC
9393         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9394         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9395         possibly-incorrect result.
9396         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9397         about (A) used as a boolean, when A is an expression like 3 * 4.
9399         intprops: support unsigned *_WRAPV results
9400         Add support for unsigned, unsigned long, and unsigned long long
9401         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9402         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9403         bug with unsigned inputs reported by Eli Zaretskii in:
9404         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9405         * config/srclist.txt: Break the glibc connection for intprops.h
9406         temporarily, while more testing is done in Gnulib-using apps.
9407         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9408         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9409         Support unsigned results no narrower than unsigned int.  Report
9410         overflow correctly if some arguments are unsigned.
9411         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9412         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9413         the right thing with narrow args.
9414         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9415         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9416         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9417         * tests/test-intprops.c: Check for bugs and test new behavior.
9419 2019-08-14  Bruno Haible  <bruno@clisp.org>
9421         get_progname_of: New module.
9422         * lib/get_progname_of.h: New file.
9423         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9424         * lib/getprogname.c (getprogname): Tweak coding style.
9425         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9426         * modules/get_progname_of: New file.
9428 2019-08-14  Bruno Haible  <bruno@clisp.org>
9430         get_ppid_of: New module.
9431         * lib/get_ppid_of.h: New file.
9432         * lib/get_ppid_of.c: New file.
9433         * modules/get_ppid_of: New file.
9435 2019-08-13  Bruno Haible  <bruno@clisp.org>
9437         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9438         * tests/test-libtextstyle.c (main): Do not emit styling when the
9439         environment variable NO_COLOR is set.
9441 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9443         verify: improve diagnostic quality in recent GCC
9444         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9445         useful line number containing the top-level caller of the macro.
9446         So, bring back the older way of issuing a diagnostic containing
9447         the top-level call’s arg, so that it is easier to diagnose
9448         ‘verify’ failures with recent GCC.
9449         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9450         Bring back DIAGNOSTIC arg.  All callers changed.
9451         (verify): Just use _GL_VERIFY.
9453 2019-08-11  Bruno Haible  <bruno@clisp.org>
9455         localcharset: Add more aliases for OS/2.
9456         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9457         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9458         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9460 2019-08-10  Eric Blake  <eblake@redhat.com>
9462         configmake: Update advice on usage.
9463         * modules/configmake (Include): No longer necessary to include
9464         last, since configmake.h itself worries about collision avoidance.
9466 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9468         parse-datetime: fix 'T' military timezone handling
9469         * lib/parse-datetime.y (zone):
9470         follow-up to the previous commit: the 'T' case is handled outside the
9471         conversion table (used as either military timezone UTC-7 or ISO8601
9472         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9473         timezone letters.
9475 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9477         parse-datetime: fix military timezone letters
9478         Problem and trivial fix reported by Neil Hoggarth in:
9479         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9480         * lib/parse-datetime.y (military_table):
9481         Do it the right way, not the RFC 822 way.
9483 2019-08-08  Eric Blake  <eblake@redhat.com>
9485         configmake: Avoid namespace pollution issue on mingw.
9486         * modules/configmake (Makefile.am): If the project uses
9487         <winsock2.h>, include that header before defining DATADIR.
9489 2019-07-28  Bruno Haible  <bruno@clisp.org>
9491         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9492         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9494 2019-07-24  Bruno Haible  <bruno@clisp.org>
9496         pthread-h: Fix definitions of types and macros on mingw.
9497         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9498         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9499         not in use.
9500         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9501         'pthread-once' is not in use.
9502         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9503         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9504         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9505         in use.
9506         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9507         Define also when module 'pthread-rwlock' is not in use.
9508         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9509         also when module 'pthread-cond' is not in use.
9510         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9511         'pthread-tss' is not in use.
9512         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9513         use.
9515 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9517         crypto/gc: Cope with libgcrypt without SM3.
9518         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9520 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9522         backupfile: fix resource leak on memory failure
9523         Problem found by Coverity (CID 1484214).
9524         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9526 2019-07-22  Bruno Haible  <bruno@clisp.org>
9528         Avoid missing-declarations warning in various tests.
9529         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9530         test6, test_optional, test7, test8, test9, test10, test11, test12,
9531         test13, test14, test15, test_fun): Declare static.
9532         * tests/test-cnd.c (test_cnd_wait): Likewise.
9533         * tests/test-cond.c (test_cond): Likewise.
9535 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9537         pthread tests: Avoid missing-declarations warning.
9538         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9540 2019-07-19  Bruno Haible  <bruno@clisp.org>
9542         parse-datetime: Avoid warnings from bison versions >= 3.3.
9543         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9544         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9546 2019-07-19  Bruno Haible  <bruno@clisp.org>
9548         parse-datetime: Require Bison 2.4 or newer.
9549         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9550         Code taken from gettext's intl.m4.
9551         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9552         of YACC.
9554 2019-07-19  Bruno Haible  <bruno@clisp.org>
9556         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9557         * lib/areadlink-with-size.c: Include <string.h>.
9558         * lib/areadlinkat-with-size.c: Likewise.
9559         * lib/xgethostname.c: Likewise.
9560         * lib/xgetdomainname.c: Likewise.
9562 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9564         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9565         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9566         "%pure-parser".  The former is available since Bison 2.3b (2008),
9567         while the latter is marked as obsolete since version 3.4 (May 2019).
9569 2019-07-16  Bruno Haible  <bruno@clisp.org>
9571         update-copyright: Make it work again (regression from 2019-06-15).
9572         Reported by Brian C. Lane <bcl@redhat.com>.
9573         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9575 2019-07-14  Bruno Haible  <bruno@clisp.org>
9577         doc: Update info about <pthread.h>.
9578         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9579         of 'pthread'.
9581 2019-07-14  Bruno Haible  <bruno@clisp.org>
9583         pthread_sigmask tests: Use new multithread modules.
9584         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9585         glthread/thread.h.
9586         (main_thread, killer_thread): Change type to pthread_t.
9587         (main): Update accordingly.
9588         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9589         thread.
9591 2019-07-14  Bruno Haible  <bruno@clisp.org>
9593         pthread-tss: Add tests.
9594         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9595         tests/test-tss.c.
9596         * modules/pthread-tss-tests: New file.
9598 2019-07-14  Bruno Haible  <bruno@clisp.org>
9600         pthread-cond: Add tests.
9601         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9602         tests/test-cnd.c.
9603         * modules/pthread-cond-tests: New file.
9605 2019-07-14  Bruno Haible  <bruno@clisp.org>
9607         pthread-rwlock: Add tests.
9608         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9609         * modules/pthread-rwlock-tests: New file.
9611 2019-07-14  Bruno Haible  <bruno@clisp.org>
9613         pthread-mutex: Add tests.
9614         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9615         tests/test-mtx.c.
9616         * modules/pthread-mutex-tests: New file.
9618 2019-07-14  Bruno Haible  <bruno@clisp.org>
9620         pthread-once: Add tests.
9621         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9622         tests/test-call_once.c.
9623         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9624         tests/test-mtx.c.
9625         * modules/pthread-once-tests: New file.
9627 2019-07-14  Bruno Haible  <bruno@clisp.org>
9629         pthread-thread: Add tests.
9630         * tests/test-pthread-thread.c: New file, based on
9631         tests/test-thread_create.c and tests/test-thrd_create.c.
9632         * modules/pthread-thread-tests: New file.
9634 2019-07-14  Bruno Haible  <bruno@clisp.org>
9636         pthread: Turn into a convenience module.
9637         * lib/pthread.in.h: Remove declarations for extern inline functions.
9638         * lib/pthread.c: Remove file.
9639         * modules/pthread (Files): Remove it.
9640         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9641         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9642         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9643         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9644         GNULIB_PTHREAD.
9645         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9647 2019-07-14  Bruno Haible  <bruno@clisp.org>
9649         pthread-spin: New module.
9650         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9651         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9652         inline definitions.
9653         * lib/pthread-spin.c: New file.
9654         * m4/pthread-spin.m4: New file.
9655         * modules/pthread-spin: New file.
9656         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9657         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9658         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9659         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9660         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9662 2019-07-14  Bruno Haible  <bruno@clisp.org>
9664         pthread-tss: New module.
9665         * lib/pthread-tss.c: New file.
9666         * m4/pthread-tss.m4: New file.
9667         * modules/pthread-tss: New file.
9668         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9669         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9670         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9671         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9673 2019-07-14  Bruno Haible  <bruno@clisp.org>
9675         pthread-cond: New module.
9676         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9677         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9678         * lib/pthread-cond.c: New file.
9679         * m4/pthread-cond.m4: New file.
9680         * modules/pthread-cond: New file.
9681         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9682         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9683         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9684         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9685         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9686         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9687         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9688         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9690 2019-07-14  Bruno Haible  <bruno@clisp.org>
9692         pthread-rwlock: New module.
9693         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9694         * m4/pthread-rwlock.m4: New file.
9695         * modules/pthread-rwlock: New file.
9696         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9697         and the Android problem.
9698         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9699         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9700         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9701         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9702         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9703         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9704         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9705         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9706         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9707         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9709 2019-07-14  Bruno Haible  <bruno@clisp.org>
9711         pthread-mutex: New module.
9712         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9713         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9714         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9715         pthread_mutex_unlock): Remove inline definitions.
9716         * lib/pthread-mutex.c: New file.
9717         * m4/pthread-mutex.m4: New file.
9718         * modules/pthread-mutex: New file.
9719         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9720         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9721         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9722         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9723         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9724         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9725         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9726         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9727         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9728         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9729         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9730         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9732 2019-07-14  Bruno Haible  <bruno@clisp.org>
9734         pthread-once: New module.
9735         * lib/pthread-once.c: New file.
9736         * m4/pthread-once.m4: New file.
9737         * modules/pthread-once: New file.
9738         * doc/posix-functions/pthread_once.texi: Mention the new module.
9740 2019-07-14  Bruno Haible  <bruno@clisp.org>
9742         pthread-thread: New module.
9743         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9744         inline definitions.
9745         * lib/pthread-thread.c: New file.
9746         * m4/pthread-thread.m4: New file.
9747         * modules/pthread-thread: New file.
9748         * doc/posix-functions/pthread_create.texi: Mention the new module.
9749         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9750         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9751         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9752         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9753         * doc/posix-functions/pthread_self.texi: Likewise.
9754         * doc/posix-functions/pthread_equal.texi: Likewise.
9755         * doc/posix-functions/pthread_detach.texi: Likewise.
9756         * doc/posix-functions/pthread_join.texi: Likewise.
9757         * doc/posix-functions/pthread_exit.texi: Likewise.
9759 2019-07-14  Bruno Haible  <bruno@clisp.org>
9761         pthread-h: Prepare for adding new modules.
9762         * lib/pthread.in.h: Define the types and macros for each of the
9763         facilities separately.
9764         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9765         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9766         HAVE_PTHREAD_PROCESS_SHARED.
9767         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9768         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9769         HAVE_PTHREAD_PROCESS_SHARED.
9770         * modules/pthread-h (Makefile.am): Substitute
9771         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9772         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9774 2019-07-14  Bruno Haible  <bruno@clisp.org>
9776         pthread-h: Add declarations of essential pthread functions.
9777         * lib/pthread.in.h: Include snippets.
9778         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9779         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9780         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9781         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9782         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9783         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9784         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9785         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9786         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9787         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9788         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9789         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9790         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9791         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9792         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
9793         pthread_key_create, pthread_setspecific, pthread_getspecific,
9794         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
9795         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
9796         declarations.
9797         (pthread_mutex_timedlock): Move declaration.
9798         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
9799         declared.
9800         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
9801         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
9802         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
9803         HAVE_* and REPLACE_* variables for the new functions.
9804         * modules/pthread-h (Depends-on): Add snippet/c++defs,
9805         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
9806         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
9807         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
9808         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
9809         variables for the new functions. Split the sed script, to avoid the
9810         limit of 99 commands of HP-UX sed.
9811         * tests/test-pthread-c++.cc: Check the signature of the new functions.
9813 2019-07-14  Bruno Haible  <bruno@clisp.org>
9815         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
9816         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
9817         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9818         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9819         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9820         * modules/pthread-h (Depends-on): Add threadlib.
9821         (Link): Change to $(LIBTHREAD).
9822         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9823         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9825 2019-07-14  Bruno Haible  <bruno@clisp.org>
9827         pthread-h: Add C++ tests.
9828         * tests/test-pthread-c++.cc: New file.
9829         * modules/pthread-h-c++-tests: New file.
9831 2019-07-14  Bruno Haible  <bruno@clisp.org>
9833         pthread-h: Add tests.
9834         * tests/test-pthread.c: New file.
9835         * modules/pthread-h-tests: New file.
9837 2019-07-14  Bruno Haible  <bruno@clisp.org>
9839         pthread-h: New module.
9840         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9841         is 1.
9842         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9843         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9844         <pthread.h> pollutes the namespace; instead, prepare for generating a
9845         pthread.h always. Substitute HAVE_PTHREAD_H here.
9846         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9847         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9848         * modules/pthread-h: New file, based on modules/pthread.
9849         * modules/pthread: Rely on 'pthread-h'.
9850         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9851         Update.
9852         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9853         pthread.
9855 2019-07-14  Bruno Haible  <bruno@clisp.org>
9857         sched_yield: New module.
9858         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9859         (sched_yield): New declaration.
9860         * lib/sched_yield.c: New file.
9861         * m4/sched_yield.m4: New file.
9862         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9863         provide a replacement sched.h always. Test whether sched_yield is
9864         declared.
9865         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9866         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9867         (Makefile.am): Provide a replacement sched.h always. Substitute
9868         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9869         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9870         * modules/sched_yield: New file.
9871         * doc/posix-functions/sched_yield.texi: Mention the new module.
9873 2019-07-14  Bruno Haible  <bruno@clisp.org>
9875         windows-spin: New module.
9876         * lib/windows-spin.h: New file.
9877         * lib/windows-spin.c: New file.
9878         * modules/windows-spin: New file.
9880 2019-07-14  Bruno Haible  <bruno@clisp.org>
9882         windows-timedrwlock: New module.
9883         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9884         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9885         windows-cond.c.
9886         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9887         redefinition conflict with windows-timedrwlock.h.
9888         * modules/windows-timedrwlock: New file.
9890 2019-07-14  Bruno Haible  <bruno@clisp.org>
9892         windows-rwlock: New module.
9893         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9894         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9895         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9896         windows-initguard.h.
9897         (gl_rwlock_t): Define using glwthread_rwlock_t.
9898         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9899         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9900         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9901         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9902         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9903         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9904         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9905         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9906         glthread_rwlock_destroy_func): Remove declarations.
9907         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9908         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9909         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9910         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9911         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9912         functions.
9913         * modules/windows-rwlock: New file.
9914         * modules/lock (Depends-on): Add windows-rwlock.
9916 2019-07-14  Bruno Haible  <bruno@clisp.org>
9918         windows-thread: Add support for creating a thread in detached state.
9919         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9920         (glwthread_thread_create): Add attr argument.
9921         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9922         * lib/glthread/thread.h (glthread_create): Update.
9923         * lib/thrd.c (thrd_create): Update.
9925 2019-07-14  Bruno Haible  <bruno@clisp.org>
9927         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9928         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9929         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9930         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9931         * lib/windows-mutex.h: Update.
9932         * lib/windows-recmutex.h: Likewise.
9933         * lib/windows-timedmutex.h: Likewise.
9934         * lib/windows-timedrecmutex.h: Likewise.
9935         * lib/windows-cond.h: Likewise.
9936         * lib/glthread/lock.h: Likewise.
9937         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9938         lib/windows-spinlock.h.
9939         * modules/windows-recmutex (Files): Likewise.
9940         * modules/windows-timedmutex (Files): Likewise.
9941         * modules/windows-timedrecmutex (Files): Likewise.
9942         * modules/windows-cond (Files): Likewise.
9943         * modules/threads-h (Files): Likewise.
9945 2019-07-14  Bruno Haible  <bruno@clisp.org>
9947         doc: Fix info about pthread API in HP-UX.
9948         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9950 2019-07-14  Bruno Haible  <bruno@clisp.org>
9952         threads-h: Fix generation of threads.h.
9953         * modules/threads-h (Makefile.am): Insert the required header file
9954         snippets.
9956 2019-07-09  Bruno Haible  <bruno@clisp.org>
9958         striconveh test: Fix a compilation failure when iconv is not available.
9959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9960         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9961         HAVE_ICONV.
9963 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9965         argmatch: adjust columns for help2man.
9966         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9967         requires column 20 or more, return 20.
9969 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9971         areadlink-with-size: avoid realloc when size==0
9972         * lib/areadlink-with-size.c (areadlink_with_size):
9973         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9974         Reallocate at the end to the actual size, to avoid memory waste,
9975         as suggested by Bruno Haible.  But when the guessed size is zero -
9976         useful when the size is unknown - do the initial small readlink
9977         into the stack, to avoid that realloc in the usual case.
9979 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9981         areadlink-with-size: guess a buffer size with 0 size
9982         The size is usually taken from st_size, which can be zero,
9983         resulting in inefficient operation.
9984         Instead let zero select an initial memory allocation
9985         of 128 bytes, which most symlinks fit within.
9986         * lib/areadlink-with-size.c (areadlink_with_size):
9987         Start with a 128 byte buffer, for SIZE == 0.
9988         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9990 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9992         Replace manually crafted hex regexes with [:xdigit:]
9993         * build-aux/gitlog-to-changelog (parse_amend_file)
9994         (git_dir_option):
9995         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9996         This patch is backported from Emacs (Bug#36167).
9998 2019-07-06  Bruno Haible  <bruno@clisp.org>
10000         error: Fix documentation.
10001         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
10002         module provides.
10003         * doc/glibc-functions/error_message_count.texi: Likewise.
10004         * doc/glibc-functions/error_one_per_line.texi: Likewise.
10005         * doc/glibc-functions/error_print_progname.texi: Likewise.
10007 2019-07-06  Bruno Haible  <bruno@clisp.org>
10009         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
10010         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
10011         and older is unsupported.
10012         * doc/**/*.texi: Update.
10014 2019-07-06  Bruno Haible  <bruno@clisp.org>
10016         doc: Remove documentation of Linux libc5 as a supported platform.
10017         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
10018         to Linux libc5.
10019         * doc/posix-functions/iswalpha.texi: Likewise.
10020         * doc/posix-functions/iswblank.texi: Likewise.
10021         * doc/posix-functions/iswcntrl.texi: Likewise.
10022         * doc/posix-functions/iswdigit.texi: Likewise.
10023         * doc/posix-functions/iswgraph.texi: Likewise.
10024         * doc/posix-functions/iswlower.texi: Likewise.
10025         * doc/posix-functions/iswprint.texi: Likewise.
10026         * doc/posix-functions/iswpunct.texi: Likewise.
10027         * doc/posix-functions/iswspace.texi: Likewise.
10028         * doc/posix-functions/iswupper.texi: Likewise.
10029         * doc/posix-functions/iswxdigit.texi: Likewise.
10030         * doc/posix-functions/snprintf.texi: Likewise.
10031         * doc/posix-functions/vsnprintf.texi: Likewise.
10033 2019-07-06  Bruno Haible  <bruno@clisp.org>
10035         doc: Remove documentation of Tandem/NSK as a supported platform.
10036         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
10037         Tandem/NSK.
10038         * doc/**/*.texi: Update.
10040 2019-07-06  Bruno Haible  <bruno@clisp.org>
10042         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
10043         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
10044         and older is unsupported.
10045         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
10046         Mac OS X 10.4 and older.
10047         * doc/posix-functions/asinl.texi: Likewise.
10048         * doc/posix-functions/atanl.texi: Likewise.
10049         * doc/posix-functions/cosl.texi: Likewise.
10050         * doc/posix-functions/expl.texi: Likewise.
10051         * doc/posix-functions/frexpl.texi: Likewise.
10052         * doc/posix-functions/gettimeofday.texi: Likewise.
10053         * doc/posix-functions/logl.texi: Likewise.
10054         * doc/posix-functions/mkstemp.texi: Likewise.
10055         * doc/posix-functions/sinl.texi: Likewise.
10056         * doc/posix-functions/sqrtl.texi: Likewise.
10057         * doc/posix-functions/tanl.texi: Likewise.
10058         * doc/posix-functions/wcswidth.texi: Likewise.
10059         * doc/**/*.texi: Update.
10061 2019-07-06  Bruno Haible  <bruno@clisp.org>
10063         doc: Remove documentation of AIX 4 as a supported platform.
10064         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
10065         unsupported.
10066         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
10067         workarounds.
10068         * doc/posix-functions/strnlen.texi: Likewise.
10069         * doc/posix-headers/inttypes.texi: Likewise.
10070         * doc/**/*.texi: Update.
10072 2019-07-06  Bruno Haible  <bruno@clisp.org>
10074         doc: Remove documentation of HP-UX 10 as a supported platform.
10075         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
10076         unsupported.
10077         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
10078         workarounds.
10079         * doc/posix-functions/gmtime_r.texi: Likewise.
10080         * doc/posix-functions/localtime_r.texi: Likewise.
10081         * doc/posix-functions/mkstemp.texi: Likewise.
10082         * doc/**/*.texi: Update.
10084 2019-07-06  Bruno Haible  <bruno@clisp.org>
10086         doc: Remove documentation of Interix 3.5 as a supported platform.
10087         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
10088         unsupported.
10089         * doc/posix-functions/select.texi: Don't mention Interix specific
10090         workarounds.
10091         * doc/posix-headers/signal.texi: Likewise.
10092         * doc/**/*.texi: Update.
10094 2019-07-06  Bruno Haible  <bruno@clisp.org>
10096         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
10097         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
10098         unsupported.
10099         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
10100         workarounds.
10101         * doc/posix-functions/nl_langinfo.texi: Likewise.
10102         * doc/posix-functions/remainder.texi: Likewise.
10103         * doc/posix-functions/towlower.texi: Likewise.
10104         * doc/posix-functions/towupper.texi: Likewise.
10105         * doc/posix-functions/vsnprintf.texi: Likewise.
10106         * doc/posix-functions/wcscat.texi: Likewise.
10107         * doc/posix-functions/wcschr.texi: Likewise.
10108         * doc/posix-functions/wcscmp.texi: Likewise.
10109         * doc/posix-functions/wcscpy.texi: Likewise.
10110         * doc/posix-functions/wcscspn.texi: Likewise.
10111         * doc/posix-functions/wcslen.texi: Likewise.
10112         * doc/posix-functions/wcsncat.texi: Likewise.
10113         * doc/posix-functions/wcsncmp.texi: Likewise.
10114         * doc/posix-functions/wcsncpy.texi: Likewise.
10115         * doc/posix-functions/wcspbrk.texi: Likewise.
10116         * doc/posix-functions/wcsrchr.texi: Likewise.
10117         * doc/posix-functions/wcsspn.texi: Likewise.
10118         * doc/posix-headers/langinfo.texi: Likewise.
10119         * doc/posix-headers/signal.texi: Likewise.
10120         * doc/posix-headers/wchar.texi: Likewise.
10121         * doc/posix-headers/wctype.texi: Likewise.
10122         * doc/**/*.texi: Update.
10124 2019-07-05  Bruno Haible  <bruno@clisp.org>
10126         doc: Remove documentation of OSF/1 as supported platform.
10127         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
10128         unsupported.
10129         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
10130         workarounds.
10131         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
10132         * doc/glibc-functions/ptsname_r.texi: Likewise.
10133         * doc/posix-functions/ceil.texi: Likewise.
10134         * doc/posix-functions/ceilf.texi: Likewise.
10135         * doc/posix-functions/ceill.texi: Likewise.
10136         * doc/posix-functions/fchdir.texi: Likewise.
10137         * doc/posix-functions/floor.texi: Likewise.
10138         * doc/posix-functions/floorf.texi: Likewise.
10139         * doc/posix-functions/fmod.texi: Likewise.
10140         * doc/posix-functions/fmodf.texi: Likewise.
10141         * doc/posix-functions/fmodl.texi: Likewise.
10142         * doc/posix-functions/log.texi: Likewise.
10143         * doc/posix-functions/logf.texi: Likewise.
10144         * doc/posix-functions/logl.texi: Likewise.
10145         * doc/posix-functions/log10.texi: Likewise.
10146         * doc/posix-functions/log10f.texi: Likewise.
10147         * doc/posix-functions/log10l.texi: Likewise.
10148         * doc/posix-functions/log2.texi: Likewise.
10149         * doc/posix-functions/log2f.texi: Likewise.
10150         * doc/posix-functions/log2l.texi: Likewise.
10151         * doc/posix-functions/mbrtowc.texi: Likewise.
10152         * doc/posix-functions/recv.texi: Likewise.
10153         * doc/posix-functions/recvfrom.texi: Likewise.
10154         * doc/posix-functions/remainder.texi: Likewise.
10155         * doc/posix-functions/remainderf.texi: Likewise.
10156         * doc/posix-functions/remainderl.texi: Likewise.
10157         * doc/posix-functions/round.texi: Likewise.
10158         * doc/posix-functions/roundf.texi: Likewise.
10159         * doc/posix-functions/roundl.texi: Likewise.
10160         * doc/posix-functions/send.texi: Likewise.
10161         * doc/posix-functions/sendto.texi: Likewise.
10162         * doc/posix-functions/setenv.texi: Likewise.
10163         * doc/posix-functions/snprintf.texi: Likewise.
10164         * doc/posix-functions/tcgetsid.texi: Likewise.
10165         * doc/posix-functions/trunc.texi: Likewise.
10166         * doc/posix-functions/truncf.texi: Likewise.
10167         * doc/posix-functions/truncl.texi: Likewise.
10168         * doc/posix-functions/ttyname_r.texi: Likewise.
10169         * doc/posix-functions/unsetenv.texi: Likewise.
10170         * doc/posix-functions/wcsrtombs.texi: Likewise.
10171         * doc/posix-headers/sys_select.texi: Likewise.
10172         * doc/posix-headers/wchar.texi: Likewise.
10173         * doc/posix-headers/wctype.texi: Likewise.
10174         * doc/**/*.texi: Update.
10176 2019-07-05  Bruno Haible  <bruno@clisp.org>
10178         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
10179         * doc/**/*.texi: Update.
10181 2019-07-05  Bruno Haible  <bruno@clisp.org>
10183         doc: Remove documentation of Solaris 8 and older as supported platforms.
10184         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
10185         unsupported.
10186         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
10187         workarounds.
10188         * doc/posix-functions/memcmp.texi: Likewise.
10189         * doc/posix-functions/rename.texi: Likewise.
10190         * doc/posix-functions/tzset.texi: Likewise.
10191         * doc/posix-headers/wctype.texi: Likewise.
10192         * doc/**/*.texi: Update.
10194 2019-07-05  Bruno Haible  <bruno@clisp.org>
10196         doc: Remove documentation of Interix 3.5 as a supported platform.
10197         * doc/**/*.texi: Update.
10199 2019-07-05  Bruno Haible  <bruno@clisp.org>
10201         doc: Remove documentation of BeOS as a supported platform.
10202         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
10203         unsupported.
10204         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
10205         * doc/posix-functions/getdelim.texi: Likewise.
10206         * doc/**/*.texi: Update.
10208 2019-07-05  Bruno Haible  <bruno@clisp.org>
10210         thread, lock, cond, tls: Remove support for Pth threads.
10211         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10212         --enable-threads=pth any more.
10213         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
10214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
10215         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
10216         threads and ISO C11 threads.
10217         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
10218         * lib/glthread/lock.h: Likewise.
10219         * lib/glthread/lock.c: Likewise.
10220         * lib/glthread/cond.h: Likewise.
10221         * lib/glthread/cond.c: Likewise.
10222         * lib/glthread/tls.h: Likewise.
10223         * lib/glthread/tls.c: Likewise.
10224         * lib/glthread/yield.h: Likewise.
10225         * lib/regex_internal.h: Likewise.
10226         * tests/test-thread_create.c: Likewise.
10227         * tests/test-lock.c: Likewise.
10228         * tests/test-cond.c: Likewise.
10229         * tests/test-tls.c: Likewise.
10230         * tests/test-rwlock1.c: Don't include glthread/yield.h.
10231         (main): Sleep without calling gl_thread_yield.
10233 2019-07-05  Bruno Haible  <bruno@clisp.org>
10235         thread, lock, cond, tls: Remove support for old Solaris threads.
10236         Solaris >= 2.5.1 has POSIX threads.
10237         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10238         --enable-threads=solaris any more.
10239         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
10240         * lib/glthread/thread.c: Update comment.
10241         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
10242         * lib/glthread/lock.h: Likewise.
10243         * lib/glthread/lock.c: Likewise.
10244         * lib/glthread/cond.h: Likewise.
10245         * lib/glthread/cond.c: Likewise.
10246         * lib/glthread/tls.h: Likewise.
10247         * lib/glthread/tls.c: Likewise.
10248         * lib/glthread/yield.h: Likewise.
10249         * lib/regex_internal.h: Likewise.
10250         * tests/test-thread_create.c: Likewise.
10251         * tests/test-lock.c: Likewise.
10252         * tests/test-cond.c: Likewise.
10253         * tests/test-tls.c: Likewise.
10255 2019-07-05  Bruno Haible  <bruno@clisp.org>
10257         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
10258         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
10259         needed size is equal to the allocated size.
10260         * lib/getcwd.c (__getcwd): Likewise.
10262 2019-07-05  Bruno Haible  <bruno@clisp.org>
10264         xgetdomainname: Don't return an excessive memory allocation.
10265         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
10266         before returning it.
10268 2019-07-05  Bruno Haible  <bruno@clisp.org>
10270         xgethostname: Don't return an excessive memory allocation.
10271         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
10272         returning it.
10274 2019-07-05  Bruno Haible  <bruno@clisp.org>
10276         areadlinkat-with-size: Don't return an excessive memory allocation.
10277         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
10278         before returning it.
10280 2019-07-05  Bruno Haible  <bruno@clisp.org>
10282         areadlink-with-size: Don't return an excessive memory allocation.
10283         Reported by Andreas Dilger <adilger@whamcloud.com>.
10284         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
10285         before returning it.
10287 2019-07-03  Bruno Haible  <bruno@clisp.org>
10289         renameatu: Fix test failure on MSVC.
10290         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
10291         empty string.
10293 2019-07-03  Bruno Haible  <bruno@clisp.org>
10295         mbrtowc: Fix invalid use of mbtowc() on MSVC.
10296         * lib/mbrtowc.c: Include glthread/lock.h.
10297         (mbtowc_lock): New variable.
10298         (mbrtowc): Treat UTF-8 encoding without locking. For the other
10299         encodings, explicitly reset the internal state of mbtowc, and protect
10300         this through a lock.
10301         * modules/mbrtowc (Depends-on): Add lock.
10303 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
10305         argmatch: don't define _ in the header.
10306         Reported by Jim Meyering.
10307         * lib/argmatch.h (N_, _): Don't define.
10308         Use gettext instead.
10309         * lib/argmatch.h (_): Define.
10310         * tests/test-argmatch.c (N_): Define.
10312 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10314         verify: document ‘assume’ better
10315         * lib/verify.h: Reword doc (Bug#36370).
10317 2019-07-02  Bruno Haible  <bruno@clisp.org>
10319         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
10320         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
10321         "CPutf8".
10322         * lib/nl_langinfo.c (ctype_codeset): Likewise.
10324 2019-07-02  Bruno Haible  <bruno@clisp.org>
10326         getcwd: Fix crash when invoked with size = 0 on MSVC.
10327         * lib/getcwd.c: Include msvc-inval.h.
10328         (getcwd_nothrow): New function/macro.
10329         (getcwd_system): New macro.
10330         (__getcwd): Use it instead of getcwd.
10331         * modules/getcwd (Depends-on): Add msvc-inval.
10332         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
10334 2019-07-02  Bruno Haible  <bruno@clisp.org>
10336         nonblocking-pipe tests: Fix test failure on MSVC.
10337         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
10338         native Windows.
10340 2019-07-02  Bruno Haible  <bruno@clisp.org>
10342         usleep: Implement with millisecond resolution on native Windows.
10343         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
10344         * doc/pastposix-functions/usleep.texi: Update accordingly.
10346 2019-07-02  Bruno Haible  <bruno@clisp.org>
10348         lstat tests: Fix test failure on MSVC.
10349         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
10350         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10352 2019-07-02  Bruno Haible  <bruno@clisp.org>
10354         stat tests: Fix test failure on MSVC.
10355         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
10356         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10358 2019-07-02  Bruno Haible  <bruno@clisp.org>
10360         getaddrinfo tests: Fix test failure on MSVC.
10361         * tests/test-getaddrinfo.c: Include sockets.h.
10362         (main): Invoke gl_sockets_startup.
10363         * modules/getaddrinfo-tests (Depends-on): Add sockets.
10365 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
10367         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
10368         * lib/poll.c: Call Windows native select() with Windows native timeval.
10370 2019-06-30  Bruno Haible  <bruno@clisp.org>
10372         argmatch: Fix compilation errors.
10373         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
10374         * tests/test-argmatch.c (main): Update after last-minute function names
10375         change.
10377 2019-06-30  Bruno Haible  <bruno@clisp.org>
10379         Include <stdlib.h> when needed.
10380         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10381         * lib/fcntl.c: Likewise.
10382         * lib/mbscasestr.c: Likewise.
10383         * lib/mbssep.c: Likewise.
10384         * lib/mbsstr.c: Likewise.
10385         * lib/openat.c: Include <stdlib.h>, needed for free().
10386         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10387         abort().
10389 2019-06-30  Bruno Haible  <bruno@clisp.org>
10391         Include <stdlib.h> when needed.
10392         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10393         * lib/faccessat.c: Likewise.
10394         * lib/fchmodat.c: Likewise.
10395         * lib/fchownat.c: Likewise.
10396         * lib/fstatat.c: Likewise.
10397         * lib/mkfifoat.c: Likewise.
10398         * lib/mknodat.c: Likewise.
10399         * lib/readlinkat.c: Likewise.
10400         * lib/symlinkat.c: Likewise.
10401         * lib/utimensat.c: Likewise.
10402         * lib/mkdirat.c: Likewise. Include also the specification header.
10404 2019-06-30  Bruno Haible  <bruno@clisp.org>
10406         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10407         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10408         from gl_PREREQ_SYS_H_SOCKET.
10409         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10410         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10411         gl_PREREQ_SYS_H_WS2TCPIP.
10412         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10413         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10414         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10416 2019-06-30  Bruno Haible  <bruno@clisp.org>
10418         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10419         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10420         REPLACE_INET_NTOP to 1 always.
10421         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10422         REPLACE_INET_PTON to 1 always.
10424 2019-06-30  Bruno Haible  <bruno@clisp.org>
10426         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10427         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10428         not REPLACE_INET_NTOP.
10430 2019-06-30  Bruno Haible  <bruno@clisp.org>
10432         poll: Add comment.
10433         * lib/poll.c: Add comment about WSAPoll.
10435 2019-06-30  Bruno Haible  <bruno@clisp.org>
10437         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10438         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10439         * lib/poll.in.h: Include <winsock2.h>.
10440         (POLL*, pollfd): Override on native Windows.
10441         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10442         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10443         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10445 2019-06-28  Bruno Haible  <bruno@clisp.org>
10447         accept4: Fix compilation error on OpenIndiana.
10448         Reported by Michal Nowak <mnowak@startmail.com>
10449         via Mark H Weaver <mhw@netris.org>.
10450         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10451         whether it exists as a function.
10453 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10455         strverscmp: sync from glibc
10456         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10457         comments, include libc-config.h, define __strverscmp to be
10458         strverscmp, and don’t assume types line uint8_t and int8_t that
10459         that C99 doesn’t guarantee.
10460         [!_LIBC]: Include libc-config.h; define __strverscmp.
10461         Include stdint.h.
10462         (__strverscmp): Assume C99.  Use uint_least8_t
10463         and int_least8_t instead of unsigned char and signed char.
10464         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10466 2019-06-25  Bruno Haible  <bruno@clisp.org>
10468         tss tests: Add tests for destructors and races.
10469         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10470         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10471         functions.
10472         (main): Invoke them.
10473         * modules/tls-tests (Depends-on): Add mtx.
10475 2019-06-25  Bruno Haible  <bruno@clisp.org>
10477         tls tests: Add tests for destructors and races.
10478         * tests/test-tls.c: Include glthread/lock.h.
10479         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10480         functions.
10481         (main): Invoke them.
10482         * modules/tls-tests (Depends-on): Add lock.
10484 2019-06-25  Bruno Haible  <bruno@clisp.org>
10486         windows-tls: Implement TLS key destructors for native Windows.
10487         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10488         declaration.
10489         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10490         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10491         (dtor_table_init_once, dtor_table_lock: New variables.
10492         (struct dtor): New type.
10493         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10494         dtor_processing_threads): New variables.
10495         (dtor_table_initialize, dtor_table_ensure_initialized,
10496         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10497         functions.
10498         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10499         handle non-NULL destructors.
10500         * modules/windows-tls (Depends-on): Add windows-once.
10501         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10502         Use the functions declared in windows-tls.h.
10503         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10504         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10505         * lib/windows-thread.c: Include windows-tls.h.
10506         (wrapper_func, glwthread_thread_exit): Invoke
10507         glwthread_tls_process_destructors.
10508         * modules/windows-thread (Depends-on): Add windows-tls.
10510 2019-06-25  Bruno Haible  <bruno@clisp.org>
10512         threadlib: Avoid autoconf warning "was expanded before it was required".
10513         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10515 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10517         argmatch: remove duplicate const qualifier
10518         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10520 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10522         unistd: stddef.h and sys/types.h namespace cleanup
10523         * lib/unistd.in.h [__GLIBC__]:
10524         Do not include stddef.h or sys/types.h.
10525         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10526         supposed to declare off_t and ssize_t.  Problem found when looking
10527         at why @GNULIB_PWRITE@ was different from the newly-added
10528         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10530 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10532         maintainer-makefile: restore portability to non-GNU awks
10533         Reported by Tim Rühsen.
10534         * top/maint.mk (AWK): New variable.  Use it.
10535         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10537 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10539         Document setvbuf _IOLBF problem
10540         * doc/posix-functions/setvbuf.texi (setvbuf):
10541         Document MS-Windows portability problem with _IOLBF.
10543         Document lseek SEEK_DATA/SEEK_HOLE
10544         * doc/posix-functions/lseek.texi (lseek):
10545         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10547 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10549         argmatch: put all the docs member last.
10550         Reported by Bruno Haible.
10551         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10552         member before the docs done.
10553         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10555 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10557         argmatch: add support to generate the usage message.
10558         * lib/argmatch.c: Move some #includes and gettext support to...
10559         * lib/argmatch.h: here.
10560         (ARGMATCH_DEFINE_GROUP): New macro.
10561         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10562         (argmatch_backup_group): New.
10563         (CHECK): New.
10564         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10565         argmatch_backup_argument and argmatch_backup_usage.
10566         * modules/argmatch: We depend on c99.
10567         * doc/argmatch.texi (Recognizing Option Arguments): New.
10568         * doc/gnulib.texi: Use it.
10570 2019-06-21  Bruno Haible  <bruno@clisp.org>
10572         thrd: Add comment.
10573         * lib/thrd.c (pthread_main_func): Add comment.
10575 2019-06-21  Bruno Haible  <bruno@clisp.org>
10577         threads-h: Define 'thread_local' if and only if it actually works.
10578         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10579         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10580         Oracle Solaris Studio C. Compile a simple program, to see whether
10581         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10582         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10583         * lib/threads.in.h (thread_local): Undefine if it does not work.
10584         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10585         (Link): Mention LIBTHREADLOCAL.
10586         * tests/test-threads.c: Don't check that thread_local is defined.
10587         * tests/test-thread_local.c: New file.
10588         * modules/threads-h-tests (Files): Add it and macros.h.
10589         (Depends-on): Add thrd and stdint.
10590         (configure.ac): Test whether 'alarm' is declared.
10591         (Makefile.am): Arrange to build and link test-thread_local.
10592         * doc/posix-headers/threads.texi: Mention the platforms that don't
10593         support 'thread_local'.
10595 2019-06-20  Bruno Haible  <bruno@clisp.org>
10597         threads-h: Simplify link dependencies.
10598         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10599         Don't set LTLIBSTDTHREAD.
10600         * modules/thrd (Link): Simplify accordingly.
10601         * modules/mtx (Link): Likewise.
10602         * modules/cnd (Link): Likewise.
10603         * modules/tss (Link): Likewise.
10604         * modules/threads (Link): Likewise.
10606 2019-06-20  Bruno Haible  <bruno@clisp.org>
10608         threads-h: Fix link error on FreeBSD 11.
10609         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10610         also with -lpthread.
10612 2019-06-20  Bruno Haible  <bruno@clisp.org>
10614         threadlib: Fix typo (regression from today).
10615         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10617 2019-06-20  Bruno Haible  <bruno@clisp.org>
10619         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10620         * lib/windows-thread.c: Include <errno.h>.
10621         * lib/windows-tls.c: Likewise.
10623 2019-06-20  Bruno Haible  <bruno@clisp.org>
10625         tss tests: Small improvement.
10626         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10628 2019-06-20  Bruno Haible  <bruno@clisp.org>
10630         threads: New module.
10631         * modules/threads: New file.
10633 2019-06-20  Bruno Haible  <bruno@clisp.org>
10635         tss: Add tests.
10636         * tests/test-tss.c: New file, based on tests/test-tls.c.
10637         * modules/tss-tests: New file.
10639 2019-06-20  Bruno Haible  <bruno@clisp.org>
10641         cnd: Add tests.
10642         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10643         * modules/cnd-tests: New file.
10645 2019-06-20  Bruno Haible  <bruno@clisp.org>
10647         mtx: Add tests.
10648         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10649         * tests/test-call_once.c: New file, based on tests/test-once.c.
10650         * modules/mtx-tests: New file.
10652 2019-06-20  Bruno Haible  <bruno@clisp.org>
10654         thrd: Add tests.
10655         * tests/test-thrd_create.c: New file, based on
10656         tests/test-thread_create.c.
10657         * tests/test-thrd_current.c: New file, based on
10658         tests/test-thread_self.c.
10659         * modules/thrd-tests: New file.
10661 2019-06-20  Bruno Haible  <bruno@clisp.org>
10663         tss: New module.
10664         * lib/tss.c: New file.
10665         * modules/tss: New file.
10666         * doc/posix-functions/tss_create.texi: Mention the new module.
10667         * doc/posix-functions/tss_set.texi: Likewise.
10668         * doc/posix-functions/tss_get.texi: Likewise.
10669         * doc/posix-functions/tss_delete.texi: Likewise.
10671 2019-06-20  Bruno Haible  <bruno@clisp.org>
10673         cnd: New module.
10674         * lib/cnd.c: New file.
10675         * modules/cnd: New file.
10676         * doc/posix-functions/cnd_init.texi: Mention the new module.
10677         * doc/posix-functions/cnd_wait.texi: Likewise.
10678         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10679         * doc/posix-functions/cnd_signal.texi: Likewise.
10680         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10681         * doc/posix-functions/cnd_destroy.texi: Likewise.
10683 2019-06-20  Bruno Haible  <bruno@clisp.org>
10685         mtx: New module.
10686         * lib/mtx.c: New file.
10687         * modules/mtx: New file.
10688         * doc/posix-functions/call_once.texi: Mention the new module.
10689         * doc/posix-functions/mtx_init.texi: Likewise.
10690         * doc/posix-functions/mtx_lock.texi: Likewise.
10691         * doc/posix-functions/mtx_trylock.texi: Likewise.
10692         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10693         * doc/posix-functions/mtx_unlock.texi: Likewise.
10694         * doc/posix-functions/mtx_destroy.texi: Likewise.
10696 2019-06-20  Bruno Haible  <bruno@clisp.org>
10698         thrd: New module.
10699         * lib/thrd.c: New file.
10700         * m4/thrd.m4: New file.
10701         * modules/thrd: New file.
10702         * doc/posix-functions/thrd_current.texi: Mention the new module.
10703         * doc/posix-functions/thrd_detach.texi: Likewise.
10704         * doc/posix-functions/thrd_equal.texi: Likewise.
10705         * doc/posix-functions/thrd_exit.texi: Likewise.
10706         * doc/posix-functions/thrd_sleep.texi: Likewise.
10707         * doc/posix-functions/thrd_yield.texi: Likewise.
10708         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10709         AIX bug.
10710         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10711         AIX and Solaris bugs.
10713 2019-06-20  Bruno Haible  <bruno@clisp.org>
10715         threads-h: Add tests.
10716         * tests/test-threads.c: New file.
10717         * modules/threads-h-tests: New file.
10718         * tests/test-threads-c++.cc: New file.
10719         * modules/threads-h-c++-tests: New file.
10721 2019-06-20  Bruno Haible  <bruno@clisp.org>
10723         threads-h: New module.
10724         * lib/threads.in.h: New file.
10725         * m4/threads.m4: New file.
10726         * m4/yield.m4 (gl_YIELD): Update comment.
10727         * modules/threads-h: New file.
10728         * modules/yields (configure.ac): Use AC_REQUIRE.
10729         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10730         bugs.
10732 2019-06-20  Bruno Haible  <bruno@clisp.org>
10734         windows-thread: New module.
10735         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10736         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10737         * lib/glthread/thread.h: Include windows-thread.h.
10738         (gl_thread_t): Define using glwthread_thread_t.
10739         (glthread_create): Define using glwthread_thread_create.
10740         (glthread_join): Define using glwthread_thread_join.
10741         (gl_thread_self): Define using glwthread_thread_self.
10742         (gl_thread_exit): Define using glwthread_thread_exit.
10743         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10744         gl_thread_exit_func): Remove declarations.
10745         * lib/glthread/thread.c (self_key): Remove variable.
10746         (do_init_self_key, init_self_key): Remove functions.
10747         (struct gl_thread_struct): Remove type.
10748         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10749         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10750         functions.
10751         * modules/windows-thread: New file.
10752         * modules/thread (Depends-on): Add windows-thread.
10754 2019-06-20  Bruno Haible  <bruno@clisp.org>
10756         windows-tls: New module.
10757         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10758         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10759         * lib/glthread/tls.h: Include windows-tls.h.
10760         (gl_tls_key_t): Define using glwthread_tls_key_t.
10761         * modules/windows-tls: New file.
10762         * modules/tls (Depends-on): Add windows-tls.
10764 2019-06-20  Bruno Haible  <bruno@clisp.org>
10766         windows-cond: New module.
10767         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10768         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10769         * lib/glthread/cond.h: Include windows-cond.h.
10770         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10771         (gl_cond_t): Define using glwthread_cond_t.
10772         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10773         (glthread_cond_init): Define using glwthread_cond_init.
10774         (glthread_cond_wait): Define using glwthread_cond_wait.
10775         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10776         (glthread_cond_signal): Define using glwthread_cond_signal.
10777         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10778         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10779         (glthread_cond_init_func, glthread_cond_wait_func,
10780         glthread_cond_timedwait_func, glthread_cond_signal_func,
10781         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10782         declarations.
10783         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10784         types.
10785         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10786         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10787         glthread_cond_init_func, glthread_cond_wait_func,
10788         glthread_cond_timedwait_func, glthread_cond_signal_func,
10789         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10790         functions.
10791         * modules/windows-cond: New file.
10792         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
10794 2019-06-20  Bruno Haible  <bruno@clisp.org>
10796         windows-timedrecmutex: New module.
10797         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
10798         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
10799         * modules/windows-timedrecmutex: New file.
10801 2019-06-20  Bruno Haible  <bruno@clisp.org>
10803         windows-timedmutex: New module.
10804         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
10805         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
10806         * modules/windows-timedmutex: New file.
10808 2019-06-20  Bruno Haible  <bruno@clisp.org>
10810         windows-recmutex: New module.
10811         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
10812         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
10813         * lib/glthread/lock.h: Include windows-recmutex.h.
10814         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
10815         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
10816         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
10817         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10818         (glthread_recursive_lock_unlock): Define using
10819         glwthread_recmutex_unlock.
10820         (glthread_recursive_lock_destroy): Define using
10821         glwthread_recmutex_destroy.
10822         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10823         glthread_recursive_lock_unlock_func,
10824         glthread_recursive_lock_destroy_func): Remove declarations.
10825         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10826         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10827         glthread_recursive_lock_destroy_func): Remove functions.
10828         * modules/windows-recmutex: New file.
10829         * modules/lock (Depends-on): Add windows-recmutex.
10831 2019-06-20  Bruno Haible  <bruno@clisp.org>
10833         windows-mutex: New module.
10834         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10835         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10836         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10837         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10838         (gl_spinlock_t): Remove type.
10839         (gl_lock_t): Define using glwthread_mutex_t.
10840         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10841         (glthread_lock_init): Define using glwthread_mutex_init.
10842         (glthread_lock_lock): Define using glwthread_mutex_lock.
10843         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10844         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10845         (glthread_lock_init_func, glthread_lock_lock_func,
10846         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10847         declarations.
10848         Use glwthread_spinlock_t instead of gl_spinlock_t.
10849         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10850         GLWTHREAD_SPINLOCK_INIT.
10851         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10852         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10853         functions.
10854         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10855         gl_spinlock_t.
10856         * modules/windows-mutex: New file.
10857         * modules/lock (Depends-on): Add windows-mutex.
10859 2019-06-20  Bruno Haible  <bruno@clisp.org>
10861         windows-once: New module.
10862         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10863         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10864         * lib/glthread/lock.h: Include windows-once.h.
10865         (gl_once_t): Define using glwthread_once_t.
10866         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10867         (glthread_once): Define using glwthread_once.
10868         (glthread_once_func): Remove declaration.
10869         * lib/glthread/lock.c (glthread_once_func): Remove function.
10870         * modules/windows-once: New file.
10871         * modules/lock (Depends-on): Add windows-once.
10873 2019-06-20  Bruno Haible  <bruno@clisp.org>
10875         lock, cond: Avoid possible counter wraparound on Windows.
10876         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10877         field of the guard unchanged if it was already positive.
10878         (glthread_rwlock_rdlock_func): Likewise.
10879         (glthread_rwlock_wrlock_func): Likewise.
10880         (glthread_recursive_lock_lock_func): Likewise.
10881         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10882         (glthread_cond_timedwait_func): Likewise.
10884 2019-06-20  Bruno Haible  <bruno@clisp.org>
10886         cond: Make glthread_cond_timedwait more reliable on Windows.
10887         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10888         condition variable before looking at the current time.
10890 2019-06-20  Bruno Haible  <bruno@clisp.org>
10892         pthread_mutex_timedlock: New module.
10893         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10894         new declaration.
10895         * lib/pthread_mutex_timedlock.c: New file.
10896         * m4/pthread_mutex_timedlock.m4: New file.
10897         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10898         whether pthread_mutex_timedlock is declared.
10899         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10900         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10901         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10902         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10903         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10904         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10905         * modules/pthread_mutex_timedlock: New file.
10906         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10907         module.
10909 2019-06-20  Bruno Haible  <bruno@clisp.org>
10911         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10912         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10913         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10914         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10915         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10916         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10917         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10918         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10919         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10920         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10922 2019-06-20  Bruno Haible  <bruno@clisp.org>
10924         tls tests: Small improvements.
10925         * tests/test-tls.c: Include <stdint.h>.
10926         (worker_thread): Avoid gcc warning on 64-bit mingw.
10927         (test_tls): Pass a different id to each thread.
10928         * modules/tls-tests (Depends-on): Add stdint.
10930 2019-06-20  Bruno Haible  <bruno@clisp.org>
10932         cond tests: Simplify.
10933         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10935 2019-06-20  Bruno Haible  <bruno@clisp.org>
10937         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10938         * tests/test-lock.c (test_once): Don't reference fire_signal if
10939         !ENABLE_LOCKING.
10941 2019-06-19  Bruno Haible  <bruno@clisp.org>
10943         nanosleep: Relicense under LGPLv2+.
10944         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10945         * modules/nanosleep (License): Change to LGPLv2+.
10947 2019-06-19  Bruno Haible  <bruno@clisp.org>
10949         Reorder pieces of header in perl scripts.
10950         The desired order is
10951         - Prologue part 1 (2 lines with #!)
10952         - Program short description
10953         - Copyright and license notice
10954         - Written-by notice
10955         - Program short description (optional)
10956         - Program long description (optional)
10957         - Prologue part 2
10958         - Time stamp
10959         - Code
10960         Reported by Paul Eggert.
10961         * build-aux/announce-gen: Reorder header.
10962         * build-aux/gitlog-to-changelog: Likewise.
10963         * build-aux/useless-if-before-free: Likewise.
10964         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10965         description.
10966         * build-aux/update-copyright: Likewise. Add short description. Bump
10967         time-stamp-line-limit to 200.
10969 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10971         verify-tests: work around xlc bug
10972         Problem reported by Bruno Haible in:
10973         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10974         * tests/test-verify.c (item): Move the arithmetic inside the
10975         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10977 2019-06-16  Bruno Haible  <bruno@clisp.org>
10979         Restore Emacs time-stamp hook applicability.
10980         Reported by Darshit Shah <darnir@gnu.org>.
10981         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10982         * build-aux/announce-gen: Likewise.
10983         * build-aux/gitlog-to-changelog: Likewise.
10984         * build-aux/prefix-gnulib-mk: Likewise.
10985         * build-aux/update-copyright: Likewise.
10987 2019-06-15  Bruno Haible  <bruno@clisp.org>
10989         Fix scripts to have valid executable format on Alpine Linux.
10990         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10991         Idea by Paul Eggert.
10992         * build-aux/useless-if-before-free: Use a prologue that starts with
10993         '#!/bin/sh'.
10994         * build-aux/announce-gen: Likewise.
10995         * build-aux/gitlog-to-changelog: Likewise.
10996         * build-aux/prefix-gnulib-mk: Likewise.
10997         * build-aux/update-copyright: Likewise.
10998         * tests/test-update-copyright.sh: Update test program accordingly.
11000 2019-06-10  Bruno Haible  <bruno@clisp.org>
11002         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
11003         Reported by Nikita Ermakov <arei@altlinux.org> in
11004         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
11005         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
11006         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
11008 2019-06-10  Bruno Haible  <bruno@clisp.org>
11010         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
11011         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11012         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
11013         a copy of the path argument.
11014         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11015         it.
11017 2019-06-10  Bruno Haible  <bruno@clisp.org>
11019         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
11020         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
11021         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11022         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
11023         a copy of the path argument.
11024         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11025         it.
11027 2019-06-10  Bruno Haible  <bruno@clisp.org>
11029         posix_spawn_file_actions_addfchdir: Add tests.
11030         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
11031         * tests/test-posix_spawn5.c: New file.
11032         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
11034 2019-06-10  Bruno Haible  <bruno@clisp.org>
11036         posix_spawn_file_actions_addfchdir: New module.
11037         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
11038         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
11039         union member 'fchdir_action'.
11040         * lib/spawn_faction_addfchdir.c: New file.
11041         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
11042         * m4/posix_spawn_faction_addfchdir.m4: New file.
11043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
11044         'posix_spawn_file_actions_addfchdir' is present and whether
11045         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
11046         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
11047         posix_spawn_file_actions_addfchdir is declared.
11048         (gl_SPAWN_H_DEFAULTS): Initialize
11049         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11050         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11051         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11052         * modules/spawn (Makefile.am): Substitute
11053         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11054         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11055         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11056         * modules/posix_spawn_file_actions_addfchdir: New file.
11057         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
11058         signature.
11059         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11060         * doc/posix-functions/posix_spawnp.texi: Likewise.
11061         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
11062         Likewise.
11064 2019-06-10  Bruno Haible  <bruno@clisp.org>
11066         doc: Document existence of posix_spawn_file_actions_addchdir module.
11067         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
11068         the posix_spawn_file_actions_addchdir module.
11070 2019-06-10  Bruno Haible  <bruno@clisp.org>
11072         posix_spawn-internal: Fix module description.
11073         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
11074         from here...
11075         * modules/posix_spawnp (configure.ac): ... and here...
11076         * modules/posix_spawn-internal (configure.ac): ... to here.
11078 2019-06-10  Bruno Haible  <bruno@clisp.org>
11080         doc: Update and improve documentation of glibc functions.
11081         This is a series of commits that
11082         - updates the documentation to the state of glibc 2.29,
11083         - adds references to Linux man pages and glibc documentation,
11084         - marks Linux specific functions as such.
11085         These are the commits:
11086         doc: Update after removal of crypt functions from glibc 2.28.
11087         doc: Remove mention of function vm86 (does not exist on x86_64).
11088         doc: Remove mention of functions that are gone from glibc.
11089         doc: Mention that glibc no longer provides h_errno.
11090         doc: Mention the availability of specific functions in glibc versions.
11091         doc: Mention eaccess.
11092         doc: Add references to Linux man pages.
11093         doc: Add references to glibc documentation.
11094         doc: Mention inotify_* functions.
11095         doc: Mention ppoll.
11096         doc: Mention sched_getcpu.
11097         doc: Mention sync_file_range.
11098         doc: Mention epoll_pwait.
11099         doc: Mention eventfd, eventfd_read, eventfd_write.
11100         doc: Mention signalfd.
11101         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
11102         doc: Mention epoll_create1.
11103         doc: Mention getauxval.
11104         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
11105         doc: Mention nextdown, nextup.
11106         doc: Mention more ISO TS 18661-1 <math.h> functions.
11107         doc: Mention ISO TS 18661-1 <fenv.h> functions.
11108         doc: Mention getrandom, getentropy.
11109         doc: Mention strfromf, strfromd, strfroml.
11110         doc: Mention preadv2, pwritev2.
11111         doc: Mention copy_file_range.
11112         doc: Mention memfd_create.
11113         doc: Mention mlock2.
11114         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
11115         doc: Mention more ISO TS 18661-1 <math.h> functions.
11116         doc: Mention renameat2.
11117         doc: Mention statx.
11118         doc: Mention the ISO C11 multithreading header and functions.
11119         doc: Mention getcpu.
11120         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
11121         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
11122         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
11123         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
11124         doc: Some glibc functions also exist on Solaris 11.
11125         doc: Some glibc functions also exist on Solaris 11.4.
11126         doc: Some glibc functions also exist on FreeBSD.
11127         doc: Some glibc functions also exist on BeOS.
11128         doc: Some glibc functions also exist on Haiku.
11129         doc: Mark functions which exist only on Linux.
11130         doc: Mark functions which exist only on Linux and illumos.
11132 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11134         copy-file: fix typo
11135         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
11137         copy-file-range: simplify into a stub
11138         Based on a comment by Florian Weimer in:
11139         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
11140         It turns out that Emacs (which will use this module) won’t need an
11141         emulation and I suspect other programs won’t either, because these
11142         programs will need to fall back on read+write anyway.  Perhaps I
11143         am wrong and other programs will be able to use an emulation; if
11144         so, this patch can be reverted.
11145         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
11146         Just call it copy_file_range.
11147         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
11148         Check via AC_LINK_IFELSE.
11149         * modules/copy-file-range (Depends-on): Remove modules no longer used.
11151 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11153         copy-file: prefer copy_file_range
11154         * lib/copy-file.c: Do not include xalloc.h.
11155         (qcopy_file_preserving): Allocate a buffer only if
11156         copy_file_range does not suffice.  If the allocation fails
11157         don't give up; just use a small stack-based buffer.
11158         Prefer copy_file_range if it works.
11159         * modules/copy-file (Depends-on): Add copy-file-range.
11160         Remove xalloc.
11162         copy-file-range: new module
11163         * MODULES.html.sh: Add copy-file-range.
11164         * lib/copy-file-range.c, m4/copy-file-range.m4:
11165         * modules/copy-file-range: New files.
11166         * lib/unistd.in.h (copy_file_range): Declare.
11167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
11168         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
11169         * modules/unistd (unistd.h): Substitute them.
11171 2019-05-28  Bruno Haible  <bruno@clisp.org>
11173         binary-io: Attempted use of O_BINARY on consoles no longer fails.
11174         Reported by KO Myung-Hun <komh78@gmail.com> in
11175         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
11176         * lib/binary-io.h (__gl_setmode_check): Remove function.
11177         (set_binary_mode): Declare as notinline on DJGPP and EMX.
11178         * lib/binary-io.c (__gl_setmode_check): Remove function.
11179         (set_binary_mode): Define here on DJGPP and EMX. Inline
11180         __gl_setmode_check. In case of a tty, don't return an error code.
11182 2019-05-28  James Youngman  <jay@gnu.org>
11184         dirent-safer: Make opendir_safer usable from C++.
11185         * lib/dirent-safer.h: use extern "C".
11187 2019-05-28  James Youngman  <jay@gnu.org>
11189         canonicalize: Make canonicalize_filename_mode usable from C++.
11190         * lib/canonicalize.h: use extern "C".
11192 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
11194         prefix-gnulib-mk: Fix CPPFLAGS migration.
11195         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
11196         _a part of the library name.
11198 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11200         flexmember: update comments again
11201         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
11203         flexmember: update comment
11204         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
11206 2019-05-20  Bruno Haible  <bruno@clisp.org>
11208         setlocale: Improve fallback on macOS.
11209         * lib/setlocale.c (search): Optimize away a redundant strcmp()
11210         invocation.
11211         (locales_with_principal_territory): New array.
11212         (langcmp, get_main_locale_with_same_language): New functions.
11213         (locales_with_principal_language): New array.
11214         (terrcmp, get_main_locale_with_same_territory): New functions.
11215         (rpl_setlocale): When setlocale_single failed, try again with a locale
11216         that is more likely to exist. Don't warn if the environment variable
11217         SETLOCALE_VERBOSE is not set.
11219 2019-05-19  Bruno Haible  <bruno@clisp.org>
11221         localename: Fix default on macOS.
11222         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
11223         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
11224         (gl_locale_name_environ, gl_locale_name_default): Remove code for
11225         HAVE_CFLOCALECOPYCURRENT.
11226         * lib/localename.h (gl_locale_name_default): Update.
11228 2019-05-19  Karl Berry  <karl@freefriends.org>
11230         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
11231         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
11232         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
11234 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
11236         maintainer-makefile: catch uses of $< in non-implicit rules
11237         * top/maint.mk (sc_prohibit_magic_number_exit): New.
11239 2019-05-18  Bruno Haible  <bruno@clisp.org>
11241         threadlib: Provide an easy way to avoid mingw's winpthreads library.
11242         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
11243         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
11244         gl_use_threads accordingly.
11246 2019-05-18  Bruno Haible  <bruno@clisp.org>
11248         pthread_sigmask: Fix compilation error with --enable-threads=windows.
11249         Reported by Tim Rühsen in
11250         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
11251         and Michele Locati in
11252         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
11253         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
11254         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
11255         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
11256         in use and regardless which threads API is chosen.
11258 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11260         close-stream, closein, closeout: simplify
11261         I noticed this opportunity for simplification while drafting a
11262         new, related module that I haven’t had time to finish yet.
11263         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
11264         * modules/close-stream (Files): Remove m4/close-stream.m4.
11265         (configure.ac): Omit gl_CLOSE_STREAM.
11266         * modules/closein (Files): Remove m4/closein.m4
11267         (configure.ac): Omit gl_CLOSEIN.
11268         * modules/closeout (Files): Remove m4/closeout.m4.
11269         (configure.ac): Omit gl_CLOSEOUT.
11271 2019-05-12  Bruno Haible  <bruno@clisp.org>
11273         libtool-next-version: New program.
11274         * build-aux/libtool-next-version: New file.
11276 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
11277             Bruno Haible  <bruno@clisp.org>
11279         version-etc: Ease translation.
11280         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
11281         URLs and formatting newlines out of translatable string.
11283 2019-05-11  Bruno Haible  <bruno@clisp.org>
11285         gnupload: Explain how to create symlinks.
11286         * build-aux/gnupload (usage): Add an example that creates symlinks.
11288 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11290         fpucw: port to gcc -pedantic
11291         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
11292         Use __extension__ if using ({ ... }).
11294         crypto/af_alg: port to strict C compilers
11295         * lib/af_alg.c: Include af_alg.h regardless, so that the
11296         compilation unit is nonempty.
11298 2019-05-10  Bruno Haible  <bruno@clisp.org>
11300         base64: Avoid false positive warning from Coverity.
11301         Reported by Kamil Dudka <kdudka@redhat.com>.
11302         Idea by Paul Eggert.
11303         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
11304         '& 0x3f' to the array index expressions. This convinces Coverity that
11305         there is no out-of-bounds array reference, regardless of the input.
11307 2019-05-09  Bruno Haible  <bruno@clisp.org>
11309         gettext: Update to gettext 0.20.
11310         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
11311         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
11312         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
11313         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
11314         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
11315         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
11316         (configure.ac): Request infrastructure compatible with gettext 0.20.
11317         * m4/glibc2.m4: Remove file.
11318         * m4/intdiv0.m4: Remove file.
11319         * m4/intl.m4: Remove file.
11320         * m4/intldir.m4: Remove file.
11321         * m4/intmax.m4: Remove file.
11322         * m4/printf-posix.m4: Remove file.
11323         * m4/uintmax_t.m4: Remove file.
11324         * m4/gettext.m4: Update from gettext 0.20.
11325         * m4/po.m4: Likewise.
11327 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11329         verify: remove verify_true
11330         * NEWS: Mention this.
11331         * lib/verify.h (verify_true): Remove.
11332         * tests/test-verify.c (item): Test verify_expr, not verify_true.
11334         Support C2X and C++17 static_assert
11335         C2X and C++17 finally added support for a simple, single-argument
11336         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
11337         doing back in 2005.  Implement static_assert on older platforms.
11338         The only remaining advantage of ‘verify’ is a shorter name.
11339         * doc/posix-headers/assert.texi (assert.h):
11340         * doc/verify.texi (Compile-time Assertions):
11341         Modernize for C2X and C++17.
11342         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
11343         New macros.
11344         (_GL_HAVE__STATIC_ASSERT): Remove.
11345         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
11346         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
11347         string.  All callers changed.
11348         (_GL_VERIFY): Require 3 or more args, of which only the first 2
11349         are used.  All callers changed.
11350         (_Static_assert): Allow either 1 or 2 args, and define if
11351         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
11352         !_GL_HAVE__STATIC_ASSERT.
11353         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
11354         of defining if !_GL_HAVE_STATIC_ASSERT.
11355         (verify_expr, verify): Don’t bother trying to copy the expression
11356         into the diagnostic, since 1-argument static_assert doesn’t.
11357         (verify): Prefer 1-argument _Static_assert if it works.
11358         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
11360 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11362         Fix _GL_HAVE__STATIC_ASSERT typo
11363         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
11364         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
11366 2019-05-05  Bruno Haible  <bruno@clisp.org>
11368         wcwidth: Ensure width 1, not 2, for ambiguous characters.
11369         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
11370         via Akim Demaille <akim.demaille@gmail.com>.
11371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
11372         en_US.UTF-8 locale, since that is more likely to be present than an
11373         fr_FR.UTF-8 locale.
11374         * tests/test-wcwidth.c (main): Check the width of U+2202.
11375         * doc/posix-functions/wcwidth.texi: Mention the issue.
11377 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11379         Port manywarnings to GCC 9
11380         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11381         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11382         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11383         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11384         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11385         --help=warnings output.
11386         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11387         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11388         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11390 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11392         Sync lib/mktime-internal.h from glibc
11393         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11394         * lib/mktime-internal.h: Autoupdate.
11396 2019-04-28  Bruno Haible  <bruno@clisp.org>
11398         tls tests: Prevent that the test takes too long.
11399         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11400         (main): Let the test fail if it takes more than 10 minutes.
11401         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11403 2019-04-27  Bruno Haible  <bruno@clisp.org>
11405         lock tests: Prevent that the test takes too long.
11406         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11407         (main): Let the test fail if it takes more than 10 minutes.
11408         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11410 2019-04-27  Bruno Haible  <bruno@clisp.org>
11412         localename: Fix crash on mingw (regression from 2018-11-23).
11413         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11414         locale name that is null.
11416 2019-04-27  Bruno Haible  <bruno@clisp.org>
11418         Fix gcc warnings on 64-bit mode mingw.
11419         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11420         * lib/gl_array_list.c: Likewise.
11421         * lib/gl_array_map.c: Likewise.
11422         * lib/gl_array_set.c: Likewise.
11423         * lib/gl_carray_list.c: Likewise.
11424         * lib/gl_sublist.c: Likewise.
11425         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11426         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11427         * lib/gl_hash_map.c (uintptr_t): Likewise.
11428         * lib/gl_hash_set.c (uintptr_t): Likewise.
11429         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11430         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11431         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11432         * lib/iconv.c (uintptr_t): Likewise.
11433         * lib/iconv_close.c (uintptr_t): Likewise.
11434         * tests/test-lock.c: Include <stdint.h>.
11435         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11436         'long'.
11437         * modules/clean-temp (Depends-on): Add stdint.
11438         * modules/array-list (Depends-on): Likewise.
11439         * modules/array-map (Depends-on): Likewise.
11440         * modules/array-set (Depends-on): Likewise.
11441         * modules/carray-list (Depends-on): Likewise.
11442         * modules/sublist (Depends-on): Likewise.
11443         * modules/lock-tests (Depends-on): Likewise.
11445 2019-04-27  Bruno Haible  <bruno@clisp.org>
11447         error: Tweak indentation.
11448         * lib/error.c: Correct indentation.
11450 2019-04-27  Bruno Haible  <bruno@clisp.org>
11452         term-style-control: Fix gcc warning on mingw.
11453         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11454         of i.
11456 2019-04-26  Bruno Haible  <bruno@clisp.org>
11458         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11459         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11461 2019-04-26  Bruno Haible  <bruno@clisp.org>
11463         relocatable-prog: Fix gcc warning on mingw.
11464         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11465         on EMX.
11467 2019-04-02  Bruno Haible  <bruno@clisp.org>
11469         gitsub.sh: New file.
11470         * top/gitsub.sh: New file.
11472 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11474         argmatch: use void* for raw memory pointers
11475         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11476         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11477         to "values", keep char* for strings.
11479 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11481         prefix-gnulib-mk: fix the support for gnulib-po
11482         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11483         Don't touch HAVE_* variables.
11484         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11486 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11488         di-set: allow free with 'ino_map' being NULL.
11489         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11490         is NULL.  Bug introduced in commit 3703dbbe88dd.
11491         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11492         as a test.
11494 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11496         * lib/str-two-way.h: Fix comment typo.
11498 2019-04-13  Bruno Haible  <bruno@clisp.org>
11500         x-to-1: Restore ability to use original calling convention.
11501         * build-aux/x-to-1.in: Add comments. Accept the original form of
11502         HELP2MAN argument as well as the form expected since 2012-12-12.
11504 2019-04-13  Bruno Haible  <bruno@clisp.org>
11506         x-to-1: Avoid failure due to missing perl modules.
11507         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11508         needs are installed.
11510 2019-04-13  Bruno Haible  <bruno@clisp.org>
11512         openmp-init: New module.
11513         * modules/openmp-init: New file.
11514         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11515         the changes from 2019-04-09.
11517 2019-04-12  Bruno Haible  <bruno@clisp.org>
11519         signbit: Fix compilation error when gnulib's math.h exists twice.
11520         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11522 2019-04-12  Bruno Haible  <bruno@clisp.org>
11524         openmp: Fix compilation error on platforms without OpenMP.
11525         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11527 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11529         mountlist: make parsing /proc/self/mountinfo more robust
11530         Cater for the following issues with mountinfo parsing (the first
11531         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11532         in <https://bugs.gnu.org/35137>).
11533         1. The fields source, target, mntroot and fstype may contain characters
11534         like '\r'; sscanf(3) fails to read such values with the %s format
11535         specifier because it would stop at such characters.
11536         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11537         The only true separator in that file is the ' ' character.
11538         2. The source field may be an empty string, which happens e.g. with
11539         "mount -t tmpfs '' /target".
11540         3. The fstype field may contain mangled characters as well which need
11541         unescaping.
11542         * lib/mountlist.c (terminate_at_blank): Add utility function.
11543         (read_file_system_list): In the block trying to read the mountinfo file,
11544         avoid using sscanf(3) with %s format; instead, parse the above fields
11545         separated by spaces one by one.
11546         This also handles the case when the source field is an empty string.
11547         Unescape the fstype field.
11549 2019-04-09  Bruno Haible  <bruno@clisp.org>
11551         openmp: Add workaround for 32-bit programs on AIX.
11552         * lib/omp.in.h: New file.
11553         * lib/omp-init.c: New file, based on lib/nproc.c.
11554         * m4/omp_h.m4: New file.
11555         * modules/openmp (Files): Add them.
11556         (Depends-on): Add include_next, c-ctype, setenv.
11557         (configure.ac): Invoke gl_OMP_H.
11558         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11559         (Include): Mention <omp.h>.
11561 2019-04-09  Bruno Haible  <bruno@clisp.org>
11563         nproc: Fix return value for privileged processes.
11564         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11565         getpid().
11567 2019-04-07  Bruno Haible  <bruno@clisp.org>
11569         Add copyright notices in several files.
11570         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11571         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11572         * lib/libunistring.valgrind: Likewise.
11573         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11574         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11575         * lib/memchr.valgrind: Likewise.
11576         * lib/memchr2.valgrind: Likewise.
11577         * lib/rawmemchr.valgrind: Likewise.
11578         * lib/relocatable.valgrind: Likewise.
11579         * lib/strchrnul.valgrind: Likewise.
11581 2019-03-25  Bruno Haible  <bruno@clisp.org>
11583         term-style-control tests: Fix link error.
11584         Reported by Tom G. Christensen in
11585         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11586         * modules/term-style-control-tests (Makefile.am): Link
11587         test-term-style-control-hello and test-term-style-control-yes against
11588         LIBINTL.
11590 2019-03-24  Bruno Haible  <bruno@clisp.org>
11592         term-style-control: Add tests.
11593         * tests/test-term-style-control-hello.c: New file.
11594         * tests/test-term-style-control-yes.c: New file.
11595         * modules/term-style-control-tests: New file.
11597         term-style-control: New module.
11598         * lib/term-style-control.h: New file, based on libtextstyle's
11599         term-ostream.oo.h and term-ostream.oo.c.
11600         * lib/term-style-control.c: New file, based on libtextstyle's
11601         term-ostream.oo.c.
11602         * modules/term-style-control: New file.
11604 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11606         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11607         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11608         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11610 2019-03-23  Bruno Haible  <bruno@clisp.org>
11612         Support cross-compilation to musl libc.
11613         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11614         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11615         musl libc.
11616         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11617         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11618         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11619         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11620         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11621         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11622         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11623         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11624         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11625         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11626         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11627         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11628         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11629         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11630         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11631         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11632         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11634         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11635         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11636         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11637         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11638         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11641         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11642         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11643         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11644         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11645         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11646         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11647         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11648         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11649         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11650         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11651         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11652         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11653         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11654         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11655         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11656         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11657         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11658         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11660         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11661         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11662         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11663         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11664         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11665         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11666         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11667         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11668         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11669         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11670         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11671         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11672         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11673         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11674         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11675         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11676         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11679         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11680         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11681         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11683         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11684         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11685         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11686         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11687         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11689         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11690         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11691         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11692         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11695 2019-03-23  Bruno Haible  <bruno@clisp.org>
11697         posix_spawn_file_actions_*: Document musl libc bugs.
11698         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11699         the bug.
11700         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11701         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11702         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11703         cross-compiling to a musl system, guess no.
11704         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11705         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11707 2019-03-23  Bruno Haible  <bruno@clisp.org>
11709         futimens: Document musl libc bug.
11710         * doc/posix-functions/futimens.texi: Mention the bug.
11711         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11712         cross-compiling, guess no on glibc and musl systems.
11714 2019-03-23  Bruno Haible  <bruno@clisp.org>
11716         Clarify that cross-compilation guesses are guesses.
11717         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11718         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11719         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11720         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11721         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11722         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11723         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11724         gl_cv_glob_lists_symlinks.
11725         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11726         'guessing ' to ac_cv_func_malloc_0_nonnull.
11727         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11728         'guessing ' to ac_cv_func_realloc_0_nonnull.
11729         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11730         'guessing ' to gl_cv_func_poll.
11731         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11732         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11733         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11735 2019-03-23  Bruno Haible  <bruno@clisp.org>
11737         strtold: Fix typo.
11738         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11740 2019-03-23  Bruno Haible  <bruno@clisp.org>
11742         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11743         Reported by Akim Demaille.
11744         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11745         [[noreturn]] would not work, use _Noreturn instead.
11747 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11749         libtextstyle-optional: Fix compiler warnings.
11750         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11751         as unused.
11753 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11755         bitset: fix memory leaks
11756         Reported by Bruno Haible.
11757         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11758         * lib/bitset/vector.c (vbitset_free): New.
11759         (vbitset_vtable): Use it.
11761 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11763         bitset: minor changes
11764         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11765         * lib/bitset/table.c: Formatting changes.
11766         Remove useless braces.
11767         Prefer using else in cascades of if/else-if with returns.
11768         * lib/bitset/vector.c: Reduce scopes.
11770 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11772         bitset: expose bitset_resize
11773         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11774         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11775         (main): Use a variable bitset as reference, since fixed does not support resize.
11777 2019-03-19  Bruno Haible  <bruno@clisp.org>
11779         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11780         Reported by Akim Demaille.
11781         * doc/noreturn.texi: New file.
11782         * doc/gnulib.texi: Include it.
11784 2019-03-19  Bruno Haible  <bruno@clisp.org>
11786         doc: Document how to use 'static inline'.
11787         * doc/static-inline.texi: New file.
11788         * doc/gnulib.texi: Include it.
11790 2019-03-19  Bruno Haible  <bruno@clisp.org>
11792         libtextstyle-optional: Add tests.
11793         * tests/test-libtextstyle.c: New file, based on libtextstyle's
11794         adhoc-tests/hello.c.
11795         * tests/test-libtextstyle-default.css: New file, copied from
11796         libtextstyle's adhoc-tests/hello-default.css.
11797         * modules/libtextstyle-optional-tests: New file.
11799         libtextstyle-optional: New module.
11800         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
11801         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
11802         * modules/libtextstyle-optional: New file.
11804 2019-03-19  Bruno Haible  <bruno@clisp.org>
11806         c-stack: Make signal handlers more reliable.
11807         * lib/c-stack.c (progname): New variable.
11808         (die): Use it.
11809         (c_stack_action): Initialize it.
11810         (segv_handler): Save and restore errno.
11812 2019-03-19  Bruno Haible  <bruno@clisp.org>
11814         Help making signal handlers more reliable.
11815         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
11816         _GL_ASYNC_SAFE into config.h.
11817         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11818         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11819         argument.
11820         * lib/fatal-signal.c (action_t, uninstall_handlers,
11821         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11822         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11823         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11824         _GL_ASYNC_SAFE.
11825         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11826         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11828 2019-03-18  Bruno Haible  <bruno@clisp.org>
11830         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11831         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11832         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11834 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11836         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11837         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11838         GCC 4.8.
11840 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11842         fts: minor simplification
11843         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11845 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11847         bitset, timevar: Depend on c99.
11848         Reported by Bruno Haible.
11849         * modules/bitset, modules/timevar (Depends-on): Add c99.
11851 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11853         bitset: a bit (...) more tests
11854         * tests/test-bitset.c (check_attributes): Check zero and ones.
11856 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11858         bitset: fix overflows.
11859         Reported by Bruno Haible.
11860         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11861         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11862         the bit in the array of bitset_word, so be sure to take its modulo
11863         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11864         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11866 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11868         bitset: style changes.
11869         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11870         Formatting changes.
11871         (tbitset_list): Reduce scopes.
11873 2019-03-16  Bruno Haible  <bruno@clisp.org>
11875         fatal-signal: Pass the signal number to the action.
11876         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11877         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11878         (fatal_signal_handler): Pass the signal number to the action.
11879         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11880         signal number as parameter.
11881         (create_temp_dir): Update.
11882         * lib/wait-process.c (cleanup_slaves_action): New function.
11883         (register_slave_subprocess): Update at_fatal_signal invocation.
11884         * NEWS: Mention the change.
11886 2019-03-16  Bruno Haible  <bruno@clisp.org>
11888         fatal-signal: Add function that lists the fatal signals.
11889         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11890         * lib/fatal-signal.c (get_fatal_signals): New function.
11892 2019-03-14  Bruno Haible  <bruno@clisp.org>
11894         isatty: Make it return true in Cygwin consoles on native Windows.
11895         * lib/isatty.c: Include <string.h>.
11896         (GetProcAddress): New macro.
11897         (GetNamedPipeClientProcessIdFuncType): New type.
11898         (GetNamedPipeClientProcessIdFunc): New variable.
11899         (QueryFullProcessImageNameFuncType): New type.
11900         (QueryFullProcessImageNameFunc): New variable.
11901         (initialized): New variable.
11902         (initialize): New function.
11903         (IsCygwinConsoleHandle): New function.
11904         (isatty): Invoke it.
11905         * doc/posix-functions/isatty.texi: Mention the issue.
11907 2019-03-14  Bruno Haible  <bruno@clisp.org>
11909         all: Update URLs to msdn.microsoft.com.
11910         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11911         was moved to docs.microsoft.com.
11913 2019-03-13  Bruno Haible  <bruno@clisp.org>
11915         gnulib-tool: Clarify the coding style.
11916         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11917         * gnulib-tool: Add comment about coding style.
11919 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11921         strtod: fix clash with strtold
11922         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11923         * lib/strtod.c (compute_minus_zero, minus_zero):
11924         Simplify by remving the macro / external variable,
11925         and having just a function.  User changed.  This avoids
11926         the need for an external variable that might clash.
11928 2019-03-10  Bruno Haible  <bruno@clisp.org>
11930         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11931         Reported by Eli Zaretskii <eliz@gnu.org>.
11932         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11934         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11936 2019-03-10  Bruno Haible  <bruno@clisp.org>
11938         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11939         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11940         is in use.
11941         * tests/test-printf-posix2.c: Likewise.
11943 2019-03-10  Bruno Haible  <bruno@clisp.org>
11945         uninorm tests: Free allocated memory.
11946         * tests/uninorm/test-u32-normalize-big.h
11947         (struct normalization_test_file): Remove 'const' from allocated member.
11948         (free_normalization_test_file): New declaration.
11949         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11950         memory.
11951         (free_normalization_test_file): New function.
11952         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11953         'struct normalization_test_file' contents.
11954         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11955         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11956         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11958 2019-03-10  Bruno Haible  <bruno@clisp.org>
11960         di-set: Fix memory leak.
11961         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11962         not free().
11964 2019-03-10  Bruno Haible  <bruno@clisp.org>
11966         tests: Free allocated memory.
11967         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11968         * tests/test-astrxfrm.c (main): Free allocated memory.
11969         * tests/test-bitset.c (compare, check_attributes): Free allocated
11970         bitsets.
11971         * tests/test-filenamecat.c (main): Free allocated memory.
11972         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11973         * tests/test-freadptr.c (main): Likewise.
11974         * tests/test-freadptr2.c (main): Free allocated memory.
11975         * tests/test-freadseek.c (main): Likewise.
11976         * tests/test-gc-arcfour.c (main): Close allocated context.
11977         * tests/test-gc-arctwo.c (main): Likewise.
11978         * tests/test-gc-des.c (main): Close all allocated contexts.
11979         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11980         * tests/test-pipe-filter-ii1.c (main): Likewise.
11981         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11982         allocated file actions.
11983         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11984         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11985         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11986         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11987         * tests/test-strfmon_l.c (main): Free allocated locales.
11988         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11989         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11990         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11991         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11992         * tests/unistr/test-chr.h (main): Free input32.
11993         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11995 2019-03-10  Bruno Haible  <bruno@clisp.org>
11997         tests: Prepare for using valgrind.
11998         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11999         * tests/*/*.sh: Likewise.
12000         * tests/test-freadptr.c (main): Update accordingly.
12001         * tests/test-freadseek.c (main): Likewise.
12003 2019-03-09  Bruno Haible  <bruno@clisp.org>
12005         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
12006         * lib/get-rusage-as.c (get_rusage_as): When compiled by
12007         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
12008         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
12009         before exiting.
12011 2019-03-09  Jim Meyering  <meyering@fb.com>
12013         test-userspec.c: don't print NULL
12014         * tests/test-userspec.c (main): A test release of gcc,
12015         9.0.1 20190310, warned that this test would attempt to
12016         print a NULL pointer via a %s printf format.  Fix that
12017         and remove the unnecessary preceding "!diag" conjunct.
12018         Also add a comment.
12020 2019-03-03  Bruno Haible  <bruno@clisp.org>
12022         getloadavg: Write NULL for the null pointer.
12023         Reported by Michal Privoznik <mprivozn@redhat.com>.
12024         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
12026 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
12028         alloca, tsearch-tests: Write NULL for the null pointer.
12029         * lib/alloca.c (i00afunc): Write NULL instead of 0.
12030         * tests/test-tsearch.c (mangle_tree): Likewise.
12032 2019-03-09  Bruno Haible  <bruno@clisp.org>
12034         strfmon_l: Fix -fsanitize=address finding.
12035         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
12036         <string.h>.
12037         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
12038         (directive_t, directives_t): New types.
12039         (fmon_parse): New function.
12040         (rpl_strfmon_l): Don't call va_arg more often than needed for the
12041         format string. Consume 'long double' arguments in places where the
12042         format string indicates so.
12043         * modules/strfmon_l (Depends-on): Add 'stdbool'.
12045 2019-03-09  Bruno Haible  <bruno@clisp.org>
12047         crypto/des: Fix undefined behaviour.
12048         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
12049         shift operations on 'int'.
12051 2019-03-09  Bruno Haible  <bruno@clisp.org>
12053         Fix undefined behaviour.
12054         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
12055         'unsigned int', to avoid shift operations on 'int'.
12056         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
12057         * tests/test-count-leading-zeros.c (main): Use a random number that has
12058         as many bits as TYPE, not only 2*15 or 2*31 bits.
12059         * tests/test-count-trailing-zeros.c (main): Likewise.
12060         * tests/test-count-one-bits.c (main): Likewise.
12061         * tests/test-memmem.c: Don't include "null-ptr.h".
12062         (main): Use zerosize_ptr() instead of null_ptr().
12063         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
12065 2019-03-08  Bruno Haible  <bruno@clisp.org>
12067         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
12068         Reported by Jeffrey Walton <noloader@gmail.com>.
12069         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
12070         invoke memset with a zero size.
12071         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12072         Likewise.
12073         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12074         Adjust accordingly.
12076 2019-03-08  Bruno Haible  <bruno@clisp.org>
12078         unistr/*, uniconv/*: Fix undefined behaviour.
12079         Reported by Jeffrey Walton <noloader@gmail.com>.
12080         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
12081         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
12082         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12083         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12085 2019-03-08  Bruno Haible  <bruno@clisp.org>
12087         unistr/u8-cmp: Fix undefined behaviour.
12088         Reported by Jeffrey Walton <noloader@gmail.com>.
12089         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
12091 2019-03-08  Bruno Haible  <bruno@clisp.org>
12093         unictype/numeric: Fix undefined behaviour.
12094         Reported by Jeffrey Walton <noloader@gmail.com>.
12095         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
12096         on shift overflow, caught by "gcc -fsanitize=undefined".
12097         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
12098         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12099         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12101 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12103         git-version-gen: fix --version copyright year
12104         * build-aux/git-version-gen, build-aux/move-if-change (version):
12105         --version output copyright year is now taken from script year,
12106         so that it no longer needs to be updated by hand.
12108 2019-03-04  Bruno Haible  <bruno@clisp.org>
12110         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
12111         This approach supports relocatable installation of shared libraries
12112         which depend on other shared libraries from the same package.
12113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12114         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
12115         wrapper around the original LIBTOOL.
12116         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
12117         token '@loader_path' instead of '$ORIGIN'.
12118         * build-aux/libtool-reloc: New file.
12119         * modules/relocatable-prog (Files): Add it.
12120         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12121         the recent changes. Document the need to set the *_LDFLAGS of libraries.
12122         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
12123         Makefile.am, not in configure.ac.
12125 2019-03-04  Bruno Haible  <bruno@clisp.org>
12127         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
12128         * build-aux/install-reloc: Revert change.
12129         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12131 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12133         nstrftime: support the ‘+’ flag
12134         * lib/nstrftime.c (add, __strftime_internal):
12135         Add support for the ‘+’ flag introduced in POSIX.1-2017.
12136         (__strftime_internal): New arg ‘width’.  All uses changed.
12137         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
12139 2019-02-24  Bruno Haible  <bruno@clisp.org>
12141         relocatable-prog: Improve verbose output.
12142         * build-aux/install-reloc (func_verbose): Escape characters that would
12143         be interpreted by the shell.
12145 2019-02-24  Bruno Haible  <bruno@clisp.org>
12147         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
12148         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
12149         "sys/stat.h".
12150         * lib/lstat.c: Likewise.
12151         * lib/fstat.c: Likewise.
12152         * lib/fstatat.c: Likewise.
12154 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
12156         long-options: add parse_gnu_standard_options_only
12157         Discussed in https://bugs.gnu.org/33468 .
12159         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
12160         (parse_gnu_standard_options_only): Add function to process
12161         the GNU default options --help and --version and fail for
12162         any other unknown long or short option. See
12163         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
12164         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
12165         * modules/long-options (depends-on): Add stdbool, exitfail.
12166         * top/maint.mk (sc_prohibit_long_options_without_use): Update
12167         syntax-check rule, add new function name.
12169 2019-02-23  Bruno Haible  <bruno@clisp.org>
12171         relocatable-prog: Update documentation.
12172         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12173         the recent changes.
12175 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12177         nstrftime: tweak arg order
12178         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
12179         All callers changed.  Suggested by TAMUKI Shoichi in:
12180         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
12182 2019-02-23  Bruno Haible  <bruno@clisp.org>
12184         relocatable-prog: Use wrapper-free installation also on Mac OS X.
12185         Reported by Paul Smith <psmith@gnu.org>.
12186         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
12187         (func_relativize): New function, from gnulib-tool.
12188         Handle mode 'macosx' through invocations of 'otool' and
12189         'install_name_tool'.
12190         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12191         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
12192         'install-reloc' invocation with mode 'macosx'.
12194 2019-02-23  Bruno Haible  <bruno@clisp.org>
12196         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
12197         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12198         Hurd with glibc >= 2.27.
12200 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12202         nstrftime: merge glibc strftime changes
12203         This incorporates:
12204         2019-02-11 Fix a few whitespace arrangement inconsistencies
12205         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
12206         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
12207         2019-01-11 strftime: use the "L_" macro with character literals
12208         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
12209         callers changed.  Default width of %Ey is now 2.  This is needed
12210         for proper handling of Japanese dates starting on 2019-05-01.
12212 2019-02-19  Bruno Haible  <bruno@clisp.org>
12214         relocatable-prog: Use $ORIGIN trick on more platforms.
12215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12216         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
12217         Solaris >= 10, Haiku. But don't use it on Android.
12218         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
12219         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
12221 2019-02-19  Bruno Haible  <bruno@clisp.org>
12223         progreloc: Speed up executable lookup on various platforms.
12224         * lib/progreloc.c: Include <errno.h>.
12225         (safe_read, full_read): New functions.
12226         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
12227         prefer the information from the /proc file system to a PATH search.
12229 2019-02-19  Bruno Haible  <bruno@clisp.org>
12231         progreloc: Simplify code for Android.
12232         * lib/progreloc.c (executable_fd): Don't define on Android.
12233         (maybe_executable, find_executable): Don't use executable_fd on Android.
12235 2019-02-15  Bruno Haible  <bruno@clisp.org>
12237         gnulib-tool: Support --import with just a few tests, not --with-tests.
12238         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
12239         'inctests' when generating files; use 'inctests' only for computing the
12240         transitive closure.
12242 2019-02-14  Bruno Haible  <bruno@clisp.org>
12244         gnulib-tool: Improve handling of multiple --local-dir options.
12245         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
12246         options work.
12247         * gnulib-tool (func_path_prepend): Remove function.
12248         (func_path_foreach): Make IFS handling more robust.
12249         (local_gnulib_path): Collect --local-dir values using func_path_append,
12250         not func_path_prepend.
12251         (func_determine_path_separator): Make IFS handling more robust.
12252         (func_lookup_file_cb): New function.
12253         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
12254         func_lookup_local_file. Apply the patches in the reverse order of their
12255         origin in $local_gnulib_path.
12256         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
12257         * NEWS: Mention that the first --local-dir option is the one with
12258         highest priority.
12260 2019-02-10  Bruno Haible  <bruno@clisp.org>
12262         libtextstyle: New module.
12263         * m4/libtextstyle.m4: New file.
12264         * modules/libtextstyle: New file.
12266 2019-02-05  Bruno Haible  <bruno@clisp.org>
12268         declared.sh: Fix bug with variables of pointer type.
12269         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
12270         before the symbol to be omitted if the preceding character is a '*'.
12272 2019-02-04  Bruno Haible  <bruno@clisp.org>
12274         Add script for running tests under valgrind.
12275         * build-aux/run-test: New file, from GNU libunistring.
12276         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
12277         as well.
12279 2019-02-04  Bruno Haible  <bruno@clisp.org>
12281         declared.sh: Fix --version output.
12282         * build-aux/declared.sh (func_version): Update package name.
12284 2019-02-03  Bruno Haible  <bruno@clisp.org>
12286         Add script for determining the set of symbols to export from a library.
12287         * build-aux/declared.sh: New file, from GNU libunistring.
12288         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
12289         Mention it.
12291 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12293         vla: add commentary about VLA_ELEMS
12294         * lib/vla.h (VLA_ELEMS): Add commentary,
12295         some inspired by Bruno Haible’s proposal in:
12296         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
12298         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
12299         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
12300         assume the C99 signatures for strtod and strtold.  Programs that
12301         require stricter adherence to C99 should also use the strtod and
12302         strtold modules as needed, and we no longer need the
12303         HAVE_C99_STRTOLD macro.
12304         * NEWS: Mention this.
12305         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
12306         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
12307         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
12308         (Files): Remove m4/c-strtod.m4.
12309         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
12310         exists.
12312 2019-02-02  Bruno Haible  <bruno@clisp.org>
12314         fma: Improve code style.
12315         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
12317 2019-02-02  Colin Watson  <cjwatson@debian.org>
12319         *-map tests: Fix compilation error.
12320         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
12321         * tests/test-hash_map.c: Likewise.
12322         * tests/test-linkedhash_map.c: Likewise.
12324 2019-01-31  Bruno Haible  <bruno@clisp.org>
12326         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
12327         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
12328         GNULIB_defined_strtold_function): New macros.
12329         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
12330         (STRTOD): Ignore HAVE_C99_STRTOLD.
12331         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
12332         deemed buggy. But do use it on platforms where uselocale exists and is
12333         usable.
12334         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
12335         deemed buggy. On platforms where uselocale exists and is usable, use
12336         uselocale and strtod/strtold.
12337         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
12338         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
12339         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
12340         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
12341         (Depends-on): Add strtod.
12342         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
12343         (Depends-on): Add strtold.
12345 2019-01-31  Bruno Haible  <bruno@clisp.org>
12347         strtod, strtold: Use the locale's decimal point.
12348         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
12349         (decimal_point_char): New function, copied from lib/vasnprintf.c.
12350         (parse_number): Add a radixchar argument. Use it instead of '.'.
12351         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
12352         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
12353         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
12354         * tests/test-strtod1.c: New file.
12355         * tests/test-strtod1.sh: New file.
12356         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
12357         locale-fr.m4 and its dependencies.
12358         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12359         (Makefile.am): Arrange to compile test-strtod1.c and run
12360         test-strtod1.sh.
12361         * tests/test-strtold1.c: New file.
12362         * tests/test-strtold1.sh: New file.
12363         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
12364         locale-fr.m4 and its dependencies.
12365         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12366         (Makefile.am): Arrange to compile test-strtold1.c and run
12367         test-strtold1.sh.
12369 2019-01-31  Bruno Haible  <bruno@clisp.org>
12371         strtod, strtold tests: Simplify tests.
12372         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
12373         * tests/test-strtold.c (main): Likewise.
12375 2019-01-31  Bruno Haible  <bruno@clisp.org>
12377         strtod, strtold: Avoid unnecessary rounding errors.
12378         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
12379         decimal to DOUBLE conversion.
12381 2019-01-31  Bruno Haible  <bruno@clisp.org>
12383         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12384         * lib/strtod.c (STRTOD): When there is an extra character after the
12385         exponent marker 'p', reparse the number.
12386         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12387         * doc/posix-functions/strtold.texi: Likewise.
12389 2019-01-29  Bruno Haible  <bruno@clisp.org>
12391         strtold: Add tests.
12392         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12393         * modules/strtold-tests: New file.
12395 2019-01-29  Bruno Haible  <bruno@clisp.org>
12397         strtold: New module.
12398         * lib/stdlib.in.h (strtold): New declaration.
12399         * lib/strtold.c: New file.
12400         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12401         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12402         USE_LDEXP): New macros.
12403         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12404         USE_LONG_DOUBLE.
12405         (underlying_strtod): Remove function. Replace with some macros.
12406         Re-add the code for a missing underlying function that was removed on
12407         2013-02-19.
12408         * m4/strtold.m4: New file.
12409         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12410         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12411         REPLACE_STRTOLD.
12412         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12413         REPLACE_STRTOLD.
12414         * modules/strtold: New file.
12415         * doc/posix-functions/strtold.texi: Document the new module.
12417 2019-01-29  Bruno Haible  <bruno@clisp.org>
12419         strtod: Fix compilation error on IRIX 6.5.
12420         * modules/strtod (Depends-on): Add 'math'.
12422 2019-01-28  Bruno Haible  <bruno@clisp.org>
12424         Fix build error when building a shared libunistring on Android.
12425         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12426         (main): Add 'volatile', to defeat a GCC optimization that would
12427         eliminate the reference.
12428         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12429         (main): Add 'volatile', to defeat a GCC optimization that would
12430         eliminate the reference.
12431         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12432         (main): Add 'volatile', to defeat a GCC optimization that would
12433         eliminate the reference.
12434         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12435         (main): Add 'volatile', to defeat a GCC optimization that would
12436         eliminate the reference.
12438 2019-01-27  Bruno Haible  <bruno@clisp.org>
12440         Avoid build errors due to wrong references between modules.
12441         * lib/uninorm/canonical-decomposition.c: Include
12442         "uninorm/decomposition-table.h", not "decomposition-table.h".
12443         * lib/uninorm/decomposition.c: Likewise.
12444         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12445         not "decompose-internal.h".
12446         * lib/uninorm/u16-normalize.c: Likewise.
12447         * lib/uninorm/u32-normalize.c: Likewise.
12448         * lib/uninorm/uninorm-filter.c: Likewise.
12449         * lib/uninorm/nfkc.c: Likewise.
12450         * lib/uninorm/nfkd.c: Likewise.
12451         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12452         "caseprop.h".
12453         * lib/unicase/u8-ct-totitle.c: Likewise.
12454         * lib/unicase/u8-prefix-context.c: Likewise.
12455         * lib/unicase/u8-suffix-context.c: Likewise.
12456         * lib/unicase/u16-casemap.c: Likewise.
12457         * lib/unicase/u16-ct-totitle.c: Likewise.
12458         * lib/unicase/u16-prefix-context.c: Likewise.
12459         * lib/unicase/u16-suffix-context.c: Likewise.
12460         * lib/unicase/u32-casemap.c: Likewise.
12461         * lib/unicase/u32-ct-totitle.c: Likewise.
12462         * lib/unicase/u32-prefix-context.c: Likewise.
12463         * lib/unicase/u32-suffix-context.c: Likewise.
12464         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12465         "unicasemap.h".
12466         * lib/unicase/u8-toupper.c: Likewise.
12467         * lib/unicase/u8-ct-tolower.c: Likewise.
12468         * lib/unicase/u8-ct-toupper.c: Likewise.
12469         * lib/unicase/u16-tolower.c: Likewise.
12470         * lib/unicase/u16-toupper.c: Likewise.
12471         * lib/unicase/u16-ct-tolower.c: Likewise.
12472         * lib/unicase/u16-ct-toupper.c: Likewise.
12473         * lib/unicase/u32-tolower.c: Likewise.
12474         * lib/unicase/u32-toupper.c: Likewise.
12475         * lib/unicase/u32-ct-tolower.c: Likewise.
12476         * lib/unicase/u32-ct-toupper.c: Likewise.
12477         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12478         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12479         * lib/unicase/u16-ct-casefold.c: Likewise.
12480         * lib/unicase/u32-ct-casefold.c: Likewise.
12482 2019-01-27  Bruno Haible  <bruno@clisp.org>
12484         gperf: Fix error when this module is required by some test module.
12485         * modules/gperf (Applicability): Set to 'all'.
12487 2019-01-27  Bruno Haible  <bruno@clisp.org>
12489         tmpfile: Add support for Android.
12490         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12491         works.
12492         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12493         Android.
12494         * modules/tmpfile (Depends-on): Add 'stdbool'.
12495         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12496         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12498 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12500         bitsetv: allow free on NULL.
12501         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12503 2019-01-27  Bruno Haible  <bruno@clisp.org>
12505         test-framework-sh: Improve maintainability.
12506         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12508 2019-01-27  Bruno Haible  <bruno@clisp.org>
12510         tests: Don't assume that /tmp exists.
12511         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12512         * tests/test-copy-acl-1.sh: Likewise.
12513         * tests/test-file-has-acl-1.sh: Likewise.
12514         * tests/test-copy-file-1.sh: Likewise.
12516 2019-01-27  Bruno Haible  <bruno@clisp.org>
12518         tests: Accommodate a shell that is not in /bin/sh.
12519         * tests/init.sh (setup_): Set srcdir and builddir.
12520         (BOURNE_SHELL): New variable.
12521         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12522         * modules/file-has-acl-tests (Depends-on): Likewise.
12523         * modules/copy-file-tests (Depends-on): Likewise.
12524         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12525         scripts through $BOURNE_SHELL.
12526         * tests/test-set-mode-acl-2.sh: Likewise.
12527         * tests/test-copy-acl-1.sh: Likewise.
12528         * tests/test-copy-acl-2.sh: Likewise.
12529         * tests/test-file-has-acl-1.sh: Likewise.
12530         * tests/test-file-has-acl-2.sh: Likewise.
12531         * tests/test-copy-file-1.sh: Likewise.
12532         * tests/test-copy-file-2.sh: Likewise.
12533         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12534         invoker.
12535         * tests/test-copy-acl.sh (builddir): Likewise.
12536         * tests/test-file-has-acl.sh (builddir): Likewise.
12537         * tests/test-copy-file.sh (builddir): Likewise.
12538         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12539         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12540         * tests/test-vc-list-files-git.sh: Likewise.
12542 2019-01-27  Bruno Haible  <bruno@clisp.org>
12544         tests: Fix some "unused variable" warnings.
12545         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12546         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12547         * tests/test-striconveh.c (main): Move some variable into the
12548         '#if HAVE_ICONV'.
12549         * tests/test-striconveha.c (main): Likewise.
12550         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12551         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12552         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12553         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12554         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12555         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12556         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12557         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12558         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12559         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12560         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12561         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12562         * tests/test-tsearch.c (main): Move some variable into the
12563         '#if HAVE_INITSTATE'.
12565 2019-01-27  Bruno Haible  <bruno@clisp.org>
12567         unigbrk/uc-grapheme-breaks: Fix build failure.
12568         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12569         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12571 2019-01-27  Bruno Haible  <bruno@clisp.org>
12573         mountlist: Merge two .m4 files.
12574         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12575         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12576         * m4/ls-mntd-fs.m4: Remove file.
12577         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12579 2019-01-27  Bruno Haible  <bruno@clisp.org>
12581         tests: Enable Linux specific tests on Android.
12582         * tests/test-flock.c (main): Treat Android like Linux.
12583         * tests/test-openat-safer.c (main): Likewise.
12585 2019-01-27  Bruno Haible  <bruno@clisp.org>
12587         relocatable-prog: Use Linux code on Android.
12588         * lib/progreloc.c: Treat Android like Linux.
12590 2019-01-26  Bruno Haible  <bruno@clisp.org>
12592         getloadavg: Add support for Android.
12593         * lib/getloadavg.c: Treat Android like Linux.
12595 2019-01-26  Bruno Haible  <bruno@clisp.org>
12597         vma-iter: Add support for Android.
12598         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12599         * lib/vma-iter.c: Treat Android like Linux.
12600         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12602 2019-01-26  Bruno Haible  <bruno@clisp.org>
12604         fts: Optimize on Android.
12605         * lib/fts.c: Treat Android like Linux.
12607 2019-01-26  Bruno Haible  <bruno@clisp.org>
12609         fts: Add support for Android.
12610         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12611         defined by this module and the ones in libc.
12612         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12614 2019-01-26  Bruno Haible  <bruno@clisp.org>
12616         mountlist: Use Linux code on Android.
12617         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12618         (unescape_tab, read_file_system_list): Enable Linux code on Android
12619         as well.
12620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12621         and endmntent.
12622         * modules/mountlist (Depends-on): Add 'getline'.
12624 2019-01-26  Bruno Haible  <bruno@clisp.org>
12626         localename tests: Fix test failure on Android.
12627         * modules/localename-tests (Depends-on): Add 'setlocale'.
12629 2019-01-26  Bruno Haible  <bruno@clisp.org>
12631         mountlist: Port better to Android.
12632         * lib/mountlist.c (MOUNTED): Redefine on Android.
12633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12634         Android.
12636 2019-01-26  Bruno Haible  <bruno@clisp.org>
12638         striconveh: Fix use of uninitialized iconv_t.
12639         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12640         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12641         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12643 2019-01-26  Bruno Haible  <bruno@clisp.org>
12645         nonblocking-socket-tests: Fix test failure on Android 4.3.
12646         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12647         also on Android.
12649 2019-01-26  Bruno Haible  <bruno@clisp.org>
12651         sh-filename: Add support for Android 4.3.
12652         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12654 2019-01-26  Bruno Haible  <bruno@clisp.org>
12656         ptsname_r: Work around bug on Android 4.3.
12657         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12658         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12659         correct.
12660         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12661         is defined, just fix the return value.
12662         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12663         The behaviour of musl libc is nothing to be "fixed", since it is
12664         compliant with the next POSIX standard.
12666 2019-01-26  Bruno Haible  <bruno@clisp.org>
12668         ttyname_r: Work around bug on Android 4.3.
12669         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12670         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12671         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12672         * doc/posix-functions/ttyname.texi: Likewise.
12674 2019-01-25  Bruno Haible  <bruno@clisp.org>
12676         getprogname: Port to Android 4.3.
12677         * lib/getprogname.c (getprogname): On Android, take only the last
12678         component of __progname.
12680 2019-01-25  Bruno Haible  <bruno@clisp.org>
12682         wcrtomb: Work around bug on Android 4.3.
12683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12684         the C locale.
12685         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12686         which does not have the 'wctomb' function.
12687         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12688         * tests/test-wcrtomb.c (main): Accept argument '5'.
12689         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12691 2019-01-25  Bruno Haible  <bruno@clisp.org>
12693         setlocale: Work around bug on Android 4.3.
12694         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12695         the "C" locale.
12696         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12697         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12699 2019-01-24  Bruno Haible  <bruno@clisp.org>
12701         memchr: Work around bug on Android <= 5.0.
12702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12703         * doc/posix-functions/memchr.texi: Mention the Android bug.
12705 2019-01-24  Bruno Haible  <bruno@clisp.org>
12707         random: Fix compilation error on Android 4.3.
12708         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12709         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12710         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12711         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12712         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12714         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12715         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12716         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12717         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12718         REPLACE_INITSTATE, REPLACE_SETSTATE.
12719         * doc/posix-functions/random.texi: Correct the description of the
12720         situation on Android.
12721         * doc/posix-functions/srandom.texi: Likewise.
12722         * doc/posix-functions/rand.texi: Likewise.
12723         * doc/posix-functions/srand.texi: Likewise.
12725 2019-01-24  Bruno Haible  <bruno@clisp.org>
12727         mbtowc: Fix compilation error on Android 4.3.
12728         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12729         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12730         HAVE_MBTOWC.
12731         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12732         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12733         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12734         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12735         * doc/posix-functions/mbtowc.texi: Mention the change.
12737 2019-01-24  Bruno Haible  <bruno@clisp.org>
12739         fdatasync: Fix compilation error on Android 4.3.
12740         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12741         test whether fdatasync() exists.
12743 2019-01-24  Bruno Haible  <bruno@clisp.org>
12745         unlinkat: Fix compilation error on Android 4.3.
12746         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12747         also on Android.
12748         * doc/posix-functions/unlinkat.texi: Mention the issue.
12750 2019-01-24  Bruno Haible  <bruno@clisp.org>
12752         renameat: Fix compilation error on Android 4.3.
12753         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12754         * doc/posix-functions/renameat.texi: Mention the issue.
12756 2019-01-24  Bruno Haible  <bruno@clisp.org>
12758         fchownat: Fix compilation error on Android 4.3.
12759         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12760         use.
12761         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12762         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12763         * doc/posix-functions/fchownat.texi: Mention the issue.
12765 2019-01-23  Bruno Haible  <bruno@clisp.org>
12767         gnulib-tool: Support running testdirs on Android.
12768         * build-aux/test-driver.diff: New file.
12769         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12770         build-aux/test-driver after running automake.
12772 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12774         relocatable-prog: avoid warnings from Automake
12775         * modules/relocatable-prog: Don't declare PHONY dependencies in
12776         Automake conditionals.
12778 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12780         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12781         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12783 2019-01-23  Bruno Haible  <bruno@clisp.org>
12785         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12786         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12787         preceding -Wl,--as-needed option. Don't check whether the linker
12788         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12790 2019-01-23  Bruno Haible  <bruno@clisp.org>
12792         thread: Force linking with -lpthread, even when --as-needed is in use.
12793         Reported by Richard W.M. Jones <rjones@redhat.com> in
12794         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
12795         * lib/glthread/thread.h (pthread_create): Don't declare weak.
12797 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
12798             Bruno Haible  <bruno@clisp.org>
12800         relocatable: avoid compiler warnings (-Wshadow)
12801         * lib/relocatable.c (compute_curr_prefix): Rename local variables
12802         to avoid name collisions with global variables.
12804 2019-01-22  Bruno Haible  <bruno@clisp.org>
12806         vasnprintf: Don't use %n on Android.
12807         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
12808         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
12809         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
12811 2019-01-22  Bruno Haible  <bruno@clisp.org>
12813         *printf: Support cross-compilation to Android.
12814         * m4/printf.m4: Add cross-compilation guesses for Android.
12816 2019-01-21  Bruno Haible  <bruno@clisp.org>
12818         diacrit: Mark deprecated.
12819         * modules/diacrit (Status, Notice): Mark as deprecated.
12820         * NEWS: Mention it.
12822 2019-01-20  Bruno Haible  <bruno@clisp.org>
12824         rintl: Override broken implementation on NetBSD.
12825         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12826         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12827         REPLACE_RINTL.
12828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12829         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12830         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12831         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12833 2019-01-20  Bruno Haible  <bruno@clisp.org>
12835         log10l: Work around inaccurate implementation on NetBSD.
12836         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12837         * lib/log10l.c: Comment out too simplistic override.
12838         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12840 2019-01-20  Bruno Haible  <bruno@clisp.org>
12842         logl: Work around inaccurate implementation on NetBSD.
12843         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12844         * lib/logl.c: Comment out unused code.
12845         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12847 2019-01-20  Bruno Haible  <bruno@clisp.org>
12849         expm1l: Work around inaccurate implementation on NetBSD.
12850         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12851         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12852         REPLACE_EXPM1L.
12853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12854         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12855         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12856         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12858 2019-01-20  Bruno Haible  <bruno@clisp.org>
12860         expl: Work around inaccurate implementation on NetBSD.
12861         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12862         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12863         REPLACE_EXPL.
12864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12865         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12866         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12867         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12869 2019-01-20  Bruno Haible  <bruno@clisp.org>
12871         exp2l: Work around inaccurate implementation on NetBSD.
12872         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12873         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12875 2019-01-20  Bruno Haible  <bruno@clisp.org>
12877         floor, floorl: Avoid autoconf warnings.
12878         * modules/floor (configure.ac): Use AC_REQUIRE.
12879         * modules/floorl (configure.ac): Likewise.
12881 2019-01-20  Bruno Haible  <bruno@clisp.org>
12883         Defeat current GCC optimizations in math autoconf tests.
12884         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12885         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12886         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12887         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12888         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12889         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12890         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12891         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12892         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12893         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12894         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12895         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12896         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12897         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12898         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12899         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12900         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12901         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12902         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12903         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12904         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12905         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12906         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12907         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12908         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12909         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12910         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12911         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12912         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12913         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12914         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12915         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12916         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12917         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12919         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12920         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12923 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12925         gettext: support disabling use of VLAs
12926         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12928 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12930         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12931         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12933 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12935         fcntl: Fix syntax error (regression from 2018-10-05).
12936         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12938 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12940         relocatable: improve documentation.
12941         * doc/relocatable-maint.texi (Supporting Relocation): For
12942         substitutions performed by config.status, we need more variables
12943         (for instance datarootdir defaults to '${prefix}/share' so we need
12944         prefix).
12946 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12948         backup: update dependencies
12949         * modules/backup-rename (Depends-on): It now depends on opendirat
12950         instead of opendir.  It also uses stdint, and xalloc-oversized.
12951         But no longer dirfd.
12952         * modules/backupfile (Depends-on): Add xalloc-oversized.
12954 2019-01-13  Bruno Haible  <bruno@clisp.org>
12956         getcwd: Fix test failure when building on a Linux 9p file system.
12957         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12958         EINVAL from mkdir like ENAMETOOLONG.
12959         * tests/test-getcwd.c (test_long_name): Likewise.
12961 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12963         Fix typos found by codespell.
12964         * lib/*.[hc]: Fix typos in comments.
12965         * pygnulib/*.py: Fix typos in error messages and comments.
12967 2019-01-12  Bruno Haible  <bruno@clisp.org>
12969         doc: Fix documentation about container data types.
12970         Reported by Werner Lemberg <wl@gnu.org>.
12971         * doc/containers.texi (Container data types): Fix typo.
12973 2019-01-10  Bruno Haible  <bruno@clisp.org>
12975         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12976         Reported by Reuben Thomas <rrt@sc3d.org>.
12977         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12979 2019-01-06  Bruno Haible  <bruno@clisp.org>
12981         maintainer-makefile: Make the configure.ac section optional.
12982         * top/maint.mk (GREP, SED): Define if not defined.
12984 2019-01-06  Bruno Haible  <bruno@clisp.org>
12986         localename: Assume setlocale function.
12987         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12988         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12990 2019-01-06  Bruno Haible  <bruno@clisp.org>
12992         doc: Add documentation about container data types.
12993         * doc/containers.texi: New file.
12994         * doc/gnulib.texi (Particular Modules): Include it.
12996 2019-01-06  Bruno Haible  <bruno@clisp.org>
12998         doc: Update documentation about 'progname' module.
12999         * doc/progname.texi: Rename from doc/error.texi. Change node name and
13000         title. Rewrite.
13001         * doc/gnulib.texi (Particular Modules): Update.
13003 2019-01-06  Bruno Haible  <bruno@clisp.org>
13005         doc: Document the xstdopen and *-safer modules.
13006         * doc/xstdopen.texi: New file.
13007         * doc/gnulib.texi (Particular Modules): Include it.
13009 2019-01-06  Bruno Haible  <bruno@clisp.org>
13011         xstdopen: Add tests.
13012         * tests/test-xstdopen.c: New file.
13013         * tests/test-xstdopen.sh: New file.
13014         * modules/xstdopen-tests: New file.
13016         xstdopen: New module.
13017         * lib/xstdopen.h: New file.
13018         * lib/xstdopen.c: New file.
13019         * modules/xstdopen: New file.
13021 2019-01-06  Bruno Haible  <bruno@clisp.org>
13023         stdopen: Fix compilation error with IRIX cc.
13024         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
13026 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13028         xfreopen need not include stdio--.h
13029         * lib/xfreopen.c: Do not include stdio--.h.
13031         xfreopen need not depend on freopen-safer
13032         * modules/xfreopen (Depends-on):
13033         Depend on freopen, not freopen-safer.
13035         stdopen: modernize and simplify
13036         * lib/stdopen.c: Update copyright date
13037         Do not include sys/types.h; no longer needed these days.
13038         (stdopen): Use C99-style decl in loop.  Return int errno
13039         value, rather than just a bool.  Do not worry about fd mismatches,
13040         since the caller cares only if 0, 1, 2 are occupied.
13041         * lib/stdopen.h: No need to include <stdbool.h>.
13042         * m4/stdopen.m4: Remove.
13043         * modules/stdopen: New file.
13045         stdopen: copy from last use in coreutils
13046         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
13047         New files, taken from their last commit in coreutils
13048         2007-07-23T12:35:58Z!jim@meyering.net
13049         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
13051 2019-01-05  Bruno Haible  <bruno@clisp.org>
13053         argp: Don't pass an invalid argument to dgettext().
13054         Reported by He X <xw897002528@gmail.com>.
13055         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
13056         dgettext().
13058 2019-01-05  Bruno Haible  <bruno@clisp.org>
13060         argp: Don't pass an invalid argument to dgettext().
13061         Reported by He X <xw897002528@gmail.com>.
13062         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
13063         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
13064         dgettext().
13066 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13068         stdioext: port to newer 32-bit Android
13069         Problem reported by Tom Yan in:
13070         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
13071         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
13072         (fp_) [__ANDROID__]: Use it.
13074 2019-01-04  Bruno Haible  <bruno@clisp.org>
13076         lock: Fix link error with --enable-threads=pth.
13077         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
13078         Mark as weak.
13080 2019-01-04  Bruno Haible  <bruno@clisp.org>
13082         Fix link errors in unit tests.
13083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13084         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
13085         * modules/array-map-tests (Makefile.am): Link test-array_map against
13086         libintl.
13087         * modules/array-set-tests (Makefile.am): Link test-array_set against
13088         libintl.
13089         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
13090         libintl.
13091         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
13092         libintl.
13093         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
13094         against libintl.
13095         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
13096         against libintl.
13098 2019-01-04  Bruno Haible  <bruno@clisp.org>
13100         Fix incorrect 'Link' sections.
13101         * modules/regex (Link): Mention the link requirement of module 'lock'.
13102         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
13104 2019-01-04  Bruno Haible  <bruno@clisp.org>
13106         Fix some 'Link' sections.
13107         * modules/c-stack (Link): Add link directive from the 'gettext-h'
13108         dependency.
13109         * modules/getaddrinfo (Link): Likewise.
13111 2019-01-04  Bruno Haible  <bruno@clisp.org>
13113         Remove redundant 'Link' sections.
13114         * modules/canon-host (Link): Remove section.
13115         * modules/timevar (Link): Likewise.
13117 2019-01-04  Bruno Haible  <bruno@clisp.org>
13119         Remove incorrect 'Link' sections.
13120         * modules/acl (Link): Remove section. Use combined 'Link' sections from
13121         the dependencies instead.
13122         * modules/crypto/md5 (Link): Likewise.
13123         * modules/crypto/sha1 (Link): Likewise.
13124         * modules/crypto/sha256 (Link): Likewise.
13125         * modules/crypto/sha512 (Link): Likewise.
13126         * modules/faccessat (Link): Likewise.
13127         * modules/fdutimensat (Link): Likewise.
13128         * modules/iconv_open-utf (Link): Likewise.
13129         * modules/propername (Link): Likewise.
13130         * modules/qacl (Link): Likewise.
13131         * modules/unicodeio (Link): Likewise.
13132         * modules/utimecmp (Link): Likewise.
13133         * modules/utimensat (Link): Likewise.
13134         * modules/xstriconv (Link): Likewise.
13135         * modules/xstriconveh (Link): Likewise.
13137 2019-01-04  Bruno Haible  <bruno@clisp.org>
13139         gnulib-tool: New option --extract-recursive-link-directive.
13140         * gnulib-tool (func_usage): Document the new options
13141         --extract-recursive-dependencies, --extract-recursive-link-directive.
13142         (func_verify_module): Document output variables.
13143         (func_get_dependencies_recursively): New function.
13144         (func_get_link_directive_recursively): New function.
13145         Use them to implement the new options
13146         --extract-recursive-dependencies, --extract-recursive-link-directive.
13147         * doc/gnulib-tool.texi (Link-time requirements): New section.
13149 2019-01-04  Bruno Haible  <bruno@clisp.org>
13151         Clarify meaning of 'Link' section in module description.
13152         * doc/gnulib.texi (Module description): Clarify the meaning of the
13153         'Link' section versus the one of the dependencies.
13154         * NEWS: Mention the change.
13156 2019-01-04  Bruno Haible  <bruno@clisp.org>
13158         pselect: Fix module description.
13159         * modules/pselect (Link): Put one link option per line.
13161 2019-01-04  Bruno Haible  <bruno@clisp.org>
13163         cosl: Fix module description.
13164         * modules/cosl (Link): Fix typo.
13165         * modules/mathl (configure.ac): Likewise.
13167 2019-01-04  Bruno Haible  <bruno@clisp.org>
13169         c-xvasprintf: Fix module dependencies.
13170         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
13172 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
13174         bootstrap: die when some submodules are not initialized
13175         * build-aux/bootstrap: Make sure all submodules are initialized.
13177 2019-01-04  Bruno Haible  <bruno@clisp.org>
13179         bitsetv: Fix module dependencies.
13180         * lib/bitsetv.c: Include xalloc.h.
13181         * modules/bitsetv (Depends-on): Add 'xalloc'.
13183 2019-01-04  Bruno Haible  <bruno@clisp.org>
13185         xmemdup0: Remove redundant code.
13186         * lib/xmemdup0.h (xalloc_die): Remove declaration.
13188 2019-01-04  Bruno Haible  <bruno@clisp.org>
13190         backupfile: Fix module dependencies.
13191         * modules/backupfile (Depends-on): Add 'xalloc'.
13193 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13195         bitset, crypto/gc: fix conflicts with Solaris 11
13196         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
13197         avoid clash with Solaris 11 <sys/bitset.h>.
13198         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
13199         with Solaris 11 <xorg/gc.h>.
13201 2019-01-04  Bruno Haible  <bruno@clisp.org>
13203         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
13204         Reported by Andy Fiddaman <andy@omniosce.org>.
13205         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
13207 2019-01-03  Eric Blake  <eblake@redhat.com>
13209         maintainer-makefile: fix typo in previous patch
13210         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
13211         of Roman's work.
13213 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
13215         maintainer-makefile: prefer $(GREP) over grep
13216         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
13217         defined.
13218         * top/maint.mk: Use it everywhere.
13220         maintainer-makefile: split long argument lines
13221         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
13222         it would be too long for exec limits on BSD.
13224 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13226         mkfifo: bring back HAVE_MKFIFO macro
13227         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
13228         Problem reported by Andrew Janke in:
13229         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
13231 2018-12-21  Bruno Haible  <bruno@clisp.org>
13233         Assume Autoconf >= 2.63.
13234         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
13235         versions < 2.60.
13237 2018-12-21  Bruno Haible  <bruno@clisp.org>
13239         memcmp: Mention the clang bug.
13240         * tests/test-memcmp.c: Add comment about a known test failure.
13241         * doc/posix-functions/memcmp.texi: Mention the clang bug.
13243 2018-12-20  Jim Meyering  <meyering@fb.com>
13245         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
13246         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
13247           echo '123-x'|LC_ALL=C grep -E '.\bx'
13248         The goal is to revert the first, but reverting it requires to restore
13249         the function deleted in the second. I ran this to restore the deleted
13250         function:
13251           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
13252             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
13253             | patch -R -p1
13254         * lib/dfa.c (charclass_context): Restore deleted function.
13255         Reverting the primary commit removes this change:
13256         dfa: Simplify a building state
13257         * lib/dfa.c (build_state): Simplify a building state.
13259 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13261         version-etc: allow zero authors
13262         * lib/version-etc.c (version_etc_arn): If no authors are given,
13263         omit authorship info instead of dumping core.
13265 2018-12-19  Bruno Haible  <bruno@clisp.org>
13267         lchown tests: Be more permissive regarding errno values.
13268         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
13269         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
13270         alternative to ENOSYS.
13271         * modules/lchown-tests (Depends-on): Add 'errno'.
13272         * modules/fchownat-tests (Depends-on): Likewise.
13274 2018-12-18  Bruno Haible  <bruno@clisp.org>
13276         duplocale: Avoid test failure on AIX 7.
13277         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
13278         (configure.ac): Invoke gt_FUNC_USELOCALE.
13279         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
13280         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
13281         works.
13283 2018-12-18  Bruno Haible  <bruno@clisp.org>
13285         localename: Fix test failure on AIX 7.
13286         Reported by Assaf Gordon in
13287         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
13288         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
13289         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
13290         instead of ac_cv_func_uselocale.
13291         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
13292         HAVE_USELOCALE.
13293         * lib/localename-table.h: Likewise.
13294         * lib/localename-table.c: Likewise.
13295         * tests/test-localename.c: Likewise.
13296         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
13298 2018-12-18  Bruno Haible  <bruno@clisp.org>
13300         localename: Update comments regarding Cygwin.
13301         * lib/localename.c: Update comment.
13302         * doc/posix-functions/uselocale.texi: Update platforms list.
13303         * doc/posix-functions/newlocale.texi: Likewise.
13304         * doc/posix-functions/duplocale.texi: Likewise.
13305         * doc/posix-functions/freelocale.texi: Likewise.
13307 2018-12-16  Bruno Haible  <bruno@clisp.org>
13309         c-stack: Fix for Linux/sparc.
13310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
13311         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
13313 2018-12-16  Bruno Haible  <bruno@clisp.org>
13315         localename: Avoid test failure on some glibc systems.
13316         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13317         Unset environment variables that might disturb the first setlocale call,
13318         and verify that this setlocale call succeeds.
13320 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
13322         random: Fix build error on native Windows (regression from 2018-06-21).
13323         * lib/random.c (__srandom, __initstate, __setstate, __random,
13324         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
13325         to the symbols without '__' prefix.
13327 2018-12-16  Bruno Haible  <bruno@clisp.org>
13329         obstack, libc-config: Support HP-UX cc in C99 mode.
13330         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
13331         compiler, even when in C99 mode.
13332         * lib/cdefs.h (__flexarr): Likewise.
13333         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
13335 2018-12-16  Bruno Haible  <bruno@clisp.org>
13337         localename: Fix test failure on OpenBSD >= 6.2.
13338         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
13339         locale system. Define HAVE_FAKE_LOCALES in this case.
13340         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
13341         HAVE_USELOCALE.
13342         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
13343         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
13344         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
13345         platforms list.
13346         * doc/posix-functions/newlocale.texi: Likewise.
13347         * doc/posix-functions/duplocale.texi: Update platforms list.
13348         * doc/posix-functions/freelocale.texi: Likewise.
13350 2018-12-16  Bruno Haible  <bruno@clisp.org>
13352         duplocale tests: Re-enable the test on platforms without <monetary.h>.
13353         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
13354         of the test, on platforms without <monetary.h>.
13356 2018-12-16  Bruno Haible  <bruno@clisp.org>
13358         localename: Update comments.
13359         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
13361 2018-12-15  Jim Meyering  <meyering@fb.com>
13363         regex: fix indentation
13364         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
13366 2018-12-15  Bruno Haible  <bruno@clisp.org>
13368         openat-safer tests: Avoid test failure on NetBSD 8.
13369         * tests/test-openat-safer.c (main): Execute a Linux specific test only
13370         on Linux.
13372 2018-12-15  Jim Meyering  <meyering@fb.com>
13374         regex: work around a bug in glibc-2.27 and prior
13375         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
13376         assertion for /0|()0|\1|0/.
13377         * tests/test-regex.c (main): Add the same test here.
13379 2018-12-15  Bruno Haible  <bruno@clisp.org>
13381         localename: Fix use of uninitialized shell variable.
13382         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13383         gt_cv_locale_solaris114 always before use. Remove assignment without
13384         effect.
13386 2018-12-15  Bruno Haible  <bruno@clisp.org>
13388         dfa tests: Avoid test failure on Alpine Linux.
13389         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13390         command found on Alpine Linux.
13392 2018-12-15  Jim Meyering  <meyering@fb.com>
13394         dfa: avoid new warnings from gcc
13395         These would prevent building with -Werror and a Dec snapshot of gcc.
13396         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13397         Rename each inner instance to "p".
13398         (charclass_context): Remove unused static function.
13400 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13402         mkdir-p: improve diagnostic for FUSE mounts
13403         Problem reported by Niklas Hambüchen in:
13404         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13405         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13406         errno to mkdir errno if the stat errno is likely more interesting.
13408 2018-12-14  Bruno Haible  <bruno@clisp.org>
13410         hash-map: Add tests.
13411         * tests/test-hash_map.c: New file.
13412         * modules/hash-map-tests: New file.
13414         linkedhash-map: Add tests.
13415         * tests/test-linkedhash_map.c: New file.
13416         * modules/linkedhash-map-tests: New file.
13418         array-map: Add tests.
13419         * tests/test-array_map.c: New file.
13420         * modules/array-map-tests: New file.
13422         xmap: New module.
13423         * lib/gl_xmap.h: New file.
13424         * lib/gl_xmap.c: New file.
13425         * modules/xmap: New file.
13427         hash-map: New module.
13428         * lib/gl_hash_map.h: New file.
13429         * lib/gl_hash_map.c: New file.
13430         * modules/hash-map: New file.
13432         linkedhash-map: New module.
13433         * lib/gl_linkedhash_map.h: New file.
13434         * lib/gl_linkedhash_map.c: New file.
13435         * lib/gl_anyhash1.h: Update comments.
13436         * lib/gl_anyhash2.h: Likewise.
13437         * modules/linkedhash-map: New file.
13439         array-map: New module.
13440         * lib/gl_array_map.h: New file.
13441         * lib/gl_array_map.c: New file.
13442         * modules/array-map: New file.
13444         map: New module.
13445         * lib/gl_map.h: New file.
13446         * lib/gl_map.c: New file.
13447         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13448         conflict with gl_map.h.
13449         * modules/map: New file.
13451 2018-12-13  Bruno Haible  <bruno@clisp.org>
13453         select tests: Avoid test failure on Cygwin.
13454         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13456 2018-12-13  Bruno Haible  <bruno@clisp.org>
13458         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13459         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13461 2018-12-13  Bruno Haible  <bruno@clisp.org>
13463         localeconv tests: Avoid test failure on Cygwin.
13464         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13465         'mon_grouping' tests.
13467 2018-12-11  Bruno Haible  <bruno@clisp.org>
13469         omap: Don't dispose the old value when the function returns it.
13470         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13471         here.
13472         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13473         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13474         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13475         here.
13477         array-omap, avltree-omap, rbtree-omap: Tweak style.
13478         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13479         false.
13480         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13482         rbtree-omap: Add tests.
13483         * tests/test-rbtree_omap.c: New file.
13484         * modules/rbtree-omap-tests: New file.
13486         avltree-omap: Add tests.
13487         * tests/test-avltree_omap.c: New file.
13488         * modules/avltree-omap-tests: New file.
13490         array-omap: Add tests.
13491         * tests/test-array_omap.c: New file.
13492         * modules/array-omap-tests: New file.
13494         xomap: New module.
13495         * lib/gl_xomap.h: New file.
13496         * lib/gl_xomap.c: New file.
13497         * modules/xomap: New file.
13499         rbtree-omap: New module.
13500         * lib/gl_rbtree_omap.h: New file.
13501         * lib/gl_rbtree_omap.c: New file.
13502         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13503         Parameterize.
13504         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13505         * modules/rbtree-omap: New file.
13506         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13507         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13509         avltree-omap: New module.
13510         * lib/gl_avltree_omap.h: New file.
13511         * lib/gl_avltree_omap.c: New file.
13512         * lib/gl_avltree_ordered.h: Code moved to here from
13513         lib/gl_avltree_oset.c. Parameterize.
13514         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13515         * lib/gl_anytree_omap.h: New file.
13516         * modules/avltree-omap: New file.
13517         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13518         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13520         array-omap: New module.
13521         * lib/gl_array_omap.h: New file.
13522         * lib/gl_array_omap.c: New file.
13523         * modules/array-omap: New file.
13525         omap: New module.
13526         * lib/gl_omap.h: New file.
13527         * lib/gl_omap.c: New file.
13528         * modules/omap: New file.
13530 2018-12-11  Bruno Haible  <bruno@clisp.org>
13532         hash-set, linkedhash-set: Reduce code duplication.
13533         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13534         lib/gl_anyhash_set1.h.
13535         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13536         lib/gl_anyhash_set2.h. Parameterize.
13537         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13538         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13539         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13540         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13541         * lib/gl_rbtreehash_list.c: Likewise.
13542         * lib/gl_linkedhash_list.c: Likewise.
13543         (hash_resize_after_add): Remove function.
13544         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13545         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13546         * gl_hash_set.c: Likewise.
13547         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13548         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13549         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13550         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13551         * modules/hash-set (Files, Makefile.am): Likewise.
13553 2018-12-11  Bruno Haible  <bruno@clisp.org>
13555         array-set: Optimize.
13556         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13557         outside the loop, not inside the loop.
13559 2018-12-11  Bruno Haible  <bruno@clisp.org>
13561         times: Fix tests.
13562         * tests/test-times.c (doublecmp): Implement a total order.
13564 2018-12-11  Bruno Haible  <bruno@clisp.org>
13566         array-set, linkedhash-set, hash-set: Fix tests.
13567         * tests/test-array_set.c (cmp_objects_in_array): New function.
13568         (check_equals): Use it.
13569         * tests/test-hash_set.c: Likewise.
13570         * tests/test-linkedhash_set.c: Likewise.
13572 2018-12-08  Bruno Haible  <bruno@clisp.org>
13574         Fix comments.
13575         * lib/gl_list.h (gl_list_free): Clarify what it does.
13576         * lib/gl_oset.h (gl_oset_free): Likewise.
13577         * lib/gl_set.h (gl_set_free): Likewise.
13578         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13579         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13580         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13581         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13583 2018-12-03  Bruno Haible  <bruno@clisp.org>
13585         hash-set: Add tests.
13586         * tests/test-hash_set.c: New file.
13587         * modules/hash-set-tests: New file.
13589         linkedhash-set: Add tests.
13590         * tests/test-linkedhash_set.c: New file.
13591         * modules/linkedhash-set-tests: New file.
13593         array-set: Add tests.
13594         * tests/test-array_set.c: New file.
13595         * modules/array-set-tests: New file.
13597         xset: New module.
13598         * lib/gl_xset.h: New file.
13599         * lib/gl_xset.c: New file.
13600         * modules/xset: New file.
13602         hash-set: New module.
13603         * lib/gl_hash_set.h: New file.
13604         * lib/gl_hash_set.c: New file.
13605         * modules/hash-set: New file.
13607         linkedhash-set: New module.
13608         * lib/gl_linkedhash_set.h: New file.
13609         * lib/gl_linkedhash_set.c: New file.
13610         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13611         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13612         * lib/gl_anyhash_primes.h: New file, extracted from
13613         lib/gl_anyhash_list2.h.
13614         * lib/gl_anyhash_list2.h: Include it.
13615         (primes, next_prime): Remove definitions.
13616         * modules/linkedhash-set: New file.
13617         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13618         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13619         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13620         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13621         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13622         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13624         array-set: New module.
13625         * lib/gl_array_set.h: New file.
13626         * lib/gl_array_set.c: New file.
13627         * modules/array-set: New file.
13629         set: New module.
13630         * lib/gl_set.h: New file.
13631         * lib/gl_set.c: New file.
13632         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13633         gl_set.h.
13634         * modules/set: New file.
13636 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13638         bison: don't force the Yacc mode
13639         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13640         errors when Bison features are used in the grammar file.  Some of
13641         these features (such as %expect) were flagged non-yacc recently.  Most
13642         of the time, -y is actually used to please Automake's ylwrap which
13643         expects the output to be y.tab.c.
13644         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13646 2018-12-01  Bruno Haible  <bruno@clisp.org>
13648         gnupload: Document short options.
13649         * build-aux/gnupload (usage): Document the short options.
13651 2018-11-28  Ben Elliston  <bje@gnu.org>
13653         gnupload: Support option -h as alias of --help.
13654         * build-aux/gnupload: Support -h.
13656 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13658         memrchr: port better to clang
13659         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13660         longword *, to pacify clang -Wcast-align (Bug#33544).
13662 2018-11-29  Eric Blake  <eblake@redhat.com>
13664         docs: mention printf %m considerations
13665         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13666         is not portable, and is easy enough to work around.
13667         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13668         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13669         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13670         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13671         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13672         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13673         * doc/posix-functions/printf.texi (printf): Likewise.
13674         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13675         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13676         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13677         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13678         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13679         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13680         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13681         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13682         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13683         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13684         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13685         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13687 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13689         bitset: rename ebitset/expandable.* as tbitset/table.*
13690         See
13691         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13692         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13693         * lib/bitset/table.h, lib/bitset/table.c: these.
13694         Rename all the ebitset* symbols as tbitset*.
13695         Adjust dependencies.
13697 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13699         bitset: check the operations
13700         * tests/test-bitset.c (bitset_random): New.
13701         Use it.
13702         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13704 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13706         bitset: properly use false/true instead of 0/1 for Booleans
13707         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13708         0/1, as Booleans.
13710 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13712         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13713         For consistency with the name of the file.
13714         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13715         * lib/bitset/stats.c, lib/bitset/vector.c
13716         (BITSET_VARRAY): Rename as...
13717         (BITSET_VECTOR): this.
13719 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13721         strerror_r-posix: memmove, not memcpy
13722         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13723         since the source and destination might overlap in the call
13724         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13725         Simplify.
13727 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13729         bitsetv: new module
13730         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13732 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13734         bitset: add tests and doc
13735         First stabs at providing a documentation and test for the bitset
13736         module.
13737         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13739 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13741         bitset: new module
13742         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13743         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13744         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13745         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13746         * lib/bitset/vector.h, modules/bitset:
13747         New.
13749 2018-11-23  Bruno Haible  <bruno@clisp.org>
13751         localename: Fix gettext test failures on mingw.
13752         * lib/localename.c (gl_locale_name_posix): Convert the result of
13753         gl_locale_name_environ to XPG syntax.
13755 2018-11-23  Karl Berry  <karl@freefriends.org>
13757         * config/srclistvars.txt,
13758         * config/srclist.txt: remove all gettext references;
13759         the gettext maintainers will sync as needed.
13761 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13763         mktime: add libc-config dependency
13764         I missed this when we synced from glibc.
13765         * modules/mktime (Depends-on): Add libc-config.
13767 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13769         longlong: fix comment typo
13770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13772 2018-11-11  Bruno Haible  <bruno@clisp.org>
13774         havelib: Remove the need to include asm-underscore.m4.
13775         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13776         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13777         gl_HOST_CPU_C_ABI.
13778         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13779         (Depends-on): Remove host-cpu-c-abi.
13781 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13783         parse-datetime: simplify test for mktime failure
13784         * lib/parse-datetime.y (mktime_ok): Simplify.
13785         Remove args TZ and T; no longer needed.  Callers changed.
13787         posixtm: simplify test for mktime failure
13788         * lib/posixtm.c (posixtime): Simplify.
13790         nstrftime: simplify test for mktime failure
13791         * lib/nstrftime.c (__strftime_internal): Simplify.
13793 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13795         gnulib-common.m4: port _Noreturn to C++
13796         Problem reported by Akim Demaille in:
13797         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
13798         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
13799         Merge adjustments from _Noreturn.h and from glibc into the non-C++
13800         version.
13801         * lib/_Noreturn.h: Match gnulib-common.
13803 2018-10-30  Bruno Haible  <bruno@clisp.org>
13805         gnu-make: Fix for NetBSD 8 'make'.
13806         Reported by Reuben Thomas in
13807         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
13808         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
13809         output, ignoring exit codes.
13811 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
13813         maintainer-makefile: fix syntax-check rule for "same.h"
13814         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
13815         for 'same_nameat', too.
13817 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13819         havelib: fix nested ‘configure’ chatter
13820         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13821         AC_CACHE_CHECK calls, which resulted in confusing output like
13822         “checking for the common suffixes of directories in the library
13823         search path... checking for 64-bit host... no lib,lib”.
13825         backupfile: tweak for better code
13826         * lib/backupfile.c: Sort include directives, and remove
13827         unnecessary <limits.h> include.
13828         (FALLTHROUGH): New macro, copied from other modules.
13829         (backupfile_internal): Use it to avoid code duplication.
13830         This lets GCC 8.2.1 generate better code by inlining the
13831         call to check_extension.
13833 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13835         backupfile: new dir_fd args
13836         New module opendirat with code taken from fts.
13837         Use this module to let backupfile use a directory file descriptor.
13838         * NEWS: Document the incompatible change.
13839         * lib/backup-find.c (find_backup_file_name):
13840         * lib/backup-rename.c (backup_file_rename):
13841         New arg DIR_FD.
13842         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13843         (SIZE_MAX): Remove.
13844         Include opendirat.h rather than dirent--.h.
13845         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13846         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13847         (backupfile_internal): New arg DIR_FD.  All callers changed.
13848         * lib/fts.c: Include opendirat.h.
13849         (opendirat): Move to opendirat.c.
13850         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13851         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13852         Add opendirat.
13853         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13854         Add opendirat.
13856 2018-10-23  Bruno Haible  <bruno@clisp.org>
13858         localename: Simplify support for per-thread locales on Solaris 11.4.
13859         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13860         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13861         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13862         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13863         specific code.
13864         * lib/localename-table.h: Update comments.
13865         * lib/localename-table.c: Update comments.
13866         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13867         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13868         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13869         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13870         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13871         HAVE_NAMELESS_LOCALES here.
13872         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13873         m4/intlsolaris.m4.
13874         * modules/gettext (Files): Likewise.
13876 2018-10-22  Bruno Haible  <bruno@clisp.org>
13878         std-gnu11: Support Autoconf versions < 2.64.
13879         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13880         when _AC_DO_LIMIT does not exist.
13882 2018-10-22  Bruno Haible  <bruno@clisp.org>
13884         Assume Autoconf >= 2.63.
13885         * DEPENDENCIES: Mention the requirement.
13887         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13888         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13889         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13890         * m4/onceonly.m4: Remove file.
13892         * m4/openmp.m4: Remove file.
13893         * modules/openmp (Files): Remove m4/openmp.m4.
13895         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13896         htmldir, dvidir, pdfdir, psdir, localedir.
13897         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13899         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13900         Autoconf < 2.60.
13901         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13902         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13904         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13905         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13906         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13908         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13909         exists.
13910         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13913         Autoconf < 2.61.
13915         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13916         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13917         Autoconf >= 2.52.
13919         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13920         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13921         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13923 2018-10-22  Bruno Haible  <bruno@clisp.org>
13925         Assume Automake >= 1.11.
13926         * m4/configmake.m4: Update comments.
13927         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13928         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13929         of 'eval'.
13930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13931         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13932         requires Automake >= 1.11.
13934 2018-10-22  Bruno Haible  <bruno@clisp.org>
13936         localename: Fix typo in comment.
13937         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13939 2018-10-22  Bruno Haible  <bruno@clisp.org>
13941         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13942         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13944 2018-10-21  Bruno Haible  <bruno@clisp.org>
13946         locale: Ease integration with GNU libintl.
13947         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13948         GNULIB_defined_freelocale): New macros.
13950 2018-10-21  Bruno Haible  <bruno@clisp.org>
13952         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13953         * lib/localename-table.h: New file, extracted from lib/localename.c.
13954         * lib/localename-table.c: Likewise.
13955         * lib/localename.c: Include localename-table.h.
13956         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13957         locale_hash_function instead of pointer_hash.
13958         * modules/localename (Files): Add lib/localename-table.h,
13959         lib/localename-table.c.
13960         (lib_SOURCES): Add localename-table.c.
13961         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13962         for Solaris 11.4 locale system only on Solaris. Test for it
13963         independently whether getlocalename_l exists.
13964         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13965         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13966         HAVE_NAMELESS_LOCALES.
13967         * modules/gettext (Files): Add m4/intlsolaris.m4.
13969 2018-10-21  Bruno Haible  <bruno@clisp.org>
13971         Small update from gettext.
13972         * m4/intl.m4: Update from gettext:
13973         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13974         mode on AIX.
13975         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13976         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13978 2018-10-16  Bruno Haible  <bruno@clisp.org>
13980         mountlist: Remove support for Cray with UNICOS 9.
13981         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13982         MOUNTED_LISTMNTENT.
13983         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13985 2018-10-16  Bruno Haible  <bruno@clisp.org>
13987         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13988         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13989         STAT_STATFS2_FS_DATA.
13990         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13991         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13992         MOUNTED_GETMNT.
13993         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13994         * lib/getloadavg.c (decstation): Remove definition and case.
13995         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13996         * lib/getgroups.c: Likewise.
13997         * doc/posix-functions/getgroups.texi: Likewise.
13998         * lib/time.in.h: Update comments.
14000 2018-10-16  Bruno Haible  <bruno@clisp.org>
14002         getloadavg: Remove support for ConvexOS.
14003         * lib/getloadavg.c: Remove convex case.
14005 2018-10-16  Bruno Haible  <bruno@clisp.org>
14007         getloadavg: Remove support for Sony NEWS.
14008         * lib/getloadavg.c: Remove sony_news case.
14010 2018-10-16  Bruno Haible  <bruno@clisp.org>
14012         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
14013         * lib/fsusage.c: Remove _SEQUENT_ case.
14014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14015         * lib/mountlist.c: Don't test for MNTTABNAME.
14016         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
14017         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
14018         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
14019         * lib/stat-size.h: Don't mention the Sequent bug.
14020         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
14022 2018-10-16  Bruno Haible  <bruno@clisp.org>
14024         fsusage: Remove support for AIX 3.
14025         * lib/fsusage.c: Remove code for AIX 3.
14026         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
14028 2018-10-16  Bruno Haible  <bruno@clisp.org>
14030         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
14031         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
14032         * lib/fsusage.c: Remove code for AIX PS/2.
14033         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
14034         * lib/getloadavg.c: Likewise.
14036 2018-10-16  Bruno Haible  <bruno@clisp.org>
14038         getloadavg: Remove support for HP-UX on m68k.
14039         * lib/getloadavg.c: Remove hp9000s300 case.
14041 2018-10-16  Bruno Haible  <bruno@clisp.org>
14043         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
14044         * lib/fsusage.c: Remove DOLPHIN case.
14045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14046         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
14048 2018-10-16  Bruno Haible  <bruno@clisp.org>
14050         getloadavg: Remove support for Alliant FX/2800.
14051         * lib/getloadavg.c: Remove alliant case.
14053 2018-10-16  Bruno Haible  <bruno@clisp.org>
14055         getloadavg: Remove support for tek4300.
14056         * lib/getloadavg.c: Remove tek4300 case.
14058 2018-10-16  Bruno Haible  <bruno@clisp.org>
14060         getloadavg: Remove support for Ardent.
14061         * lib/getloadavg.c: Remove ardent case.
14063 2018-10-16  Bruno Haible  <bruno@clisp.org>
14065         mountlist: Remove support for SVR2.
14066         Reported by Andrew Borodin <aborodin@vmail.ru> in
14067         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
14068         * lib/mountlist.c: Remove MOUNTED_FREAD case.
14069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14070         MOUNTED_FREAD.
14072 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14074         libc-config: merge from glibc
14075         * lib/cdefs.h (__glibc_has_attribute): New macro.
14077         regex: depend on libc-config
14078         * modules/regex (Depends-on): Add libc-config.
14079         This is needed after the recent autoupdate from glibc.
14081 2018-10-14  Bruno Haible  <bruno@clisp.org>
14083         localename: Add support for per-thread locales on Solaris 11.4.
14084         * lib/locale.in.h (newlocale, freelocale): New declarations.
14085         (duplocale): Declare also when the 'localename' module requests it.
14086         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
14087         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
14088         (struniq): Update.
14089         (struct locale_categories_names, struct locale_hash_node): New types.
14090         (LOCALE_HASH_TABLE_SIZE): New constant.
14091         (locale_hash_table, locale_lock): New variables.
14092         (pointer_hash, get_locale_t_name): New functions.
14093         (newlocale, duplocale, freelocale): New overridden functions.
14094         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
14095         * m4/intlsolaris.m4: New file.
14096         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
14097         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
14098         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
14099         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
14100         declared.
14101         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
14102         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14103         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
14104         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14105         * modules/localename (Files): Add intlsolaris.m4.
14106         (Depends-on): Add 'locale'.
14107         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
14108         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
14109         the signatures.
14111 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
14113         timevar: use gethrxtime to get wall clock time
14114         clock_gettime is not portable.  gethrxtime takes the best available
14115         option to get the wall clock time, including clock_gettime (monotonic
14116         clock), and gettime (non monotonic).
14117         Also, using xtime_t instead of float preserves the precision.
14118         Suggested by Bruno Haible.
14119         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
14120         * modules/timevar (Depends-on): We need gethrxtime.
14121         We no longer use times().
14122         (Link): Update.
14123         * lib/timevar.h (timevar_time_def): Use xtime_t.
14124         * lib/timevar.c (set_to_current_time): Use gethrxtime.
14125         (timevar_print): Instead of checking whether the timings themselves
14126         are large enough for the timevar to be printed, check the percentages.
14128 2018-10-14  Bruno Haible  <bruno@clisp.org>
14130         wcsnrtombs: Work around Solaris 11.4 bug.
14131         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
14132         macro.
14133         (gl_FUNC_WCSNRTOMBS): Invoke it.
14134         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
14136 2018-10-14  Bruno Haible  <bruno@clisp.org>
14138         mbsnrtowcs: Work around Solaris 11.4 bug.
14139         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
14140         macro.
14141         (gl_FUNC_MBSNRTOWCS): Invoke it.
14142         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
14144 2018-10-14  Bruno Haible  <bruno@clisp.org>
14146         doc: Update for Solaris 11.4.
14147         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
14148         mention Solaris 11.4.
14149         * m4/printf.m4: Update comments about Solaris.
14150         * m4/log.m4: Likewise.
14151         * m4/log10.m4: Likewise.
14152         * m4/logb.m4: Likewise.
14153         * m4/logbf.m4: Likewise.
14154         * m4/logbl.m4: Likewise.
14155         * m4/rename.m4: Likewise.
14156         * m4/wcrtomb.m4: Likewise.
14157         * m4/hostent.m4: Likewise.
14158         * m4/servent.m4: Likewise.
14160 2018-10-14  Bruno Haible  <bruno@clisp.org>
14162         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
14163         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
14164         pointer.
14165         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
14166         pointer.
14167         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
14168         pointer.
14169         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
14170         pointer.
14171         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
14172         pointer.
14174 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14176         bootstrap: fix wget command for po files.
14177         * build-aux/bootstrap (po_download_command_format): Fix comment,
14178         and adjust callers.
14180 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14182         timevar: improve the output format
14183         Suggested by Bruno Haible.
14184         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
14185         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
14186         wall, since its resolution is much higher.
14188 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14190         timevar: expect that getrusage is available.
14191         Don't keep both times and getrusage as backend: both are guaranteed by
14192         gnulib, a single one suffices.  Using getrusage is open to possibly
14193         tracking other types of resources in the future.
14194         * modules/timevar (Depends-on): Add getrusage.
14195         (configure.ac): Remove gl_TIMEVAR.
14196         (Files): Remove m4/timevar.m4.
14197         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
14198         * lib/timevar.h (timevar_enabled): Clarify documentation.
14199         * lib/timevar.c: Remove all the code about times.
14200         Remove all the CPP guards about getrusage: expect it to be present
14201         (courtesy of gnulib).
14203 2018-10-12  Bruno Haible  <bruno@clisp.org>
14205         mountlist: Improve support for Solaris in 64-bit mode.
14206         Reported by David Wood <David.Wood@deshaw.com> in
14207         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
14208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
14209         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
14210         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
14212 2018-10-12  Bruno Haible  <bruno@clisp.org>
14214         mountlist: Add support for Minix.
14215         Reported by Assaf Gordon in
14216         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
14217         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
14218         AC_CHECK_FUNCS to check for 'getmntinfo'.
14219         * lib/mountlist.c: Update comments.
14221 2018-10-12  Bruno Haible  <bruno@clisp.org>
14223         Make better use of Autoconf.
14224         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
14225         * m4/manywarnings.m4: Likewise.
14226         * m4/manywarnings-c++.m4: Likewise.
14227         * m4/socklen.m4: Likewise.
14228         * m4/sockpfaf.m4: Likewise.
14229         * m4/stdarg.m4: Likewise.
14230         * m4/visibility.m4: Likewise.
14231         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
14232         indentation.
14233         * m4/ls-mntd-fs.m4: Likewise.
14235 2018-10-11  Bruno Haible  <bruno@clisp.org>
14237         mountlist: Modernize platform lists.
14238         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
14239         platforms, deemphasizing the obsolete ones.
14240         * lib/mountlist.c: Likewise.
14242 2018-10-11  Bruno Haible  <bruno@clisp.org>
14244         getprogname: Add support for 32-bit programs on HP-UX.
14245         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
14246         try the similar functions 32-bit programs on 64-bit HP-UX.
14248 2018-10-11  Bruno Haible  <bruno@clisp.org>
14250         getprogname: Work around program name truncation when possible.
14251         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
14252         possibly use pst_cmd instead.
14254 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14256         fts: cleanup after FTS_NOATIME removal
14257         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
14258         (FTS_STOP): Shrink to minimal values.  We don’t need to
14259         worry about binary compatibility in Gnulib, and the old way
14260         of doing things had a hole in the user options that caused
14261         FTS_OPTIONMASK to not work as desired.
14263 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
14265         fts: remove FTS_NOATIME
14266         This reverts commit da4d6974013c822af1498941e32db774b2031765.
14267         We cannot guarantee that O_NOATIME works: e.g. openat fails
14268         with EPERM if the effective user ID of the caller does not match
14269         the owner of the file and the caller is not privileged.
14270         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
14271         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
14272         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
14273         (FTS_OPTIONMASK): Adjust.
14274         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
14275         (fd_ring_check): Likewise.
14277 2018-10-08  Bruno Haible  <bruno@clisp.org>
14279         csharpcomp*, csharpexec*: Remove support for pnet.
14280         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
14281         HAVE_CSCC.
14282         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
14283         Don't test HAVE_CSCC.
14284         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
14285         (compile_csharp_class): Don't invoke it.
14286         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
14287         HAVE_ILRUN.
14288         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
14289         Don't test HAVE_ILRUN.
14290         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
14291         (execute_csharp_program): Don't invoke it.
14292         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
14293         any more.
14295 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
14297         renameatu: prefer renameat2 to syscall
14298         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
14299         Use renameat2 instead of syscall (Bug#32796).
14300         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
14302 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14304         bootstrap, gnulib-tool: use https instead of insecure rsync
14305         * build-aux/bootstrap (download_po_files, po_download_command_format):
14306         Don't try using rsync; always use wget over https to fetch PO files.
14307         * gnulib-tool (func_import): Likewise.
14308         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14310 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14312         bootstrap, gnulib-tool: correct the translations wget command
14313         * build-aux/bootstrap (po_download_command_format2): Restrict
14314         recursion to a single level.
14315         * gnulib-tool (func_import): Likewise.
14316         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14318 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14320         doc: the gnulib snapshots are not maintained
14321         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
14323 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14325         timevar: add to lib_SOURCES
14326         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
14328 2018-10-07  Bruno Haible  <bruno@clisp.org>
14330         dirent: Update documentation.
14331         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
14333 2018-10-05  Bruno Haible  <bruno@clisp.org>
14335         strpbrk: Make it possible to namespace the defined symbol.
14336         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
14338 2018-10-05  Bruno Haible  <bruno@clisp.org>
14340         strcspn: Make it possible to namespace the defined symbol.
14341         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
14343 2018-10-05  Bruno Haible  <bruno@clisp.org>
14345         raise: Make it possible to namespace the defined symbol.
14346         * lib/raise.c (raise): Undefine only after the replacement function has
14347         been defined.
14348         (raise): Renamed from rpl_raise.
14349         (raise_nothrow): Move to the end of the compilation unit.
14351 2018-10-05  Bruno Haible  <bruno@clisp.org>
14353         memcmp: Make it possible to namespace the defined symbol.
14354         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
14356 2018-10-05  Bruno Haible  <bruno@clisp.org>
14358         explicit_bzero: Make it possible to namespace the defined symbol.
14359         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
14360         glibc.
14362 2018-10-05  Bruno Haible  <bruno@clisp.org>
14364         mkdir-p: Depend on 'mkdir'.
14365         * modules/mkdir-p (Depends-on): Add 'mkdir'.
14367 2018-10-05  Bruno Haible  <bruno@clisp.org>
14369         tempname: Depend on 'mkdir'.
14370         Reported by Maarten Bosmans <mkbosmans@gmail.com>
14371         at <https://savannah.gnu.org/bugs/?33379>.
14372         * modules/tempname (Depends-on): Add 'mkdir'.
14374 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
14376         timevar: rely on gnulib modules for time portability.
14377         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
14378         * m4/timevar.m4: Don't check for clock_t and struct tms,
14379         guaranteed by gnulib.
14380         * lib/timevar.h: Use extern "C" protection.
14381         Include <stdio.h> for FILE.
14382         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14383         they are guaranteed by gnulib.
14384         Remove uses of clock as (now useless) fallback.
14386 2018-10-04  Bruno Haible  <bruno@clisp.org>
14388         sh-filename: New module.
14389         * m4/sh-filename.m4: New file.
14390         * modules/sh-filename: New file.
14391         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14392         "/bin/sh".
14393         * tests/test-posix_spawn1.c (main): Likewise.
14394         * tests/test-posix_spawn2.c (main): Likewise.
14395         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14396         is_envjavac_gcj43): Likewise.
14397         * lib/javaexec.c (execute_java_class): Likewise.
14398         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14399         * modules/posix_spawnp-tests (Depends-on): Likewise.
14400         * modules/javacomp (Depends-on): Likewise.
14401         * modules/javaexec (Depends-on): Likewise.
14403 2018-10-04  Bruno Haible  <bruno@clisp.org>
14405         spawn-pipe tests: Avoid test failure on native Windows.
14406         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14407         that fd 2 is closed.
14409 2018-10-04  Bruno Haible  <bruno@clisp.org>
14411         fcntl: Make it possible to namespace the defined symbol.
14412         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14413         been defined.
14414         (fcntl): Renamed from rpl_fcntl.
14415         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14416         from fcntl.
14417         (klibc_fcntl): Move to the end of the compilation unit.
14419 2018-10-02  Bruno Haible  <bruno@clisp.org>
14421         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14422         * tests/test-vasnprintf.c (test_function): Change the test added on
14423         2018-09-23 to check only the 18 most significant digits.
14425         vasnprintf tests: Avoid test failure on Cygwin.
14426         * tests/test-vasnprintf.c (test_function): Change the test added on
14427         2018-09-23 to check only the 42 most significant digits.
14429 2018-10-01  Bruno Haible  <bruno@clisp.org>
14431         mkostemp, mkostemps: Update documentation.
14432         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14433         * doc/glibc-functions/mkostemps.texi: Likewise.
14435 2018-10-01  Tom Tromey  <tom@tromey.com>
14437         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14438         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14439         on OS X.
14441 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14443         hmac-*: refactor to remove repetitive code
14444         * lib/hmac.c: A new parameterized single implementation.
14445         * lib/hmac-md5.c: Define parameters and include implementation.
14446         * lib/hmac-sha1.c: Likewise.
14447         * lib/hmac-sha256.c: Likewise.
14448         * lib/hmac-sha512.c: Likewise.
14449         * modules/crypto/hmac-md5: Reference the new implementation file.
14450         * modules/crypto/hmac-sha1: Likewise.
14451         * modules/crypto/hmac-sha256: Likewise.
14452         * modules/crypto/hmac-sha512: Likewise.
14453         * tests/test-hmac-md5.c: Refactor common code to a single function.
14454         * tests/test-hmac-sha1.c: Likewise.
14455         * tests/test-hmac-sha256.c: Likewise.
14456         * tests/test-hmac-sha512.c: Likewise.
14458 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14460         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14461         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14462         key length to that output by sha512, not the blocksize.
14463         Otherwise uninitialized data from the stack
14464         is used when computing the hash.
14465         * tests/test-hmac-sha512.c: Add a shortened key test case.
14466         Reported at https://github.com/coreutils/gnulib/pull/5
14468 2018-09-30  Bruno Haible  <bruno@clisp.org>
14470         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14471         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14472         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14473         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14474         'unsigned int' before comparison with an unsigned value.
14476 2018-09-30  Bruno Haible  <bruno@clisp.org>
14478         grantpt: Remove unnecessary dependency.
14479         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14481 2018-09-30  Bruno Haible  <bruno@clisp.org>
14483         timevar: Small tweaks.
14484         * lib/timevar.h: Fix comments. Add parameter names to function
14485         declarations.
14486         * lib/timevar.c: Include timevar.h immediately after config.h.
14487         * lib/timevar.def: Fix comments.
14488         * modules/timevar (Maintainer): List Akim Demaille.
14490 2018-09-30  Bruno Haible  <bruno@clisp.org>
14492         timevar: Include documentation in gnulib manual.
14493         * doc/timevar.texi: Change node and section name to 'Profiling of
14494         program phases'.
14495         In the code snippets, tweak the #includes and use GNU coding style.
14496         * doc/gnulib.texi: Include timevar.texi.
14498 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14500         timevar: import from Bison.
14501         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14502         New files.
14503         * lib/timevar.def: New file.
14504         * doc/timevar.texi: New file.
14506 2018-09-26  Bruno Haible  <bruno@clisp.org>
14508         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14509         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14510         * lib/javacomp.c (default_target_version): Likewise.
14512 2018-09-26  Bruno Haible  <bruno@clisp.org>
14514         javacomp-script, javacomp: Add support for Java 11.
14515         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14516         target-version 11.
14517         * lib/javaversion.h: Update comments.
14518         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14519         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14520         TARGET_VERSION_BOUND, target_version_index,
14521         corresponding_classfile_version): Accept source_version 11 and
14522         target_version 11.
14523         * lib/javacomp.h: Update comments accordingly.
14525 2018-09-23  Bruno Haible  <bruno@clisp.org>
14527         vasnprintf: Fix heap memory overrun bug.
14528         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14529         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14530         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14531         memory.
14532         * tests/test-vasnprintf.c (test_function): Add another test.
14534 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14536         maint: mktime.c now shared with glibc
14537         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14538         are now the same in Gnulib and glibc.
14540         mktime: fix _LIBC typo
14541         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14543 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14545         dfa: optimization for state merge
14546         * lib/dfa.c (merge2): New function.
14547         (merge_nfa_state): Use it.
14549 2018-09-18  Jim Meyering  <meyering@fb.com>
14551         dfa: trivial comment fix: s/is/if/
14552         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14554 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14556         dfa: use more-informative function name
14557         * lib/dfa.c (maybe_disable_superset_dfa):
14558         Rename from dfautf8noss.  Use change.
14560         dfa: tweak allocation performance
14561         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14562         Prefer ptrdiff_t for indexes some more.
14563         Use char for flags, as it’s wide enough.
14564         Allocate queue and flags together, with one malloc call.
14565         No need to use xnmalloc since the multiplication and
14566         addition cannot overflow (it’s already been checked by
14567         earlier allocation).  Prefer memset to open-coding.
14569         dfa: prune states as we go
14570         * lib/dfa.c (prune): Remove.
14571         dfa: reorder enum for efficiency
14572         (merge_nfa_state): Prune as we go instead of at the end.
14573         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14575         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14576         of the enumeration to make it easier for GCC to generate
14577         efficient code by using fewer comparisons to check for
14578         ranges of values.
14579         (atom): Take advantage of the reordering.
14581 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14583         dfa: optimize alternation in NFA
14584         Even when similar states exist in alternation, the DFA treats them
14585         as separate items, which may complicate the transition in NFA and
14586         cause slowdown.  This change assembles the states into one.  For
14587         example, ab|ac is changed into a(b|c).  This change speeds-up
14588         matching for many branched patterns.  For example, grep speeds up
14589         more than 30× in:
14591           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14592           time -p env LC_ALL=C grep -vf in in
14594         * lib/dfa.c (prune): New function.
14595         (merge_nfa_state): New function.  It merges similar NFA states.
14596         (dfaoptimize): New function.  It seeks merged and removed nodes.
14597         (dfaanalyze): Call new function.
14598         (dfautf8noss): Change name from dfaoptimize because of addition of new
14599         function.
14600         (dfacomp): Update caller.
14602         dfa: simplify initial state
14603         Simplifying the initial state enables easier optimization of the NFA.
14604         * lib/dfa.c (enum token): Add new element BEG.
14605         (prtok): Adjust due to adding element BEG.
14606         (dfaparse): Put BEG at a head of tokens.
14607         (state_index): Adjust due to adding element BEG.
14608         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14609         build initial state.
14610         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14612 2018-09-18  Bruno Haible  <bruno@clisp.org>
14614         file-has-acl: Fix test failure on Cygwin 2.9.
14615         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14616         * lib/acl-internal.h: Likewise.
14617         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14618         * lib/acl-internal.c: Update comments regarding Cygwin.
14619         * lib/acl_entries.c: Likewise.
14620         * lib/file-has-acl.c: Likewise.
14621         (file_has_acl): For Cygwin, use a different way to determine whether
14622         the "default" ACL of a directory is nontrivial.
14623         * lib/get-permissions.c: Update comments regarding Cygwin.
14624         * lib/set-permissions.c: Likewise.
14626 2018-09-18  Bruno Haible  <bruno@clisp.org>
14628         stat-time tests: Fix test failure on Cygwin.
14629         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14631 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14633         doc: OS X 10.11 lacked ns time functions
14634         According to <https://github.com/zeromq/libzmq/issues/2175>,
14635         nanosecond-resolution timestamp functions were introduced
14636         in macOS 10.12, so document the last version (OS X 10.11)
14637         where they were absent.
14639         gettime: nanotime never existed
14640         Problem reported by Bruno Haible in:
14641         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14642         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14643         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14645 2018-09-18  Bruno Haible  <bruno@clisp.org>
14647         doc: Update statement about target platforms.
14648         Reported by Simon Sobisch.
14649         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14650         restrictions on MSVC versions.
14652 2018-09-18  Bruno Haible  <bruno@clisp.org>
14654         posix_spawn tests: Fix link error on 64-bit Cygwin.
14655         * tests/test-posix_spawn1.c (environ): Remove declaration.
14656         * tests/test-posix_spawn2.c (environ): Likewise.
14657         * tests/test-posix_spawn3.c (environ): Likewise.
14658         * tests/test-posix_spawn4.c (environ): Likewise.
14659         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14660         * modules/posix_spawnp-tests (Depends-on): Likewise.
14662 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14664         timespec: new function current_timespec
14665         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14666         and don’t worry about it failing on a CLOCK_REALTIME arg.
14667         POSIX requires it to succeed and I don’t know of any
14668         counterexamples where the fallbacks would work.
14669         (current_timespec): New function, taken from Emacs.  It is more
14670         convenient than gettime, and can help register allocation.
14671         * lib/timespec.h: Include arg-nonnull.h.
14672         (current_timespec): New declaration.
14673         (gettime, settime): Declare args to be nonnull.
14674         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14676 2018-09-16  Bruno Haible  <bruno@clisp.org>
14678         setlocale: Improve locale handling on macOS 10.12 or newer.
14679         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14680         gl_locale_name_canonicalize.
14681         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14682         and LC_MESSAGES.
14683         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14685 2018-09-16  Bruno Haible  <bruno@clisp.org>
14687         Update list of locale names with scripts on macOS.
14688         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14689         match Mac OS X 10.13 and recent glibc.
14691 2018-09-16  Bruno Haible  <bruno@clisp.org>
14693         gettext: Use newer macOS APIs when possible.
14694         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14695         CFLocaleCopyPreferredLanguages.
14697 2018-09-16  Bruno Haible  <bruno@clisp.org>
14699         localename: Revisit macOS specific code.
14700         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14701         Fix comments about Mac OS X versions.
14703 2018-09-15  Bruno Haible  <bruno@clisp.org>
14705         setlocale: Improve support for locales not supported by libc.
14706         Reported by Dapeng Gao <peter@dpgao.cc> at
14707         <https://savannah.gnu.org/bugs/?54479>.
14708         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14709         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14710         to be set is not supported by libc: Emit warnings instead of failing.
14712 2018-09-15  Bruno Haible  <bruno@clisp.org>
14714         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14715         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14716         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14717         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14719         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14720         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14721         * doc/glibc-functions/strcasestr.texi: Likewise.
14723 2018-09-14  Bruno Haible  <bruno@clisp.org>
14725         doc: Fix bottom of top-level page.
14726         Reported by Akim Demaille <akim.demaille@gmail.com> in
14727         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14728         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14729         mode.
14730         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14731         accordingly.
14733 2018-09-12  Bruno Haible  <bruno@clisp.org>
14735         Add test case from a recent glibc bug.
14736         * tests/test-strstr.c (main): Add test of long needle.
14737         * tests/test-strcasestr.c (main): Likewise.
14738         * tests/test-c-strstr.c (main): Likewise.
14739         * tests/test-c-strcasestr.c (main): Likewise.
14740         * tests/test-memmem.c (main): Likewise.
14742 2018-09-12  Bruno Haible  <bruno@clisp.org>
14744         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14745         * tests/test-c-strstr.c (main): Add the same tests here as well.
14747 2018-09-12  Bruno Haible  <bruno@clisp.org>
14749         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14750         * tests/test-memmem.c (main): Free haystack.
14751         * tests/test-strcasestr.c (main): Likewise.
14752         * tests/test-c-strcasestr.c (main): Likewise.
14754 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14756         xstrtol: fix missing-TYPE_SIGNED typo
14757         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14759 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14761         timespec: fix resolution confusion
14762         In normal usage, clock resolution is given in seconds, but the
14763         code was mistakenly using inverse seconds and calling it
14764         “resolution”.  Fix this, partly by renaming two identifiers.
14765         The old names will be kept for a bit, to ease transition.
14766         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14767         New constants, replacing TIMESPEC_RESOLUTION and
14768         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14769         All uses changed.
14771 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14773         mktime: simplify in prep for glibc merge
14774         * lib/mktime.c, lib/timegm.c [_LIBC]:
14775         Include mktime-internal.h (a small file just for glibc)
14776         instead of using a typedef.
14778 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14780         intprops: minor clarification of code
14781         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14782         Use _GL_INT_CONVERT rather than reinventing it.
14784 2018-09-07  Bruno Haible  <bruno@clisp.org>
14786         Fix a comment.
14787         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14789 2018-09-07  Bruno Haible  <bruno@clisp.org>
14791         posix_spawn_file_actions_addchdir: Add tests.
14792         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
14793         * tests/test-posix_spawn4.c: New file.
14794         * modules/posix_spawn_file_actions_addchdir-tests: New file.
14796 2018-09-07  Bruno Haible  <bruno@clisp.org>
14798         posix_spawn_file_actions_addchdir: New module.
14799         Suggested by Eric Blake in
14800         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
14801         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
14802         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
14803         union member 'chdir_action'.
14804         * lib/spawn_faction_addchdir.c: New file.
14805         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
14806         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
14807         HAVE_WORKING_POSIX_SPAWN.
14808         * lib/spawn_faction_adddup2.c: Likewise.
14809         * lib/spawn_faction_addopen.c: Likewise.
14810         * m4/posix_spawn_faction_addchdir.m4: New file.
14811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14812         'posix_spawn_file_actions_addchdir' is present and whether
14813         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
14814         instead of HAVE_WORKING_POSIX_SPAWN.
14815         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14816         posix_spawn_file_actions_addchdir is declared.
14817         (gl_SPAWN_H_DEFAULTS): Initialize
14818         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14819         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14820         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14821         * modules/spawn (Makefile.am): Substitute
14822         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14823         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14825         * modules/posix_spawn_file_actions_addchdir: New file.
14826         * modules/posix_spawn_file_actions_addclose (Depends-on,
14827         configure.ac): Test also REPLACE_POSIX_SPAWN.
14828         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14829         configure.ac): Likewise.
14830         * modules/posix_spawn_file_actions_addopen (Depends-on,
14831         configure.ac): Likewise.
14832         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14833         signature.
14834         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14835         * doc/posix-functions/posix_spawnp.texi: Likewise.
14837 2018-09-06  Bruno Haible  <bruno@clisp.org>
14839         stddef: Override max_align_t on NetBSD 8.0/x86.
14840         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14841         the value of __alignof__ (max_align_t).
14842         * doc/posix-headers/stddef.texi: Mention the issue.
14844 2018-09-06  Bruno Haible  <bruno@clisp.org>
14846         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14847         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14848         system fcntl.
14849         * doc/posix-functions/fcntl.texi: Document the issue.
14851 2018-09-06  Bruno Haible  <bruno@clisp.org>
14853         count-trailing-zeros tests: Rely on limits-h module.
14854         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14855         definition.
14856         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14858 2018-09-06  Bruno Haible  <bruno@clisp.org>
14860         count-leading-zeros tests: Rely on limits-h module.
14861         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14862         definition.
14863         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14865 2018-09-06  Bruno Haible  <bruno@clisp.org>
14867         count-one-bits tests: Rely on limits-h module.
14868         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14869         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14871 2018-09-06  Bruno Haible  <bruno@clisp.org>
14873         xstrtoll: Rely on limits-h module.
14874         * lib/xstrtol.c: Don't include intprops.h.
14875         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14876         * modules/xstrtol (Depends-on): Remove 'intprops'.
14877         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14879 2018-09-06  Bruno Haible  <bruno@clisp.org>
14881         strtoll, strtoull: Rely on limits-h module.
14882         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14883         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14884         * modules/strtoll (Depends-on): Add limits-h.
14885         * modules/strtoull (Depends-on): Likewise.
14887 2018-09-06  Bruno Haible  <bruno@clisp.org>
14889         intprops tests: Fix compilation error with pre-C99 compiler.
14890         * tests/test-intprops.c (verify_stmt): New macro.
14891         (VERIFY, main): Use it.
14893 2018-09-06  Bruno Haible  <bruno@clisp.org>
14895         limits-h: Provide numerical limits macros.
14896         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14897         IRIX and for GCC.
14898         (WORD_BIT, LONG_BIT): Define.
14899         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14900         <limits.h> does not define LLONG_MAX or WORD_BIT.
14901         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14902         TYPE_MAXIMUM): New macros, from intprops.h.
14903         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14904         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14905         provides.
14907 2018-09-05  Bruno Haible  <bruno@clisp.org>
14909         fcntl: Don't access nonexistent optional argument.
14910         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14911         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14912         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14913         don't consume an argument. For actions that take an 'int' argument,
14914         consume an 'int' argument.
14916 2018-09-05  Eric Blake  <eblake@redhat.com>
14918         doc: mention environ pitfall
14919         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14920         environ is a glibc extension.
14922 2018-09-03  Bruno Haible  <bruno@clisp.org>
14924         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14925         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14926         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14927         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14928         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14929         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14931 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14933         mktime: fix unlikely race+overflow bug
14934         Problem reported by Alexandre Oliva in:
14935         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14936         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14937         to avoid an unlikely race if the compiler delays a load and
14938         if this cascades into a signed integer overflow.
14940 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14942         mktime, timegm: simplify glibc time64_t
14943         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14944         Now long int, not time_t, since long int is the longstanding type
14945         for this in glibc and there is no need to change it even if time_t
14946         becomes 64 bits - even int would do, though this would be a change
14947         to the glibc generated code.  When this change is merged into
14948         glibc, it should simplify the time_t vs time64_t situation.
14950         mktime, timegm: simplify merge to glibc
14951         Move code around to make a merge to glibc easier to audit.
14952         This should not change behavior.
14953         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14954         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14955         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14956         simplify later conditionals; default the others to zero.  In uses
14957         of these conditionals, explicitly spell out how _LIBC affects
14958         things, so it’s easier to review from a glibc viewpoint.
14959         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14960         compartmentalize tzset issues.  Move system-dependent tzsettish
14961         code here from mktime.
14962         (mktime): Move tzsettish code to my_tzset, and move
14963         localtime_offset to within mktime so that it doesn’t
14964         need a separate ifdef.
14966 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14968         intprops: avoid evaluation of some expressions
14969         This makes EXPR_SIGNED (e) easier to use, as it no longer
14970         evaluates the expression E.  Formerly, E was required to be free
14971         of side effects.
14972         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14973         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14974         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14976 2018-08-23  Bruno Haible  <bruno@clisp.org>
14978         getcwd: Add cross-compilation guesses.
14979         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14980         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14981         Based on a patch by Paul Eggert.
14982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14983         guesses for all GNU systems.
14985 2018-08-19  Bruno Haible  <bruno@clisp.org>
14987         glob-h: Formalize side effects from other modules.
14988         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14989         * m4/glob.m4 (gl_GLOB): Invoke it.
14991         fnmatch-h: Formalize side effects from other modules.
14992         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14993         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14995         limits-h: Formalize side effects from other modules.
14996         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14997         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14999 2018-08-19  Bruno Haible  <bruno@clisp.org>
15001         getpass: Move declaration to <unistd.h>.
15002         * lib/unistd.in.h (getpass): New declaration.
15003         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
15004         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
15005         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
15006         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
15007         On glibc systems, don't set REPLACE_GETPASS to 1.
15008         * modules/getpass (Depends-on): Add 'unistd'.
15009         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
15010         (Include): Specify <unistd.h> instead of "getpass.h".
15011         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
15012         (configure.ac): Sync with the configure.ac section of modules/getpass.
15013         (Include): Specify <unistd.h> instead of "getpass.h".
15014         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
15015         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
15016         REPLACE_GETPASS.
15017         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
15018         REPLACE_GETPASS.
15019         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
15020         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
15021         and musl.
15022         * NEWS: Mention the change.
15024 2018-08-19  Bruno Haible  <bruno@clisp.org>
15026         glob: Fix over-optimization due to attribute __nonnull__.
15027         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
15029 2018-08-19  Bruno Haible  <bruno@clisp.org>
15031         glob: Fix another compilation error when glob.h is not replaced.
15032         Reported by Reuben Thomas <rrt@sc3d.org> in
15033         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
15034         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
15035         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
15037 2018-08-18  Bruno Haible  <bruno@clisp.org>
15039         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
15040         Reported by Reuben Thomas <rrt@sc3d.org> in
15041         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
15042         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
15043         in config.h.
15045 2018-08-18  Bruno Haible  <bruno@clisp.org>
15047         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
15048         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
15049         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
15050         Solution proposed by Eli Zaretskii.
15051         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
15052         * lib/gettimeofday.c (GetProcAddress): Likewise.
15053         * lib/link.c (GetProcAddress): Likewise.
15054         * lib/physmem.c (GetProcAddress): Likewise.
15055         * lib/poll.c (GetProcAddress): Likewise.
15056         * lib/select.c (GetProcAddress): Likewise.
15057         * lib/stat-w32.c (GetProcAddress): Likewise.
15059 2018-08-18  Bruno Haible  <bruno@clisp.org>
15061         glob: Fix another compilation error when glob.h is not replaced.
15062         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
15063         * lib/globfree.c: Include <libc-config.h>.
15065 2018-08-18  Bruno Haible  <bruno@clisp.org>
15067         glob: Fix compilation error when glob.h is not replaced.
15068         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
15069         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
15070         * lib/glob_pattern_p.c: Include <libc-config.h>.
15071         * modules/glob (Depends-on): Add libc-config.
15073 2018-08-18  Bruno Haible  <bruno@clisp.org>
15075         scratch_buffer: Add tests.
15076         * tests/test-scratch-buffer.c: New file.
15077         * modules/scratch_buffer-tests: New file.
15079 2018-08-18  Bruno Haible  <bruno@clisp.org>
15081         scratch_buffer: Fix include file.
15082         Reported by Reuben Thomas <rrt@sc3d.org> in
15083         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
15084         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
15085         double-inclusion guard.
15087 2018-08-18  Bruno Haible  <bruno@clisp.org>
15089         glob-h: Revert Paul Eggert's revert.
15090         * m4/glob_h.m4: Revert to previous state.
15091         * modules/glob-h: Likewise.
15093 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15095         glob-h: always build glob.h
15096         This works around a problem reported by Reuben Thomas in:
15097         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
15098         This workaround always builds glob.h, even on platforms that
15099         do not need it; perhaps this could be improved someday.
15100         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
15101         is always created now.
15102         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
15104 2018-08-13  Bruno Haible  <bruno@clisp.org>
15106         monetary: Simplify m4 code.
15107         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
15108         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
15110 2018-08-13  Bruno Haible  <bruno@clisp.org>
15112         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
15113         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
15114         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
15115         and by Paul J. Lucas <paul@lucasmail.org> in
15116         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
15117         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
15119 2018-08-11  Bruno Haible  <bruno@clisp.org>
15121         setlocale: Trivial simplification.
15122         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
15124 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15126         verify: port 'assume' to traditional tools
15127         * lib/verify.h (assume): Port better to Oracle Studio 12.6
15128         and other tools that use /*NOTREACHED*/ comments.
15130 2018-08-10  Bruno Haible  <bruno@clisp.org>
15132         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
15133         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15134         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
15135         'fnmatch-gnu' is in use.
15137 2018-08-07  Bruno Haible  <bruno@clisp.org>
15139         glob-h: Add tests.
15140         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
15141         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
15142         tests/test-glob-h.c.
15143         * modules/glob-h-tests: New file.
15144         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
15145         conditions.
15146         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
15147         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
15149 2018-08-07  Bruno Haible  <bruno@clisp.org>
15151         glob-h: New module.
15152         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
15153         replacements.
15154         * lib/glob.c: Include <config.h>.
15155         * m4/glob_h.m4: New file.
15156         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
15157         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15158         REPLACE_GLOB_PATTERN_P as appropriate.
15159         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
15160         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
15161         * modules/glob-h: New file.
15162         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
15163         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
15164         lstat, sys_stat. Change conditions.
15165         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15166         REPLACE_GLOB_PATTERN_P. Set module indicator.
15167         (Makefile.am): Remove code that is moved to glob-h.
15168         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
15169         * modules/posixcheck (Depends-on): Add glob-h.
15171 2018-08-06  Bruno Haible  <bruno@clisp.org>
15173         Force generation of substitute .h file when C++ support is enabled.
15174         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
15175         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
15176         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
15177         FNMATCH_H to non-empty.
15178         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
15179         ICONV_H to non-empty.
15180         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
15181         MONETARY_H to non-empty.
15182         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
15183         non-empty.
15185 2018-08-06  Bruno Haible  <bruno@clisp.org>
15187         fnmatch-h: Fix test compilation error on mingw (regression from today).
15188         * lib/fnmatch.in.h: Fix conditions.
15190 2018-08-06  Bruno Haible  <bruno@clisp.org>
15192         sys_resource: Relicense under LGPLv2+.
15193         John Malmberg's approval is in
15194         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
15195         * modules/sys_resource (License): Change to LGPLv2+.
15197 2018-08-06  Bruno Haible  <bruno@clisp.org>
15199         fnmatch-h: Add tests.
15200         * tests/test-fnmatch-h.c: New file.
15201         * modules/fnmatch-h-tests: New file.
15202         * tests/test-fnmatch-h-c++.cc: New file.
15203         * modules/fnmatch-h-c++-tests: New file.
15205 2018-08-06  Bruno Haible  <bruno@clisp.org>
15207         fnmatch-h: New module.
15208         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
15209         replacements.
15210         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
15211         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
15212         'posixcheck' warning.
15213         * m4/fnmatch_h.m4: New file.
15214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
15215         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
15216         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
15217         as appropriate.
15218         * modules/fnmatch-h: New file.
15219         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
15220         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
15221         conditions.
15222         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
15223         indicator.
15224         (Makefile.am): Remove code that is moved to fnmatch-h.
15225         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
15226         REPLACE_FNMATCH.
15227         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
15228         * modules/posixcheck (Depends-on): Add fnmatch-h.
15230 2018-08-06  Bruno Haible  <bruno@clisp.org>
15232         Enable more C++ tests.
15233         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
15234         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
15235         * modules/strings-tests (Depends-on): Add strings-c++-tests.
15236         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
15237         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
15239 2018-08-06  Bruno Haible  <bruno@clisp.org>
15241         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
15242         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
15243         getopt.h.
15244         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
15246 2018-08-05  Bruno Haible  <bruno@clisp.org>
15248         utime-h: Generate header file when module 'posixcheck' is in use.
15249         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
15250         UTIME_H to non-empty.
15252 2018-08-05  Bruno Haible  <bruno@clisp.org>
15254         monetary: Generate header file when module 'posixcheck' is in use.
15255         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
15256         use, set MONETARY_H to non-empty.
15258 2018-08-05  Bruno Haible  <bruno@clisp.org>
15260         iconv-h: Generate header file when module 'posixcheck' is in use.
15261         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
15262         set ICONV_H to non-empty.
15264 2018-08-05  Bruno Haible  <bruno@clisp.org>
15266         Optimize the "checking whether ... is declared without a macro" checks.
15267         Suggested by Paul Eggert in
15268         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
15269         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
15270         Gnulib module 'posixcheck' is not in use.
15272 2018-08-05  Bruno Haible  <bruno@clisp.org>
15274         iconv-h: Enable 'posixcheck' warnings.
15275         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
15276         iconv_open.
15277         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
15279 2018-08-05  Bruno Haible  <bruno@clisp.org>
15281         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
15282         * m4/extern-inline.m4: Add more comments.
15283         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
15284         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
15285         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
15287 2018-08-04  Bruno Haible  <bruno@clisp.org>
15289         New module 'posixcheck'.
15290         * modules/posixcheck: New file.
15291         * m4/posixcheck.m4: New file.
15292         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
15293         (Which modules?): Reference it.
15295 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
15297         dfa: fix memory leak
15298         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
15300 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15302         ieee754-h: new module
15303         It looks like Emacs can use this for some NaN processing.
15304         Emacs uses it only on double NaNs so it should be safe.
15305         * MODULES.html.sh (func_all_modules): Add ieee754-h.
15306         * config/srclist.txt: Mention ieee754.h in a comment.
15307         * doc/glibc-headers/ieee754.texi (ieee754.h):
15308         Gnulib now has a substitute that should work
15309         except for long double and for non-IEEE platforms.
15310         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
15311         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
15313 2018-07-27  Bruno Haible  <bruno@clisp.org>
15315         iswcntrl: Mention minor problem on macOS.
15316         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
15318 2018-07-26  Colin Watson  <cjwatson@debian.org>
15320         bootstrap, gnulib-tool: fix translations rsync
15321         Previously, we created files such as $pobase/Makefile.in.in and then the
15322         subsequent rsync would immediately delete them.
15323         * build-aux/bootstrap (po_download_command_format): Avoid deleting
15324         non-.po files in target directory when rsyncing translations.
15325         * gnulib-tool (func_import): Likewise.
15326         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15328 2018-07-25  Jim Meyering  <meyering@fb.com>
15330         bootstrap: reinstate definition fo gnulib_mk.
15331         That variable is used at least by cppi.
15332         * build-aux/bootstrap (gnulib_mk): Restore definition.
15333         This reverts the deletion from v0.1-1844-gc66dba9ba.
15335 2018-07-23  Bruno Haible  <bruno@clisp.org>
15337         doc: For module names, use texinfo markup @code{} or @samp{}.
15338         * doc/alloca.texi: Mark gnulib module names with @code.
15339         * doc/alloca-opt.texi: Likewise.
15340         * doc/quote.texi: Likewise.
15341         * doc/posix-functions/freopen.texi: Likewise.
15342         * doc/posix-functions/open.texi: Likewise.
15343         * doc/posix-functions/readlink.texi: Likewise.
15344         * doc/posix-functions/readlinkat.texi: Likewise.
15345         * doc/posix-functions/stdout.texi: Likewise.
15346         * doc/posix-functions/stderr.texi: Likewise.
15347         * doc/posix-functions/unlink.texi: Likewise.
15348         * doc/posix-functions/unlinkat.texi: Likewise.
15349         * doc/posix-functions/utime.texi: Likewise.
15350         * doc/posix-functions/utimensat.texi: Likewise.
15351         * doc/posix-functions/utimes.texi: Likewise.
15352         * doc/posix-headers/stdint.texi: Likewise.
15353         * doc/glibc-functions/futimesat.texi: Likewise.
15354         * doc/glibc-functions/lutimes.texi: Likewise.
15355         * doc/glibc-functions/memmem.texi: Likewise.
15357 2018-07-23  Werner LEMBERG  <wl@gnu.org>
15359         doc: Avoid some overfull lines in the TeX output.
15360         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
15361         @example.
15362         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
15363         newline before the long URL.
15364         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
15365         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
15366         Add line breaks in code snippets.
15368 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15370         hard-locale: simplify by removing hard-locale.m4
15371         * m4/hard-locale.m4: Remove.
15372         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
15373         (configure.ac): Do not call gl_HARD_LOCALE.
15375         gnulib-tool: limit line length for git send-email
15376         * gnulib-tool (func_import): Break actioncmd log line
15377         into multiple lines.
15379 2018-07-16  Bruno Haible  <bruno@clisp.org>
15381         ffs: Ensure declaration on mingw.
15382         Reported by Daniel P. Berrangé <berrange@redhat.com>
15383         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15384         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15385         also declared.
15387 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15389         regex-tests: add dependency
15390         * modules/regex-tests (Depends-on): Add gettext-h.
15391         This is needed given the recent changes to regex,
15392         which no longer depends on gettext-h.
15394 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15396         regex: now in sync with glibc
15397         * config/srclist.txt: Gnulib and glibc regex code
15398         are synchronized again.
15400 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15402         renameatu: rename from renameat2
15403         It's looking like Glibc will add a renameat2 function
15404         that is incompatible with Gnulib renameat2; see:
15405         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15406         To help avoid future confusion, rename renameat2 to something else.
15407         Use the name 'renameatu', as the Gnulib function is close to the
15408         Glibc function.  Perhaps someday there will also be a renameat2
15409         Gnulib module, which mimicks the future glibc renameat2, but that
15410         can wait as nobody seems to need such a module now.
15411         * NEWS: Mention this.
15412         * lib/renameatu.c: Rename from lib/renameat2.c.
15413         * lib/renameatu.h: Rename from lib/renameat2.h.
15414         * modules/renameatu: Rename from modules/renameat2.
15415         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15416         All uses of "renameat2" in identifiers or file name
15417         changed to "renameatu", except for two instances in
15418         lib/renameatu.c that deal with the Linux kernel's
15419         renameat2 syscall.
15421 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15423         gnulib-tool: minor tweaks for --gnu-make
15424         * gnulib-tool: Do not allow --gnu-make in test modes,
15425         since they all require automake.
15426         (func_emit_lib_Makefile_am): Don’t emit automake comment
15427         if --gnu-make.
15429         regex: work around conditional-dependencies glitch
15430         * modules/regex (Depends-on): Add langinfo.
15431         Without this change, I had problems building an experimental
15432         version of GNU Emacs.  The symptom of the bug was a message
15433         ‘./configure: line 12726: test: =: unary operator expected’.
15434         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15435         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15436         was unset.  Although gl_FUNC_NL_LANGINFO has
15437         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15438         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15439         --conditional-dependencies sometimes arranges for the
15440         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15441         code.  Since the regex code includes <langinfo.h> it should be
15442         depending on the langinfo module anyway, and this happens to work
15443         around the bug, so install that as a workaround for now.  To
15444         reproduce the original problem, run the following shell script on
15445         the version of Gnulib just before this patch was installed.
15446                 rm -fr foo
15447                 mkdir foo
15448                 cat >foo/configure.ac <<'EOF'
15449                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15450                 gl_EARLY
15451                 gl_INIT
15452                 AC_OUTPUT
15453                 EOF
15454                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15455                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15456                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15457                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15458                 cd foo
15459                 aclocal -I m4
15460                 autoconf
15461                 ./configure --with-included-regex
15463 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15465         wchar: fix bug when checking for ‘inline’
15466         I discovered this when looking into using the regex module
15467         with Emacs.
15468         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15469         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15470         conftest1.c and conftest2.c but these files were not created.
15471         As far as I can see, this check never worked and nobody reported
15472         it until now, which is a bit worrisome.
15474 2018-06-30  Jim Meyering  <meyering@fb.com>
15476         bootstrap: s/--option val/--option=val/
15477         * build-aux/bootstrap (gnulib_tool_options): Change the
15478         spelling of "--option val" pairs to "--option=val", for
15479         aesthetics, and also so that this file no longer triggers
15480         a common help2man syntax-check warning when copied into
15481         projects like grep, gzip, etc.
15483 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15485         manywarnings: omit -Wswitch-default
15486         This should make things more consistent, as we already ignore
15487         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15488         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15489         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15490         Add -Wswitch-default.
15491         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15492         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15493         Remove -Wswitch-default.
15495         regex: revert most trimming
15496         Problems reported by Bruno Haible in:
15497         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15498         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15499         and wctype back in.  lock because regex users shouldn’t
15500         need to know that regex needs locking, and the rest because
15501         gnulib-tool should ordinarily ignore them anyway.
15503 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15505         regex: trim module dependencies
15506         * modules/regex (Depends-on): Remove gettext-h and lock,
15507         since the regex code should work OK without these modules,
15508         and Emacs uses it that way.  Also remove memcmp, memmove,
15509         and wctype, as these modules are obsolete and should not be
15510         needed any more.
15512 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15514         regex: glibc does not use intprops.h
15515         Maybe we can talk glibc into using intprops.h someday, but
15516         now doesn’t seem to be a good time.
15517         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15518         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15519         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15521 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15523         regex: port to recently proposed glibc regex merge
15524         This patch is inspired by Adhemerval Zanella's recent proposal
15525         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15526         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15527         the glibc side, without keeping Gnulib portable.
15528         * lib/regex.h: Fix a problem with glibc installed-header checking,
15529         as follows:
15530         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15531         (_Restrict_arr_): Prefer __restrict_arr if defined,
15532         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15533         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15534         (build_wcs_upper_buffer, build_upper_buffer)
15535         (re_string_translate_buffer, re_string_context_at):
15536         Move decls here from lib/regex_internal.h, for glibc internal tests.
15537         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15538         glibc BZ #18496.
15539         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15540         -Wunused-value.
15541         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15542         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15543         (bitset_mask): Now static inline, and without any __attribute__
15544         ((unused)) decoration, for glibc internal tests.
15546 2018-06-25  Bruno Haible  <bruno@clisp.org>
15548         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15549         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15550         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15552         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15553         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15554         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15555         / -lthread / -lpth does not get optimized away by a preceding
15556         --as-needed option.
15558 2018-06-25  Bruno Haible  <bruno@clisp.org>
15560         Continue to use spaces for indentation, not tabs.
15561         * MODULES.html.sh: Untabify.
15562         * doc/regex.texi: Likewise.
15563         * lib/acl-internal.c: Likewise.
15564         * lib/dfa.c: Likewise.
15565         * lib/exclude.c: Likewise.
15566         * lib/exclude.h: Likewise.
15567         * lib/get-permissions.c: Likewise.
15568         * lib/gettimeofday.c: Likewise.
15569         * lib/parse-datetime.y: Likewise.
15570         * lib/pselect.c: Likewise.
15571         * lib/set-permissions.c: Likewise.
15572         * lib/time.in.h: Likewise.
15573         * m4/canonicalize.m4: Likewise.
15574         * m4/gc.m4: Likewise.
15575         * m4/gnulib-common.m4: Likewise.
15576         * m4/pthread_sigmask.m4: Likewise.
15577         * m4/vararrays.m4: Likewise.
15578         * tests/test-digest.h: Likewise.
15579         * tests/test-fcntl-h.c: Likewise.
15580         * tests/test-timespec.c: Likewise.
15581         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15583 2018-06-25  Bruno Haible  <bruno@clisp.org>
15585         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15586         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15587         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15588         -Wjump-misses-init.
15590 2018-06-25  Jim Meyering  <meyering@fb.com>
15592         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15593         * lib/acl-internal.h (free_permission_context): Remove that
15594         attribute directive.  Otherwise, it would provoke this from GCC 9:
15595         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15596           returning 'void' [-Werror=attributes]
15598 2018-06-24  Jim Meyering  <meyering@fb.com>
15600         parse-datetime: accommodate gcc-4.8.5
15601         Bruno Haible reported the build failure in
15602         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15603         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15604         on declaration of new local.
15606 2018-06-24  Bruno Haible  <bruno@clisp.org>
15608         af_alg: Fail in continuable manner on Linux/powerpc64le.
15609         Reported by Assaf Gordon <assafgordon@gmail.com>
15610         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15611         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15612         byte send() as the first round.
15614 2018-06-24  Bruno Haible  <bruno@clisp.org>
15616         af_alg: Fix state of stream after sendfile() succeeds.
15617         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15618         the stream is correctly positioned afterwards.
15619         * modules/crypto/af_alg (Depends-on): Add fflush.
15620         * tests/test-digest.h (test_digest_on_files): Verify that after the
15621         operation the stream is positioned at end of file.
15623 2018-06-24  Jim Meyering  <meyering@fb.com>
15625         canon-host: take GCC9's advice rather than ignoring warning
15626         Pádraig Brady suggested not to ignore this GCC9 advice.
15627         * lib/canon-host.c: Undo preceding change.
15628         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15630         parse-datetime.y: avoid spurious GCC 9 warning
15631         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15632         a function local prior to the first "goto fail".  The prior use would
15633         evoke this:
15634         parse-datetime.y: In function 'parse_datetime2':
15635         parse-datetime.y:1791:19: error: jump skips variable initialization \
15636           [-Werror=jump-misses-init]
15637         parse-datetime.y:2385:2: note: label 'fail' defined here
15638         parse-datetime.y:188:43: note: '({anonymous})' declared here
15639         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15641         canon-host.c: avoid spurious GCC 9 warning
15642         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15644         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15645         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15646         * m4/manywarnings.m4: Remove them.
15647         Otherwise, building coreutils, I would see this:
15648         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15649         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15650         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15651           which is also used by default
15652         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15654 2018-06-24  Bruno Haible  <bruno@clisp.org>
15656         af_alg tests: Add another test.
15657         * tests/test-digest.h (test_digest_on_files): Also check a large file
15658         with a skipped header.
15659         * tests/test-md5.c: Include macros.h.
15660         * tests/test-sha1.c: Likewise.
15661         * tests/test-sha256.c: Likewise.
15662         * tests/test-sha512.c: Likewise.
15663         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15664         * modules/crypto/sha1-tests (Files): Likewise.
15665         * modules/crypto/sha256-tests (Files): Likewise.
15666         * modules/crypto/sha512-tests (Files): Likewise.
15668 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15670         maint: clarify comments about sticky EOF
15671         * lib/af_alg.c: Be more direct that we can't
15672         assume stickiness of EOF for portability reasons.
15673         * lib/md5.c: Clarify that this isn't just a glibc issue.
15674         * lib/sha1.c: Likewise.
15675         * lib/sha256.c: Likewise.
15676         * lib/sha512.c: Likewise.
15678 2018-06-24  Bruno Haible  <bruno@clisp.org>
15680         af_alg: Comment and style improvements.
15681         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15682         (afalg_buffer, afalg_stream): Improve comments.
15684 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15686         af_alg: disable kernel hash functions by default
15687         All the kernel routines were seen to be significantly slower
15688         with these relatively recent components on an i3-2310M system:
15689           kernel-4.10.6-200.fc25.x86_64
15690           openssl-1.0.2m-1.fc25.x86_64
15691         sha1 was nearly twice as slow in the kernel for example.
15692         Further considerations why this should not be the default, at:
15693         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15695         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15696         * m4/gl-openssl.m4: Tweak accordingly.
15698 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15700         af_alg: avoid hangs when reading from streams
15701         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15702         and thus avoid doing a fread() when feof() is set.
15703         * lib/md5.c: Ensure feof() is called before fread().
15704         * lib/sha1.c: Likewise.
15705         * lib/sha256.c: Likewise.
15706         * lib/sha512.c: Likewise.
15708 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15710         af_alg: fix error handling when hash not returned
15711         * lib/af_alg.c (afalg_stream): Handle the case where we've
15712         successfully written data to the kernel in the read/write loop,
15713         but the kernel doesn't respond with the hash.
15715 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15717         libc-config: merge from glibc
15718         * lib/cdefs.h (__inline, __restrict):
15719         Copy from current glibc.  This fixes glibc bug 17721,
15720         which Gnulib had already fixed in a different way.
15721         (__nonnull): Lessen the distance from glibc by using the
15722         glibc definition inside an ‘#ifndef __nonnull’.
15723         (__attribute_nonstring__): New macro, copied from
15724         current glibc.
15725         * lib/libc-config.h (__attribute_nonstring__): New undef.
15726         (__restrict): Remove; workaround no longer needed.
15727         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15728         support more compilers than the glibc __inline can.
15730 2018-06-24  Bruno Haible  <bruno@clisp.org>
15732         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15733         * lib/mbrtowc.c (enc_t): New enum type.
15734         (locale_enc, locale_enc_cached): New functions.
15735         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15736         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15737         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15738         instead.
15739         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15740         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15741         * modules/wcwidth (configure.ac): Invoke it.
15743 2018-06-24  Bruno Haible  <bruno@clisp.org>
15745         wchar-single: Fix test failure in wcwidth tests.
15746         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15747         skip the tests in the C locale.
15749 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15751         crypto: mention --without-linux-crypto in --with-openssl --help
15752         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15753         routines take precedence in --with-openssl help output.
15755 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15757         wchar-single: a new module to enable optimizations in wchar replacements
15758         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15759         GNULIB_WCHAR_SINGLE is enabled.
15760         * lib/wcwidth.c (wcwidth): Likewise.
15762 2018-06-23  Bruno Haible  <bruno@clisp.org>
15764         libc-config: Fix conflict with FreeBSD include files.
15765         * lib/cdefs.h (__nonnull): Remove definition.
15766         * lib/libc-config.h (__nonnull): Remove undefinition.
15768 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15770         random_r: do not crash if state is unaligned
15771         Problem reported by Bruce Korb in:
15772         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15773         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15774         with 'cc -O2 -xmemalign=8s'.
15775         * lib/random_r.c: Include string.h, for memcpy.
15776         (get_int32, set_int32): New functions.
15777         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15778         Use them to avoid assumption that state pointer is aligned.
15779         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15780         * tests/test-random_r.c (test_failed): New function.
15781         (main): Use it, to test for alignment bugs.
15783         random_r: omit unnecessary include
15784         * lib/random_r.c: Do not include limits.h.
15786         random, random_r: merge from glibc
15787         * lib/random.c, lib/random_r.c:
15788         Include libc-config.h if !_LIBC, not config.h unilaterally.
15789         * lib/random.c:
15790         Do not include stdint.h or time.h; not needed.
15791         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15792         (unsafe_state): Rename from generator.  All uses changed.
15793         Use C99-style initializers.
15794         (__random, __srandom, __initstate, __setstate): Rename from
15795         non-underscored version, but define it to non-underscored version
15796         on Gnulib.  Add a lock.
15797         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
15798         Likewise.
15799         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
15800         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
15801         (__srandom_r): Use int32_t instead of long int where int32_t will do.
15802         (__random_r): Use uint32 to fix glibc bug 17343.
15803         * modules/random, modules/random_r (Depends-on): Add libc-config.
15804         Depend on stdint only if $HAVE_RANDOM = 0.
15806 2018-06-19  Jim Meyering  <meyering@fb.com>
15808         README-release: also run any check-very-expensive tests
15809         * top/README-release: Adjust instructions so they run the
15810         check-very-expensive tests when there is such a target.
15812 2018-06-18  Bruno Haible  <bruno@clisp.org>
15814         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
15815         * m4/pthread_rwlock_rdlock.m4: Add comment.
15816         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
15817         are reader-preferring in glibc.
15818         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15819         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15821 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15823         crypto: use byteswap
15824         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15825         * lib/sm3.c: Include <byteswap.h>.
15826         (SWAP): Use its macros rather than reinventing the wheel.
15827         * modules/crypto/md4, modules/crypto/md5-buffer:
15828         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15829         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15830         (Depends-on): Add byteswap.
15832 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15834         gendocs.sh: fix support for legacy --texi2html
15835         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15836         to the default makeinfo invocation.
15837         Reported by Bruce Korb
15839 2018-06-17  Bruno Haible  <bruno@clisp.org>
15841         gettext po infrastructure: Update from current gettext git.
15842         Reported by Akim Demaille <akim@lrde.epita.fr>.
15843         * build-aux/po/Makefile.in.in: Update from current gettext git.
15844         * build-aux/po/remove-potcdate.sin: Likewise.
15845         * config/srclist.txt: Temporarily disable sync for these files.
15847 2018-06-17  Bruno Haible  <bruno@clisp.org>
15849         getloadavg: Return 0 on Windows without Cygwin.
15850         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15852 2018-06-17  Paul Smith  <psmith@gnu.org>
15854         getloadavg: Allow building on Windows without Cygwin
15855         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15856         * m4/getloadavg.m4: Check for unistd.h.
15858 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15860         Port crypto/af_alg to GCC 4.8.4
15861         Problem reported by Peter Simons in:
15862         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15863         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15865 2018-05-27  Colin Watson  <cjwatson@debian.org>
15867         bootstrap: document source fetching in --help
15868         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15870 2018-04-09  Colin Watson  <cjwatson@debian.org>
15872         bootstrap: allow non-submodule control of gnulib
15873         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15874         bootstrap.conf when fetching gnulib using "git clone" or via
15875         GNULIB_SRCDIR.
15877 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15879         crypto: omit stream ops Emacs doesn’t need
15880         * lib/md5.c (md5_stream):
15881         * lib/sha1.c (sha1_stream):
15882         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15883         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15884         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15885         defined.  Emacs needs this, as it does not use the stream
15886         operations and doesn’t need all the af_alg stuff we’ve recently
15887         added.  Perhaps a similar change is needed to the other crypto
15888         modules, but this patch changes only those needed for Emacs.
15889         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15890         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15891         New modules, used by Emacs.
15892         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15893         * modules/crypto/sha512: Rewrite to depend on the new modules.
15895 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15897         fts: avoid a memory leak edge case
15898         * lib/fts.c (fts_open): Set an appropriate fts_level
15899         so that an immediate fts_close() will free the allocation.
15900         * tests/test-fts.c (fts_dealloc): Add a test case which
15901         will trigger under valgrind or address sanitizer.
15902         Fixes https://bugs.gnu.org/31439
15904 2018-05-20  Bruno Haible  <bruno@clisp.org>
15906         wcwidth tests: Fix link error.
15907         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15908         $(LIBUNISTRING).
15910 2018-05-20  Bruno Haible  <bruno@clisp.org>
15912         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15913         * modules/regex (Files): Add m4/glibc21.m4.
15915 2018-05-20  Bruno Haible  <bruno@clisp.org>
15917         localcharset: Optimize.
15918         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15919         platforms where these don't matter. This reduces the table size,
15920         which in turn reduces the lookup time.
15922 2018-05-19  Bruno Haible  <bruno@clisp.org>
15924         localcharset: Map the locale encodings found in newer OSes.
15925         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15926         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15927         IRIX 6.5, Minix 3.3.
15928         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15930 2018-05-19  Bruno Haible  <bruno@clisp.org>
15932         localcharset: Move mapping tables into the code. Use a binary search.
15933         * lib/localcharset.h: Document the GNU canonical names for character
15934         encodings here.
15935         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15936         relocatable.h, configmake.h.
15937         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15938         macros.
15939         (charset_aliases): Remove variable.
15940         (get_charset_aliases): Remove function.
15941         (struct table_entry): New type.
15942         (alias_table, locale_table): New constants.
15943         (locale_charset): Use the alias_table or locale_table to get the
15944         canonicalized encoding name.
15945         * lib/config.charset: Remove file.
15946         * lib/ref-add.sin: Remove file.
15947         * lib/ref-del.sin: Remove file.
15948         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15949         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15950         * modules/localcharset (Notice): Remove.
15951         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15952         glibc21.m4.
15953         (Depends-on): Remove configmake.
15954         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15955         (Makefile.am): Simplify.
15956         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15958 2018-05-19  Bruno Haible  <bruno@clisp.org>
15960         localcharset: Add a manual test.
15961         * tests/test-localcharset.c: New file.
15962         * modules/localcharset-tests: New file.
15964 2018-05-19  Bruno Haible  <bruno@clisp.org>
15966         localcharset: Remove support for obsolete platforms.
15967         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15968         Mac OS X 10.2. Comment out dubious entry for Solaris.
15970 2018-05-19  Jim Meyering  <meyering@fb.com>
15972         gnupload: adjust comment
15973         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15974         more likely we'll remove the just-added code in a year or two.
15976 2018-05-19  Bruno Haible  <bruno@clisp.org>
15978         gnupload: Fix "gpg-agent is not available in this session" error.
15979         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15981 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15983         crypto/af_alg: fix --help
15984         * m4/af_alg.m4: Avoid spurious newline in --help output.
15986 2018-05-13  Bruno Haible  <bruno@clisp.org>
15988         nl_langinfo: Fix compilation error on Android.
15989         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15990         INT_CURR_SYMBOL, etc. only if these items are defined.
15992 2018-05-13  Bruno Haible  <bruno@clisp.org>
15994         truncate: Fix compilation error on Android.
15995         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15996         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15997         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15998         HAVE_TRUNCATE.
15999         * modules/truncate: Likewise.
16000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
16001         not HAVE_TRUNCATE.
16002         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
16003         HAVE_TRUNCATE.
16004         * doc/posix-functions/truncate.texi: Mention the issue.
16006 2018-05-13  Bruno Haible  <bruno@clisp.org>
16008         pthread: Fix compilation error on Android.
16009         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
16010         recursive inclusion of this file.
16012 2018-05-13  Bruno Haible  <bruno@clisp.org>
16014         posix_spawn: Fix compilation error on Android.
16015         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
16016         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
16017         (posix_spawn_file_actions_t): Consider also the case
16018         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
16020 2018-05-13  Bruno Haible  <bruno@clisp.org>
16022         tsearch: Move from K&R C to ANSI C.
16023         * lib/tsearch.c (tfind): Convert definition to ANSI C.
16025 2018-05-13  Bruno Haible  <bruno@clisp.org>
16027         tsearch: Fix compilation error on Android.
16028         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
16029         is 0.
16030         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
16031         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
16032         GNULIB_defined_tsearch is true.
16033         (twalk): Define only if GNULIB_defined_twalk is true.
16034         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
16035         is 0.
16036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
16037         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
16038         * modules/search (Makefile.am): Substitute HAVE_TWALK.
16040 2018-05-13  Bruno Haible  <bruno@clisp.org>
16042         imaxdiv: Fix compilation error on Android.
16043         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
16044         is not defined.
16045         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
16046         HAVE_DECL_IMAXDIV, is 0.
16047         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
16048         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
16050 2018-05-13  Bruno Haible  <bruno@clisp.org>
16052         Support selective inclusion mechanism of recent mingw.org header files.
16053         Reported by Eli Zaretskii <eliz@gnu.org>.
16054         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
16055         __need_ssize_t, or __need_time_t is defined, just include the system's
16056         <sys/types.h>.
16057         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
16058         include the system's <locale.h>.
16060 2018-05-13  Bruno Haible  <bruno@clisp.org>
16062         Avoid compilation error due to 'mmap' on Android.
16063         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
16064         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
16065         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
16066         Undefine on Android.
16068 2018-05-13  Bruno Haible  <bruno@clisp.org>
16070         Add cross-compilation guesses for Linux systems without glibc.
16071         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
16072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16073         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16074         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16075         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16076         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16077         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16078         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16079         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16080         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
16081         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16082         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16083         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16084         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16085         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16086         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16087         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16088         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16090 2018-05-13  Bruno Haible  <bruno@clisp.org>
16092         getpagesize: Fix compilation error on Android.
16093         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
16094         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
16095         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
16096         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
16097         HAVE_GETPAGESIZE accordingly.
16098         * modules/getcwd (Files): Add m4/getpagesize.m4.
16100 2018-05-13  Bruno Haible  <bruno@clisp.org>
16102         tcgetsid: Fix compilation error on Android.
16103         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
16104         AC_CHECK_FUNC.
16106 2018-05-13  Bruno Haible  <bruno@clisp.org>
16108         getpass: Fix configure test for Android.
16109         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
16110         AC_CHECK_FUNC.
16112 2018-05-13  Bruno Haible  <bruno@clisp.org>
16114         ffs: Fix compilation error on Android.
16115         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
16117 2018-05-13  Bruno Haible  <bruno@clisp.org>
16119         mkfifo: Fix compilation error on Android.
16120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
16121         AC_CHECK_FUNC.
16123 2018-05-13  Bruno Haible  <bruno@clisp.org>
16125         c-strtod: Fix configure test for Android.
16126         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
16127         AC_CHECK_FUNC.
16129 2018-05-13  Bruno Haible  <bruno@clisp.org>
16131         random: Fix compilation error on Android.
16132         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
16133         AC_CHECK_FUNC.
16135 2018-05-13  Bruno Haible  <bruno@clisp.org>
16137         grantpt: Fix compilation error on Android.
16138         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
16139         AC_CHECK_FUNC.
16141 2018-05-13  Bruno Haible  <bruno@clisp.org>
16143         stdioext: Fix compilation errors with newer Android headers.
16144         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
16145         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
16146         fallbacks for Android.
16147         * lib/fpending.c: Update comments.
16148         * lib/fpurge.c: Likewise.
16149         * lib/freadable.h: Likewise.
16150         * lib/freadable.c: Likewise.
16151         * lib/freadahead.c: Likewise.
16152         * lib/freading.h: Likewise.
16153         * lib/freadptr.c: Likewise.
16154         * lib/fseterr.c: Likewise.
16155         * lib/fwritable.h: Likewise.
16156         * lib/fwritable.c: Likewise.
16157         * lib/fwriting.h: Likewise.
16158         * lib/fwriting.c: Likewise.
16160 2018-05-13  Bruno Haible  <bruno@clisp.org>
16162         doc: Add info about Android versions 2.0 to 8.1.
16163         * doc/**/*.texi: Add info about functions in all released versions of
16164         Bionic.
16166 2018-05-12  Bruno Haible  <bruno@clisp.org>
16168         fseeko: On mingw, don't use the hidden function _fseeki64.
16169         Reported by Eli Zaretskii <eliz@gnu.org>.
16170         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
16171         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
16173 2018-05-12  Bruno Haible  <bruno@clisp.org>
16175         glob: Choose 'dirent_type' in a way that works better on mingw.
16176         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
16177         * lib/glob.c (dirent_type): Define as uint_fast32_t.
16179 2018-05-12  Bruno Haible  <bruno@clisp.org>
16181         execute, spawn-pipe: Avoid warning about redefining 'close'.
16182         Reported by Eli Zaretskii <eliz@gnu.org>.
16183         * lib/execute.c: Undefine 'close' before redefining it.
16184         * lib/spawn-pipe.c: Likewise.
16186 2018-05-12  Bruno Haible  <bruno@clisp.org>
16188         nanosleep: Avoid test failure on mingw when it has nanosleep.
16189         Reported by Eli Zaretskii <eliz@gnu.org>.
16190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
16191         If it does not exist, use a simpler test program that does not call
16192         alarm().
16194 2018-05-10  Bruno Haible  <bruno@clisp.org>
16196         lock, cond, thread, tls: Use a different symbol as libpthread witness.
16197         Reported by Devin Hussey <husseydevin@gmail.com>.
16198         Based on a patch by Paul Eggert.
16199         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
16200         as witness of libpthread.
16201         * lib/glthread/cond.h (pthread_in_use): Likewise.
16202         * lib/glthread/thread.h (pthread_in_use): Likewise.
16203         * lib/glthread/tls.h (pthread_in_use): Likewise.
16205 2018-05-10  Bruno Haible  <bruno@clisp.org>
16207         cond tests: Fix compilation error on Solaris.
16208         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
16209         macro.
16211 2018-05-10  Bruno Haible  <bruno@clisp.org>
16213         doc: Add partial info about Android 4.3.
16214         * doc/*-functions/*.texi: Add info about functions that were added
16215         to Bionic between Android 4.3 and Android 9.0.
16217 2018-05-10  Bruno Haible  <bruno@clisp.org>
16219         doc: Add info about Android 9.0.
16220         * doc/**/*.texi: Add info about functions and headers in Bionic from
16221         Android 9.0.
16223 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
16225         af_alg: fix my typo in afalg_buffer
16226         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
16227         (afalg_stream): Simplify and avoid the need for a runtime test
16228         at the end.
16230         af_alg: recover better from crypto failures
16231         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
16232         input stream is seekable, by repositioning the stream back to
16233         where it was, possibly by just calling sendfile with an offset
16234         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
16235         cases, which lets our callers try again with user-mode code.
16236         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
16237         instead of on fflush and lseek.
16239         af_alg: distiguish I/O errors better
16240         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
16241         not -EIO, if it’s OK for the caller to try again with user-mode code.
16242         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
16243         some other error number) if fflush fails, as the caller should not
16244         try again that case.
16246         af_alg: avoid gotos
16247         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
16248         gotos, as they were a source of unreliability and made the code a
16249         bit harder to follow.
16251         af_alg: don’t leak file descriptors into children
16252         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
16253         This code should be compiled only on recent GNU/Linux platforms
16254         so we shouldn’t have to also depend on the accept4 module.
16256         af_alg: coalesce socket creation
16257         * lib/af_alg.c (alg_socket): New function.
16258         (afalg_buffer, afalg_stream): Use it.  This avoids some
16259         code duplication and gotos.
16261         af_alg: fix file descriptor leak
16262         * lib/af_alg.c (afalg_stream): Close leak.
16264         af_alg: Pacify --enable-gcc-warnings on GCC 8
16265         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
16266         and checking to pacify gcc -Wjump-misses-init on GCC 8.
16268 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16270         af_alg: Pacify --enable-gcc-warnings
16271         Problem reported by Assaf Gordon in:
16272         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
16273         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
16274         gcc -Wjump-misses-init.
16275         * lib/sha512.c (shaxxx_stream): Now static.
16277 2018-05-06  Bruno Haible  <bruno@clisp.org>
16279         af_alg: Add ability to use Linux kernel crypto API on data in memory.
16280         * lib/af_alg.h (afalg_buffer): New declaration.
16281         * lib/af_alg.c (afalg_buffer): New function.
16283 2018-05-06  Bruno Haible  <bruno@clisp.org>
16285         af_alg: Avoid warnings.
16286         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
16287         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
16289 2018-05-06  Bruno Haible  <bruno@clisp.org>
16291         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
16292         * tests/bench-digest.h: New file.
16293         * tests/bench-md5.c: New file.
16294         * tests/bench-sha1.c: New file.
16295         * tests/bench-sha224.c: New file.
16296         * tests/bench-sha256.c: New file.
16297         * tests/bench-sha384.c: New file.
16298         * tests/bench-sha512.c: New file.
16299         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
16300         tests/bench-digest.h.
16301         (Depends-on): Add getrusage, gettimeofday.
16302         (Makefile.am): Add variables to build bench-md5.
16303         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
16304         tests/bench-digest.h.
16305         (Depends-on): Add getrusage, gettimeofday.
16306         (Makefile.am): Add variables to build bench-sha1.
16307         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
16308         tests/bench-sha256.c, tests/bench-digest.h.
16309         (Depends-on): Add getrusage, gettimeofday.
16310         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
16311         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
16312         tests/bench-sha512.c, tests/bench-digest.h.
16313         (Depends-on): Add getrusage, gettimeofday.
16314         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
16316 2018-05-06  Bruno Haible  <bruno@clisp.org>
16318         af_alg: Fix a resource leak.
16319         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
16320         New local variable 'result'.
16322 2018-05-06  Bruno Haible  <bruno@clisp.org>
16324         af_alg: Fix bug with streams that are not at position 0.
16325         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
16326         assume that the stream is positioned at position 0.
16327         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
16328         of the stream.
16329         * lib/md5.h (md5_stream): Likewise.
16330         * lib/sha1.h (sha1_stream): Likewise.
16331         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
16332         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
16333         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
16335         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
16336         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
16337         stream that is not positioned at the beginning.
16339 2018-05-06  Bruno Haible  <bruno@clisp.org>
16341         af_alg: Add configure option to enable/disable use of Linux crypto API.
16342         Suggested by Assaf Gordon <assafgordon@gmail.com>.
16343         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
16344         USE_LINUX_CRYPTO_API.
16345         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
16346         * lib/af_alg.c: Likewise.
16348 2018-05-06  Bruno Haible  <bruno@clisp.org>
16350         Followup to 'af_alg: New module.'.
16351         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
16352         * modules/crypto/sha1 (Depends-on): Likewise.
16353         * modules/crypto/sha256 (Depends-on): Likewise.
16354         * modules/crypto/sha512 (Depends-on): Likewise.
16356 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16358         crypto/{md5,sha1,sha256,sha512}: simplify
16359         * lib/md5.c (md5_stream):
16360         * lib/sha1.c (sha1_stream):
16361         * lib/sha256.c (shaxxx_stream):
16362         Simplify, partly by assuming C99.
16363         * lib/sha256.c (shaxxx_stream):
16364         New function, which implements both sha256 and sha224.
16365         Simplify, partly by assuming C99.
16366         (sha256_stream, sha224_stream):
16367         Use it to avoid code duplication, removing a FIXME.
16368         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16369         Likewise.
16371         af_alg: Improve comments.
16372         * lib/af_alg.h: Use imperatives and tighten up wording.
16374 2018-05-05  Bruno Haible  <bruno@clisp.org>
16376         af_alg: Improve comments.
16377         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
16379 2018-05-05  Bruno Haible  <bruno@clisp.org>
16381         af_alg: New module.
16382         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16383         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16384         * lib/md5.c: Include "af_alg.h" unconditionally.
16385         (md5_stream): Invoke afalg_stream unconditionally.
16386         * lib/sha1.c: Include "af_alg.h" unconditionally.
16387         (sha1_stream): Invoke afalg_stream unconditionally.
16388         * lib/sha256.c: Include "af_alg.h" unconditionally.
16389         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16390         * lib/sha512.c: Include "af_alg.h" unconditionally.
16391         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16392         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16393         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16394         * modules/crypto/af_alg: New file.
16395         * modules/crypto/md5 (Files): Remove files that are now in the
16396         'crypto/af_alg' module.
16397         (Depends-on): Add crypto/af_alg.
16398         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16399         (Makefile.am): Don't mention af_alg.c here.
16400         * modules/crypto/sha1 (Files): Remove files that are now in the
16401         'crypto/af_alg' module.
16402         (Depends-on): Add crypto/af_alg.
16403         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16404         (Makefile.am): Don't mention af_alg.c here.
16405         * modules/crypto/sha256 (Files): Remove files that are now in the
16406         'crypto/af_alg' module.
16407         (Depends-on): Add crypto/af_alg.
16408         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16409         (Makefile.am): Don't mention af_alg.c here.
16410         * modules/crypto/sha512 (Files): Remove files that are now in the
16411         'crypto/af_alg' module.
16412         (Depends-on): Add crypto/af_alg.
16413         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16414         (Makefile.am): Don't mention af_alg.c here.
16416 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16418         crypto tests: pacify GCC
16419         * tests/test-digest.h (test_digest_on_files):
16420         Don’t assume digest size fits in int (!).
16422         af_alg: minor style improvements
16423         * lib/af_alg.c (afalg_stream): Prefer C99 style
16424         decl-after-statement, since we’re already assuming C99.  Clarify
16425         by strengthening the bind test and omit unnecessary assignment.
16427 2018-05-05  Bruno Haible  <bruno@clisp.org>
16429         af_alg: Fix bug on empty files.
16430         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16431         stream is empty.
16433 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16435         sys-limits.h: new file for crypto and safe I/O
16436         * lib/af_alg.c: Include sys-limits.h.
16437         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16438         (afalg_stream): Also reject negative sizes for sendfile; they
16439         should not happen and the code is a bit cleaner and faster this way.
16440         * lib/safe-read.c: Include sys-limits.h.
16441         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16442         * lib/sys-limits.h: New file, with values and commentary derived
16443         from the old safe-read.c and from GNU Emacs sysdep.c.
16444         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16445         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16446         Add lib/sys-limits.h to Files section.
16448 2018-05-05  Bruno Haible  <bruno@clisp.org>
16450         af_alg: Improve function signature.
16451         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16452         * lib/af_alg.c (afalg_stream): Likewise.
16453         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16455 2018-05-05  Bruno Haible  <bruno@clisp.org>
16457         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16458         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16459         * modules/crypto/sha1 (Depends-on): Likewise.
16460         * modules/crypto/sha256 (Depends-on): Likewise.
16461         * modules/crypto/sha512 (Depends-on): Likewise.
16463 2018-05-05  Bruno Haible  <bruno@clisp.org>
16465         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16466         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16467         * modules/crypto/sha1 (Depends-on): Likewise.
16468         * modules/crypto/sha256 (Depends-on): Likewise.
16469         * modules/crypto/sha512 (Depends-on): Likewise.
16471 2018-05-05  Bruno Haible  <bruno@clisp.org>
16473         af_alg: Add documentation.
16474         * lib/af_alg.h: Add comments.
16476 2018-05-05  Bruno Haible  <bruno@clisp.org>
16478         sha512: Add tests.
16479         * tests/test-sha512.c: New file.
16480         * modules/crypto/sha512-tests: New file.
16482 2018-05-05  Bruno Haible  <bruno@clisp.org>
16484         sha256: Add tests.
16485         * tests/test-sha256.c: New file.
16486         * modules/crypto/sha256-tests: New file.
16488 2018-05-05  Bruno Haible  <bruno@clisp.org>
16490         sha1 tests: Add test for sha1_stream.
16491         * tests/test-sha1.c: Include test-digest.h.
16492         (main): Invoke test_digest_on_files on 'sha1_stream'.
16493         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16495 2018-05-05  Bruno Haible  <bruno@clisp.org>
16497         md5 tests: Add test for md5_stream.
16498         * tests/test-digest.h: New file.
16499         * tests/test-md5.c: Include test-digest.h.
16500         (main): Invoke test_digest_on_files on 'md5_stream'.
16501         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16503 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16505         md5sum: Use AF_ALG when available.
16506         * lib/md5.c: Include af_alg.h.
16507         (md5_stream): Use afalg_stream when available.
16508         * modules/crypto/md5 (Files): Add the af_alg files.
16509         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16510         (Makefile.am): Add af_alg.c.
16512 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16514         sha512sum: Use AF_ALG when available.
16515         * lib/sha512.c: Include af_alg.h.
16516         (sha512_stream, sha384_stream): Use afalg_stream when available.
16517         * modules/crypto/sha512 (Files): Add the af_alg files.
16518         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16519         (Makefile.am): Add af_alg.c.
16521 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16523         sha256sum: Use AF_ALG when available.
16524         * lib/sha256.c: Include af_alg.h.
16525         (sha256_stream, sha224_stream): Use afalg_stream when available.
16526         * modules/crypto/sha256 (Files): Add the af_alg files.
16527         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16528         (Makefile.am): Add af_alg.c.
16530 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16532         sha1sum: Use AF_ALG when available.
16533         * lib/af_alg.h: New file.
16534         * lib/af_alg.c: New file.
16535         * lib/sha1.c: Include af_alg.h.
16536         (sha1_stream): Use afalg_stream when available.
16537         * m4/linux-if-alg.m4: New file.
16538         * modules/crypto/sha1 (Files): Add the new files.
16539         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16540         (Makefile.am): Add af_alg.c.
16542 2018-05-05  Bruno Haible  <bruno@clisp.org>
16544         all: Replace more http URLs by https URLs.
16545         * lib/localename.c: Use https: URL.
16546         * lib/timespec.h: Likewise.
16548 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16550         maint: port more modules to GCC 8
16551         * lib/dirname.h (base_name):
16552         * lib/exclude.h (new_exclude):
16553         * lib/xstrndup.h (xstrndup):
16554         Add malloc attribute.
16555         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16556         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16557         This pacifies GCC 8.
16558         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16559         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16561 2018-05-03  Bruno Haible  <bruno@clisp.org>
16563         Simplify code. Drop support for Borland C++ on Windows.
16564         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16565         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16566         'defined _WIN32'.
16567         * lib/canonicalize-lgpl.c: Likewise.
16568         * lib/classpath.c: Likewise.
16569         * lib/clean-temp.c: Likewise.
16570         * lib/csharpexec.c: Likewise.
16571         * lib/ctime.c: Likewise.
16572         * lib/dosname.h: Likewise.
16573         * lib/dup2.c: Likewise.
16574         * lib/errno.in.h: Likewise.
16575         * lib/error.c: Likewise.
16576         * lib/euidaccess.c: Likewise.
16577         * lib/execute.c: Likewise.
16578         * lib/fcntl.in.h: Likewise.
16579         * lib/fcntl.c: Likewise.
16580         * lib/filename.h: Likewise.
16581         * lib/findprog.c: Likewise.
16582         * lib/flock.c: Likewise.
16583         * lib/fopen.c: Likewise.
16584         * lib/freopen.c: Likewise.
16585         * lib/fstat.c: Likewise.
16586         * lib/fsync.c: Likewise.
16587         * lib/gc-gnulib.c: Likewise.
16588         * lib/get-rusage-data.c: Likewise.
16589         * lib/getaddrinfo.c: Likewise.
16590         * lib/getdelim.c: Likewise.
16591         * lib/getdtablesize.c: Likewise.
16592         * lib/gethostname.c: Likewise.
16593         * lib/getlogin.c: Likewise.
16594         * lib/getlogin_r.c: Likewise.
16595         * lib/getopt.c: Likewise.
16596         * lib/getpagesize.c: Likewise.
16597         * lib/getpass.c: Likewise.
16598         * lib/getrusage.c: Likewise.
16599         * lib/gettimeofday.c: Likewise.
16600         * lib/glob.c: Likewise.
16601         * lib/inttypes.in.h: Likewise.
16602         * lib/isapipe.c: Likewise.
16603         * lib/javaexec.c: Likewise.
16604         * lib/link.c: Likewise.
16605         * lib/localcharset.c: Likewise.
16606         * lib/localename.h: Likewise.
16607         * lib/localename.c: Likewise.
16608         * lib/localtime.c: Likewise.
16609         * lib/lseek.c: Likewise.
16610         * lib/mbsinit.c: Likewise.
16611         * lib/mkdir.c: Likewise.
16612         * lib/msvc-nothrow.h: Likewise.
16613         * lib/nanosleep.c: Likewise.
16614         * lib/nl_langinfo.c: Likewise.
16615         * lib/nonblocking.c: Likewise.
16616         * lib/nproc.c: Likewise.
16617         * lib/open.c: Likewise.
16618         * lib/openpty.c: Likewise.
16619         * lib/pathmax.h: Likewise.
16620         * lib/pipe-filter-aux.c: Likewise.
16621         * lib/pipe-filter-gi.c: Likewise.
16622         * lib/pipe-filter-ii.c: Likewise.
16623         * lib/pipe.c: Likewise.
16624         * lib/pipe2.c: Likewise.
16625         * lib/poll.c: Likewise.
16626         * lib/popen.c: Likewise.
16627         * lib/posix_openpt.c: Likewise.
16628         * lib/printf-parse.c: Likewise.
16629         * lib/progreloc.c: Likewise.
16630         * lib/putenv.c: Likewise.
16631         * lib/read.c: Likewise.
16632         * lib/relocatable.c: Likewise.
16633         * lib/rename.c: Likewise.
16634         * lib/same-inode.h: Likewise.
16635         * lib/secure_getenv.c: Likewise.
16636         * lib/select.c: Likewise.
16637         * lib/sethostname.c: Likewise.
16638         * lib/setlocale.c: Likewise.
16639         * lib/sigaction.c: Likewise.
16640         * lib/sigprocmask.c: Likewise.
16641         * lib/sleep.c: Likewise.
16642         * lib/spawn-pipe.h: Likewise.
16643         * lib/spawn-pipe.c: Likewise.
16644         * lib/spawni.c: Likewise.
16645         * lib/stat-time.h: Likewise.
16646         * lib/stat-w32.c: Likewise.
16647         * lib/stat.c: Likewise.
16648         * lib/stdio.in.h: Likewise.
16649         * lib/stdio-impl.h: Likewise.
16650         * lib/stdio-read.c: Likewise.
16651         * lib/stdio-write.c: Likewise.
16652         * lib/stdlib.in.h: Likewise.
16653         * lib/strerror_r.c: Likewise.
16654         * lib/strftime-fixes.c: Likewise.
16655         * lib/sys_stat.in.h: Likewise.
16656         * lib/sys_types.in.h: Likewise.
16657         * lib/sys_wait.in.h : Likewise.
16658         * lib/system-quote.h: Likewise.
16659         * lib/system-quote.c: Likewise.
16660         * lib/tmpdir.c: Likewise.
16661         * lib/tzset.c: Likewise.
16662         * lib/uname.c: Likewise.
16663         * lib/unistd.in.h: Likewise.
16664         * lib/utime.in.h: Likewise.
16665         * lib/utime.c: Likewise.
16666         * lib/utimecmp.c: Likewise.
16667         * lib/utimens.c: Likewise.
16668         * lib/vasnprintf.c: Likewise.
16669         * lib/vma-iter.h: Likewise.
16670         * lib/vma-iter.c: Likewise.
16671         * lib/wait-process.c: Likewise.
16672         * lib/wcsftime.c: Likewise.
16673         * lib/wctype.in.h: Likewise.
16674         * lib/write.c: Likewise.
16675         * tests/nap.h: Likewise.
16676         * tests/test-cloexec.c: Likewise.
16677         * tests/test-dup-safer.c: Likewise.
16678         * tests/test-dup2.c: Likewise.
16679         * tests/test-dup3.c: Likewise.
16680         * tests/test-fcntl.c: Likewise.
16681         * tests/test-get-rusage-data.c: Likewise.
16682         * tests/test-getaddrinfo.c: Likewise.
16683         * tests/test-getlogin.h: Likewise.
16684         * tests/test-isatty.c: Likewise.
16685         * tests/test-localename.c: Likewise.
16686         * tests/test-mbrtowc-w32.c: Likewise.
16687         * tests/test-nonblocking.c: Likewise.
16688         * tests/test-nonblocking-pipe-main.c: Likewise.
16689         * tests/test-nonblocking-socket-main.c: Likewise.
16690         * tests/test-nonblocking-socket.h: Likewise.
16691         * tests/test-pipe.c: Likewise.
16692         * tests/test-pipe2.c: Likewise.
16693         * tests/test-poll.c: Likewise.
16694         * tests/test-pthread_sigmask1.c: Likewise.
16695         * tests/test-select.h: Likewise.
16696         * tests/test-sethostname2.c: Likewise.
16697         * tests/test-sigprocmask.c: Likewise.
16698         * tests/test-spawn-pipe-child.c: Likewise.
16699         * tests/test-stat-time.c: Likewise.
16700         * tests/test-system-quote-main.c: Likewise.
16701         * tests/test-utimens-common.h: Likewise.
16702         * tests/test-wcrtomb-w32.c: Likewise.
16703         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16704         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16705         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16706         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16707         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16708         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16709         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16711         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16712         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16713         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16714         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16715         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16716         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16717         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16718         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16720 2018-05-02  Bruno Haible  <bruno@clisp.org>
16722         localename: Fix test failures on mingw.
16723         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16724         native Windows.
16725         (gl_locale_name_posix): Move code specific to native Windows here.
16726         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16727         Accept result without charset suffix, as it appears on mingw.
16729 2018-04-28  Paul Smith  <psmith@gnu.org>
16731         bootstrap: Avoid gnulib operations if not needed
16732         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16733         Set $gnulib_extra_files early so it can be overridden in .conf.
16734         Remove redundant --import flag from $gnulib_tool_options.
16735         Set $use_gnulib to false if no gnulib modules or files are needed.
16736         If $use_gnulib is false, don't do anything related to gnulib.
16737         A lot of this is just whitespace (indentation) changes.
16739 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16741         manywarnings: port to GCC 8.0
16742         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16743         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16744         fact that the GCC help message now mentions operands for
16745         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16746         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16747         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16748         and -Wunused-const-variable.
16749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16750         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16751         -Wmissing-attributes, -Wmultistatement-macros,
16752         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16753         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16755 2018-04-24  Bruno Haible  <bruno@clisp.org>
16757         sys_socket: Make SO_REUSEPORT available across platforms.
16758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16759         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16760         * doc/posix-headers/sys_socket.texi: Mention the issue.
16761         * tests/test-poll.c (SO_REUSEPORT): Remove.
16762         * tests/test-select.h: Include <sys/socket.h>.
16763         (SO_REUSEPORT): Remove.
16764         * modules/select-tests (Depends-on): Add 'sys_socket'.
16766 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16768         localcharset: short-circuit the search for an alias on a Mac
16769         * lib/localcharset.c (get_charset_aliases): Add a tautological
16770         UTF-8 entry to speed up the search for this case.
16771         Most machines default to a UTF-8 locale nowadays, so begin the
16772         list of aliases with a dummy UTF-8 entry so it will be found
16773         immediately and a time-consuming search through the rest of
16774         the list is avoided.
16776 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16778         fts: add comment
16779         * lib/fts.c (fts_build): Explain why ==, not >.
16780         See remark by Bernhard Voelker in:
16781         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16783         fts: fix bug in find across filesystems
16784         This fixes a bug I introduced last summer.
16785         Problem reported by Kamil Dudka in:
16786         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16787         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16788         (leaf_optimization):
16789         New arg for file descriptor.  All callers changed.
16790         (fts_build): Check for whether inodes should be sorted
16791         before closing the directory.
16793 2018-04-07  Bruno Haible  <bruno@clisp.org>
16795         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16796         Reported by Genki Sky <sky@genki.is>.
16797         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
16798         version 0.9.10 or newer.
16799         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
16800         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
16801         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
16802         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
16803         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
16805 2018-04-07  Bruno Haible  <bruno@clisp.org>
16807         execute: Update comment.
16808         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
16810 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16812         fts: treat CIFS like NFS
16813         Problem reported by Kamil Dudka in:
16814         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
16815         * lib/fts.c (S_MAGIC_CIFS): New macro.
16816         (dirent_inode_sort_may_be_useful, leaf_optimization):
16817         Treat CIFS like NFS.
16819 2018-03-28  Bruno Haible  <bruno@clisp.org>
16821         c-stack: Fix possible build failure on some platforms.
16822         * lib/c-stack.c (die): Define whenever this function is referenced.
16824 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16826         time_rz: fix workaround for Mac OS X 10.6 infloop
16827         Problems reported by Charles A. Roelli (Bug#27736#117).
16828         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16829         Also, discard output, which clutters the 'configure' log.
16831 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16833         havelib: port to Solaris 10 /bin/sh
16834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16835         instead of '! test EXPR'.
16837 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16839         time_rz: work around Mac OS X 10.6 infloop
16840         * doc/posix-functions/localtime.texi:
16841         * doc/posix-functions/localtime_r.texi: Mention the bug.
16842         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16843         better to fix localtime and localtime_r instead, but that would be
16844         more work and is not needed to fix the Emacs problem.
16845         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16847 2018-03-24  Jim Meyering  <meyering@fb.com>
16849         test-version-etc.sh: don't use diff directly: use init.sh's compare
16850         We'd rather not sacrifice readable "diff -u" output even for
16851         "diff -c" output (not supported by busybox) or for even less
16852         readable ed-style "diff" output.  So use init.sh's compare function
16853         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16854         Remove "./" from invocation of test-version-etc, so we use path.
16855         And s/diff/compare/.
16856         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16857         to get init.sh.
16858         Prompted by Eric Blake's comments in
16859         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16861 2018-03-24  Bruno Haible  <bruno@clisp.org>
16863         javacomp-script, javacomp: Add support for Java 10.
16864         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16865         target-version 10.
16866         * lib/javaversion.h: Update comments.
16867         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16868         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16869         TARGET_VERSION_BOUND, target_version_index,
16870         corresponding_classfile_version): Accept source_version 10 and
16871         target_version 10.
16872         * lib/javacomp.h: Update comments accordingly.
16874 2018-03-24  Bruno Haible  <bruno@clisp.org>
16876         javacomp-script, javacomp: Update comments.
16877         * m4/javacomp.m4: Update comments regarding gcj.
16878         * lib/javacomp.h: Likewise.
16880 2018-03-24  Bruno Haible  <bruno@clisp.org>
16882         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16883         * lib/javaversion.h: Update comments.
16884         * lib/javacomp.h: Likewise.
16885         * lib/javacomp.c (default_target_version, source_version_index,
16886         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16887         "1.9".
16888         (TARGET_VERSION_BOUND): Bump to 9.
16889         (target_version_index, corresponding_classfile_version): Recognize "9"
16890         instead of "1.9".
16891         (get_source_version_for_javac): New function.
16892         (is_envjavac_nongcj_usable, is_javac_usable): Add
16893         source_version_for_javac argument.
16894         (compile_java_class): Determine and pass source_version_for_javac.
16895         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16896         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16897         appropriate.
16899 2018-03-23  Jim Meyering  <meyering@fb.com>
16901         test-version-etc.sh: port to diff without -c
16902         * tests/test-version-etc.sh: Don't use diff's -c option.
16903         This caused spurious test failure on Alpine Linux, which
16904         uses busybox's diff. Reported by Assaf Gordon in
16905         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16907 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16909         c-stack: port to recent GCC build
16910         Problem reported by The Fireplace (Bug#30913).
16911         * lib/c-stack.c (die): Define only if used.
16913 2018-03-20  Bruno Haible  <bruno@clisp.org>
16915         euidaccess: Port to native Windows.
16916         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16917         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16919 2018-03-19  Bruno Haible  <bruno@clisp.org>
16921         javacomp: Add support for Java 7, 8, 9.
16922         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16923         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16924         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16925         and target_version 1,7, 1.8, 1.9.
16926         * lib/javacomp.h: Update comments accordingly.
16928 2018-03-19  Bruno Haible  <bruno@clisp.org>
16930         javacomp-script: Add support for Java 9.
16931         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16932         target-version 1.9.
16934 2018-03-16  Bruno Haible  <bruno@clisp.org>
16936         glob: Don't compile replacements on recent glibc systems.
16937         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16938         REPLACE_GLOB is 0, include the system's <glob.h> and use
16939         _GL_CXXALIAS_SYS.
16940         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16941         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16942         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16943         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16944         Remove snippet/warn-on-use.
16945         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16946         (Makefile.am): Create glob.h always. Update list of substitutions in
16947         glob.h. Don't depend on $(WARN_ON_USE_H).
16949 2018-03-16  Bruno Haible  <bruno@clisp.org>
16951         glob: Fix link error on native Windows.
16952         * modules/glob (Depends-on): Add 'lstat'.
16954 2018-03-15  Bruno Haible  <bruno@clisp.org>
16956         glob: Fix compilation error in C++ mode.
16957         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16959 2018-03-15  Bruno Haible  <bruno@clisp.org>
16961         host-cpu-c-abi: Support for RISC-V CPU.
16962         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16963         riscv32 and riscv64 ABIs.
16964         References:
16965         https://github.com/riscv/riscv-toolchain-conventions
16966         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16967         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16969 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16971         fflush: be more paranoid about libio.h change
16972         Suggested by Eli Zaretskii in:
16973         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16974         * lib/fbufmode.c (fbufmode):
16975         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16976         (disable_seek_optimization, rpl_fflush):
16977         * lib/fpending.c (__fpending):
16978         * lib/fpurge.c (fpurge):
16979         * lib/freadable.c (freadable):
16980         * lib/freadahead.c (freadahead):
16981         * lib/freading.c (freading):
16982         * lib/freadptr.c (freadptr):
16983         * lib/freadseek.c (freadptrinc):
16984         * lib/fseeko.c (fseeko):
16985         * lib/fseterr.c (fseterr):
16986         * lib/fwritable.c (fwritable):
16987         * lib/fwriting.c (fwriting):
16988         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16990 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16992         maint: write-file-hooks -> before-save-hook
16993         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16994         it's time to use the recommended replacement.
16995         Problem reported by Glenn Morris in:
16996         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16997         * build-aux/announce-gen, build-aux/bootstrap:
16998         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16999         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
17000         * build-aux/gnu-web-doc-update, build-aux/gnupload:
17001         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17002         * build-aux/update-copyright, build-aux/useless-if-before-free:
17003         * build-aux/vc-list-files:
17004         Update hook usage for files where Gnulib is the canonical source.
17006 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
17008         binary-io: pacify gcc -Wunused-parameter
17009         Problem reported by Reuben Thomas in:
17010         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
17011         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
17012         Use _GL_UNUSED where appropriate.
17014         fflush: adjust to glibc 2.28 libio.h removal
17015         Problem reported by Daniel P. Berrangé in:
17016         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
17017         * lib/fbufmode.c (fbufmode):
17018         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17019         (disable_seek_optimization, rpl_fflush):
17020         * lib/fpending.c (__fpending):
17021         * lib/fpurge.c (fpurge):
17022         * lib/freadable.c (freadable):
17023         * lib/freadahead.c (freadahead):
17024         * lib/freading.c (freading):
17025         * lib/freadptr.c (freadptr):
17026         * lib/freadseek.c (freadptrinc):
17027         * lib/fseeko.c (fseeko):
17028         * lib/fseterr.c (fseterr):
17029         * lib/fwritable.c (fwritable):
17030         * lib/fwriting.c (fwriting):
17031         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
17032         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
17033         Define if not already defined.
17035 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
17037         environ: fix link error on 32-bit Cygwin
17038         Problem reported for GNU Emacs by Ken Brown in:
17039         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
17040         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
17042 2018-02-24  Bruno Haible  <bruno@clisp.org>
17044         mbrtowc tests: Fix regression on glibc.
17045         Reported by Bernhard Voelker.
17046         * tests/test-mbrtowc.c (main): Fix expected value of wc.
17048 2018-02-24  Bruno Haible  <bruno@clisp.org>
17050         striconveha, uniconv/*: Avoid test failures on musl libc.
17051         * tests/iconvsupport.c: New file.
17052         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
17053         does not support the ISO-2022-JP-2 encoding.
17054         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
17055         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17056         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17057         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17058         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17059         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17060         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
17061         (Makefile.am): Link test-striconveha with iconvsupport.o.
17062         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
17063         tests/iconvsupport.c.
17064         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
17065         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
17066         tests/iconvsupport.c.
17067         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
17068         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
17069         tests/iconvsupport.c.
17070         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
17071         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
17072         tests/iconvsupport.c.
17073         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
17074         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
17075         tests/iconvsupport.c.
17076         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
17077         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
17078         tests/iconvsupport.c.
17079         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
17081 2018-02-24  Bruno Haible  <bruno@clisp.org>
17083         localename: Add support for musl libc.
17084         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
17085         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
17086         on Linux platforms which define NL_LOCALE_NAME.
17088 2018-02-24  Bruno Haible  <bruno@clisp.org>
17090         mbrtowc tests: Don't make assumptions about the charset the C locale.
17091         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
17092         particular mapping in the C locale.
17094 2018-02-24  Bruno Haible  <bruno@clisp.org>
17096         ptsname_r: Don't expect that this function sets errno.
17097         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
17098         from ptsname_r().
17099         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
17101 2018-02-23  Bruno Haible  <bruno@clisp.org>
17103         xmalloca: pacify gcc -Wbad-function-cast
17104         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
17106 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17108         nl_langinfo: pacify gcc -Wunused-function
17109         * lib/nl_langinfo.c (ctype_codeset): Do not define if
17110         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
17111         this case.  Without this change, I got a diagnostic when building
17112         coreutils on Fedora 27 with gcc 7.3.1 20180130.
17114         same: pacify gcc -Wunused-variable
17115         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
17116         Omit unused variable.
17118         malloca: pacify gcc -Wbad-function-cast
17119         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
17120         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
17121         To pacify GCC, I had to cast alloca’s result to some type other
17122         than void * before casting that to uintptr_t.
17124 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17126         utimecmp: new function utimecmpat
17127         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
17128         Do not include utimens.h.
17129         (utimecmpat): New function, generalizing utimecmp.
17130         (utimecmp): Now a thin layer around utimecmpat.
17131         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
17132         utimensat instead of on lstat and utimens.
17134         same: new function same_nameat
17135         * lib/same.c: Include fcntl.h.
17136         * lib/same.c (same_nameat): New function, generalizing same_name.
17137         (same_name): Now a thin layer around same_nameat.
17138         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
17139         * modules/same (Depends-on): Depend on fstatat, openat.
17141 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
17143         warnings: Add support for Objective C.
17144         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
17145         macro.
17147 2018-02-17  Bruno Haible  <bruno@clisp.org>
17149         lock: Fix test-once1 crash on FreeBSD11.
17150         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
17151         'pthread_create', not 'pthread_cancel'.
17153 2018-02-17  Bruno Haible  <bruno@clisp.org>
17155         lock: Add test of gl_once.
17156         * tests/test-once.c: New file.
17157         * modules/lock-tests (Files): Add it.
17158         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
17160 2018-02-17  Bruno Haible  <bruno@clisp.org>
17162         thread: Fix compilation error on IRIX.
17163         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
17164         needed; include it outside the C++ extern "C" {} block.
17165         * doc/posix-headers/pthread.texi: Mention the problem with
17166         pthread_atfork on IRIX.
17168 2018-02-04  Bruno Haible  <bruno@clisp.org>
17170         nl_langinfo: Override the system's nl_langinfo() when needed.
17171         Reported by Jim Meyering.
17172         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
17173         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
17175 2018-02-04  Bruno Haible  <bruno@clisp.org>
17177         signal-h, monetary, strings: Fix build failure in some cases.
17178         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17179         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
17180         as delimiter in sed command, not '|'.
17181         * modules/monetary (Makefile.am): Likewise.
17182         * modules/strings (Makefile.am): Likewise.
17184 2018-02-03  Jim Meyering  <meyering@fb.com>
17186         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
17187         * top/maint.mk (sc_file_system): Don't complain about
17188         "/proc/filesystems".
17190 2018-02-03  Bruno Haible  <bruno@clisp.org>
17192         stdlib: Fix compilation error on OpenIndiana.
17193         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
17194         <sys/time.h>.
17195         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17196         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
17198 2018-02-03  Bruno Haible  <bruno@clisp.org>
17200         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
17201         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
17202         and use $EGREP instead of 'grep -E'.
17203         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
17204         'grep -E'.
17206 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17208         malloca: Add a compile-time verification.
17209         * lib/malloca.c (small_t): Verify that it is wide enough.
17210         * modules/malloca (Depends-on): Add verify.
17212 2018-02-02  Bruno Haible  <bruno@clisp.org>
17214         malloca: Add an argument check.
17215         Suggested by Paul Eggert.
17216         * lib/malloca.c (freea): Check against an invalid argument.
17218 2018-02-02  Bruno Haible  <bruno@clisp.org>
17220         localename: Add support for OpenIndiana.
17221         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
17222         Solaris 11 variants with uselocale() but without getlocalename_l().
17224 2018-02-02  Bruno Haible  <bruno@clisp.org>
17226         malloca, xmalloca: Make multithread-safe.
17227         Reported by Florian Weimer <fweimer@redhat.com>.
17228         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
17229         * lib/malloca.h (malloca): In the stack allocation case, return a
17230         pointer that is a multiple of 2 * sa_alignment_max.
17231         (sa_increment): Remove enum item.
17232         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
17233         a pointer that is a multiple of 2 * sa_alignment_max.
17234         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
17235         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
17236         HASH_TABLE_SIZE, mmalloca_results): Remove.
17237         (small_t): New type.
17238         (mmalloca, free): Rewritten.
17239         * lib/malloca.valgrind: Remove file.
17240         * modules/malloca (Files): Remove it.
17241         (Depends-on): Remove verify.
17243 2018-01-31  Bruno Haible  <bruno@clisp.org>
17245         environ: Fix link error on 64-bit Cygwin.
17246         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
17247         __declspec(dllimport) attribute.
17248         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
17250 2018-01-30  Bruno Haible  <bruno@clisp.org>
17252         get-rusage-data: Add support for Minix 3.
17253         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
17255 2018-01-30  Bruno Haible  <bruno@clisp.org>
17257         vma-iter: Add support for Minix 3.
17258         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
17259         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
17261 2018-01-27  Bruno Haible  <bruno@clisp.org>
17263         Fix malfunction of socket functions on HP-UX in 64-bit mode.
17264         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
17265         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
17266         _HPUX_ALT_XOPEN_SOCKET_API.
17267         * modules/accept (Depends-on): Add 'extensions'.
17268         * modules/getpeername (Depends-on): Likewise.
17269         * modules/getsockname (Depends-on): Likewise.
17270         * modules/getsockopt (Depends-on): Likewise.
17271         * modules/recvfrom (Depends-on): Likewise.
17272         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
17273         * doc/posix-functions/getpeername.texi: Likewise.
17274         * doc/posix-functions/getsockname.texi: Likewise.
17275         * doc/posix-functions/getsockopt.texi: Likewise.
17276         * doc/posix-functions/recvfrom.texi: Likewise.
17278 2018-01-27  Bruno Haible  <bruno@clisp.org>
17280         getsockname tests: More tests.
17281         * tests/test-getsockname.c (open_server_socket): New function, mostly
17282         copied from test-poll.c.
17283         (main): Check that getsockname fills in addr.
17284         * modules/getsockname-tests (Depends-on): Add the necessary
17285         dependencies.
17286         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
17288 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17290         manywarnings: fix maintainer comment
17291         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
17292         it does not mistakenly think that ‘-1)’ is an option.
17294 2018-01-26  Bruno Haible  <bruno@clisp.org>
17296         langinfo: Fix last commit.
17297         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17298         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
17300 2018-01-24  Bruno Haible  <bruno@clisp.org>
17302         langinfo, nl_langinfo: Add support for alternative month names.
17303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
17304         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
17305         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
17306         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
17307         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
17308         * doc/posix-functions/nl_langinfo.texi: Likewise.
17310 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17312         Merge strftime.c changes from glibc
17313         This incorporates:
17314         2017-11-14 [BZ #10871] Implement alternative month names
17315         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
17316         2017-06-20 Use locale_t, not __locale_t, throughout glibc
17317         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
17318         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
17319         Use locale_t, not __locale_t.
17320         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
17321         (__strftime_internal): Add support for alternate months.
17323 2018-01-23  Bruno Haible  <bruno@clisp.org>
17325         doc: Mention another prerequisite for using Gnulib.
17326         Reported at <https://stackoverflow.com/questions/48378214/>.
17327         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
17328         AC_CONFIG_HEADERS.
17330 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
17332         build: GuixSD doesn't have /bin/bash
17333         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
17335 2018-01-21  Bruno Haible  <bruno@clisp.org>
17337         Avoid test failures on Microsoft Windows Subsystem for Linux.
17338         * tests/test-fcntl.c (main): Allow a different errno.
17339         * tests/test-rename.h (test_rename): Likewise.
17340         * tests/test-renameat.c (main): Likewise.
17341         * tests/test-renameat2.c (main): Likewise.
17343 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17345         filenamecat: make base a suffix of result
17346         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
17347         (mfile_name_concat): Always make BASE a suffix of the result, as
17348         cp expects this.  To implement this, separate with '.' instead of
17349         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
17350         * tests/test-filenamecat.c (main): Adjust tests to match
17351         current behavior.  Check that BASE_IN_RESULT points to
17352         a copy of BASE and is a suffix of the resultk, and that DIR
17353         is a prefix of the result that is no longer than the prefix
17354         indicated by BASE_IN_RESULT.
17356 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
17358         update-copyright: Handle use of ©
17359         * build-aux/update-copyright ($circle_c_re): Update regex to
17360         handle use of © in headers.
17362 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
17364         Fix -Wundef warning in user-included header lib/cdefs.h.
17365         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
17367 2018-01-04  Bruno Haible  <bruno@clisp.org>
17369         pthread_sigmask: Avoid compilation error on mingw.
17370         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17371         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
17372         macro.
17374 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17376         test-framework-sh: ‘ps -ef’, not ‘ps ef’
17377         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
17378         Suggested by Bob Proulx (Bug#29968).
17379         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17381 2018-01-02  Eric Blake  <eblake@redhat.com>
17383         stat-time: silence -Wunused-parameter regression
17384         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17385         Prefer attribute over cast-to-void.
17386         (stat_time_normalize): Mark st as potentially unused.
17388 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17390         test-framework-sh: avoid netstat
17391         Problem reported by Kristýna Streitová (Bug#29947).
17392         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17393         deprecated on SuSE and it's not that important anyway.
17395 2018-01-01  Jim Meyering  <meyering@fb.com>
17397         update-copyright: add code to handle more special cases
17398         After running "make update-copyright" this year, five files
17399         required additional manual changes.  Automate those adjustments
17400         for next year.
17401         * Makefile (_year_and_prev): Define.
17402         (update-copyright): Add perl commands to induce this year's post-
17403         update-copyright adjustments.
17405 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17407         version-etc: new year
17408         * build-aux/gendocs.sh (version):
17409         * doc/gendocs_template:
17410         * doc/gendocs_template_min:
17411         * doc/gnulib.texi:
17412         * lib/version-etc.c (COPYRIGHT_YEAR):
17413         Update copyright dates by hand in templates and the like.
17415         maint: fix 'make update-copyright'
17416         * Makefile (update-copyright): Adjust to 2016-11-23 change
17417         to config/srclist-update, which changed the format of srclist.txt.
17419 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17421         chdir-safer: remove this module
17422         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17423         * NEWS: Document removal.
17424         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17425         * modules/chdir-safer: Remove these files.
17427 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17429         Add cross-compilation results for GNU/Hurd.
17430         * m4/calloc.m4: Add GNU/Hurd guess.
17431         * m4/cbrtl.m4: Likewise.
17432         * m4/ceil.m4: Likewise.
17433         * m4/ceilf.m4: Likewise.
17434         * m4/ceill.m4: Likewise.
17435         * m4/chown.m4: Likewise.
17436         * m4/duplocale.m4: Likewise.
17437         * m4/exp2l.m4: Likewise.
17438         * m4/expm1.m4: Likewise.
17439         * m4/fchdir.m4: Likewise.
17440         * m4/floor.m4: Likewise.
17441         * m4/floorf.m4: Likewise.
17442         * m4/fmod.m4: Likewise.
17443         * m4/fmodf.m4: Likewise.
17444         * m4/fmodl.m4: Likewise.
17445         * m4/getcwd.m4: Likewise.
17446         * m4/getgroups.m4: Likewise.
17447         * m4/gettimeofday.m4: Likewise.
17448         * m4/hypot.m4: Likewise.
17449         * m4/hypotf.m4: Likewise.
17450         * m4/hypotl.m4: Likewise.
17451         * m4/link-follow.m4: Likewise.
17452         * m4/link.m4: Likewise.
17453         * m4/linkat.m4: Likewise.
17454         * m4/log.m4: Likewise.
17455         * m4/log10.m4: Likewise.
17456         * m4/log10f.m4: Likewise.
17457         * m4/log1p.m4: Likewise.
17458         * m4/log1pf.m4: Likewise.
17459         * m4/log1pl.m4: Likewise.
17460         * m4/log2.m4: Likewise.
17461         * m4/log2f.m4: Likewise.
17462         * m4/logf.m4: Likewise.
17463         * m4/lstat.m4: Likewise.
17464         * m4/malloc.m4: Likewise.
17465         * m4/mbrlen.m4: Likewise.
17466         * m4/mbrtowc.m4: Likewise.
17467         * m4/mkdir.m4: Likewise.
17468         * m4/mkfifo.m4: Likewise.
17469         * m4/mknod.m4: Likewise.
17470         * m4/mkstemp.m4: Likewise.
17471         * m4/modf.m4: Likewise.
17472         * m4/modff.m4: Likewise.
17473         * m4/modfl.m4: Likewise.
17474         * m4/printf.m4: Likewise.
17475         * m4/pselect.m4: Likewise.
17476         * m4/ptsname.m4: Likewise.
17477         * m4/putenv.m4: Likewise.
17478         * m4/readlink.m4: Likewise.
17479         * m4/realloc.m4: Likewise.
17480         * m4/remainder.m4: Likewise.
17481         * m4/remainderf.m4: Likewise.
17482         * m4/remainderl.m4: Likewise.
17483         * m4/rmdir.m4: Likewise.
17484         * m4/round.m4: Likewise.
17485         * m4/roundf.m4: Likewise.
17486         * m4/roundl.m4: Likewise.
17487         * m4/select.m4: Likewise.
17488         * m4/setenv.m4: Likewise.
17489         * m4/signbit.m4: Likewise.
17490         * m4/sleep.m4: Likewise.
17491         * m4/stat.m4: Likewise.
17492         * m4/strerror.m4: Likewise.
17493         * m4/strtok_r.m4: Likewise.
17494         * m4/symlink.m4: Likewise.
17495         * m4/symlinkat.m4: Likewise.
17496         * m4/trunc.m4: Likewise.
17497         * m4/truncf.m4: Likewise.
17498         * m4/truncl.m4: Likewise.
17499         * m4/tzset.m4: Likewise.
17500         * m4/ungetc.m4: Likewise.
17501         * m4/usleep.m4: Likewise.
17502         * m4/wcwidth.m4: Likewise.
17504 2017-12-28  Bruno Haible  <bruno@clisp.org>
17506         gnulib-tool: Make --conditional-dependencies work better.
17507         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17508         * gnulib-tool (Options): Don't reject the combination of
17509         --conditional-dependencies with --with-tests.
17510         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17511         Don't reference $modules.
17512         (func_import, func_create_testdir): Pass it.
17514 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17516         regex: use re_malloc etc. consistently
17517         Problem and original patch reported by Arnold Robbins in:
17518         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17519         * lib/regcomp.c (re_comp):
17520         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17521         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17523 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17524             Paul Eggert  <eggert@cs.ucla.edu>
17526         glob: Silence warning about void pointer arithmetic.
17527         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17528         arithmetic.
17530 2017-12-15  Bruno Haible  <bruno@clisp.org>
17532         spawn-pipe: Silence a clang warning.
17533         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17534         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17535         in this file.
17537 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17539         explicit_bzero: port to macOS + Clang 9.0.0
17540         Problem reported by Marcus Johnson (Bug#29658).
17541         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17542         Don’t use asm.
17544 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17546         doc: Improve explanation of supporting relocatable libraries.
17547         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17548         properly how to build the relocatable module for
17549         libraries. (Method and example code from Bruno Haible.)
17551 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17553         doc: Use better texinfo tags in a few cases.
17554         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17555         instead of @samp in a few places.
17557 2017-12-11  Bruno Haible  <bruno@clisp.org>
17559         unistr/base: Update comment.
17560         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17562 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17564         test-faccessat.c: unlink temp file to avoid subsequent test failure
17565         * tests/test-faccessat.c: Remove the file to avoid failure
17566         to open the file on subsequent runs due to being created
17567         with no permissions.
17569 2017-12-10  Bruno Haible  <bruno@clisp.org>
17571         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17572         * doc/gnulib-tool.texi (Modified build rules): New node.
17574 2017-12-10  Bruno Haible  <bruno@clisp.org>
17576         doc: Tweak wording.
17577         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17578         "binaries".
17580 2017-12-05  Sam Steingold  <sds@gnu.org>
17581             Bruno Haible  <bruno@clisp.org>
17583         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17584         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17585         AC_EGREP_CPP pattern.
17587 2017-12-03  Bruno Haible  <bruno@clisp.org>
17589         all: Replace more http URLs by https URLs.
17590         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17591         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17592         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17593         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17595 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17597         Port better to CentOS 5
17598         Problems reported by Tom G. Christensen in:
17599         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17600         * doc/glibc-functions/strverscmp.texi (strverscmp):
17601         Document strverscmp bug with glibc 2.9 and earlier.
17602         * doc/posix-functions/tzset.texi (tzset):
17603         Document that TZ with angle brackets is POSIX-2001 and later.
17604         * tests/test-nstrftime.c: Include unistd.h.
17605         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17606         (TZ): Use it to skip tests with angle brackets in TZ,
17607         for older systems.
17609         stat: add missing module dependencies
17610         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17611         Add stat-time.
17613 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17615         stat: fix compilation failure on macOS Sierra
17616         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17617         https://savannah.gnu.org/bugs/?52546
17618         * lib/stat.c: Add missing include of stat-time.h.
17620 2017-11-28  Jim Meyering  <meyering@fb.com>
17622         test-faccessat.c: correct BASE definition to avoid parallel test failure
17623         * tests/test-faccessat.c (BASE): Define using this file's name, not
17624         that of test-lstat.c.  Using the latter caused this test to fail
17625         sometimes when run concurrently with test-lstat.
17627 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17629         unicase: fix VPATH build
17630         * modules/unicase/special-casing (Makefile.am): Ensure that the
17631         base directory is created when generating
17632         unicase/special-casing.h.
17634 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17636         libunistring: update to Unicode 9.0.0
17637         * lib/gen-uni-tables.c (fill_properties): Recognize
17638         Sentence_Terminal and Prepended_Concatenation_Mark.
17639         (is_property_default_ignorable_code_point): Exclude U+08E2.
17640         (fill_arabicshaping): Allow missing whitespace when parsing;
17641         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17642         (output_blocks): Increase the element size of the level1 table to
17643         accommodate more blocks.
17644         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17645         Update each class according to the standard.
17646         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17647         E_Base_GAZ characters.
17648         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17649         Glue_After_Zwj, and E_Base_GAZ characters.
17650         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17651         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17652         enum value.
17653         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17654         value.
17655         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17656         LBP_ZWJ, LBP_EB, and LBP_EM.
17657         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17658         enum value.
17659         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17660         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17661         declaration.
17662         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17663         (uniwbrk_table): Implement WB14.
17664         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17665         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17666         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17667         uc-is-grapheme-break.
17668         * modules/unigbrk/uc-grapheme-breaks: New module.
17669         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17670         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17671         enum value.
17672         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17673         * lib/unigbrk/u-grapheme-breaks.h: New file.
17674         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17675         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17676         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17677         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17678         29.
17679         * tests/unigbrk/test-uc-gbrk-prop.c
17680         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17681         GBP_GAZ, and GBP_EBG.
17682         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17683         * tests/unigbrk/test-uc-is-grapheme-break.c
17684         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17685         GBP_GAZ, and GBP_EBG.
17686         (main): Skip unsupported rules involving 3 or more characters,
17687         namely GB10, GB12, and GB13.
17688         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17689         * all generated files under lib/uni* and tests/uni*: Regenerate.
17690         * all the affected modules: Bump version.
17692 2017-11-26  Bruno Haible  <bruno@clisp.org>
17694         strfmon_l: Fix compilation error with glibc 2.5.
17695         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17696         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17697         * lib/monetary.in.h: Include also <locale.h>.
17699 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17701         posixtm: remove PDS_LEADING_YEAR
17702         This changes the API slightly, in a hopefully-innocuous way.
17703         Without this change the code had undefined behavior when a
17704         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17705         Problem reported by Pádraig Brady in:
17706         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17707         * NEWS: Mention this.
17708         * lib/posixtm.c (posix_time_parse): Treat the absence of
17709         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17710         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17711         present, but define it as zero, for compatibility with existing
17712         source code).  All other PDS_* values moved up.
17713         * tests/test-posixtm.c (LY): New macro.
17714         (T): Use it.  Do not expect a particular numeric encoding
17715         for PDS_CENTURY etc.
17717 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17719         stat: work around Solaris bug with tv_nsec < 0
17720         * doc/posix-functions/fstat.texi (fstat):
17721         * doc/posix-functions/fstatat.texi (fstatat):
17722         * doc/posix-functions/lstat.texi (lstat):
17723         * doc/posix-functions/stat.texi (stat):
17724         Mention Solaris 11 bug.
17725         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17726         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17727         * lib/lstat.c (rpl_lstat):
17728         * lib/stat.c (rpl_stat):
17729         Normalize resulting timestamps.
17730         * lib/fstatat.c (normal_fstatat): New function.
17731         (rpl_fstatat): Use it.
17732         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17733         (stat_time_normalize): New function.
17734         * m4/fstat.m4 (gl_FUNC_FSTAT):
17735         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17736         * m4/lstat.m4 (gl_FUNC_LSTAT):
17737         * m4/stat.m4 (gl_FUNC_STAT):
17738         Replace on Solaris.
17739         * modules/fstat (Depends-on):
17740         * modules/fstatat (Depends-on):
17741         Add stat-time.
17742         * modules/stat-time (Depends-on): Add errno, intprops.
17744 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17746         regex: merge from glibc
17747         * lib/regcomp.c (init_word_char): Add comments.
17749 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17751         regex: merge from glibc
17752         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17753         * lib/regex_internal.h (internal_function): Remove.
17754         All uses removed.
17756 2017-11-20  Bruno Haible  <bruno@clisp.org>
17758         crypto/gc-sm3: Fix buffer overrun.
17759         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17760         Reported by Coverity.
17762 2017-11-12  Jim Meyering  <meyering@fb.com>
17764         maint: shorten https://lists.gnu.org/archive/html/... links
17765         Each /archive/html/ part can be replace with /r/.
17766         Run this to induce the change:
17767         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17768         * ChangeLog: Perform that substitution.
17769         * Makefile: Likewise.
17770         * STATUS-libposix: Likewise.
17771         * build-aux/bootstrap: Likewise.
17772         * doc/maintain.texi: Likewise.
17773         * gnulib-tool: Likewise.
17774         * lib/allocator.h: Likewise.
17775         * lib/argp-ba.c: Likewise.
17776         * lib/argp-pv.c: Likewise.
17777         * lib/canon-host.c: Likewise.
17778         * lib/canonicalize-lgpl.c: Likewise.
17779         * lib/float.in.h: Likewise.
17780         * lib/fstat.c: Likewise.
17781         * lib/getdelim.c: Likewise.
17782         * lib/getprogname.c: Likewise.
17783         * lib/glthread/thread.h: Likewise.
17784         * lib/intprops.h: Likewise.
17785         * lib/mbsrtowcs-state.c: Likewise.
17786         * lib/safe-read.c: Likewise.
17787         * lib/signal.in.h: Likewise.
17788         * lib/stat.c: Likewise.
17789         * lib/stdbool.in.h: Likewise.
17790         * lib/stdio-impl.h: Likewise.
17791         * lib/stdio.in.h: Likewise.
17792         * lib/sysexits.in.h: Likewise.
17793         * lib/timespec.h: Likewise.
17794         * lib/wcsrtombs-state.c: Likewise.
17795         * m4/alloca.m4: Likewise.
17796         * m4/extern-inline.m4: Likewise.
17797         * m4/fstatat.m4: Likewise.
17798         * m4/gnulib-common.m4: Likewise.
17799         * m4/lib-ignore.m4: Likewise.
17800         * m4/printf.m4: Likewise.
17801         * m4/regex.m4: Likewise.
17802         * m4/stat-size.m4: Likewise.
17803         * m4/std-gnu11.m4: Likewise.
17804         * m4/stdbool.m4: Likewise.
17805         * m4/sys_types_h.m4: Likewise.
17806         * m4/threadlib.m4: Likewise.
17807         * m4/vararrays.m4: Likewise.
17808         * pygnulib/GLImport.py: Likewise.
17809         * tests/test-exp.h: Likewise.
17810         * tests/test-exp2.h: Likewise.
17811         * tests/test-expm1.h: Likewise.
17812         * tests/test-fflush2.c: Likewise.
17813         * tests/test-getopt_long.h: Likewise.
17814         * tests/test-intprops.c: Likewise.
17815         * tests/test-log.h: Likewise.
17816         * tests/test-log10.h: Likewise.
17817         * tests/test-log1p.h: Likewise.
17818         * tests/test-log2.h: Likewise.
17819         * tests/test-printf-posix.h: Likewise.
17820         * tests/test-regex.c: Likewise.
17821         * tests/test-snprintf-posix.h: Likewise.
17822         * tests/test-sprintf-posix.h: Likewise.
17823         * tests/test-stdalign.c: Likewise.
17824         * tests/test-stdbool.c: Likewise.
17825         * tests/test-vasnprintf-posix.c: Likewise.
17826         * tests/test-vasprintf-posix.c: Likewise.
17827         * top/maint.mk: Likewise.
17829 2017-11-12  Bruno Haible  <bruno@clisp.org>
17831         faccessat: Make the last change more robust.
17832         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17833         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17835 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17837         faccessat: port to macOS (Bug#29231)
17838         macOS faccessat has the same bug that lstat does: if the file
17839         name ends in '/' it ignores the trailing slash.
17840         Problem reported for Emacs by Vincent Zhang.
17841         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17842         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17843         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17844         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17845         Include "unistd.h" after defining it.
17846         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17847         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17848         Handle in the usual way.
17849         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17850         lstat dereferences symlinks, since faccessat is likely to
17851         have the same problem.
17852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17853         * modules/faccessat (Depends-on): Add fstatat.
17854         Depend if REPLACE_FACCESSAT is 1, too.
17855         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17856         * modules/faccessat-tests (Depends-on): Add symlink.
17857         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17858         * tests/test-faccessat.c (main): Test for the bug.
17860 2017-11-11  Bruno Haible  <bruno@clisp.org>
17862         getprogname: Fix compilation error on IRIX.
17863         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17864         'namesize'.
17866 2017-11-11  Bruno Haible  <bruno@clisp.org>
17868         year2038: Tweak last patch.
17869         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17871 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17873         year2038: be more insistent about 64-bit time_t
17874         Applications requiring access to arbitrary files should not be
17875         built with 32-bit time_t on hosts that have 64-bit timestamps,
17876         as this can lead to real trouble at runtime.
17877         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17878         Check on all systems, not just MinGW.  Use a heuristic involving
17879         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17880         output a failure or just a warning, to make it more likely that
17881         builders will select 64-bit time_t.
17883 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17885         havelib: fix typo in previous change
17886         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17888         Don’t use AC_EGREP_CPP if affected by CFLAGS
17889         * m4/float_h.m4 (gl_FLOAT_H):
17890         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17891         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17893         * m4/year2038.m4 (gl_YEAR2038):
17894         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17895         likely to be affected by the choice of CFLAGS, since CFLAGS are
17896         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17897         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17899         fstatat: pacify GCC on unusual platform
17900         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17901         Omit, as it’s unused in this case.
17903 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17905         timespec: prefer ‘assume’ to ‘assure’
17906         This avoids some runtime tests.  The rest of the module makes
17907         similar assumptions and there is little point to testing here.
17908         * lib/timespec.h: Include verify.h instead of assure.h.
17909         (timespec_cmp): Use ‘assume’, not ‘assure’.
17910         Also, remove an unnecessary cast to ‘int’, as lots of other
17911         code in this module now causes -Wconversion to complain, and
17912         this is a problem with -Wconversion not with the code.
17914         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17916         Port recent gnulib-tool change to Dash
17917         * gnulib-tool (func_create_testdir): Don't assume that the shell
17918         retokenizes after expanding "$@" inside the call to
17919         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17921 2017-10-27  Jim Meyering  <meyering@fb.com>
17923         timespec.h: use "assure" to avoid a spurious warning
17924         * lib/timespec.h: Include "assure.h" and use it to help
17925         gcc7's -Wstrict-overflow avoid a false positive warning
17926         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17927         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17928         * modules/timespec (Depends-on): Add assure.
17930 2017-10-29  Bruno Haible  <bruno@clisp.org>
17932         Avoid several test failures with traditional locales on Haiku.
17933         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17934         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17935         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17936         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17937         LOCALE_ZH_CN=none.
17939 2017-10-29  Bruno Haible  <bruno@clisp.org>
17941         strerror_r-posix: Fix behaviour and test failure on Haiku.
17942         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17943         are positive. Work around return value 0 instead of ERANGE on Haiku.
17944         For unknown error numbers, use a format string consistent with perror().
17945         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17946         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17947         are positive.
17949 2017-10-29  Bruno Haible  <bruno@clisp.org>
17951         get-rusage-data: Avoid crash on Haiku.
17952         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17954 2017-10-29  Bruno Haible  <bruno@clisp.org>
17956         get-rusage-as: Avoid crash on Haiku.
17957         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17959 2017-10-29  Bruno Haible  <bruno@clisp.org>
17961         ilogbl: Ensure replacement on Haiku.
17962         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17963         REPLACE_ILOGBL if ilogbl does not work.
17964         (gl_FUNC_ILOGBL_WORKS): New macro.
17965         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17967         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17968         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17969         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17971 2017-10-29  Bruno Haible  <bruno@clisp.org>
17973         expl: Ensure replacement on Haiku.
17974         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17975         zero.
17976         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17978 2017-10-29  Bruno Haible  <bruno@clisp.org>
17980         math: Fix test failure on Haiku.
17981         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17982         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17983         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17984         * doc/posix-headers/math.texi: Mention the Haiku problem.
17986 2017-10-29  Bruno Haible  <bruno@clisp.org>
17988         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17989         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17990         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17992 2017-10-29  Bruno Haible  <bruno@clisp.org>
17994         crypto/*: Verify that the header file is self-contained.
17995         * tests/test-gc-*.c: Include the module's header file immediately after
17996         <config.h>.
17997         * tests/test-hmac-*.c: Likewise.
17998         * tests/test-arcfour.c: Likewise.
17999         * tests/test-arctwo.c: Likewise.
18000         * tests/test-des.c: Likewise.
18001         * tests/test-md2.c: Likewise.
18002         * tests/test-md4.c: Likewise.
18003         * tests/test-md5.c: Likewise.
18004         * tests/test-rijndael.c: Likewise.
18005         * tests/test-sha1.c: Likewise.
18006         * tests/test-sm3.c: Likewise.
18008 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18009             Bruno Haible  <bruno@clisp.org>
18011         crypto/gc: fix build failure with -Werror=suggest-attribute=const
18012         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
18014 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18016         New module: crypto/gc-sm3
18017         * lib/gc.h: Declare SM3-related stuffs.
18018         * lib/gc-gnulib.c: Support sm3 in internal functions.
18019         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
18020         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
18021         * modules/crypto/gc-sm3: Define gc-sm3 module.
18022         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
18023         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
18024         * MODULES.html.sh: List gc-sm3 module.
18026 2017-10-29  Bruno Haible  <bruno@clisp.org>
18028         random, random_r: Mention different prototypes on Haiku.
18029         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
18030         * doc/glibc-functions/random_r.texi: Likewise.
18031         * doc/glibc-functions/initstate_r.texi: Likewise.
18032         * doc/glibc-functions/setstate_r.texi: Likewise.
18034 2017-10-28  Bruno Haible  <bruno@clisp.org>
18036         posix_spawn: Avoid spurious message in configure output.
18037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
18038         'cmp' command.
18040 2017-10-28  Bruno Haible  <bruno@clisp.org>
18042         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
18043         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
18044         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
18046 2017-10-28  Bruno Haible  <bruno@clisp.org>
18048         ioctl: Override non-POSIX declaration on Haiku.
18049         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
18050         * lib/sys_ioctl.in.h: Add comment about Haiku.
18051         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
18052         * doc/glibc-headers/sys_ioctl.texi: Likewise.
18054 2017-10-28  Bruno Haible  <bruno@clisp.org>
18056         crypto/sm3: Add overview documentation to the .h file.
18057         * lib/sm3.h: Add comments.
18059 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18061         New module: crypto/sm3
18062         This new module can be used to compute SM3 message digest of files or
18063         memory blocks according to the specification GM/T 004-2012
18064         Cryptographic Hash Algorithm SM3, published by State Cryptography
18065         Administration, China.
18066         The official SM3 cryptographic hash algorithm specification is
18067         available at
18068         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
18069         * lib/sm3.h: Declare the APIs of sm3 module.
18070         * lib/sm3.c: Implement SM3 hash algorithm.
18071         * m4/sm3.m4: m4 file for sm3 module.
18072         * modules/crypto/sm3: Define sm3 module.
18073         * tests/test-sm3.c: Implement SM3 test case.
18074         * modules/crypto/sm3-tests: Define sm3 test module.
18075         * MODULES.html.sh: List sm3 module.
18077 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18079         gc-libgcrypt: fix undefined enum type in switch statement
18080         Resolve the following build failure:
18081         lib/gc-libgcrypt.c: In function 'gc_hash_open':
18082         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
18083         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
18084              case 0:
18085              ^~~~
18086         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
18087         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
18089 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18091         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
18092         Resolve the following build failure:
18093         lib/gc-libgcrypt.c: In function 'gc_hash_read':
18094         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
18095         in signedness [-Werror=pointer-sign]
18096             digest = gcry_md_read (ctx->gch, 0);
18097                    ^
18098         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
18100 2017-10-26  Bruno Haible  <bruno@clisp.org>
18102         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
18103         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
18104         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
18106 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18108         glob: fix another heap buffer overflow
18109         Problem reported by Tim Rühsen in:
18110         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
18111         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
18113 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18115         quotearg: pacify compiler re unsigned
18116         * lib/quotearg.c (quotearg_n_options):
18117         Rewrite to avoid diagnostic from overly-picky compiler.
18118         Problem reported by Sami Kerola in:
18119         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
18121         glob: fix heap buffer overflow
18122         * lib/glob.c (glob): Fix off-by-one error introduced into
18123         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
18124         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
18125         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
18126         Fix suggested by Bruno Haible.
18128 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18130         glob: pacify fuzzer for mempcpy
18131         Problem reported by Tim Rühsen in:
18132         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
18133         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18135 2017-10-12  Bruno Haible  <bruno@clisp.org>
18137         doc: Fix syntax error (regression from 2017-10-03).
18138         * doc/posix-functions/strncpy.texi: Fix syntax error.
18140 2017-10-12  Bruno Haible  <bruno@clisp.org>
18142         doc: Update for Solaris 11.3.
18143         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
18144         mention Solaris 11.3.
18145         * m4/log2.m4: Fix comments.
18146         * m4/log2f.m4: Likewise.
18147         * m4/printf.m4: Update comments.
18148         * m4/rename.m4: Likewise.
18149         * m4/strncat.m4: Likewise.
18151         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
18153 2017-10-10  Bruno Haible  <bruno@clisp.org>
18155         doc: Improve doc about ioctl.
18156         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
18157         prototype.
18159 2017-10-09  Bruno Haible  <bruno@clisp.org>
18161         wcwidth: Don't use obsolete syntax of 'test'.
18162         Reported by Eric Blake.
18163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
18164         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
18166 2017-10-09  Bruno Haible  <bruno@clisp.org>
18168         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
18169         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
18170         and Daniel P. Berrange <berrange@redhat.com>.
18171         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
18172         on glibc systems. The getopt-pfx-core.h file declares exactly what
18173         unistd.h needs, nothing more.
18175 2017-10-08  Bruno Haible  <bruno@clisp.org>
18177         vma-iter: Improve support for FreeBSD.
18178         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
18179         vma_iterate.
18180         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
18182 2017-10-08  Bruno Haible  <bruno@clisp.org>
18184         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
18185         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
18187 2017-10-07  KO Myung-Hun  <komh@chollian.net>
18189         test-framework-sh: Fix 'invalid path dir' error.
18190         On OS/2, a path separator is ';' not ':'. And ':' is used as a
18191         separator between a drive letter and directory parts.
18192         As a result, an absolute path such as x:/path/to/dir on OS/2 is
18193         treated as an invalid path dir.
18194         * tests/init.sh (PATH_SEPARATOR): Set at startup.
18195         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
18196         instead of hard coded ':'.
18198 2017-10-07  Bruno Haible  <bruno@clisp.org>
18200         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
18201         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
18202         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
18203         (rof_open): On Linux, do multiple read() calls and make sure
18204         MIN_LEFTOVER bytes are left when read() returns.
18206 2017-10-07  Bruno Haible  <bruno@clisp.org>
18208         vma-iter: Improve support for GNU/Hurd.
18209         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
18210         API, not the /proc file system.
18212 2017-10-07  Bruno Haible  <bruno@clisp.org>
18214         test-framework-sh: Don't require bash on Windows and OS/2.
18215         Reported by KO Myung-Hun.
18216         * tests/test-init.sh: Use 'shopt' only when running in bash.
18218 2017-10-06  KO Myung-Hun  <komh@chollian.net>
18220         wcwidth: check a macro version of wcwidth () as well
18221         * lib/wchar.in.h: Revert commit from 2016-01-14.
18222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
18224 2017-10-06  Bruno Haible  <bruno@clisp.org>
18226         getopt-posix: Clarify copyright header.
18227         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
18228         * lib/getopt-pfx-core.h: Likewise.
18229         * lib/getopt-pfx-ext.h: Likewise.
18230         * lib/getopt-cdefs.in.h: Likewise.
18232 2017-10-03  Bruno Haible  <bruno@clisp.org>
18234         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
18235         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
18236         gl_HOST_CPU_C_ABI.
18238 2017-10-03  Bruno Haible  <bruno@clisp.org>
18240         doc: warn about misuse of strncpy and wcsncpy.
18241         * doc/posix-functions/strcpy.texi: Describe requirements on prior
18242         memory allocation.
18243         * doc/posix-functions/wcscpy.texi: Likewise.
18244         * doc/posix-functions/strncpy.texi: Describe what this function is not
18245         useful for.
18246         * doc/posix-functions/wcsncpy.texi: Likewise.
18248 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18250         fsuage: fix typo in previous change
18251         * lib/fsusage.c: Remove stray include of full-read.h.
18252         Problem reported by Sam Steingold for macOS (Bug#28669).
18254 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
18256         fsusage: remove SVR2 support
18257         SVR2 was obsolete by 1986 and is no longer supported by anybody,
18258         and its code was getting in the way of use of this module by
18259         Emacs, which has its own ‘read’ function anyway.
18260         * lib/fsusage.c: Do not include sys/filsys.h.
18261         (get_fs_usage): Remove SVR2-specific code.
18262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
18263         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
18264         * modules/fsusage (Depends-on): Do not depend on full-read.
18266         Simplify autoupdate of licenses
18267         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
18268         place.
18270 2017-10-01  Bruno Haible  <bruno@clisp.org>
18272         vma-iter: Add support for GNU/Hurd.
18273         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
18274         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18276 2017-09-30  Bruno Haible  <bruno@clisp.org>
18278         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
18279         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
18280         fail when module 'largefile' is in use.
18281         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
18282         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
18283         Don't test HAVE_SYS_PROCFS_H.
18285 2017-09-30  Bruno Haible  <bruno@clisp.org>
18287         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
18288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
18289         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
18290         * modules/havelib (Depends-on): Add host-cpu-c-abi.
18292 2017-09-30  Bruno Haible  <bruno@clisp.org>
18294         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
18295         * lib/uniname/uniname.c (unicode_name_character): Add braces around
18296         scope of local variables.
18298 2017-09-28  Bruno Haible  <bruno@clisp.org>
18300         string: code style
18301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
18302         substitutable variables.
18303         * modules/string (Makefile.am): Likewise.
18305 2017-09-26  Bruno Haible  <bruno@clisp.org>
18307         uniname/uniname-tests: Tighten code.
18308         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
18309         local variables into one.
18311 2017-09-26  Bruno Haible  <bruno@clisp.org>
18313         vma-iter: Improvements for Linux and BSD platforms.
18314         - Add support for DragonFly BSD.
18315         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
18316         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
18317         Read the entire file into memory in a single system call.
18318         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
18319         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
18321 2017-09-26  Bruno Haible  <bruno@clisp.org>
18323         vma-iter: Provide the protection flags on FreeBSD.
18324         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
18325         skip three fields between the addresses and the protection flags.
18327 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18329         glob: remove bogus extern decl
18330         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18331         extern declaration.  Problem reported by Adhemerval Zanella in:
18332         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
18334 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18336         uniname/uniname-tests: integer overflow fix
18337         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
18338         Check for integer overflow.
18340         duplocale-tests: fix unlikely crash
18341         * tests/test-duplocale.c (get_locale_dependent_values):
18342         Don’t crash with absurdly long month names.
18344         maint: fix overflow checking in nap.h
18345         * modules/chown-tests:
18346         * modules/fchownat-tests, modules/fdutimensat-tests:
18347         * modules/futimens-tests, modules/lchown-tests:
18348         * modules/stat-time-tests, modules/utime-tests:
18349         * modules/utimens-tests, modules/utimensat-tests:
18350         Depend on intprops.
18351         * tests/nap.h: Include intprops.h.
18352         (diff_timespec): Handle overflow properly.
18354         sys_types: update URL
18355         * m4/sys_types_h.m4: Use https: URL.
18357         parse-datetime: fix dependency
18358         * modules/parse-datetime (Depends-on): Depend
18359         on nstrftime, not strftime.
18361         parse-datetime, posixtm: avoid uninit access
18362         * lib/parse-datetime.y (parse_datetime2):
18363         * lib/posixtm.c (posixtime):
18364         Do not access uninitialized storage, even though the resulting
18365         value is never used.
18367 2017-09-25  Bruno Haible  <bruno@clisp.org>
18369         vma-iter: Improvements for BSD platforms.
18370         - Add support for GNU/kFreeBSD.
18371         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
18372         - Speed up on OpenBSD.
18373         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
18374         (vma_iterate_bsd): New function.
18375         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
18376         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
18377         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18378         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18380 2017-09-23  Bruno Haible  <bruno@clisp.org>
18382         strfmon_l: New module.
18383         * modules/strfmon_l: New file.
18384         * lib/strfmon_l.c: New file.
18385         * m4/strfmon_l.m4: New file.
18386         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18387         * modules/strfmon_l-tests: New file.
18388         * tests/test-strfmon_l.c: New file.
18390         monetary: New module.
18391         * modules/monetary: New file.
18392         * lib/monetary.in.h: New file.
18393         * m4/monetary_h.m4: New file.
18394         * doc/posix-headers/monetary.texi: Mention the new module.
18395         * modules/monetary-tests: New file.
18396         * tests/test-monetary.c: New file.
18397         * modules/monetary-c++-tests: New file.
18398         * tests/test-monetary-c++.cc: New file.
18399         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18401 2017-09-23  Bruno Haible  <bruno@clisp.org>
18403         duplocale tests: Fix test crash on Linux/x86.
18404         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18405         locale from the current thread before freeing it.
18407 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18409         mktime: port to OpenVMS
18410         Problem reported by John E. Malmberg in:
18411         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18412         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18414 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18416         manywarnings: port to GCC on 64-bit MS-Windows
18417         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18418         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18419         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18421 2017-09-13  Bruno Haible  <bruno@clisp.org>
18423         all: Replace many more http URLs by https URLs. Update stale URLs.
18424         * users.txt: Remove mention of 'newts'.
18425         * lib/localename.c: Update comment about LANG_SOTHO.
18427 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18429         all: Replace many http URLs by https URLs.
18431 2017-09-12  Bruno Haible  <bruno@clisp.org>
18433         doc: Prefer https URLs where possible.
18434         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18435         * doc/ld-output-def.texi: Remove unavailable URL.
18437 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18439         maintainer-makefile: FTP -> HTTPS
18440         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18441         of FTP, which is planned to be decommissioned on 2017-11-01.
18443 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18445         libc-config: Fix __GNUC_PREREQ macro.
18446         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18447         __GNUC_MINOR.
18449 2017-09-09  Bruno Haible  <bruno@clisp.org>
18451         gnulib-tool: Simplify commit from 2015-08-20.
18452         * gnulib-tool (func_add_or_update): Remove local variable
18453         is_binary_file.
18455 2017-09-08  Bruno Haible  <bruno@clisp.org>
18457         stddef: Avoid conflict with system-defined max_align_t.
18458         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18459         Reported by Werner Lemberg <wl@gnu.org> in
18460         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18461         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18462         (max_align_t): Define as a macro.
18463         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18464         definitions of rpl_max_align_t in different copies of gnulib-generated
18465         <stddef.h>.
18467 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18469         libc-config: port to MSVC
18470         Problems reported by Gisle Vanem in:
18471         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18472         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18473         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18474         * m4/__inline.m4: New file.
18475         * modules/libc-config (Files): Add it.
18476         (Depends-on): Use it.
18478         glob: Use enum for __glob_pattern_type result
18479         From a patch proposed by Adhemerval Zanella in:
18480         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18481         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18482         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18483         * lib/glob_internal.h (__glob_pattern_type):
18484         * lib/glob.c (glob):
18485         * lib/glob_pattern_p.c (__glob_pattern_p):
18486         Use them.
18488         glob: fix for use in glibc
18489         Problem reported by Adhemerval Zanella in:
18490         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18491         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18492         Do not redefine if _LIBC.
18494 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18496         glob: fix bugs with long login names
18497         Problem reported by Adhemerval Zanella in:
18498         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18499         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18500         (glob): Use the same scratch buffer for both getlogin_r and
18501         getpwnam_r.  Don’t require preallocation of the login name.  This
18502         simplifies storage allocation, and corrects the handling of
18503         long login names.
18505 2017-09-02  Bruno Haible  <bruno@clisp.org>
18507         dirent: Update doc.
18508         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18510 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18512         glob: fix getpwnam_r errno typo
18513         * lib/glob.c (glob): Fix longstanding misuse of errno after
18514         getpwnam_r, which returns an error number rather than setting
18515         errno.
18517         glob: fix typo in recent change
18518         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18519         Fix recently-introduced typo.
18521 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18523         glob: don't save and restore errno unnecessarily
18524         * lib/glob.c (glob): Don't save and restore errno
18525         merely because we have getpwnam_r.
18527         glob: don't assume getpwnam_r
18528         * lib/glob.c (glob): Port recent patches to platforms
18529         lacking getpwnam_r.
18531         scratch_buffer: don’t use private glibc API
18532         Suggested by Florian Weimer in:
18533         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18534         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18535         * lib/scratch_buffer_grow.c: Rename to
18536         lib/malloc/scratch_buffer_grow.c.
18537         * lib/scratch_buffer_grow_preserve.c: Rename to
18538         lib/malloc/scratch_buffer_grow_preserve.c.
18539         * lib/scratch_buffer_set_array_size.c: Rename to
18540         lib/malloc/scratch_buffer_set_array_size.c.
18541         * lib/scratch_buffer.h: New file.
18542         * modules/scratch_buffer (Files, Makefile.am):
18543         Adjust to source-file renaming.
18545 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18547         glob: use scratch_buffer instead of extend_alloca
18548         Much of the lib/glob.c part of this patch comes from a glibc patch
18549         proposed by Adhemerval Zanella in:
18550         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18551         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18552         included via glob.h, does this for us now.
18553         (__set_errno): Remove, as libc-config does this for us now.
18554         Include <scratch_buffer.h>.
18555         (GETPW_R_SIZE_MAX): Remove.
18556         (glob): Use struct scratch_buffer instead of extend_alloca.
18557         * lib/glob.in.h: Include libc-config.h rather than
18558         including <sys/cdefs.h> conditionally.
18559         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18560         (__glibc_unlikely, __restrict, weak_alias):
18561         Remove, as libc-config does this for us now.
18562         * m4/glob.m4 (gl_PREREQ_GLOB):
18563         Remove sys/cdefs.h tests; no longer needed.
18564         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18565         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18567         scratch_buffer: new module
18568         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18569         * lib/scratch_buffer_grow_preserve.c:
18570         * lib/scratch_buffer_set_array_size.c:
18571         New files, copied from glibc with very minor changes that can be
18572         copied back.
18573         * modules/scratch_buffer: New file.
18575         libc-config: new module
18576         * MODULES.html.sh: Add libc-config.
18577         * lib/cdefs.h: New file, copied from the GNU C Library with very
18578         minor changes that can be copied back.
18579         * lib/libc-config.h, modules/libc-config: New files.
18581 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18583         glob: match dangling symlinks
18584         This fixes a bug I inadvertently introduced to Gnulib when I
18585         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18586         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18587         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18588         * doc/posix-functions/glob.texi: Update list of affected platforms.
18589         * lib/glob.c (__lstat64): New macro.
18590         (is_dir): New function.
18591         (glob, glob_in_dir): Match symlinks even if they are dangling.
18592         (link_stat, link_exists_p): Remove.  All uses removed.
18593         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18594         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18595         * modules/glob-tests (Depends-on): Add symlink.
18596         * tests/test-glob.c: Include errno.h, unistd.h.
18597         (BASE): New macro.
18598         (main): Test dangling symlinks, if symlinks are supported.
18600         glob, backupfile: inode 0 is a valid inode number
18601         * doc/posix-functions/readdir.texi (readdir):
18602         * doc/posix-headers/dirent.texi (dirent.h):
18603         Document more readdir portability issues.
18604         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18605         (numbered_backup): Don’t treat inode 0 any differently from
18606         other inode values.
18607         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18608         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18609         All uses removed.
18610         * modules/glob (Depends-on): Remove d-ino.
18612         glob: simplify symlink detection
18613         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18614         uint8_t, as C99 does not require uint8_t.
18615         (struct readdir_result): Use it.  Do not define skip_entry unless
18616         it is needed; this saves a byte on platforms lacking d_ino.
18617         (readdir_result_type, readdir_result_skip_entry):
18618         New functions, replacing ...
18619         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18620         ... these functions, which were removed.  This makes the callers
18621         easier to read.  All callers changed.
18622         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18624 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18626         fts-tests: tag as a longrunning-test so not included by default
18627         * modules/fts-tests: This test takes about 20s on current systems,
18628         and uses about 285M of space on ext4.
18630 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18632         renameat2: fix compilation on alpine linux
18633         * m4/renameat.m4: Check for <linux/fs.h> presence.
18634         * lib/renameat2.h: Only include <linux/fs.h> if present.
18635         Reported by Assaf Gordon on Alpine Linux.
18637 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18639         glob: try to port recent changes to MS-Windows
18640         Problem reported by Bruno Haible in:
18641         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18642         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18643         * lib/glob.in.h (__glob_pattern_p): ... to here.
18645 2017-08-24  Eric Blake  <eblake@redhat.com>
18647         warnings: fix compilation with old autoconf
18648         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18649         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18650         AC_DEFUN.
18651         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18652         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18654 2017-08-24  Bruno Haible  <bruno@clisp.org>
18656         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18657         * modules/glob (Depends-on): Add c99.
18659 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18661         glob: fix typo that broke platforms lacking d_ino
18662         This typo also hurt performance on GNU/Linux and similar hosts.
18663         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18664         in previous change.
18666 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18668         glob: merge from glibc with Zanella glob changes
18669         Merge glob from glibc, with changes for glob proposed
18670         by Adhemerval Zanella in the thread starting here:
18671         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18672         plus some fixes for this merge.
18673         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18674         New files, ported from glibc.
18675         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18676         with __restrict.
18677         (__size_t): Remove.  All uses replaced by size_t.
18678         (size_t): Define by defining __need_size_t and including <stddef.h>.
18679         This should work even in non-glibc platforms, where any name
18680         pollution is OK.
18681         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18682         (struct stat64): Don’t worry about __GLOB_GNULIB.
18683         (glob, globfree, glob_pattern_p): Remove macros for
18684         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18685         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18686         but set errno.
18687         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18688         removed since the glibc behavior works on null pointers.
18689         Do not include stdio.h; old SunOS is irrelevant now.
18690         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18691         Include glob_internal.h.
18692         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18693         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18694         worked only coincidentally.
18695         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18696         Remove macros; now done in glob.in.h.
18697         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18698         (glob): Properly initialize glob structure with
18699         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18700         Remove old code using SHELL since Bash no longer
18701         uses this.
18702         (glob, prefix_array): Separate MS code better.
18703         (glob, glob_in_dir): Use C99 decls before statements when glibc
18704         does.
18705         (glob_in_dir): Remove old Amiga and VMS code.
18706         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18707         separate files.
18708         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18709         (__glibc_unlikely):
18710         Move here from glob.c.
18711         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18712         (weak_alias): New macro.
18713         (__size_t): Remove.  All uses replaced by size_t.
18714         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18715         * modules/glob (Files): Add +lib/glob_internal.h,
18716         lib/glob_pattern_p.c, lib/globfree.c.
18717         (Depends-on): Remove snippet/arg-nonnull.
18719 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18721         glob: port to clang's Undefined Sanitizer
18722         Problem reported by Tim Rühsen in:
18723         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18724         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18725         (glob_in_dir): Do not rely on undefined behavior in accessing
18726         struct members beyond their bounds.  Use a flexible array member
18727         instead.
18729 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18731         vc-list-files: port to Solaris 10
18732         * build-aux/vc-list-files: Don't assume test -e works.
18734 2017-08-21  Karl Berry  <karl@freefriends.org>
18736         * doc/posix-functions/srandom.texi (srandom): typo }.
18738 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18740         git-version-gen: port to Solaris 10
18741         Problem reported by Dagobert Michelsen in:
18742         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18743         * build-aux/git-version-gen (v_from_git):
18744         Use expr instead of shell substitution.
18746 2017-08-19  Bruno Haible  <bruno@clisp.org>
18748         host-cpu-c-abi: Improve detection of MIPS ABI.
18749         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18750         _MIPS_SIM.
18752 2017-08-17  Bruno Haible  <bruno@clisp.org>
18754         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18755         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18757 2017-08-17  Bruno Haible  <bruno@clisp.org>
18759         float: Fix LDBL_MIN value on FreeBSD/x86.
18760         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18762 2017-08-17  Bruno Haible  <bruno@clisp.org>
18764         random: Fix test compilation failure on Cygwin 1.5.25.
18765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18766         HAVE_DECL_SETSTATE.
18767         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18768         declared.
18769         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18770         HAVE_DECL_SETSTATE.
18771         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18772         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18773         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18774         * doc/posix-functions/random.texi: Likewise.
18775         * doc/posix-functions/setstate.texi: Likewise.
18776         * doc/posix-functions/srandom.texi: Likewise.
18778 2017-08-16  Bruno Haible  <bruno@clisp.org>
18780         stdnoreturn: Fix test compilation failure on Cygwin.
18781         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18782         <stdnoreturn.h> replacement.
18783         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18784         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18786 2017-08-16  Bruno Haible  <bruno@clisp.org>
18788         thread: Fix conflict with pthread_sigmask module.
18789         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18790         it's defined as a macro.
18791         * modules/thread (Depends-on): Add pthread_sigmask.
18793 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18795         rename: port better to NetBSD
18796         * doc/posix-functions/rename.texi (rename): NetBSD 7
18797         does not have the link-count bug.
18798         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
18799         broken merely because rename ("a", "b") removes "a" when the two
18800         names are hard links to the same file.
18802 2017-08-16  Bruno Haible  <bruno@clisp.org>
18804         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
18805         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
18806         the target file names with '$(srcdir)/'.
18807         * modules/unicase/locale-language (Makefile.am): Likewise.
18808         * modules/unicase/special-casing (Makefile.am): Likewise.
18809         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
18810         * modules/unictype/category-byname (Makefile.am): Likewise.
18811         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18812         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18813         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18814         * modules/unictype/property-byname (Makefile.am): Likewise.
18815         * modules/unictype/scripts (Makefile.am): Likewise.
18816         * modules/uninorm/composition (Makefile.am): Likewise.
18818 2017-08-16  Bruno Haible  <bruno@clisp.org>
18820         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18821         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18822         value for OpenBSD.
18824 2017-08-16  Bruno Haible  <bruno@clisp.org>
18826         rename, renameat: Update doc regarding NetBSD.
18827         * doc/posix-functions/rename.texi: Clarify that when using
18828         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18829         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18830         version.
18832 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18834         renameat2: port better to macOS
18835         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18837         futimens: don’t assume struct timespec layout
18838         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18839         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18840         * tests/test-fdutimensat.c (main):
18841         * tests/test-futimens.h (test_futimens):
18842         * tests/test-lutimens.h (test_lutimens):
18843         * tests/test-utimens.h (test_utimens):
18844         * tests/test-utimensat.c (main):
18845         Don’t assume that struct timespec is a two-member structure in
18846         tv_sec, tv_nsec order.  Although this is true on all platforms we
18847         know about, POSIX does not guarantee it.
18849         rename: document+test NetBSD rename
18850         Test failure reported by Bruno Haible in:
18851         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18852         This is an area where NetBSD is better-behaved than POSIX,
18853         so allow the NetBSD behavior in tests.
18854         * doc/posix-functions/rename.texi:
18855         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18856         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18858 2017-08-15  Bruno Haible  <bruno@clisp.org>
18860         renameat: Ensure declaration in <stdio.h> on NetBSD.
18861         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18862         * doc/posix-functions/renameat.texi: Mention this problem.
18864 2017-08-15  Bruno Haible  <bruno@clisp.org>
18866         duplocale: Work around NetBSD 7.0 bug.
18867         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18868         * lib/duplocale.c: Add comment about NetBSD problem.
18869         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18871 2017-08-15  Bruno Haible  <bruno@clisp.org>
18873         duplocale tests: Verify use with *_l functions.
18874         * modules/duplocale-tests (configure.ac): Test for uselocale and
18875         some *_l functions.
18876         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18877         from main.
18878         (get_locale_dependent_values_from, test_with_locale_parameter): New
18879         functions.
18880         (main): Test both test_with_uselocale and test_with_locale_parameter.
18882 2017-08-15  Bruno Haible  <bruno@clisp.org>
18884         extensions: Enable NetBSD specific extensions.
18885         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18887 2017-08-14  Bruno Haible  <bruno@clisp.org>
18889         open, openat: Update doc about O_CLOEXEC.
18890         * doc/posix-functions/open.texi: More concrete list of platforms.
18891         * doc/posix-functions/openat.texi: Likewise.
18893 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18895         open: support O_CLOEXEC
18896         * NEWS, doc/posix-functions/open.texi:
18897         * doc/posix-functions/openat.texi: Document this.
18898         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18899         (GNULIB_defined_O_CLOEXEC): New symbol.
18900         * lib/open.c: Include cloexec.h.
18901         (open): Support O_CLOEXEC.
18902         * lib/openat.c: Include cloexec.h.
18903         (rpl_openat): Support O_CLOEXEC.
18904         * lib/popen-safer.c: Do not include cloexec.h.
18905         (open_noinherit): Remove.
18906         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18907         * lib/save-cwd.c: Do not include cloexec.h.
18908         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18909         * m4/open-cloexec.m4: New file.
18910         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18911         Replace 'open' if O_CLOEXEC is not present.
18912         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18913         Replace 'openat' if O_CLOEXEC is not present.
18914         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18915         * modules/open (Files): Add m4/open-cloexec.m4.
18916         (Depends-on): Depend on cloexec if replacing 'open'.
18917         * modules/openat (Files): Add m4/open-cloexec.m4.
18918         (Depends-on): Depend on cloexec if replacing openat.
18919         * modules/popen-safer (Depends-on): Remove cloexec.
18920         * modules/save-cwd (Depends-on): Remove cloexec, and add
18921         fd-safer-flag and 'open'.
18923 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18925         reallocarray: minor fixes
18926         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18927         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18928         * modules/reallocarray (License): Change from GPL to LGPL.
18929         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18930         Indent properly and don't use tabs.
18932 2017-08-13  Darshit Shah  <darnir@gnu.org>
18934         reallocarray: New module
18935         reallocarray is a new function in glibc 2.26 to safely allocate an array
18936         of memory locations with integer overflow protection.
18937         * MODULES.html.sh: Add reallocarray.
18938         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18939         * lib/reallocarray.c: New file to implement module reallocarray.
18940         * lib/stdlib.in.h: Add function declarations for reallocarray.
18941         * m4/reallocarray.m4: New file.
18942         * m4/stdlib_h.m4: Declare reallocarray.
18943         * modules/reallocarray: New file.
18944         * modules/reallocarray-test: New file.
18945         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18946         * tests/test-reallocarray.c: New test.
18948 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18950         dirent-safer: fix cloexec race
18951         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18952         (opendir_safer): Use F_DUPFD_CLOEXEC.
18953         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18954         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18955         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18956         instead of dup_safer.
18958         fts: fix cloexec races
18959         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18960         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18961         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18962         (fd_ring_check): Set cloexec flag on new file descriptors.
18963         (fts_build, fd_ring_check): While we’re at it, make sure the
18964         resulting file descriptor is not 0, 1, or 2, since that is easy.
18966 2017-08-11  Bruno Haible  <bruno@clisp.org>
18968         fts tests: Fix link error.
18969         Reported by Tom G. Christensen in
18970         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18971         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18973 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18975         fts: port recent changes to CentOS 6
18976         Problem reported by Tom G. Christensen in:
18977         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18978         * lib/fts.c (fsword): New type.
18979         (struct dev_type, filesystem_type): Use it.
18980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18981         Also, check for f_type only if fstatfs and sys/vfs.h work.
18983 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18985         tempname: do not depend on secure_getenv
18986         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18987         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18988         * modules/tempname (Depends-on): Remove secure_getenv.
18990 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18992         extensions: add _OPENBSD_SOURCE
18993         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18995 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18996             Bruno Haible  <bruno@clisp.org>
18998         manywarnings: Add support for C++.
18999         * build-aux/g++-warning.spec: New file.
19000         * m4/manywarnings-c++.m4: New file.
19001         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
19002         redirects to manywarnings-c++.m4.
19003         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
19005 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19007         git-version-gen: another fix for tags with "-"
19008         * build-aux/git-version-gen: Improve fix for tags containing "-".
19009         Suggested by Markus Armbruster in:
19010         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
19012 2017-08-06  Bruno Haible  <bruno@clisp.org>
19014         warnings, manywarnings: Add support for multiple languages, not just C.
19015         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
19016         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
19017         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
19018         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
19019         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
19020         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
19021         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
19022         of the current language. If C++ is the current language, modify
19023         WARN_CXXFLAGS instead of WARN_CFLAGS.
19024         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
19025         gl_MANYWARN_ALL_GCC.
19026         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
19028 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
19030         git-version-gen: Fix for tags containing '-'
19032         Really old versions of git-describe (before v1.5.0, Feb 2007)
19033         don't have the number of commits in their long format output,
19034         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
19035         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
19036         recognizes both patterns, and normalizes the old format to the new one.
19038         Unfortunately, this normalization code gets confused when the tag
19039         contains '-'.  Reproducer:
19041             $ git-tag -m test v0.2-rc1
19042             $ build-aux/git-version-gen .tarball-version; echo
19043             build-aux/git-version-gen: WARNING: git rev-list failed
19044             UNKNOWN
19046         We take exact tag "v0.2-rc1" for the old format, extract the presumed
19047         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
19048         commits since tha tag.  Fails, because tag "v0.2" does not exist.
19050         * git-version-gen: We could perhaps drop support for versions from
19051         more than a decade ago.  But tightening the pattern match is easy
19052         enough, so do that.  Still breaks when you use version tags ending in
19053         something matching -g????, but you arguably get what you deserve then.
19055 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19057         valgrind-tests: use ls, and cache
19058         * m4/valgrind-tests.m4: Test ls, not bash.
19059         Problem reported by Reuben Thomas.
19060         Also, cache the result so that it can be overridden.
19062 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
19064         manywarnings: port to 64-bit GCC builds of Emacs
19065         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
19066         object size rather than hardwiring 2147483647.  This is needed to
19067         build GNU Emacs, which has one conditional (and used
19068         only-in-theory) call to malloc with a literal greater than
19069         2147483647.
19071 2017-08-04  Bruno Haible  <bruno@clisp.org>
19073         Relax the license of some modules with no runtime code.
19074         * modules/std-gnu11 (License): Set to 'unlimited'.
19075         * modules/c99 (License): Likewise.
19076         Reported by Reuben Thomas <rrt@sc3d.org>.
19077         * modules/d-ino (License): Set to 'LGPL'.
19078         * modules/host-os (License): Likewise.
19079         * modules/longlong (License): Likewise.
19081 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19083         renameat2: port to RHEL 7 + NFS
19084         * lib/renameat2.c (renameat2) [SYS_renameat2]:
19085         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
19086         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
19088 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19090         renameat2: port to non-renameat platforms
19091         Problem reported for MSVC-2015 by Gisle Vanem in:
19092         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
19093         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
19094         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
19096 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19098         manywarnings: port to 32-bit GCC bug
19099         Problem reported by Pino Toscano in:
19100         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
19101         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
19102         not 2**63 - 1, to work around the following GCC bug:
19103         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
19105 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
19107         backupfile: new function to validate backup suffix
19108         * lib/backupfile.c (set_simple_backup_suffix): New function.
19109         (backupfile_internal): Use it.
19111         canonicalize: fix EOVERFLOW commentary
19112         Problem reported by Bruno Haible in:
19113         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
19114         * lib/canonicalize.c (canonicalize_filename_mode):
19115         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
19117         Don't interpret EOVERFLOW to mean nonexistence
19118         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
19119         may be EOVERFLOW; this is likely more useful than reporting the
19120         stat errno.
19121         * lib/glob.c (link_stat): Rename from link_exists2_p and
19122         return -1/0 instead of 0/1.  Caller changed.
19123         * lib/glob.c (link_exists_p):
19124         * lib/renameat2.c (rename_noreplace, renameat2):
19125         * lib/tempname.c (try_nocreate):
19126         If errno == EOVERFLOW then the directory entry exists, so do not
19127         act as if it does not exist.
19129         backup-rename: new module
19130         It is like backupfile, except it avoids some race conditions,
19131         and it does not output to stderr or exit.
19132         * MODULES.html.sh: Add backup-rename.
19133         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
19134         * modules/backup-rename: New files.
19135         * lib/backupfile.c: Turn this into an internals file, which
19136         contains code common to backupfile and backup_rename.  Include
19137         backupfile-internal.h instead of backupfile.h.  Do not include
19138         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
19139         renameat2.h and fcntl.h.
19140         (BACKUP_NOMEM): New constant.
19141         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
19142         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
19143         (backupfile_internal): Rename from find_backup_file_name.
19144         Support new arg RENAME.
19145         (backup_args, backup_types, get_version, xget_version):
19146         Move to lib/backup-find.c.
19147         * lib/backupfile.h (backup_file_rename): New decl.
19148         * modules/backupfile (Files): Add lib/backup-internal.h,
19149         lib/backup-find.c.
19150         (Depends-on): Add dirfd, fcntl, renameat2.
19151         (lib_SOURCES): Add backup-find.c.
19153         renameat2: port better to older Solaris
19154         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
19155         Add goto to use a label, to silence picky compilers.
19157         fts-tests: port to gcc -Wwrite-strings
19158         * tests/test-fts.c (base, base_d): New static vars.
19159         (argv, remove_tree, main): Use them.
19161 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19163         relocatable-lib{,-lgpl}: improve documentation
19164         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
19165         Various other updates.
19167 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
19168             Bruno Haible  <bruno@clisp.org>
19170         relocatable-lib{,-lgpl}: add Valgrind suppressions
19171         * lib/relocatable.valgrind: New file.
19172         * modules/relocatable-lib (Files): Add relocatable.valgrind.
19173         * modules/relocatable-lib-lgpl: Likewise.
19175 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19177         relocatable: Make the license on the sources the GPL.
19178         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
19179         LGPL, which was a special case so that the relocatable source files
19180         could be used without gnulib-tool, to GPL. They can still be used under
19181         the LGPL, using the --lgpl option to gnulib-tool.
19183 2017-07-30  Bruno Haible  <bruno@clisp.org>
19185         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
19186         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
19187         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
19188         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
19189         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
19191 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19193         faccessat: document AT_SYMLINK_NOFOLLOW issue
19194         * doc/posix-functions/faccessat.texi: Modernize platform list.
19195         Document AT_SYMLINK_NOFOLLOW limitation.
19197         renameat2: port to Solaris 10
19198         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
19199         with AT_SYMLINK_NOFOLLOW (which is not portable).
19200         (renameat): Undef before using, to avoid endless recursion when
19201         the replacement renameat calls renameat2 which calls the
19202         replacement renameat.
19203         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
19204         * modules/renameat2 (Depends-on): Remove faccessat.
19205         * modules/renameat-tests (test_renameat_LDADD):
19206         * modules/renameat2-tests (test_renameat2_LDADD):
19207         Remove $(LIB_EACCESS).
19209         renameat2: new module
19210         Although the Linux syscall renameat2 is not in glibc (yet?), it is
19211         useful to have access to its RENAME_NOREPLACE flag.
19212         * MODULES.html.sh (func_all_modules): Add renameat2.
19213         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
19214         * modules/renameat2-tests, tests/test-renameat2.c: New files.
19215         * lib/renameat.c (renameat): Move most of the implementation
19216         to renameat2, and just call renameat2.
19217         * modules/renameat (Files): Remove lib/at-func2.c.
19218         (Depends-on): Depend only on renameat2.
19219         (Include): Remove <fcntl.h>.
19220         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
19221         since renameat (via renameat2) might use faccessat.
19223 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
19225         vc-list-files: Adjust the script to support git worktrees
19226         * build-aux/vc-list-files: Require existence, not directory.
19228 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19230         doc: bring MODULES.html.sh up to date
19231         Somehow a few months ago we stopped updating MODULES.html.sh.
19232         I don’t recall explicitly deciding this, so I updated it now.
19233         Alternatively I suppose we could remove it.
19234         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
19235         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
19236         truncate, utime, utime-h, windows-stat-inodes,
19237         windows-stat-override, windows-stat-timespec, year2038.  Sort.
19239 2017-07-26  Jim Meyering  <meyering@fb.com>
19241         fprintftime: fix build-break caused by recent renaming
19242         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
19243         "strftime.c".
19244         * modules/fprintftime: Depend directly on nstrftime.
19246 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19248         regex: work with GCC7's -Werror=implicit-fallthrough=
19249         * lib/regex_internal.h (FALLTHROUGH): New macro.
19250         * lib/regcomp.c (peek_token_bracket, parse_expression):
19251         * lib/regexec.c (check_node_accept): Use it.
19253 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19255         fts: simplify fts_build
19256         * lib/fts.c (fts_build): Simplify, and be lazier about
19257         calling leaf_optimization.
19259         fts: three levels of leaf optimization
19260         * lib/fts.c (enum leaf_optimization): New type with three values.
19261         (S_MAGIC_AFS): New macro.  Sort them.
19262         (leaf_optimization): Rename from leaf_optimization_applies, and
19263         return enum leaf_optimization instead of bool.  All uses changed.
19264         Add cases for unknown type and for AFS.
19265         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
19267         fts: cache dirent_inode_sort_may_be_useful too
19268         * lib/fts.c (struct dev_type): New struct.
19269         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
19270         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
19271         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
19272         Now takes FTSENT const *, not int.  All uses changed.  Use
19273         filesystem_type to cache.
19274         (link_count_optimize_ok): Remove.  Caller changed to use
19275         leaf_optimization_applies, which now uses shared cache.
19277         fts: introduce MIN_DIR_NLINK
19278         * lib/fts.c (MIN_DIR_NLINK): New constant.
19279         Use it instead of 2, whenever we are talking about link counts.
19281         fts: nlink_t signedness fixups
19282         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
19283         so that root need not be a special case later.
19284         (fts_read): Remove now-redundant test for fts_level.
19285         Do not assume that nlink_t is signed.
19286         (fts_build): Remove useless decrement of nlinks.
19287         (fts_stat): Avoid unlikely signed integer overflow later, if
19288         nlink_t is signed.
19290         fts-tests: new module
19291         * modules/fts-tests, tests/test-fts.c: New files.
19293 2017-07-23  Bruno Haible  <bruno@clisp.org>
19295         Rename module 'strftime' to 'nstrftime'.
19296         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
19297         * lib/nstrftime.c: Renamed from lib/strftime.c.
19298         * modules/nstrftime: Renamed from modules/strftime.
19299         (Files, Makefile.am): Update.
19300         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
19301         Fix comment.
19302         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
19303         (Files, Makefile.am): Update.
19304         * modules/strftime: New file, an obsolete indirection.
19305         * doc/posix-functions/strftime.texi: Update reference.
19306         * config/srclist.txt: Update info.
19307         * NEWS: Mention the change.
19309 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
19311         malloca: Silence a warning from clang's memory sanitizer.
19312         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
19313         (freea): Use it.
19315 2017-07-18  Bruno Haible  <bruno@clisp.org>
19317         host-cpu-c-abi: Fix detection of MIPS ABI.
19318         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
19319         ABI, not the CPU instruction set.
19321 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19323         explicit_bzero: new module
19324         The explicit_bzero function has been added to glibc.
19325         This module is intended to supports its use in GNU programs.
19326         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19327         * m4/explicit_bzero.m4, modules/explicit_bzero:
19328         New files.
19329         * doc/gnulib.texi (Glibc string.h): Link to new doc.
19330         * lib/string.in.h (explicit_bzero): Declare.
19331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
19332         * modules/string (string.h): Substitute its vars.
19334 2017-07-16  Bruno Haible  <bruno@clisp.org>
19336         threadlib: Support static linking.
19337         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
19338         set gl_cv_have_weak to 'no'.
19340 2017-07-16  Bruno Haible  <bruno@clisp.org>
19342         unicase/locale-language: Fix link dependencies.
19343         * modules/unicase/locale-language (Link): New section.
19344         * modules/unicase/locale-language-tests (Makefile.am): Link
19345         test-locale-language program with $(LIBTHREAD).
19347 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19349         sys_socket: Add support for OpenVMS.
19350         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
19351         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
19353 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19355         sys_resource: Add support for OpenVMS.
19356         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
19357         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
19359 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19360             Bruno Haible  <bruno@clisp.org>
19362         math: Add support for OpenVMS.
19363         * lib/math.in.h [__VMS]: Include <fp.h>.
19364         * doc/posix-headers/math.texi: Mention OpenVMS issues.
19366 2017-07-15  Bruno Haible  <bruno@clisp.org>
19368         getdtablesize: Add minimal support for OpenVMS.
19369         Reported by John E. Malmberg <wb8tyw@qsl.net>.
19370         * modules/getdtablesize (Description): Fix.
19371         * lib/getdtablesize.c: Fix comment.
19372         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
19373         getdtablesize() function, even though the test fails.
19374         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
19375         limitation on OpenVMS.
19377 2017-07-13  Bruno Haible  <bruno@clisp.org>
19379         Revisit cross-compilation guesses.
19380         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19382 2017-07-13  Bruno Haible  <bruno@clisp.org>
19384         Improve cross-compilation guesses for native Windows.
19385         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19386         Windows.
19387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19388         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19389         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19390         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19391         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19392         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19393         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19394         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19396         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19397         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19398         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19399         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19400         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19401         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19402         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19403         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19405         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19406         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19407         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19408         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19409         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19410         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19411         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19412         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19413         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19414         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19416         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19417         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19419         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19420         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19421         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19422         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19423         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19424         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19425         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19426         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19429         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19430         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19431         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19432         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19433         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19434         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19435         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19436         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19437         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19438         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19439         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19440         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19441         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19442         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19443         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19444         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19445         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19446         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19448         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19449         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19450         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19451         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19453         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19454         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19455         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19456         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19457         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19458         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19459         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19460         * m4/regex.m4 (gl_REGEX): Likewise.
19461         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19462         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19463         gl_FUNC_REMAINDERF_WORKS): Likewise.
19464         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19465         gl_FUNC_REMAINDERL_WORKS): Likewise.
19466         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19467         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19469         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19470         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19472         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19473         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19474         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19475         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19476         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19477         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19478         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19479         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19481         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19482         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19484         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19485         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19486         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19487         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19488         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19489         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19490         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19491         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19492         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19493         Likewise.
19494         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19495         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19496         Windows. Enable also on Autoconf 2.70.
19497         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19498         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19499         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19500         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19501         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19502         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19503         for native Windows.
19504         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19505         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19507 2017-07-13  Bruno Haible  <bruno@clisp.org>
19509         Improve cross-compilation guesses for native Windows.
19510         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19511         Windows.
19512         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19513         memchr.m4.
19514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19516 2017-07-13  Bruno Haible  <bruno@clisp.org>
19518         Improve cross-compilation guesses for native Windows.
19519         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19520         native Windows.
19521         (gl_FUNC_FFLUSH): Update accordingly.
19522         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19523         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19525 2017-07-11  Bruno Haible  <bruno@clisp.org>
19527         More systematic m4 quoting and indentation.
19528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19529         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19530         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19531         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19532         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19533         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19534         gl_WINSIZE_IN_PTEM): Likewise.
19535         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19536         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19537         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19538         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19539         Correct indentation.
19540         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19541         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19542         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19543         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19544         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19545         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19547 2017-07-10  Bruno Haible  <bruno@clisp.org>
19549         round, roundf: Avoid compiler warning in configure test.
19550         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19551         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19553 2017-07-10  Bruno Haible  <bruno@clisp.org>
19555         getlogin tests: Avoid #ifdefs when sharing code between modules.
19556         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19557         * modules/getlogin-tests (Files): Likewise. Remove
19558         tests/test-getlogin_r.c.
19559         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19560         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19561         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19562         getlogin().
19564 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19566         getlogin: don’t assume one name per uid
19567         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19568         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19569         (ttyname): Remove test.
19570         * modules/getlogin_r-tests (ttyname): Remove test.
19571         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19572         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19573         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19574         getlogin rather than getlogin_r.  This avoids code duplication.
19575         (main): Use isatty and fstat rather than ttyname and stat.
19576         Use getpwnam instead of getpwuid, to be portable to test platforms
19577         that have multiple login names for the same uid.
19579 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19580             Bruno Haible  <bruno@clisp.org>
19582         glob: Fix more memory leaks.
19583         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19584         returning.
19585         Reported by Tim Rühsen.
19587 2017-07-10  Bruno Haible  <bruno@clisp.org>
19589         Make sure $host and $host_os are defined when used.
19590         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19591         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19592         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19593         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19594         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19596         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19597         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19598         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19599         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19600         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19601         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19602         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19603         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19604         m4_ifdef block.
19606 2017-07-09  Bruno Haible  <bruno@clisp.org>
19608         *printf: Fix cross-compilation guess for Solaris.
19609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19610         2010-12-21.
19612 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19613             Bruno Haible  <bruno@clisp.org>
19615         vasnprintf: port to macOS 10.13
19616         Problem reported by comex in:
19617         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19618         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19620 2017-07-06  Bruno Haible  <bruno@clisp.org>
19622         imaxdiv tests: Fix logic.
19623         * tests/test-imaxdiv.c (main): Use == instead of =.
19624         Reported by Coverity.
19626 2017-07-06  Bruno Haible  <bruno@clisp.org>
19628         uninorm/filter: Fix use-after-free bug.
19629         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19630         sortbuf == filter->sortbuf invariant.
19631         Reported by Coverity.
19633 2017-07-06  Bruno Haible  <bruno@clisp.org>
19635         glob: Fix more memory leaks.
19636         * lib/glob.c (glob): Free dirname before returning.
19637         Reported by Coverity and Tim Rühsen.
19639 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19641         parse-datetime: fix uninit var bug
19642         Reported by Bruno Haible in:
19643         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19644         * lib/parse-datetime.y (parse_datetime2): Do not use
19645         uninitialized.
19647 2017-07-05  Bruno Haible  <bruno@clisp.org>
19649         doc: Update for MSVC 14.
19650         * doc/posix-headers/*.texi: Add info about MSVC 14.
19651         * doc/posix-functions/*.texi: Likewise.
19652         * doc/pastposix-functions/*.texi: Likewise.
19653         * doc/glibc-headers/*.texi: Likewise.
19654         * doc/glibc-functions/*.texi: Likewise.
19656 2017-07-05  Bruno Haible  <bruno@clisp.org>
19658         sched: Fix build failure on native Windows (regression from 2017-06-19).
19659         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19661 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19663         stdioext: Port to OpenVMS.
19664         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19665         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19666         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19667         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19668         * lib/fpurge.c (fpurge): Likewise.
19669         * lib/freadable.c (freadable): Likewise.
19670         * lib/freadahead.c (freadahead): Likewise.
19671         * lib/freading.c (freading): Likewise.
19672         * lib/freadptr.c (freadptr): Likewise.
19673         * lib/freadseek.c (freadseek): Likewise.
19674         * lib/fseeko.c (fseeko): Likewise.
19675         * lib/fseterr.c (fseterr): Likewise.
19676         * lib/fwritable.c (fwriteable): Likewise.
19677         * lib/fwriting.c (fwriting): Likewise.
19679 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19681         glob: Declare variables at the very start of their scope.
19682         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19683         its separate scope, so the functions will compile on Haiku.
19685 2017-07-01  Bruno Haible  <bruno@clisp.org>
19687         logbl: Work around a glibc bug on PowerPC64LE.
19688         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19689         numbers.
19690         * doc/posix-functions/logbl.texi: Update.
19692 2017-06-29  Bruno Haible  <bruno@clisp.org>
19694         stat, fstat: Compile stat-w32.c only on platforms that need it.
19695         Suggested by Paul Eggert.
19696         * modules/stat (configure.ac): Request stat-w32.o only on native
19697         Windows.
19698         * modules/fstat (configure.ac): Likewise.
19700 2017-06-25  Bruno Haible  <bruno@clisp.org>
19702         stat: Improve last change.
19703         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19705 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19707         stat: port to xlc 12.01
19708         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19709         12.01 complains "Compilation unit is empty."
19711 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19713         xalloc-oversized: port to icc
19714         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19715         __builtin_mul_overflow if ICC is defined, as this results in
19716         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19717         20170213.
19719 2017-06-19  Bruno Haible  <bruno@clisp.org>
19721         classpath: Avoid including config.h twice, as it produces warnings.
19722         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19723         * lib/classpath.h: Conditionalize the include of config.h.
19725 2017-06-19  Bruno Haible  <bruno@clisp.org>
19726             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19728         sched: Fix compilation failure on OpenVMS.
19729         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19730         test whether <pthread.h> exists and defines struct sched_param.
19731         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19733 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19735         diffseq: port to GCC 7 with --enable-gcc-warnings
19736         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19737         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19738         not complain about big_snake being defined but not used.
19740 2017-06-15  Bruno Haible  <bruno@clisp.org>
19742         gettext-h: Update theoretical condition for use of variable size arrays.
19743         Reported by Paul Eggert.
19744         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19745         to include the theoretical condition for availability of variable size
19746         arrays, if we could trust the value of __STDC_VERSION__.
19748 2017-06-12  Bruno Haible  <bruno@clisp.org>
19750         Relicense some modules under LGPLv2+.
19751         Daiki Ueno's approval is in
19752         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19753         * modules/uniwidth/base (License): Change to LGPLv2+.
19754         * modules/uniwidth/width (License): Likewise.
19756 2017-06-11  Bruno Haible  <bruno@clisp.org>
19758         localename: Fix test failure on DragonFly BSD.
19759         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19760         like FreeBSD.
19762 2017-06-11  Bruno Haible  <bruno@clisp.org>
19764         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19765         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19766         * lib/float.in.h: Likewise.
19767         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19769 2017-06-11  Bruno Haible  <bruno@clisp.org>
19771         gnulib-tool: Clean up after autotools.
19772         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19773         useless directory left over by the Autotools.
19775 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19777         getopt-posix: port to glibc 2.25.90
19778         Problem reported by Daniel P. Berrange in:
19779         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19780         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19781         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19782         #undef if __GETOPT_PREFIX is defined.
19784 2017-06-11  Bruno Haible  <bruno@clisp.org>
19786         strtod-obsolete: Fix license.
19787         * modules/strtod-obsolete (License): Change to LGPL.
19789 2017-06-10  Jim Meyering  <meyering@fb.com>
19791         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19792         * lib/savewd.c (FALLTHROUGH): Define.
19793         (savewd_save, savewd_restore): Use this, rather than a comment,
19794         whenever one switch case falls through into the next.
19796 2017-06-08  Bruno Haible  <bruno@clisp.org>
19798         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
19799         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
19800         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
19801         case.
19803 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19805         doc: remove robots, add prereqs
19806         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
19807         builds.  Simon's robot site does not seem to be up, so remove
19808         mentions of it for now.
19810 2017-06-08  Bruno Haible  <bruno@clisp.org>
19812         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
19813         * gnulib-tool (func_symlink_target): New function, extracted from
19814         func_symlink.
19815         (func_symlink, func_symlink_if_changed): Use it.
19817 2017-06-08  Bruno Haible  <bruno@clisp.org>
19819         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19820         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19822 2017-06-07  Bruno Haible  <bruno@clisp.org>
19824         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19825         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19826         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19827         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19828         override, pass 2 arguments to getcwd, not 3.
19830 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19832         same-inode: port better to VMS 8.2 and later
19833         Problem reported by John E. Malmberg in:
19834         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19835         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19836         Use the usual POSIX definition.
19837         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19839 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19841         error: fix POSIX violation for va_end
19842         Problem reported by Bruno Haible in:
19843         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19844         * lib/error.c (error_tail): Do not call va_end here.
19845         (error, error_at_line): Call it here instead.
19847 2017-05-28  Bruno Haible  <bruno@clisp.org>
19849         c-strtod: Make it usable in C++ mode.
19850         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19852 2017-05-25  Jim Meyering  <meyering@fb.com>
19854         quotearg: fix compilation failure due to FALLTHROUGH misuse
19855         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19856         macro back to /* fall through */ comment.  The macro can apply only
19857         to a following case statement.  Reported by Assaf Gordon.
19859 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19861         intprops: port to recent icc
19862         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19863         but does not support __builtin_add_overflow etc.
19864         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19865         Define to 0.
19867 2017-05-23  Karl Berry  <karl@freefriends.org>
19869         * config/srclist.txt (iconv.m4): sync broken, comment out
19870         until (hopefully) the next gettext release.
19872 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19874         Remove repeated words in comments.
19876 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19878         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19879         quotearg.c: Reinstate this instance which is significant
19880         when the if branch is not taken.
19882 2017-05-21  Bruno Haible  <bruno@clisp.org>
19884         gnulib-tool: Add options to create hard links.
19885         * gnulib-tool (func_usage): Document options --hardlink,
19886         --local-hardlink, --more-hardlinks.
19887         (func_symlink): Renamed from func_ln.
19888         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19889         (func_hardlink): New function.
19890         (copymode, lcopymode): New variables.
19891         (symbolic, lsymbolic): Remove variables.
19892         (Options): Implement options --hardlink, --local-hardlink,
19893         --more-hardlinks.
19894         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19895         (func_add_file, func_update_file): Update invocation of
19896         func_should_link. Invoke func_hardlink when appropriate.
19897         (func_import): Update comments.
19898         (func_create_testdir): Update invocation of func_should_link. Invoke
19899         func_hardlink when appropriate.
19900         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19901         the hard links on git.
19903 2017-05-20  Bruno Haible  <bruno@clisp.org>
19905         argp: Simplify bit manipulation.
19906         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19907         on a signed integer type.
19909 2017-05-20  Bruno Haible  <bruno@clisp.org>
19911         Avoid wrong configure results with gcc -fsanitize=address.
19912         This completes the work done on 2016-02-06 on this topic.
19913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19914         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19916         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19917         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19918         returning.
19919         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19920         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19921         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19922         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19923         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19924         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19925         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19926         free allocated memory before returning.
19927         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19928         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19929         objects before returning.
19930         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19931         returning.
19933 2017-05-20  Bruno Haible  <bruno@clisp.org>
19935         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19936         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19938 2017-05-20  Bruno Haible  <bruno@clisp.org>
19940         argp, tsearch tests: Fix file list.
19941         * modules/argp-tests (Files): Add tests/macros.h.
19942         * modules/tsearch-tests (Files): Likewise.
19944 2017-05-20  Bruno Haible  <bruno@clisp.org>
19946         getopt-posix tests: Remove redundant include.
19947         * tests/test-getopt.h: Don't include "macros.h". It's already included
19948         by tests/test-getopt-main.h.
19950 2017-05-19  Jim Meyering  <meyering@fb.com>
19952         dfa: two small simplifications
19953         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19955 2017-05-18  Jim Meyering  <meyering@fb.com>
19957         fallthrough: update for GCC 7/8
19958         * lib/quotearg.c (FALLTHROUGH): New macro.
19959         Use it whenever one switch case falls through into the next,
19960         replacing "/* Fall through */" comments.  This exposed one
19961         instance of an unwarranted "fall through" comment: unwarranted
19962         because it preceded a "goto" label not a case statement.
19963         * lib/freopen-safer.c (freopen_safer): Likewise.
19964         * lib/fts.c (leaf_optimization_applies): Likewise.
19965         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19966         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19967         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19968         tests/macros.h for the definition.
19969         * tests/test-argp.c (group1_parser): Likewise.
19970         * tests/test-getopt.h (getopt_loop): Likewise.
19972 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19974         argp: fix shift bug
19975         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19976         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19978         argp: fix pointer-subtraction bug
19979         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19980         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19981         See the thread containing Bruno Haible’s report in:
19982         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19984 2017-05-19  Bruno Haible  <bruno@clisp.org>
19986         printf-posix tests: Avoid test failure with "gcc --coverage".
19987         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19988         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19989         than 5000000.
19990         * tests/test-fprintf-posix2.c (main): Likewise.
19992 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19994         closeout: don’t close stderr when sanitizing
19995         * NEWS: Document this.
19996         * lib/closeout.c (__has_feature): New macro, if not already defined.
19997         (SANITIZE_ADDRESS): New constant.
19998         (close_stdout): Don’t close stderr if sanitizing addresses.
20000 2017-05-19  Bruno Haible  <bruno@clisp.org>
20002         get-rusage-data tests: Avoid failure on Linux/glibc.
20003         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
20004         on glibc systems.
20006 2017-05-18  Bruno Haible  <bruno@clisp.org>
20008         localename: Include necessary header files on Cygwin.
20009         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
20010         where NL_LOCALE_NAME is defined.
20012 2017-05-18  Bruno Haible  <bruno@clisp.org>
20014         gettext: Update macros from gettext git.
20015         * m4/intldir.m4: Require Autoconf >= 2.60.
20016         * m4/progtest.m4: Fix typos in copyright notice.
20018 2017-05-18  Bruno Haible  <bruno@clisp.org>
20020         copy-file tests: Fix link error (regression from 2017-05-01).
20021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20022         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
20023         $(LIB_CLOCK_GETTIME).
20025 2017-05-18  Bruno Haible  <bruno@clisp.org>
20027         unicase/special-casing: Fix incompatibility with gperf-3.0.4
20028         (regression from 2017-02-13).
20029         * lib/unicase/special-casing.in.h: Renamed from
20030         lib/unicase/special-casing.h.
20031         * modules/unicase/special-casing (Files): Add
20032         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
20033         (Makefile.am): Add rule for generating unicase/special-casing.h.
20034         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
20035         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
20036         not "special-casing.h".
20037         * lib/unicase/u*.c: Likewise.
20039 2017-05-17  Bruno Haible  <bruno@clisp.org>
20041         README: Don't ask people to read a TeXinfo file.
20042         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20043         * README: Tell people how to read the HTML formatted manual.
20045 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20047         parse-datetime: Fix memleak
20048         * lib/parse-datetime.y (parse_datetime2): Cleanup on
20049         localtime_rz() failure.
20051 2017-05-16  Bruno Haible  <bruno@clisp.org>
20053         javacomp: Fix handle leak.
20054         Found by Coverity.
20055         * lib/javacomp.c (get_classfile_version): Close fd before returning.
20057 2017-05-16  Bruno Haible  <bruno@clisp.org>
20059         relocate: Make it easier to reclaim allocated memory.
20060         * lib/relocatable.h (relocate2): New declaration/macro.
20061         * lib/relocatable.c (relocate2): New function.
20062         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
20063         relocate2 function.
20064         * lib/localcharset.c (relocate2): Define fallback.
20065         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
20066         allocated memory.
20067         * lib/javaversion.c (relocate2): Define fallback.
20068         (javaexec_version): Invoke relocate2 instead of relocate. Free the
20069         allocated memory.
20071 2017-05-16  Bruno Haible  <bruno@clisp.org>
20073         relocate: Simplify EMX specific code.
20074         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
20075         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
20077 2017-05-16  Bruno Haible  <bruno@clisp.org>
20079         sigpipe tests: Fix file list.
20080         * modules/sigpipe-tests (Files): Add tests/macros.h.
20082 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20084         manywarnings: update for GCC 7
20085         * build-aux/gcc-warning.spec:
20086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20087         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
20088         requires a non-comment fallthrough attribute.  This is a bit
20089         cleaner than the comment versions.
20090         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
20091         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
20092         Use it whenever one switch case falls through into the next.
20093         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
20094         Use FALLTHROUGH macro.
20096 2017-05-15  Bruno Haible  <bruno@clisp.org>
20098         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
20099         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
20100         @ALLOCA@, not @LTALLOCA@.
20102 2017-05-15  Bruno Haible  <bruno@clisp.org>
20104         sys_select: Avoid "was expanded before it was required" warning.
20105         * modules/sys_select (configure.ac): Require, not invoke,
20106         gl_HEADER_SYS_SELECT.
20108 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20110         gnulib-tool: improve GNU Make debugging
20111         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
20112         Report autoconf diagnostics when it fails, in the output makefile.
20114 2017-05-14  Bruno Haible  <bruno@clisp.org>
20116         stat-time tests: Improve comment.
20117         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
20119 2017-05-14  Bruno Haible  <bruno@clisp.org>
20121         same-inode: Adapt for windows-stat-inodes.
20122         * lib/same-inode.h: Include <sys/types.h>.
20123         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
20124         * modules/same-inode (Depends-on): Add sys_types.
20126 2017-05-14  Bruno Haible  <bruno@clisp.org>
20128         windows-stat-inodes: New module.
20129         * m4/windows-stat-inodes.m4: New file.
20130         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
20131         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
20132         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
20133         (_GL_WINDOWS_STAT_INODES): New macro.
20134         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
20135         (GetFileInformationByHandleExFunc): New variable.
20136         (initialize): Initialize it.
20137         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
20138         st_ino appropriately.
20139         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
20140         a fallback, because it does not provide st_dev and st_ino values.
20141         * modules/fstat (Depends-on): Add 'verify'.
20142         * modules/windows-stat-inodes: New file.
20143         * doc/windows-stat-inodes.texi: New file.
20144         * doc/gnulib.texi: Include it.
20145         * doc/posix-headers/sys_stat.texi: Mention the new module.
20147 2017-05-14  Bruno Haible  <bruno@clisp.org>
20149         stat-time tests: Workaround for native Windows.
20150         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
20151         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
20152         New variables.
20153         (initialize_filenames): New function.
20154         (main): Invoke it.
20155         (cleanup, prepare_test): Update.
20157 2017-05-14  Bruno Haible  <bruno@clisp.org>
20159         stat-time: Adapt for windows-stat-timespec.
20160         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
20161         entire st_ctim field.
20163 2017-05-13  Jim Meyering  <meyering@fb.com>
20165         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
20166         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
20167         file that uses the assume macro, claiming that verify.h is unused.
20169 2017-05-13  Bruno Haible  <bruno@clisp.org>
20171         Use symbolic values for _WIN32_WINNT.
20172         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
20173         * lib/sethostname.c (_WIN32_WINNT): Likewise.
20175 2017-05-13  Bruno Haible  <bruno@clisp.org>
20177         year2038: New module.
20178         * m4/year2038.m4: New file.
20179         * modules/year2038: New file.
20180         * doc/year2038.texi: New file.
20181         * doc/gnulib.texi: Include it.
20183 2017-05-13  Bruno Haible  <bruno@clisp.org>
20185         largefile: Simplify.
20186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
20187         of _GL_WINDOWS_64_BIT_ST_SIZE.
20189 2017-05-13  Bruno Haible  <bruno@clisp.org>
20191         largefile: Improve and document.
20192         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
20193         the mingw headers already define 'stat' appropriately.
20194         * modules/largefile (Description): Clarify.
20195         * doc/largefile.texi: New file.
20196         * doc/gnulib.texi: Include it.
20197         * doc/posix-headers/sys_types.texi: Update.
20199 2017-05-13  Bruno Haible  <bruno@clisp.org>
20201         truncate: New module.
20202         * lib/unistd.in.h (truncate): New declaration.
20203         * lib/truncate.c: New file.
20204         * m4/truncate.m4: New file.
20205         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
20206         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
20207         REPLACE_TRUNCATE.
20208         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
20209         HAVE_TRUNCATE, REPLACE_TRUNCATE.
20210         * modules/truncate: New file.
20211         * tests/test-unistd-c++.cc (truncate): Test signature.
20212         * doc/posix-functions/truncate.texi: Mention the new module.
20214         * tests/test-truncate.c: New file.
20215         * modules/truncate-tests: New file.
20217 2017-05-13  Bruno Haible  <bruno@clisp.org>
20219         windows-stat-timespec: New module.
20220         * modules/windows-stat-timespec: New file.
20221         * m4/windows-stat-timespec.m4: New file.
20222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
20223         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
20224         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
20225         fields st_atim, st_mtim, st_ctim.
20226         (st_atime, st_mtime, st_ctime): Define as macros.
20227         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
20228         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
20229         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
20230         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
20231         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
20232         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
20233         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20234         FILETIME to 'struct timespec', not 'time_t'.
20235         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20236         FILETIME to 'struct timespec', not 'time_t'.
20237         * lib/stat-time.h (STAT_TIMESPEC): Define also if
20238         _GL_WINDOWS_STAT_TIMESPEC.
20239         * doc/windows-stat-timespec.texi: New file.
20240         * doc/gnulib.texi: Include it.
20242 2017-05-13  Bruno Haible  <bruno@clisp.org>
20244         windows-stat-override: New module.
20245         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
20246         definition. Define GNULIB_defined_struct_stat.
20247         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
20248         link error if this symbol is used and the corresponding module is not
20249         in use.
20250         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
20251         GNULIB_OVERRIDES_STRUCT_STAT.
20252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20253         GNULIB_OVERRIDES_STRUCT_STAT.
20254         * modules/sys_stat (Makefile.am): Substitute
20255         GNULIB_OVERRIDES_STRUCT_STAT.
20256         * modules/windows-stat-override: New file.
20258 2017-05-13  Bruno Haible  <bruno@clisp.org>
20260         fstat: Fix module dependency conditions.
20261         * modules/fstat (Depends-on): Fix typo.
20263 2017-05-13  Bruno Haible  <bruno@clisp.org>
20265         stat, fstat: Complete removal of old native Windows code.
20266         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
20267         * lib/fstat.c: Likewise.
20268         * lib/stat-w32.c: Likewise.
20270 2017-05-13  Bruno Haible  <bruno@clisp.org>
20272         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
20273         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
20275 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20277         getopt-posix: port to mingw
20278         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
20279         Problem reported by Daniel P. Berrage in:
20280         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
20282 2017-05-11  Bruno Haible  <bruno@clisp.org>
20284         gettimeofday: Increase precision on mingw.
20285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
20286         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
20287         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
20288         GetSystemTimePreciseAsFileTime based implementation always.
20289         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
20290         mingw.
20292 2017-05-11  Bruno Haible  <bruno@clisp.org>
20294         poll: Fix confusion between SOCKETs and FDs on native Windows.
20295         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
20296         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
20298 2017-05-11  Bruno Haible  <bruno@clisp.org>
20300         doc: Clarify doc about socket functions on native Windows.
20301         This reworks doc that was added on 2008-09-29.
20302         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
20303         clearer wording.
20304         * doc/posix-functions/accept.texi: Use clearer wording.
20305         * doc/posix-functions/bind.texi: Likewise.
20306         * doc/posix-functions/connect.texi: Likewise.
20307         * doc/posix-functions/getpeername.texi: Likewise.
20308         * doc/posix-functions/getsockname.texi: Likewise.
20309         * doc/posix-functions/getsockopt.texi: Likewise.
20310         * doc/posix-functions/ioctl.texi: Likewise.
20311         * doc/posix-functions/listen.texi: Likewise.
20312         * doc/posix-functions/recv.texi: Likewise.
20313         * doc/posix-functions/recvfrom.texi: Likewise.
20314         * doc/posix-functions/send.texi: Likewise.
20315         * doc/posix-functions/sendto.texi: Likewise.
20316         * doc/posix-functions/setsockopt.texi: Likewise.
20317         * doc/posix-functions/shutdown.texi: Likewise.
20318         * doc/posix-functions/socket.texi: Likewise.
20320 2017-05-10  Bruno Haible  <bruno@clisp.org>
20322         poll: Fix link error on native Windows.
20323         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
20325 2017-05-10  Bruno Haible  <bruno@clisp.org>
20327         time: Fix missing initialization of HAVE_TIMEZONE_T.
20328         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
20329         here...
20330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
20331         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
20332         gl_HEADER_SYS_TIME_H_DEFAULTS.
20333         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
20334         (configure.ac): Remove useless quoting.
20336 2017-05-10  Bruno Haible  <bruno@clisp.org>
20338         Implement a way to opt out from MSVC support, part 2.
20339         * modules/msvc-inval (Include): Document recommended idiom.
20340         * modules/msvc-nothrow (Include): Likewise.
20342         Implement a way to opt out from MSVC support.
20343         This is useful for Emacs.
20344         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
20345         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
20346         * lib/error.c: Likewise.
20347         * lib/fcntl.c: Likewise.
20348         * lib/flock.c: Likewise.
20349         * lib/fstat.c: Likewise.
20350         * lib/fsync.c: Likewise.
20351         * lib/ioctl.c: Likewise.
20352         * lib/isapipe.c: Likewise.
20353         * lib/lseek.c: Likewise.
20354         * lib/nonblocking.c: Likewise.
20355         * lib/poll.c: Likewise.
20356         * lib/select.c: Likewise.
20357         * lib/sockets.h: Likewise.
20358         * lib/sockets.c: Likewise.
20359         * lib/stdio-read.c: Likewise.
20360         * lib/stdio-write.c: Likewise.
20361         * lib/utimens.c: Likewise.
20362         * lib/w32sock.h: Likewise.
20363         * lib/w32spawn.h: Likewise.
20364         * tests/test-cloexec.c: Likewise.
20365         * tests/test-dup-safer.c: Likewise.
20366         * tests/test-dup2.c: Likewise.
20367         * tests/test-dup3.c: Likewise.
20368         * tests/test-fcntl.c: Likewise.
20369         * tests/test-pipe.c: Likewise.
20370         * tests/test-pipe2.c: Likewise.
20371         * lib/ftruncate.c: Likewise.
20372         (chsize_nothrow): Renamed from chsize.
20373         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
20374         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20375         * lib/close.c: Likewise.
20376         * lib/dup.c: Likewise.
20377         * lib/fclose.c: Likewise.
20378         * lib/raise.c: Likewise.
20379         * tests/test-fgetc.c: Likewise.
20380         * tests/test-fputc.c: Likewise.
20381         * tests/test-fread.c: Likewise.
20382         * tests/test-fwrite.c: Likewise.
20383         * lib/getdtablesize.c: Likewise.
20384         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20385         * lib/isatty.c: Don't include msvc-inval.h if
20386         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20387         Include <io.h> as an alternative to msvc-nothrow.h.
20388         * lib/read.c: Likewise.
20389         * lib/write.c: Likewise.
20390         * lib/dup2.c: Likewise.
20391         (dup2_nothrow): New function.
20392         (ms_windows_dup2): Use it.
20393         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20394         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20395         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20396         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20397         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20398         * m4/read.m4 (gl_FUNC_READ): Likewise.
20399         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20400         * doc/windows-without-msvc.texi: New file.
20401         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20402         section.
20404 2017-05-10  Bruno Haible  <bruno@clisp.org>
20406         wait-process: Adjust native Windows support.
20407         * lib/wait-process.c: Use the usual condition for recognizing a native
20408         Windows platform.
20410 2017-05-10  Bruno Haible  <bruno@clisp.org>
20412         doc: New chapter "Native Windows Support".
20413         * doc/gnulib.texi (Native Windows Support): New chapter.
20414         * doc/windows-libtool.texi: Small wording changes.
20415         * doc/windows-sockets.texi: Small wording and formatting changes.
20417 2017-05-10  Bruno Haible  <bruno@clisp.org>
20419         doc: Move section "Library version handling".
20420         * doc/gnulib.texi: Move section "Library version handling"
20421         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20423 2017-05-10  Bruno Haible  <bruno@clisp.org>
20425         doc: Move section "Running self-tests under valgrind".
20426         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20427         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20429 2017-05-10  Bruno Haible  <bruno@clisp.org>
20431         doc: New chapter "Build Infrastructure Modules".
20432         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20434 2017-05-10  Bruno Haible  <bruno@clisp.org>
20436         Prepare for reordering sections in the manual.
20437         * doc/gnulib.texi: Move several sections to separate files. Include
20438         these files.
20439         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20440         * doc/obsolete.texi: Likewise.
20441         * doc/extra-tests.texi: Likewise.
20442         * doc/transversal.texi: Likewise.
20443         * doc/namespace.texi: Likewise.
20444         * doc/check-version.texi: Likewise.
20445         * doc/windows-sockets.texi: Likewise.
20446         * doc/windows-libtool.texi: Likewise.
20447         * doc/licenses-texi.texi: Likewise.
20448         * doc/build-automation.texi: Likewise.
20449         * doc/c-locale.texi: Likewise.
20451 2017-05-10  Bruno Haible  <bruno@clisp.org>
20453         Fix instructions how to update manual on www.gnu.org.
20454         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20456 2017-05-09  Bruno Haible  <bruno@clisp.org>
20458         tzset: Expand comment about TZ problem on native Windows.
20459         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20460         Paul Eggert.
20461         * lib/ctime.c (rpl_ctime): Likewise.
20462         * lib/localtime.c (rpl_localtime): Likewise.
20463         * lib/mktime.c (mktime): Likewise.
20464         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20465         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20467 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20469         intprops: don’t depend on ‘verify’
20470         Problem reported by Ævar Arnfjörð Bjarmason in:
20471         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20472         * lib/intprops.h: Do not include verify.h, and move compile-time
20473         checks from here ...
20474         * tests/test-intprops.c (main): ... to here, if they’re not here
20475         already.  Check widths of other standard integer types.
20476         * modules/intprops (Depends-on): Remove ‘verify’.
20478 2017-05-07  Bruno Haible  <bruno@clisp.org>
20480         utimens: On native Windows, support 100ns resolution also if fd < 0.
20481         * lib/utime.in.h: Include <time.h>.
20482         (_gl_utimens_windows): New declaration.
20483         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20484         (utime): Invoke it.
20485         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20486         instead of utime.
20487         * modules/utime (Depends-on): Add 'time'.
20489 2017-05-07  Bruno Haible  <bruno@clisp.org>
20491         utimens: Improve error code on native Windows.
20492         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20493         error code EACCES, not EINVAL.
20495 2017-05-07  Bruno Haible  <bruno@clisp.org>
20497         utime: Handle more Windows error codes.
20498         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20499         Based on explanations by Billy O'Neal.
20501 2017-05-05  Bruno Haible  <bruno@clisp.org>
20503         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20504         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20505         union.
20506         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20507         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20508         value of cipher->IV.
20510 2017-05-05  Bruno Haible  <bruno@clisp.org>
20512         wctype-h-c++-tests: Update.
20513         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20515 2017-05-05  Bruno Haible  <bruno@clisp.org>
20517         wchar-c++-tests: Update.
20518         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20520 2017-05-05  Bruno Haible  <bruno@clisp.org>
20522         utime-h-c++-tests: New module.
20523         * tests/test-utime-h-c++.cc: New file.
20524         (utime): Declare, missing since 2017-04-30.
20525         * modules/utime-h-c++-tests: New file.
20527 2017-05-05  Bruno Haible  <bruno@clisp.org>
20529         unistd-c++-tests: Update.
20530         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20531         (read): Declare, missing since 2011-04-15.
20532         (sethostname): Declare, missing since 2011-12-03.
20534 2017-05-05  Bruno Haible  <bruno@clisp.org>
20536         time-c++-tests: Update.
20537         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20538         (localtime, gmtime): Declare, missing since 2017-04-30.
20539         (ctime): Declare, missing since 2017-04-30.
20540         (strftime): Declare, missing since 2017-04-30.
20541         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20542         2015-07-24.
20544 2017-05-05  Bruno Haible  <bruno@clisp.org>
20546         sys_resource-c++-tests: New module.
20547         * tests/test-sys_resource-c++.cc: New file.
20548         (getrusage): Declare, missing since 2012-04-13.
20549         * modules/sys_resource-c++-tests: New file.
20551 2017-05-05  Bruno Haible  <bruno@clisp.org>
20553         strings-c++-tests: New module.
20554         * tests/test-strings-c++.cc: New file.
20555         (ffs): Declare, missing since 2011-07-12.
20556         * modules/strings-c++-tests: New file.
20558 2017-05-05  Bruno Haible  <bruno@clisp.org>
20560         string-c++-tests: Update.
20561         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20562         (ffsll): Declare, missing since 2011-07-15.
20564 2017-05-05  Bruno Haible  <bruno@clisp.org>
20566         stdlib-c++-tests: Update.
20567         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20568         2011-10-18.
20569         (ptsname_r): Declare, missing since 2011-11-07.
20570         (qsort_r): Declare, missing since 2014-08-29.
20571         (random, srandom, initstate, setstate): Declare, missing since
20572         2012-01-14.
20573         (secure_getenv): Declare, missing since 2013-02-05.
20575 2017-05-05  Bruno Haible  <bruno@clisp.org>
20577         stdio-c++-tests: Update.
20578         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20580 2017-05-05  Bruno Haible  <bruno@clisp.org>
20582         signal-h-c++-tests: Update.
20583         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20585 2017-05-05  Bruno Haible  <bruno@clisp.org>
20587         math-c++-tests: Update.
20588         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20589         (fma): Declare, missing since 2011-10-17.
20590         (fmal): Declare, missing since 2011-10-17.
20592 2017-05-05  Bruno Haible  <bruno@clisp.org>
20594         locale-c++-tests: Update.
20595         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20596         2012-03-25.
20598 2017-05-05  Bruno Haible  <bruno@clisp.org>
20600         inttypes-c++-tests: New module.
20601         * tests/test-inttypes-c++.cc: New file.
20602         (strtoimax): Declare, missing since 2012-01-05.
20603         (strtoumax): Declare, missing since 2012-01-05.
20604         * modules/inttypes-c++-tests: New file.
20606 2017-05-05  Bruno Haible  <bruno@clisp.org>
20608         dirent-c++-tests: Update.
20609         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20610         (rewinddir): Declare, missing since 2011-09-13.
20611         (dirfd): Declare, missing since 2010-03-08.
20613 2017-05-04  Bruno Haible  <bruno@clisp.org>
20615         argp: Fix mistake in 2017-04-23 commit.
20616         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20617         assume that strerror_r returns 'int', not 'char *'.
20619 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20621         argp: Fix typo.
20622         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20624 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20626         utimens: port to Emacs + MS-Windows
20627         Skip the new MS-Windows-specific code if Emacs.
20628         * lib/utimens.c [EMACS_CONFIGUATION]:
20629         Avoid new MS-Windows-specific code.
20630         (USE_SETFILETIME): New macro.
20631         (fdutimens): Use it.
20633 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20635         tzset: update doc for TZ problems on MS-Windows
20636         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20637         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20638         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20639         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20640         * doc/posix-functions/wcsftime.texi:
20641         Mention some issues with TZ under MS-Windows.
20643 2017-05-01  Bruno Haible  <bruno@clisp.org>
20645         copy-file: Fix build error on mingw.
20646         * modules/copy-file (Depends-on): Add 'close'.
20648 2017-05-01  Bruno Haible  <bruno@clisp.org>
20650         tzset: Work around TZ problem on native Windows.
20651         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20652         Windows, set REPLACE_TZSET to 1.
20653         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20654         invoke '_tzset' instead of 'tzset'.
20655         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20657         * modules/time_rz (Depends-on): Add tzset.
20658         * lib/time_rz.c (tzset): Remove fallback definition.
20659         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20661 2017-05-01  Bruno Haible  <bruno@clisp.org>
20663         mktime: Fix dependencies.
20664         * modules/mktime (Depends-on): Add 'time'.
20666 2017-05-01  Bruno Haible  <bruno@clisp.org>
20668         New module 'localtime-buffer', split off from module 'gettimeofday'.
20669         * lib/localtime-buffer.h: New file.
20670         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20671         * lib/time.in.h (tzset): New declaration.
20672         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20673         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20674         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20675         moved to lib/localtime-buffer.c or lib/tzset.c.
20676         * m4/localtime-buffer.m4: New file.
20677         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20678         HAVE_TZSET, REPLACE_TZSET.
20679         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20680         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20681         gl_LOCALTIME_BUFFER_NEEDED.
20682         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20683         since 2007-01-18.
20684         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20685         tzset.
20686         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20687         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20688         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20689         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20690         * modules/localtime-buffer: New file.
20691         * modules/time (Depends-on): Remove 'gettimeofday'.
20692         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20693         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20694         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20695         (Files): Add lib/tzset.c.
20696         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20697         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20698         gl_TIME_MODULE_INDICATOR.
20699         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20701 2017-05-01  Bruno Haible  <bruno@clisp.org>
20703         copy-file: Preserve sub-second time stamps.
20704         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20705         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20706         transport the time stamps from the original file to the destination
20707         file.
20708         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20709         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20710         utime-h.
20712 2017-05-01  Bruno Haible  <bruno@clisp.org>
20714         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20715         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20716         also on MSVC.
20717         Reported by Eli Zaretskii <eliz@gnu.org>.
20719 2017-05-01  Bruno Haible  <bruno@clisp.org>
20721         wchar: Fix compilation error with the original mingw.org mingw.
20722         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20723         <stddef.h> instead.
20724         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20725         gl_WCTYPE_H.
20726         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20727         gl_TYPE_WINT_T_PREREQ instead.
20728         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20729         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20730         Reported by Eli Zaretskii <eliz@gnu.org>.
20732 2017-04-30  Bruno Haible  <bruno@clisp.org>
20734         utimecmp: Add support for native Windows.
20735         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20737 2017-04-30  Bruno Haible  <bruno@clisp.org>
20739         utimens: Add support for native Windows.
20740         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20741         (fdutimens): Provide a native Windows implementation, like utime.c with
20742         added tv_nsec support.
20743         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20744         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20746 2017-04-30  Bruno Haible  <bruno@clisp.org>
20748         wcsftime: New module.
20749         * lib/wchar.in.h (wcsftime): New declaration.
20750         * lib/wcsftime.c: New file.
20751         * m4/wcsftime.m4: New file.
20752         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20753         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20754         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20756         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20757         * modules/wcsftime: New file.
20758         * doc/posix-functions/wcsftime.texi: Mention the new module.
20760 2017-04-30  Bruno Haible  <bruno@clisp.org>
20762         strftime-fixes: New module.
20763         * lib/time.in.h (strftime): New declaration.
20764         * lib/strftime-fixes.c: New file.
20765         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20766         (gl_FUNC_STRFTIME): Remove macro.
20767         * m4/strftime-fixes.m4: New file.
20768         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20769         REPLACE_STRFTIME.
20770         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20771         REPLACE_STRFTIME.
20772         * modules/strftime-fixes: New file.
20773         * doc/posix-functions/strftime.texi: Mention the new module.
20775 2017-04-30  Bruno Haible  <bruno@clisp.org>
20777         mktime: Work around TZ problem on native Windows.
20778         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20779         from the native Windows workaround.
20780         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20781         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20782         'guessing no'.
20783         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20784         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20785         NEED_MKTIME_WINDOWS.
20786         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20787         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20788         NEED_MKTIME_INTERNAL.
20789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20790         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20791         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20792         not REPLACE_MKTIME.
20793         * doc/posix-functions/mktime.texi: Mention the native Windows
20794         workaround.
20796 2017-04-30  Bruno Haible  <bruno@clisp.org>
20798         localtime: New module.
20799         * lib/time.in.h (localtime): Declare also if requested by module
20800         'localtime'.
20801         * lib/localtime.c: New file.
20802         * m4/localtime.m4: New file.
20803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
20804         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
20805         * modules/localtime: New file.
20806         * doc/posix-functions/localtime.texi: Mention the new module.
20808 2017-04-30  Bruno Haible  <bruno@clisp.org>
20810         ctime: New module.
20811         * lib/time.in.h (ctime): New declaration.
20812         * lib/ctime.c: New file.
20813         * m4/ctime.m4: New file.
20814         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
20815         REPLACE_CTIME.
20816         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
20817         * modules/ctime: New file.
20818         * doc/posix-functions/ctime.texi: Mention the new module.
20820 2017-04-30  Bruno Haible  <bruno@clisp.org>
20822         gettimeofday: Provide higher resolution on native Windows.
20823         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20824         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20825         (initialize): Initialize it.
20826         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20827         'struct timeval'. Don't use _ftime().
20828         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20829         <sys/timeb.h> and _ftime.
20831 2017-04-30  Bruno Haible  <bruno@clisp.org>
20833         Document the problem with the Cygwin environment variable TZ.
20834         * doc/posix-functions/tzset.texi: Add note about TZ.
20835         * doc/posix-functions/ctime.texi: Likewise.
20836         * doc/posix-functions/localtime.texi: Likewise.
20837         * doc/posix-functions/mktime.texi: Likewise.
20838         * doc/posix-functions/strftime.texi: Likewise.
20839         * doc/posix-functions/wcsftime.texi: Likewise.
20840         * doc/pastposix-functions/ftime.texi: Likewise.
20842 2017-04-30  Bruno Haible  <bruno@clisp.org>
20844         utime-tests: New module.
20845         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20846         * tests/test-utimens-common.h: Include <sys/stat.h>.
20847         * modules/utime-tests: New file.
20849 2017-04-29  Bruno Haible  <bruno@clisp.org>
20851         utime: New module.
20852         * lib/utime.in.h: Add comment for snippets.
20853         (utime): New declaration.
20854         * lib/utime.c: New file.
20855         * m4/utime.m4: New file.
20856         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20857         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20858         REPLACE_UTIME.
20859         * modules/utime-h (Depends-on): Add snippets.
20860         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20861         Insert snippets.
20862         * modules/utime: New file.
20863         * doc/posix-functions/utime.texi: Mention the new module.
20865 2017-04-29  Bruno Haible  <bruno@clisp.org>
20867         utime-h: Modernize handling of 'struct utimbuf'.
20868         * lib/utime.in.h: Include next <utime.h> if it exists.
20869         (utimbuf): Define to _utimbuf on native Windows.
20870         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20871         Set UTIME_H on native Windows.
20872         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20873         * modules/utime-h (Depends-on): Add include_next.
20874         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20875         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20877         * lib/utimens.c (utimbuf): Remove fallback definition.
20878         * m4/utimens.m4 (gl_UTIMENS): Don't require
20879         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20880         * m4/utimbuf.m4: Remove file.
20881         * modules/utimens (Files): Remove m4/utimbuf.m4.
20883 2017-04-29  Bruno Haible  <bruno@clisp.org>
20885         Make use of module 'utime-h'.
20886         * modules/copy-file (Depends-on): Add utime-h.
20887         * lib/copy-file.c: Assume that <utime.h> exists.
20888         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20890         * modules/utimens (Depends-on): Add utime-h.
20891         * lib/utimens.c: Assume that <utime.h> exists.
20893 2017-04-29  Bruno Haible  <bruno@clisp.org>
20895         utime-h: New module.
20896         * m4/utime_h.m4: New file.
20897         * lib/utime.in.h: New file.
20898         * modules/utime-h: New file.
20899         * doc/posix-headers/utime.texi: Mention the new module.
20901         * tests/test-utime-h.c: New file.
20902         * modules/utime-h-tests: New file.
20904 2017-04-30  Bruno Haible  <bruno@clisp.org>
20906         Fix a few typos.
20907         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20908         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20909         * doc/posix-functions/fstat.texi: Fix a plural typo.
20910         * doc/posix-functions/stat.texi: Likewise.
20911         * m4/include_next.m4: Update comments.
20913 2017-04-29  Bruno Haible  <bruno@clisp.org>
20915         error: Fix mistake in 2017-04-23 commit.
20916         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20917         assume that strerror_r returns 'int', not 'char *'.
20919 2017-04-29  Bruno Haible  <bruno@clisp.org>
20921         stat: Fix time_t values and other problems on native Windows platforms.
20922         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20923         implementations of stat().
20924         * lib/stat.c: Include filename.h instead of dosname.h. Include
20925         malloca.h, stat-w32.h.
20926         (is_unc_root): New function.
20927         (rpl_stat): New implementation for native Windows. Remove
20928         REPLACE_FUNC_STAT_DIR code.
20929         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20930         Don't define REPLACE_FUNC_STAT_DIR.
20931         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20932         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20933         (Depends-on): Remove dosname. Add filename, malloca.
20934         (configure.ac): Also compile lib/stat-w32.c.
20936 2017-04-29  Bruno Haible  <bruno@clisp.org>
20938         fstat: Fix time_t values on native Windows platforms.
20939         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20940         * lib/stat-w32.h: New file.
20941         * lib/stat-w32.c: New file.
20942         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20943         stat-w32.h instead.
20944         (fstat_nothrow): Remove function.
20945         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20946         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20947         always.
20948         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20949         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20950         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20951         (configure.ac): Also compile lib/stat-w32.c.
20953 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20955         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20956         Problem reported by Assaf Gordon and Gavin Smith in:
20957         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20958         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20959         #define this, too.
20961 2017-04-29  Bruno Haible  <bruno@clisp.org>
20963         strerror_r-posix: Fixes for MSVC 14.
20964         * lib/strerror_r.c: Include <stdarg.h>.
20965         (strerror_r): Provide error messages for errno values 100...140.
20966         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20968 2017-04-28  Bruno Haible  <bruno@clisp.org>
20970         noreturn: New module.
20971         * lib/noreturn.h: New file.
20972         * modules/noreturn: New file.
20973         * tests/test-noreturn.c: New file.
20974         * modules/noreturn-tests: New file.
20975         * tests/test-noreturn-c++.cc: New file.
20976         * modules/noreturn-c++-tests: New file.
20978 2017-04-27  Bruno Haible  <bruno@clisp.org>
20980         wctype-h: Fix compilation error with the original mingw.org mingw.
20981         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20982         HAVE_CRTDEFS_H.
20983         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20984         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20985         <stddef.h> instead.
20986         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20988 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20990         nap.h: Fix compilation on non windows platforms
20991         * tests/nap.h: Move misplaced endif.
20993 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20994         and Paul Eggert  <eggert@cs.ucla.edu>
20996         time_rz: fix heap buffer overflow vulnerability
20997         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20998         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20999         whether there is enough buffer space available, thus avoiding
21000         the problematic promotion of signed to unsigned causing an invalid
21001         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
21002         the start of the buffer.
21003         * tests/test-parse-datetime.c (main): Add a test case written by
21004         Paul Eggert, which overwrites enough of the heap so that
21005         standard glibc will fail with "free(): invalid pointer"
21006         without the patch applied.
21008 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21010         xalloc: add missing integer overflow check
21011         * lib/xalloc.h (x2nrealloc): Also check for multiplication
21012         overflow when P is null.
21014 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21016         parse-datetime: make it standalone
21017         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
21018         (_GL_ATTRIBUTE_FORMAT): New macro.
21019         These are needed to get './gnulib-tool --test parse-datetime' to work.
21021 2017-04-23  Bruno Haible  <bruno@clisp.org>
21023         nap.h: Port to native Windows.
21024         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
21025         use nap_fd instead. On native Windows, close and reopen nap_fd.
21026         (nap_works): Don't compare the ctimes, because on native Windows, these
21027         are the creation times.
21028         (nap): Update.
21030 2017-04-23  Bruno Haible  <bruno@clisp.org>
21032         nap.h: Fix logic.
21033         * tests/nap.h (nap): Avoid signed integer overflow in loop.
21035 2017-04-23  Bruno Haible  <bruno@clisp.org>
21037         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
21038         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
21039         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
21040         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
21041         * lib/argp-help.c (__argp_failure): Likewise.
21043 2017-04-23  Bruno Haible  <bruno@clisp.org>
21045         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
21046         * m4/strerror_r.m4: Revert changes since 2016-10-16.
21047         * lib/strerror_r.c: Likewise.
21049 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21051         Target a C99 subset, not a C89 subset
21052         For many years Gnulib has targeted C89 and has resisted using C99
21053         features, as some Gnulib-using programs still wanted to target
21054         C89.  As this no longer seems to be the case, relax the porting
21055         requirements to allow some C99 features.  This is merely a change
21056         to the documentation, to give other Gnulib developers a chance to
21057         weigh in on the topic.
21058         * doc/extern-inline.texi (extern inline):
21059         * doc/gnulib-readme.texi (Portability guidelines):
21060         * doc/gnulib-tool.texi (Initial import):
21061         * doc/gnulib.texi (Header files):
21062         Modernize to talk about C99 and C11 instead of C89 and C99.
21063         * doc/gnulib-readme.texi (Portability guidelines):
21064         Now a section, not merely a subsection, so that it
21065         can be split up.  Modernize a bit.
21066         (C language versions, C99 features assumed)
21067         (C99 features avoided):
21068         New sections.
21070 2017-04-23  Bruno Haible  <bruno@clisp.org>
21072         doc: New section "Modules that modify the way other modules work".
21073         * doc/gnulib.texi (Modules that modify the way other modules work): New
21074         section.
21076 2017-04-23  Bruno Haible  <bruno@clisp.org>
21078         stat-time: Update comments.
21079         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
21080         * tests/test-utimens-common.h: Add reference regarding st_ctime on
21081         Windows.
21083 2017-04-01  Bruno Haible  <bruno@clisp.org>
21085         glob: Fix more memory leaks.
21086         * lib/glob.c (glob): Free allocated memory before returning.
21087         Reported by Coverity via Tim Rühsen.
21089 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21091         poll: improve fast check for out-of-range NFD
21092         * lib/poll.c: Do not include intprops.h.
21093         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
21094         * modules/poll (Depends-on): Remove intprops.
21096         ftoastr: cite a newer paper
21097         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
21098         instead of Loitsch 2010.
21100 2017-04-22  Bruno Haible  <bruno@clisp.org>
21102         poll: Enable argument check also in the Windows implementation.
21103         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
21104         Reported by Paul Eggert.
21106 2017-04-22  Bruno Haible  <bruno@clisp.org>
21108         getlogin_r: Work around bug in Mac OS X 10.12.
21109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
21110         bug.
21111         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
21112         given size minus 1, call getlogin_r a second time, on a larger buffer.
21113         * modules/getlogin_r (Depends-on): Add malloca.
21114         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
21116 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21118         parse-datetime: fix %z and prefer signed int
21119         %z problem reported by Pádraig Brady in:
21120         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
21121         While fixing it, I decided to prefer signed ints to size_t, as
21122         they are less error-prone (e.g., ubsan catches overflow).
21123         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
21124         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
21125         counts, since signed integers make for better debugging.
21126         (date): Don’t assume %z works in printf formats.
21127         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
21128         sizes of buffers known to be small, e.g., because we’re using snprintf.
21129         (parse_datetime2): Simplify call to debug_mktime_not_ok.
21131 2017-04-22  Bruno Haible  <bruno@clisp.org>
21133         *printf: Work around rounding bug on Mac OS X.
21134         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
21135         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
21136         Mac OS X and FreeBSD.
21137         * doc/glibc-functions/*printf.texi: Likewise.
21139 2017-04-22  Bruno Haible  <bruno@clisp.org>
21141         vasnprintf tests: Avoid warnings.
21142         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
21143         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
21144         test.
21146 2017-04-22  Bruno Haible  <bruno@clisp.org>
21148         sys_file tests: Avoid warning.
21149         * tests/test-sys_file.c (main): Add a default clause to the switch
21150         statement.
21152 2017-04-22  Bruno Haible  <bruno@clisp.org>
21154         sethostname: Update doc.
21155         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
21156         Mac OS X.
21158 2017-04-22  Bruno Haible  <bruno@clisp.org>
21160         quotearg tests: Avoid warnings.
21161         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
21162         false.
21164 2017-04-22  Bruno Haible  <bruno@clisp.org>
21166         poll: Enable argument check.
21167         * lib/poll.c: Include intprops.h.
21168         (poll): Check value of nfd correctly.
21169         * modules/poll (Depends-on): Add intprops.
21171 2017-04-22  Bruno Haible  <bruno@clisp.org>
21173         get-rusage-data: Avoid warnings on Mac OS X.
21174         * lib/get-rusage-data.c: On Mac OS X, don't define
21175         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
21176         (get_rusage_data) [Mac OS X]: Just return 0.
21178 2017-04-22  Bruno Haible  <bruno@clisp.org>
21180         xbinary-io: Fix build error.
21181         * modules/xbinary-io (Depends-on): Add gettext-h.
21182         * lib/xbinary-io.c: Include gettext.h and define _().
21183         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
21184         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
21186 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21188         parse-datetime: overflow and debug cleanups
21189         This long patch was triggered by this bug report from Ruediger Meier:
21190         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
21191         I fixed the bug he noted, then found some others nearby, and then
21192         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
21193         up some of the code to follow GNU standards while I was at it.
21194         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
21195         use c_isdigit.
21196         (EPOCH_YEAR): Remove; unused.
21197         (TM_YEAR_BASE): Now an enum rather than a macro.
21198         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
21199         time zone offset, since timezones now are in terms of seconds and
21200         not minutes.
21201         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
21202         appropriate.  Verify that intmax_t is wide enough.
21203         (time_overflow, time_zone_str): New functions, used to deal
21204         more reliably with overflow.
21205         (dbg_printf): Add printf attribute, to help catch integer width errors.
21206         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
21207         (%union, to_hour, yylex, parse_datetime2):
21208         Use intmax_t instead of long int and/or long_time_t.
21209         All uses changed.
21210         (DBGBUFSIZE): Move earlier.
21211         (relative_time, set_hhmmss, parser_control):
21212         Just use int for nanoseconds and for time zones; that’s wide enough.
21213         (parser_control): Use bool for members like year_seen that can
21214         be booleans instead of counters.  All uses changed.
21215         Remove debug_default_input_timezone; no longer needed.
21216         All uses removed.
21217         (apply_relative_time): Return a bool overflow flag.
21218         All uses changed to check for overflow.
21219         (apply_relative_time, zone, date, relunit, relunit_snumber)
21220         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
21221         Check for integer overflow portably.
21222         (str_days): Use just int for N, as it’s wide enough.
21223         Prefer 2D char arrays to arrays of char * when it looks like
21224         2D is a win on typical platforms.
21225         Prefer snprintf to strncpy/strncat, for simplicity;
21226         all buffers are smaller than INT_MAX so this is safe.
21227         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
21228         (debug_print_current_time): Don’t assume tv_nsec is of type long,
21229         as this is not true on x32.  Output "." before any nanoseconds.
21230         (debug_print_current_time, parse_datetime2):
21231         Output local zones using a more-consistent format.
21232         (debug_print_current_time, date, parse_datetime2):
21233         (main) [TEST]:
21234         Don’t assume time_t is the same width as long.
21235         (print_rel_part): New function, replacing ...
21236         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
21237         (debug_print_relative_time): Use bool for boolean.
21238         (local_zone): dsts_seen now counts only tDST instances.
21239         (date): Fix printf of size_t to use %z.  Do not assume numeric
21240         tokens have negative values merely because the context suggests
21241         a syntax with "-" separating tokens.
21242         (time_zone_hhmm): Return bool success indicator, which checks for
21243         overflow.  Store result into PC->time_zone instead.  All callers
21244         changed.
21245         (tm_year_str): New function.  Return a bool success indicator and
21246         store the result into a buffer.  All callers changed.  Output the
21247         numerically correct string even if adding 1900 to the year would
21248         overflow.
21249         (to_tm_year): New function, replacing the old to_year.  All
21250         callers changed.
21251         (tm_diff): Sync with glibc.
21252         (lookup_word): Use to_uchar instead of doing it by hand.
21253         (TZBUFSIZE): Now local to the only function that needs it.
21254         (debug_strfdatetime): Simplify now that time zones are int seconds.
21255         (debug_strfdate): Work even if tm_year + 1900 would overflow.
21256         (get_effective_timezone): Remove.  All uses removed.
21257         (parse_datetime2): Use fprintf in pieces instead of snprintfing
21258         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
21259         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
21260         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
21261         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
21262         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
21263         * modules/parse-datetime (Depends-on): Add inttypes.
21265 2017-04-21  Bruno Haible  <bruno@clisp.org>
21267         gettext-h: Avoid -Wundef warning.
21268         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
21269         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
21270         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
21272 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
21274         error: Avoid "function declaration isn't a prototype" warning.
21275         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
21277 2017-04-21  Bruno Haible  <bruno@clisp.org>
21279         vasnprintf: Fix for MSVC 14.
21280         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
21281         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
21282         of !HAVE_SNPRINTF_RETVAL_C99.
21284 2017-04-21  Bruno Haible  <bruno@clisp.org>
21286         mbrtowc tests: Fix test failures on MSVC 14.
21287         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
21288         behaviour for invalid input.
21290 2017-04-21  Bruno Haible  <bruno@clisp.org>
21292         mbsinit: Fix for MSVC 14.
21293         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
21294         implementation that is in sync with mbrtowc.c. On other platforms, use
21295         an adequate ad-hoc implementation.
21297 2017-04-21  Bruno Haible  <bruno@clisp.org>
21299         Fix test-mbrtowc5.sh failure on native Windows.
21300         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
21301         "C".
21303 2017-04-21  Bruno Haible  <bruno@clisp.org>
21305         Avoid accidental use of native Windows APIs on Cygwin.
21306         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
21307         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
21308         * lib/localename.c (WINDOWS_NATIVE): Likewise.
21310 2017-04-20  Bruno Haible  <bruno@clisp.org>
21312         Remove red warnings from the generated MODULES.html.
21313         * modules/fcntl (Description): Disambiguate function references.
21314         * modules/getcwd-lgpl (Description): Likewise.
21315         * modules/hostent (Description): Likewise.
21316         * modules/servent (Description): Likewise.
21317         * modules/tempname (Description): Likewise.
21319 2017-04-20  Bruno Haible  <bruno@clisp.org>
21321         verify tests: Fix spurious failure with parallel make.
21322         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
21323         EXTRA_PROGRAMS.
21324         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
21325         * tests/test-verify-try.c: New file.
21326         * modules/verify-tests (Files): Add it.
21327         (EXTRA_PROGRAMS): Add test-verify-try.
21328         (MOSTLYCLEANFILES): Update accordingly.
21329         Reported by Adam James Stewart <ajstewart@anl.gov>.
21331 2017-04-18  Bruno Haible  <bruno@clisp.org>
21333         vma-iter: Fix compilation error on Solaris 7.
21334         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
21335         like on IRIX, OSF/1.
21336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21338 2017-04-18  Bruno Haible  <bruno@clisp.org>
21340         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
21341         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
21342         included.
21343         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
21344         <sys/procfs.h>.
21345         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
21346         <sys/procfs.h> cannot be included.
21347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21349 2017-04-18  Bruno Haible  <bruno@clisp.org>
21351         getopt-gnu: Add comments.
21352         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
21353         * modules/getopt-gnu (configure.ac): Likewise.
21355 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
21357         regex: port better to Solaris 10
21358         Solaris 10 <locale.h> includes <libintl.h>, which #defines
21359         gettext, and this causes a double #define.
21360         Problem reported by Gavin Smith in:
21361         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
21362         * lib/regex_internal.h (gettext): #undef before #defining.
21364 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21366         intprops: improve comments
21367         * lib/intprops.h: Improve and shorten commentary.
21368         For the record, if we ever run into a pedantic compiler that
21369         behaves differently from GCC when converting an out-of-range value
21370         to a signed integer, we can work around the problem with something
21371         like the following code, where UCT is the signed counterpart of T
21372         (UCT is sometimes narrower than UT) and all callers are changed
21373         accordingly:
21374         #if __SUNPRO_C <= 0x5120
21375         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21376            ((t) ((ut) (a) op (ut) (b)))
21377         #else
21378         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21379            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21380             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21381                + TYPE_MINIMUM (t)) \
21382             : (t) (uct) ((ut) (a) op (ut) (b)))
21383         #endif
21385 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21387         intprops: try to avoid tickling similar bugs
21388         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21389         needs to be the same width as T; it can be wider.
21390         Change callers so that UT is at least as wide as unsigned int,
21391         as I suspect that this is less likely to run into compiler bugs.
21393         intprops: port to Oracle Studio 12.3 x86
21394         Problem reported by Gavin Smith in:
21395         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21396         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21397         Convert unsigned to signed via the usual rather than the standard way,
21398         to avoid a compiler bug in Oracle Studio 12.3 x86.
21400 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21402         getopt: prefer - to _ in new file names
21403         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21404         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21405         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21406         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21407         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21408         All uses changed.
21410         getopt: port recent getopt changes to macOS
21411         Problem reported by Harald Maier (Bug#26398).
21412         The macOS C compiler uses __nonnull for its own purposes and that
21413         clashes with glibc's __nonnull.
21414         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21415         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21416         * lib/getopt_core.h (getopt):
21417         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21418         Use _GL_ARG_NONNULL, not __nonnull.
21419         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21420         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21421         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21422         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21424 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21426         getopt-gnu: omit some duplicate code
21427         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21428         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21429         gnulib-tool already does this.
21430         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21431         getopt-posix, which we depend on.
21433         getopt-posix: use angle-bracket include
21434         * lib/getopt1.c: Include <config.h>, not "config.h".
21436 2017-04-06  Zack Weinberg  <zackw@panix.com>
21438         getopt: annotate files with relationship to glibc
21440         As the final act in this patchset, adjust the message at the top of
21441         each file to indicate which files are synced with glibc.  (This has
21442         already been done for most of the headers.)
21444         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21445         Mention in top-of-file boilerplate that these files are shared
21446         between glibc and gnulib.
21449         getopt: split up getopt.in.h and eliminate __need_getopt
21451         Over in glibc, all of the __need macros are being phased out in favor
21452         of small headers that declare only the necessary components, as this
21453         is much simpler and less prone to bugs.  As getopt is shared with
21454         glibc, gnulib needs to do the same for __need_getopt.
21456         __need_getopt is misnamed; what it really means is "we want only the
21457         getopt features specified in POSIX, not the GNU extensions".  glibc
21458         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21459         these files can be shared verbatim with gnulib.  The portability
21460         wrapper, on the other hand, they have renounced altogether; glibc's
21461         getopt.h will no longer be shared with gnulib at all.  In exchange,
21462         certain glibc-specific quirks (having to do with __posix_getopt) no
21463         longer need appear in gnulib's headers at all.
21465         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21466         splits up the current gnulib-side portability wrapper into three
21467         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21468         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21469         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21470         unistd.in.h just use them.  All new files are clearly marked with
21471         whether they are shared with glibc.
21473         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21474         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21475         with glibc, and ...
21476         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21477         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21478         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21479         instead of defining __need_getopt and including the full getopt.h.
21481         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21482         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21483         * modules/getopt-posix (Files): Add new headers and sort list.
21484         (Depends-on): No longer need snippet/arg-nonnull.
21485         (Makefile.am): Generate getopt_cdefs.h.
21488         getopt: better handling of ambiguous options
21490         glibc's getopt uses alloca to construct a linked list of possibilities
21491         for an "ambiguous" long option.  In gnulib, malloc should be used
21492         instead.  Providing for both cases complicates things a fair bit.
21494         This patch rewrites ambiguous-option handling to use a boolean vector
21495         instead of a linked list.  There is then only one allocation that
21496         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21497         and in gnulib we define __libc_use_alloca to always be false, so we
21498         don't need ifdefs in the middle of the function.  This should also be
21499         slightly more efficient in the normal case of long options being fully
21500         spelled out -- I think most people aren't even aware they _can_
21501         sometimes abbreviate long options.
21503         One interesting consequence is that the list of possibilities is now
21504         printed in exactly the order they appear in the list of long options,
21505         instead of the first possibility being shuffled to the end.
21507         (The patch looks bigger than it really is because there's a fair bit
21508         of reindentation and code rearrangement.)
21510         * lib/getopt.c: When used standalone, define __libc_use_alloca
21511         as always false and alloca to abort if called.
21512         (process_long_option): Rewrite handling of ambiguous long options
21513         to use a single boolean vector, not a linked list; use
21514         __libc_use_alloca to decide whether to allocate this using alloca.
21517         getopt: refactor long-option handling
21519         There were two copies of the bulk of the code to handle long options.
21520         Now there is only one.
21522         This change temporarily removes the logic to avoid using alloca when
21523         standalone; the next patch in the series will restore it.
21525         * lib/getopt.c (process_long_option): New function split out
21526         from _getopt_internal_r.
21527         (_getopt_internal_r): Replace both copies of the long-option
21528         processing code with calls to process_long_option.
21531         getopt: tidy up _getopt_initialize a bit
21533         _getopt_data.__posixly_correct is completely redundant to
21534         _getopt_data.__ordering, and some work that logically belongs in
21535         _getopt_initialize was being done by _getopt_internal_r, making the
21536         code harder to understand.
21538         As a side effect, getenv will no longer be called if the first
21539         character of the options string is '+' or '-', which is probably a
21540         Good Thing.  (Perhaps we should have a flag character that
21541         specifically asks for the permutation behavior?)
21543         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21544         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21545         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21548         getopt: merge from glibc: repetition reduction
21550         The definitions of the entry point functions 'getopt' and
21551         '__posix_getopt' can be made substantially less repetitive with a
21552         helper macro.
21554         While I was merging the const-correctness changes from gnulib into
21555         glibc I noticed there are still some unnecessary casts in
21556         _getopt_internal_r.
21558         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21559         a macro.  Consistently cast 'argv' to 'char **' when calling
21560         _getopt_internal.
21561         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21564         getopt: clean up error reporting
21566         getopt can print a whole bunch of error messages, and when used
21567         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21568         cancellation point and getopt isn't, and also applying fprintf to a
21569         stream in wide-character mode is not allowed.  So every single error
21570         reporting case has an #ifdef _LIBC block in which it calls internal
21571         libc functions instead.  The counterpart patch series in glibc makes
21572         it possible to simplify all of that down to a set of #defines at the
21573         top of the file; core code is written as if it is safe to just call
21574         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21575         call any *other* stdio functions.)
21577         * lib/getopt.c: When _LIBC is defined, define fprintf to
21578         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21579         to _IO_funlockfile.  When neither _LIBC nor
21580         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21581         funlockfile as no-ops.
21582         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21583         standalone error-printing code can now be used for libc as well.
21584         Add an flockfile/funlockfile pair around one case where the error
21585         message is printed in several chunks.  Don't use fputc.
21588         getopt: fix fencepost error in ambiguous-W-option handling
21590         getopt_long contains an undocumented (AFAICT) feature in which, if you
21591         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21592         treated as equivalent to '--foo'.  This is implemented with a partial
21593         second copy of the code for handling long options, and that code
21594         increments optind one too many times when recovering from an ambiguous
21595         abbreviated option, which can cause the main loop to walk past the end
21596         of argv and crash.
21598         I discovered this while writing a test case that tries to exercise all
21599         of getopt's error reporting paths; I wouldn't be surprised to learn
21600         that this feature is never used by real applications.
21602         * lib/getopt.c (_getopt_internal_r): Don't increment
21603         d->optind a second time when reporting ambiguous -W options.
21606         getopt: clean up getopt.c and getopt1.c file headers
21608         In getopt.c, there is no need to include wchar.h at all, and it is
21609         safe nowadays to assume that stdlib.h does declare getenv (several
21610         other gnulib modules make this assumption).
21612         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21613         by using "" inclusions consistently, and there is no actual need to
21614         include stdlib.h (except in the #ifdef TEST block, where it should be
21615         unconditional), nor to provide a backup definition of NULL at all.
21617         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21618         Move inclusion of stdlib.h to #ifdef TEST block and make
21619         unconditional.  Do not define NULL.
21620         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21621         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21622         * modules/getopt-gnu, modules/getopt-posix: Don't call
21623         gl_PREREQ_GETENV.
21626         getopt: harmonize comments with glibc
21628         The comments explaining how the behavior of 'getopt' varies depending
21629         on whether it's the standalone version and whether there are special
21630         characters at the beginning of the options string were inconsistent
21631         between gnulib and glibc, and also out of sync with the code.
21633         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21636         getopt: remove USE_NONOPTION_FLAGS
21638         getopt includes code to parse an environment variable named
21639         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21640         in decimal); but all of it has been #ifdefed out since 2001, with no
21641         official way to turn it back on.
21643         According to commentary in glibc's config.h.in, bash version 2.0
21644         set this environment variable to indicate argv elements that were
21645         the result of glob expansion and therefore should not be treated
21646         as options, but the feature was "disabled later" because "it
21647         caused problems".  According to bash's CHANGES file, "later" was
21648         release 2.01; it gives no more detail about what the problems
21649         were.
21651         Version 2.0 of bash was released on the last day of 1996, and version
21652         2.01 in June of 1997.  Twenty years later, I think it is safe to
21653         assume that this environment variable isn't coming back.
21655         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21656         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21657         __libc_argc and __libc_argv externs, which were only used by
21658         #ifdef USE_NONOPTION_FLAGS blocks.
21661         getopt: tabify, in preparation for merge with glibc
21663         glibc sticks to the GNU default of indenting with a mix of
21664         8-column tabs and spaces; make the gnulib copy match.
21666         getopt.h is not included because it is *not* going to be merged in its
21667         present form.
21669         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21671 2017-04-02  Bruno Haible  <bruno@clisp.org>
21673         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21674         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21675         like it was done in modules/relocatable-lib on 2011-05-21 and in
21676         modules/relocatable-prog on 2011-08-15.
21677         Reported by Reuben Thomas <rrt@sc3d.org>.
21679 2017-03-31  Bruno Haible  <bruno@clisp.org>
21681         glob: Fix invalid free() call.
21682         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21683         static storage to home_dir.
21684         Reported by Coverity via Tim Rühsen.
21686 2017-03-31  Bruno Haible  <bruno@clisp.org>
21688         glob: Fix memory leaks.
21689         * lib/glob.c (glob): Free allocated memory before returning.
21690         Reported by Coverity via Tim Rühsen.
21692 2017-03-31  Bruno Haible  <bruno@clisp.org>
21694         md5, sha1, sha256, sha512: Add comments regarding correctness.
21695         * lib/md5.h (buflen): Add comments regarding range.
21696         * lib/sha1.h (buflen): Likewise.
21697         * lib/sha256.h (buflen): Likewise.
21698         * lib/sha512.h (buflen): Likewise.
21699         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21700         * lib/sha1.c (sha1_process_bytes): Likewise.
21701         * lib/sha256.c (sha256_process_bytes): Likewise.
21702         * lib/sha512.c (sha512_process_bytes): Likewise.
21703         Reported by Coverity via Tim Rühsen.
21705 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21707         getopt: merge from glibc
21708         This does not change anything substantial; it merely simplifies
21709         hypothetical merges back to glibc.
21710         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21711         Change copyright notice to match what is in glibc.
21712         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21713         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21714         __open_memstream rather than open_memstream and __glibc_likely
21715         instead of __builtin_expect.
21716         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21718 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21720         dfa: make [0-9] faster in non-C locales
21721         Problem reported by John P. Linderman (Bug#26193).
21722         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21723         If both ends of the range are ASCII digits, do not worry about
21724         multi-character collating sequences and the like.  Be consistent
21725         about using isalpha as a precondition for setbit_case_fold_c.
21727 2017-03-19  Bruno Haible  <bruno@clisp.org>
21729         lock: Fix compilation error with HP-UX IA64 cc.
21730         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21731         weak on non-glibc platforms.
21733 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21735         stdalign: tweak version# and test for HP-UX IA64
21736         Problems reported by Bruno Haible in:
21737         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21738         * lib/stdalign.in.h (_Alignas):
21739         * m4/stdalign.m4 (gl_STDALIGN_H):
21740         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21741         used octal (as that is how they document it), but it is decimal in
21742         practice now and the ancient implementations no longer matter.
21743         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21745 2017-03-19  Bruno Haible  <bruno@clisp.org>
21747         vma-iter: Add support for Solaris.
21748         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21749         approach.
21750         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21751         * lib/get-rusage-as.c: Update comment about Solaris.
21752         * lib/get-rusage-data.c: Likewise.
21754 2017-03-19  Bruno Haible  <bruno@clisp.org>
21756         vma-iter: Prefer HP-UX specific API on HP-UX.
21757         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21758         * lib/vma-iter.h: Update.
21759         Just in case HP-UX ever implements mquery().
21761 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21763         stdalign: restore previous behavior for HP-UX IA64
21764         See Bruno Haible's email in:
21765         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21766         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21767         * lib/stdalign.in.h (_Alignas):
21768         Assume the '061200' applies to Itanium, not to PA-RISC.
21769         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21771 2017-03-17  Bruno Haible  <bruno@clisp.org>
21773         stat-time, timespec: Support use of the header files in C++ mode.
21774         * lib/stat-time.h: Add "C" linkage declaration.
21775         * lib/timespec.h: Likewise.
21777 2017-03-17  Bruno Haible  <bruno@clisp.org>
21779         stdalign: Make it work with HP-UX cc.
21780         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21781         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21782         for HP-UX cc.
21784 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21786         flexmember: try to detect HP-UX 11.31 cc bug
21787         Problem reported by Bruno Haible in:
21788         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21789         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21790         Attempt to detect bug in HP-UX 11.31 cc.
21792 2017-03-16  Bruno Haible  <bruno@clisp.org>
21794         stdint: Fix test compilation failure with HP-UX 11 cc.
21795         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
21796         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21797         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
21798         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
21800 2017-03-14  Bruno Haible  <bruno@clisp.org>
21802         gnulib-tool: Don't produce a tests directory with only snippet .h files.
21803         * gnulib-tool (func_modules_transitive_closure_separately): If
21804         testsrelated_modules ends up with no "real" modules, aside from
21805         modules with applicability 'all', set it to empty.
21807 2017-03-14  Bruno Haible  <bruno@clisp.org>
21809         vma-iter: Add support for HP-UX.
21810         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
21811         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
21812         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
21813         * lib/get-rusage-as.c: Update comment about HP-UX.
21814         * lib/get-rusage-data.c: Likewise.
21815         (get_rusage_data): Use get_rusage_data_via_setrlimit.
21817 2017-03-14  Bruno Haible  <bruno@clisp.org>
21819         limits-h: Make it work with HP-UX cc.
21820         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21821         defined.
21823 2017-03-14  Bruno Haible  <bruno@clisp.org>
21825         Fix test failures on DragonFlyBSD.
21826         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21827         * tests/test-select.h (test_bad_fd): Likewise.
21828         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21830 2017-03-14  Bruno Haible  <bruno@clisp.org>
21832         freadahead: Silence warning on DragonFlyBSD.
21833         * lib/freadahead.c (__sreadahead): Declare ourselves.
21835 2017-03-14  Bruno Haible  <bruno@clisp.org>
21837         vma-iter: Add comment about AIX.
21838         * lib/vma-iter.c: Add comment about why this module is not implemented
21839         on AIX.
21841 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21843         snippets: move unadjusted snippet sources to lib
21844         Problem reported by Michal Privoznik in:
21845         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21846         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21847         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21848         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21849         * lib/unused-parameter.h: Rename from
21850         build-aux/snippet/unused-parameter.h.
21851         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21852         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21853         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21854         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21855         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21856         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21857         Adjust to file renamings.
21859 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21861         gnulib-tool: don't automatically distribute files from top/
21862         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21863         not distribute top/README-release by default, don't distribute files
21864         from top/ unconditionally.
21865         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21866         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21868 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21870         gnulib-tool: fix typo in comment output
21871         * gnulib-tool (func_import): Fix typo with previous change.
21873         snippets: work around GNU Make 3.82 VPATH
21874         When using 'gnulib-tool --gnu-make' on Emacs, and building
21875         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21876         an out-of-source (VPATH) build failed because the sans-copyright
21877         snippet file was not built before the file that used it.
21878         Presumably this is some sort of VPATH thing.  Work around the
21879         problem by using the original snippet, i.e., don’t bother to
21880         remove its copyright notice.
21881         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21882         Don’t assume Automake in comments.  Omit long-incorrect comment.
21883         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21884         (MOSTLYCLEANFILES):
21885         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21886         (MOSTLYCLEANFILES):
21887         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21888         (MOSTLYCLEANFILES):
21889         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21890         (MOSTLYCLEANFILES):
21891         Remove.
21892         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21893         * modules/snippet/c++defs (CXXDEFS_H):
21894         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21895         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21896         Don’t bother to remove the copyright notice; just use the
21897         original snippet as-is.
21899 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21901         gnulib-tool: minor --gnu-make fixups
21902         * gnulib-tool (func_emit_lib_Makefile_am):
21903         Remove useless code that was a blind alley during implementation.
21904         Problem reported by Thien-Thi Nguyen in:
21905         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21906         (func_import): Note the "--gnu-make" option in the output comment.
21908 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21910         gnulib-tool: new option --gnu-make
21911         This is for applications like GNU Emacs that use GNU Make
21912         features instead of Automake.
21913         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21914         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21915         Do not assume Automake.
21916         * gnulib-tool (func_determine_path_separator)
21917         (func_modules_transitive_closure, func_update_file)
21918         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21919         (func_import): Add support for --gnu-make.
21921 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21923         gnulib-common.m4: avoid aclocal.m4 bloat
21924         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21925         Hide AM_PROG_AR from aclocal, so that aclocal does not
21926         install irrelevant macro definitions into aclocal.m4.
21928 2017-03-10  Bruno Haible  <bruno@clisp.org>
21930         vma-iter: Let callers know about error.
21931         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21932         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21934 2017-03-05  Bruno Haible  <bruno@clisp.org>
21936         Fix value of LD for 64-bit compilers on AIX.
21937         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21938         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21940 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21942         dtotimespec: simplify
21943         * lib/dtotimespec.c (dtotimespec): Simplify.
21945 2017-03-04  Bruno Haible  <bruno@clisp.org>
21947         test-calloc-gnu: Reenable test also for GCC 7.
21948         * tests/test-calloc-gnu.c (eight): New function.
21949         (main): Don't skip test; use eight() instead.
21951 2017-03-04  Jim Meyering  <meyering@fb.com>
21953         test-calloc-gnu: port to GCC7
21954         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21955         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21956         and newer would detect that at compilation time.
21958 2017-03-04  Bruno Haible  <bruno@clisp.org>
21960         tests: Avoid compiler warning about uses of null_ptr.
21961         * tests/null-ptr.h: New file.
21962         * tests/test-canonicalize.c: Include null-ptr.h.
21963         (null_ptr): Remove function.
21964         * tests/test-canonicalize-lgpl.c: Likewise.
21965         * tests/test-memmem.c: Likewise.
21966         * tests/test-ptsname_r.c: Likewise.
21967         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21968         * modules/canonicalize-lgpl-tests: Likewise.
21969         * modules/memmem-tests: Likewise.
21970         * modules/ptsname_r-tests: Likewise.
21971         Reported by Jim Meyering.
21973 2017-03-03  Bruno Haible  <bruno@clisp.org>
21975         doc: Mention Mac OS X deficiencies regarding semaphores.
21976         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21977         * doc/posix-functions/sem_destroy.texi: Likewise.
21978         * doc/posix-functions/sem_getvalue.texi: Likewise.
21980 2017-03-03  Bruno Haible  <bruno@clisp.org>
21982         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21983         Reported by Assaf Gordon <assafgordon@gmail.com> via
21984         Pádraig Brady <P@draigBrady.com>.
21985         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21986         semaphores.
21987         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21988         (atomic_int_semaphore): New macro.
21990 2017-02-28  Bruno Haible  <bruno@clisp.org>
21992         perror tests: Tweak for z/OS.
21993         Reported by Daniel Richard G. <skunk@iskunk.org>.
21994         * tests/test-perror.sh: Don't fail z/OS style perror output.
21996 2017-02-26  Bruno Haible  <bruno@clisp.org>
21998         nproc: Refactor large function.
21999         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
22000         from num_processors.
22001         (num_processors): In this function, only deal with OMP.
22003 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22005         nproc: adjust handling of OpenMP environment variables
22006         to match the return value from omp_get_num_threads(), i.e.:
22007          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
22008          - Treat 0 as an invalid value and ignore
22009         Also remove the call to omp_get_num_threads() because
22010         it's ineffective without the omp pragmas in place.
22011         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
22012         so that it can be ignored.
22013         (num_processors): Honor OMP_THREAD_LIMIT even without
22014         OMP_NUM_THREADS being set.  Also fix a typo in the environment
22015         variable being checked, from the previous recent commit.
22017 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22019         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
22020         * lib/nproc.c (parse_omp_threads): A new function refactored
22021         from num_processors() to support parsing both of the
22022         above environment variables.
22023         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
22024         to accurately reflect the current OpenMP nesting level.
22025         Also support the OMP_THREAD_LIMIT environment variable
22026         to limit the max value determined from OMP_NUM_THREADS.
22027         * modules/nproc: Depend on minmax header.
22028         Suggested by Oliver Heimlich.
22030 2017-02-25  Bruno Haible  <bruno@clisp.org>
22032         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
22033         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
22035 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22037         ftoastr: port to -Wdouble-promotion
22038         Work around -Wdouble-promotion false alarm in recent GCCs.
22039         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
22040         (ftoastr_snprintf, FTOASTR): Use it.
22042 2017-02-21  Bruno Haible  <bruno@clisp.org>
22044         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
22045         Reported by Rene Saavedra <rennes@openmailbox.org> in
22046         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
22047         * lib/glthread/lock.h: On glibc systems without
22048         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
22049         implementation of rwlocks.
22050         * lib/glthread/lock.c: Likewise.
22052 2017-02-20  Bruno Haible  <bruno@clisp.org>
22054         lock tests: Fix build failure on z/OS.
22055         Reported by Daniel Richard G. <skunk@iskunk.org>.
22056         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
22057         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
22058         exist.
22060 2017-02-19  Bruno Haible  <bruno@clisp.org>
22062         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
22063         This helps when CC=clang.
22064         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
22065         of /usr/bin/gcc.
22067         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
22068         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
22070 2017-02-19  Bruno Haible  <bruno@clisp.org>
22072         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
22073         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
22074         --with-tests --single-configure is specified.
22076 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22078         users.txt: Update links, use HTTPS where possible
22079         * users.txt: Updated to HTTPS where possible,
22080         fixed some links to new locations.
22082 2017-02-16  Bruno Haible  <bruno@clisp.org>
22084         xbinary-io: Fix inlining.
22085         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
22087 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22089         xbinary-io: rename from xsetmode
22090         This patch is taken from suggestions by Bruno Haible in:
22091         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
22092         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
22093         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
22094         not ENOTTY, when it is an inappropriate device.
22095         * lib/binary-io.h (SET_BINARY): Resurrect.
22096         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
22097         (xset_binary_mode_error): Rename from xsetmode_error.
22098         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
22099         (xset_binary_mode): Rename from xsetmode.
22100         All uses changed.
22101         * modules/xbinary-io: Rename from modules/xsetmode.
22102         Update file names.
22103         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
22104         * NEWS: Update to match revised behavior.
22106 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22108         tests: Adjust to recent SET_BINARY change
22109         * tests/test-binary-io.c (main):
22110         * tests/test-binary-io.sh: Remove test for SET_BINARY.
22111         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
22112         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
22113         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
22115         xsetmode: new module
22116         This is to fix a problem noted by Eric Blake.
22117         Code was using xfreopen to change files to binary mode, but this
22118         fails for stdout when in append mode.  Such code should use
22119         xsetmode instead.
22120         * NEWS: Document incompatible changes to binary-io module.
22121         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
22122         New function.
22123         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
22124         (set_binary_mode): New function, which also checks for tty.
22125         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
22127 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22129         headers: fix begin-end typos
22130         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
22131         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
22133         selinux-h: port to PGI 16.10
22134         * lib/se-selinux.in.h: Don't assume that include_next skips over
22135         duplicate -I DIR options.
22137         argp: port to PGI 16.10
22138         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
22140 2017-02-13  Darshit Shah  <darnir@gnu.org>
22142         unicase: Update function protoype to match definition.
22143         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
22144         uses 'size_t' as the datatype for the 'len' parameter in the functions
22145         it generates. Update the prototype specified here to match the newly
22146         generated function.
22148 2017-02-12  Bruno Haible  <bruno@clisp.org>
22150         times test: Avoid gcc warnings on Linux/x32.
22151         * tests/test-times.c (main): Really cast printf arguments from clock_t
22152         to 'long int'.
22154 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22156         glob: port better to emscripten
22157         Problem reported by Bruno Haible in:
22158         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
22159         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
22161 2017-02-11  Bruno Haible  <bruno@clisp.org>
22163         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
22164         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
22165         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
22166         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
22167         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
22168         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
22169         Distinguish hppa64 from hppa.
22171 2017-02-10  Bruno Haible  <bruno@clisp.org>
22173         search: Don't assume that tsearch() exists if 'VISIT' is defined.
22174         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
22175         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
22176         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
22178 2017-02-09  Bruno Haible  <bruno@clisp.org>
22180         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
22181         * doc/gnulib.texi (Libtool and Windows): Recommend
22182         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
22183         Reported by Reuben Thomas <rrt@sc3d.org>.
22185 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22187         stddef-tests: port to SIZE_MAX <= INT_MAX
22188         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
22189         Do not assume that INT_MAX < SIZE_MAX.
22191 2017-02-01  Bruno Haible  <bruno@clisp.org>
22193         lock tests: Fix link error.
22194         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
22195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22197 2017-01-31  Bruno Haible  <bruno@clisp.org>
22199         lock: Fix link error (regression from 2017-01-05).
22200         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
22201         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
22202         pthread_rwlockattr_destroy weak.
22203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22205 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22207         Port to PGI 16.10 x86-64
22208         This patch fixes one real bug in gl_anylinked_list2.h, along with
22209         some minor glitches that are not bugs.  It does not silence PGI’s
22210         thousands of bogus warnings when compiling test-intprops.c.
22211         Fortunately, the warnings do not cause a failure.
22212         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
22213         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
22214         My goodness, PGI goes back a long ways - this predates C89!
22215         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
22216         For example, ASYNCSAFE (const void *) should expand to
22217         ‘const void *volatile’, not to ‘volatile const void *’.
22218         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
22219         * lib/verify.h (verify) [!__GNUC__]:
22220         Use shorter albeit meaningless string to bypass silly compiler limits.
22221         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
22222         * tests/nan.h (NaNf, NaNd, NaNl):
22223         Use static functions to avoid misguided compiler diagnostics.
22224         Is there some reason we don’t use static functions on all platforms?
22226 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22228         parse-datetime: handle timezones reentrantly
22229         This API change was prompted by a report by Pádraig Brady in:
22230         https://bug.debian.org/851934#10
22231         To help fix the bug, make parse_datetime2 more reentrant.
22232         * NEWS: Document this incompatible change.
22233         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
22234         Add two arguments, the timezone and the timezone name.
22235         All callers changed.  If TZ="..." is specified, use it for
22236         calculating defaults.
22237         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
22238         this code should be usable in a library.
22239         (mktime_ok, get_effective_timezone):
22240         Accept timezone arg too.  All callers changed.
22241         (get_tz): Remove.
22242         (get_effective_timezone): Check for failures.
22244 2017-01-20  Eric Blake  <eblake@redhat.com>
22246         localename: port to cygwin 2.6
22247         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
22248         Cygwin.
22249         * modules/localename (Depends-on): Add extensions, since
22250         NL_LOCALE_NAME() is not visible without it.
22252 2017-01-17  Pádraig Brady  <P@draigBrady.com>
22254         parse-datetime: fix dependence on AC_PROG_SED
22255         * modules/parse-datetime: Use `sed` directly like all other modules.
22256         Reported by J William Piggott
22258 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22260         intprops: update doc URLs
22261         * doc/intprops.texi (Integer Range Overflow): Update URLs.
22263 2017-01-16  Bruno Haible  <bruno@clisp.org>
22265         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
22266         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
22267         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
22268         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
22269         distinguish s390 and s390x.
22270         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
22271         * NEWS: Mention the change regarding 'armel'.
22273 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22275         localeinfo: case_folded_counterparts and WEOF
22276         * NEWS: Document this.
22277         * lib/localeinfo.c (case_folded_counterparts):
22278         First arg is now wint_t, not wchar_t.  This generalizes the
22279         function to also work on WEOF, where it returns 0.
22281         dfa: port to gcc -fsanitize=undefined
22282         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
22283         as this runs afoul of gcc -fsanitize=undefined.
22285 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
22287         strftime: %z is -00 if unknown
22288         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
22289         the caller's responsibility to set 'negative_number'.  All uses changed.
22290         (__strftime_internal): Put '-' before a zero UTC offset if the time
22291         zone abbreviation starts with "-", which is the recently-introduced
22292         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
22293         * tests/test-strftime.c: Test for this.
22295 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22297         dfa: port to older GCC
22298         Problem reported by Assaf Gordon in:
22299         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
22300         * modules/c99: New module.  This merely attempts to use the latest
22301         C version, which should be enough to solve this particular problem.
22302         The idea is to document which Gnulib modules assume C99 or later.
22303         * modules/dfa (Depends-on): Add it.
22305 2017-01-10  Bruno Haible  <bruno@clisp.org>
22307         Update DEPENDENCIES.
22308         * DEPENDENCIES: List only https URLs. Update recommended version for
22309         autoconf, automake, gperf.
22311 2017-01-10  Jim Meyering  <meyering@fb.com>
22313         maint.mk: enforce spelling of "timestamp" (i.e., no space)
22314         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22315         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
22317 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22319         dfa: minor simplification with emptyset
22320         * lib/dfa.c (build_state): Simplify by using emptyset.
22322 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22324         dfa: shrink constraints from 4 bits to 3
22325         * lib/dfa.c (newline_constraint, letter_constraint)
22326         (other_constraint, prev_newline_dependent)
22327         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
22328         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
22329         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
22330         Constraints need only 3 bits, not 4.  Using smaller integers
22331         shrinks the code a bit and makes grep a tad faster on x86-64.
22333         dfa: omit unnecessary ptrdiff_t check
22334         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
22335         overflow, since xnmalloc does that now.
22337         dfa: omit unnecessary allocation
22338         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
22339         an all-zero follow set works just fine.
22341         dfa: omit unused local
22342         * lib/dfa.c (build_state): Fix up recent change.
22344         maint: remove stray .texi files
22345         Although these were superseded by other files like
22346         doc/posix-functions/ctime.texi, the old files were not removed.
22347         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
22349 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22351         getprogname: fix port to IRIX
22352         * lib/getprogname.c (getprogname) [__sgi]:
22353         Don't dump core if malloc returns NULL.
22355         dfa: fix reallocation bug when matching newlines
22356         Problem reported for sed by S. Gilles (Bug#25390).
22357         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
22358         (dfastate): Reallocate before moving any newline transition ...
22359         (build_state): ... instead of reallocating here, where it is too late.
22361 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22363         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
22364         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
22366 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22368         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
22369         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
22371 2017-01-07  Bruno Haible  <bruno@clisp.org>
22373         stdioext: Port to Minix 3.2 and newer.
22374         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
22375         * lib/fseeko.c (fseeko): Likewise.
22376         Reported by Nelson Beebe via Paul Eggert.
22378 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22380         getprogname: port to IRIX
22381         * lib/getprogname.c (getprogname): Port to IRIX.
22382         Based on an idea by Bastien Roucariès at:
22383         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22384         via code from Bruno Haible at:
22385         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22387         localename-tests: port to NetBSD 7
22388         Problem reported by Nelson H. F. Beebe.
22389         * tests/test-localename.c:
22390         Test newlocale and uselocale only if both exist.
22392         glob, intprops, xalloc: work around Clang bug
22393         Work around LLVM bug 16404, which is still not fixed.
22394         https://llvm.org/bugs/show_bug.cgi?id=16404
22395         Problem reported by Nelson H. F. Beebe.
22396         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22397         Remove.
22398         * lib/glob.c (size_add_wrapv):
22399         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22400         * lib/xalloc-oversized.h (xalloc_oversized):
22401         Do not use overflow builtins if Clang.
22403         dfa: fix 'return' typo
22404         Problem reported by Nelson H. F. Beebe.
22405         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22407 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22409         parse-datetime: fix generated paths for coverage files
22410         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22411         within parse-datetime.c, so that gcc generates appropriate .gcno
22412         files, allowing lcov to proceed without error.  Previously it
22413         would error trying to find "lib/lib/parse-datetime.y".
22415 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22417         maint.mk: support parallel execution of coverage
22418         * top/maint.mk (coverage): Run dependencies serially,
22419         thus supporting parallel processing of each one,
22420         particularly build-coverage, which builds and runs tests.
22422 2017-01-05  Bruno Haible  <bruno@clisp.org>
22424         lock tests: Prefer semaphore over mutex.
22425         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22426         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22427         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22428         Suggested by Torvald Riegel <triegel@redhat.com>.
22430 2017-01-05  Bruno Haible  <bruno@clisp.org>
22432         lock: Provide guarantee to avoid writer starvation for rwlocks.
22433         The rationale is: 1) Read-preferring read-write locks are prone to
22434         writer starvation if the number of reader threads multiplied by the
22435         percentage of time they have the lock held is too high. 2) Write-
22436         preferring read-write locks are the only reliable way to avoid this.
22437         3) There have been reports of 'test-lock' hanging on glibc systems
22438         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22439         and glibc indeed implements read-preferring rwlocks by default, see
22440         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22441         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22442         * m4/pthread_rwlock_rdlock.m4: New file.
22443         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22444         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22445         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22446         of rwlock initialization on glibc systems without
22447         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22448         of rwlocks altogether on non-glibc systems without
22449         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22450         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22451         * lib/glthread/lock.c [USE_POSIX_THREADS]
22452         (glthread_rwlock_init_for_glibc): New function.
22453         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22454         comment.
22455         [USE_PTH_THREADS]: New implementation of rwlocks.
22456         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22457         readers.
22458         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22459         (Depends-on): Add 'extensions'.
22460         * tests/test-rwlock1.c: New file.
22461         * lock-tests (Files): Add it.
22462         (Depends-on): Add usleep.
22463         (Makefile.am): Add test-rwlock1 to the tests.
22465 2017-01-05  Bruno Haible  <bruno@clisp.org>
22467         thread: Fix pth port.
22468         * lib/glthread/thread.h (pth_init): Declare weak.
22469         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22470         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22471         function.
22473 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22475         parse-datetime: fix debug message on lone year number
22476         Input dates such as
22477           date -d "Apr 11 22:59:00 2011"
22478         are parsed as date (Apr 11, with default year 2016), then time, then a
22479         number (2011). Based on the combination of previously seen tokens,
22480         'digits_to_date_time' determines 2011 to be a year value.
22481         This fixes the debug messages to correctly show the updated year.
22482         Before:
22483             $ date --debug -d 'Apr 11 22:59:00 2011'
22484             date: parsed date part: (Y-M-D) 2016-04-11
22485             date: parsed time part: 22:59:00
22486             date: parsed number part: today/this/now
22487         After:
22488             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22489             date: parsed date part: (Y-M-D) 2016-04-11
22490             date: parsed time part: 22:59:00
22491             date: parsed number part: year: 2011
22492         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22493         'debug_year_seen' member fields.
22494         (digits_to_date_time): Update 'year_seen' as needed.
22495         (debug_print_current_time): Inform about year updates.
22496         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22498         parse-datetime: fix local timezone debug messages
22499         "Local timezones" are strings that affect only DST relative to the
22500         default timezone. The debug messages in parse-datetime.y printed
22501         wrong information when encountering local timezones.
22502         Examples:
22503         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22504              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22505              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22506         When the default timezone relates to the zone strings, EET/EEST are
22507         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22508         value (0/1, respectively):
22509              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22510              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22511         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22512         was seen, inform about DST change, don't print actual timezone.
22513         (debug_strfdatetime): If local timezone was seen, use default timezone
22514         (and adjust as needed) instead of using incorrect timezone.
22515         (parse_datetime2): Use correct time-zone source string, and adjust
22516         default timezone as needed.
22518         parse-datetime: add debug warning about DST changes
22519         Incorrect date arithmetic due to daylight saving time (DST) are a
22520         common (false) bug report in coreutils.
22521         Detect two such cases and print a warning:
22522         1. year/month/day adjustments (performed on 'struct tm'),
22523            where 'mktime' returns a different isdst value.
22524         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22525            where the result of 'localtime(3)' on the value will return a
22526            different isdst value.
22527         Note: DST changes could be harmless or unnoticeable.
22528         Examples (with 'TZ=America/New_York'):
22529         Unnoticeable: result is 2016-Dec-14
22530            $ date -d '2016-06-15 EDT + 6 months' +%b
22531            Dec
22532         Unnoticeable: result is 2016-Dec-15 11:00:00
22533            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22534            2016-12-15
22535         This is unexpected:
22536            $ date -d '2016-06-01 EDT + 6 months' +%F
22537            2016-11-30
22538         The new debug warnings will show:
22539            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22540            ...
22541            date: warning: daylight saving time changed after date adjustment
22542            ...
22543         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22544         print an appropriate warning message.
22546         parse-datetime: add debug warning about date arithmetic
22547         Date arithmetic are done directly on the fields of 'struct tm',
22548         which can result in invalid dates. Normalization with 'mktime(3)'
22549         will then produce a different date - which might cause unexpected
22550         results.
22551         Examples:
22552           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22553           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22554         Note that date normalization is not inherently wrong and not rejected,
22555         as it has legitimate uses:
22556           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22557         If the user asked to adjust months but 'mday' changed,
22558         or user asked to adjust years but 'month' changed - warn about it.
22559             $ ./src/date --debug -d '2016-10-31 - 1 month'
22560             ...
22561             date: warning: when adding relative months/years, \
22562                            it is recommended to specify the 15th of the month
22563             ...
22564             date: warning: month/year adjustment resulted in shifted dates:
22565             date:      adjusted Y M D: 2016 09 31
22566             date:    normalized Y M D: 2010 10 01
22567             ...
22568         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22569         a warning message. Improve recommendation of when to use 15 of the
22570         month or noon for date arithmetic.
22572         parse-datetime: fix debug message of relative part after timezone
22573         Relative part (e.g '+8 days') after a timezone string was not
22574         reported (was only reported after a timezone number). Due to the
22575         parser's structure, timezone strings with numbers were handled
22576         separately.
22577         before:
22578              # Timezone number + relative part: OK
22579              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22580              ...
22581              date: parsed relative part: -8 day(s)
22582              # Timezone string + relative part: missing
22583              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22584              [ missing message ]
22585         After: messages are printed in both cases.
22586         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22588         parse-datetime: fix incorrect debug message on lone number
22589         A lone number is an absolute value, not a relative time part.
22590         before:
22591            $ date --debug -d '20130101'
22592            date: parsed number part: today/this/now
22593         After:
22594            $ ./src/date --debug -d '20130101'
22595            date: parsed number part: (Y-M-D) 2013-01-01
22596         * lib/parse-datetime.y ('item'/'number' tokens): Call
22597         'debug_print_current_time' instead of 'debug_print_relative_time'.
22599 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22601         doc: modernize for C11 etc.
22602         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22603         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22604         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22606         dfa: prefer functions to FETCH_WC macro
22607         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22608         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22609         wint_t result into DFA->lex.wctok instead of to a separate arg.
22610         All callers changed.  Move more local decls closer to where
22611         they're used.
22613         dfa: narrow more local var scopes
22614         * lib/dfa.c: Move more local decls to be more local.
22616         dfa: remove duplicate assignment
22617         Problem reported by Bruno Haible in:
22618         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22619         * lib/dfa.c (parse_bracket_exp): Simplify.
22621 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22623         dfa: simplify constraint-dependency checking
22624         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22625         (prev_other_constraint): Remove.
22626         (prev_newline_dependent, prev_letter_dependent):
22627         Simplify, to avoid an unnecessary bitwise AND operation.
22629         dfa: prefer functions and constants to macros
22630         * lib/dfa.c: Prefer constants to macros where either will do.
22631         (streq, isasciidigit, newline_constraint)
22632         (letter_constraint, other_constraint, succeeds_in_context)
22633         (prev_newline_constraint, prev_letter_constraint)
22634         (prev_other_constraint, prev_newline_dependent)
22635         (prev_letter_dependent, accepting, accepts_in_context):
22636         Now static functions instead of function-like macros.
22637         Use lower-case names accordingly.  All uses changed.
22639         dfa: narrow more local var scopes
22640         * lib/dfa.c: Move some more local decls down to nearer where
22641         they're needed.
22643 2016-12-31  Jim Meyering  <meyering@fb.com>
22645         dfa: narrow the scope of many local variables
22646         * lib/dfa.c: Now that we are no longer constrained to c89, move
22647         declarations of many variables (often indices) "down" into the
22648         scope(s) where used or to the point of definition.  This is a
22649         no-semantic-change diff.
22651 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22653         version-etc: new year
22654         * build-aux/gendocs.sh (version):
22655         * doc/gendocs_template:
22656         * doc/gendocs_template_min:
22657         * doc/gnulib.texi:
22658         * lib/version-etc.c (COPYRIGHT_YEAR):
22659         Update copyright dates by hand in templates and the like.
22660         * all files: Run 'make update-copyright'.
22662 2016-12-31  Eric Blake  <eblake@redhat.com>
22664         do-release-commit-and-tag: avoid shell syntax error
22665         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22666         contain spaces when rebasing.
22668         maint.mk: hoist gnulib_dir definition earlier
22669         * top/maint.mk (gnulib_dir): Move near top of file.
22671 2016-12-31  Jim Meyering  <meyering@fb.com>
22673         maint.mk: do not always evaluate intprops-related shell
22674         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22675         using gnulib_dir undefined (gnulib_dir is defined later in the
22676         file, which will be fixed separately), and besides, there is no
22677         need to incur the cost of this shell invocation for every single
22678         use of this .mk file.  Reported by Eric Blake in
22679         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22681 2016-12-30  Jim Meyering  <meyering@fb.com>
22683         maint.mk: improve sc_prohibit_intprops_without_use
22684         * top/maint.mk (_intprops_names): Don't hard-code the list of
22685         symbol names.  Instead, derive it on the fly.
22687 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22689         dfa: shorten sbit, success
22690         * lib/dfa.c (struct regex_syntax.sbit):
22691         (struct dfa.success): Use char, not int, for array elements, since
22692         they are all in the range 0..7.
22694         dfa: simplify multibyte_prop etc.
22695         This follows up on a change made when dfa.c was in grep, namely grep
22696         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22697         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22698         That earlier simplification allows for some more simplification
22699         and trimming down here.
22700         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22701         (struct lexer_state): New mamber brack.
22702         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22703         since they must be in the range 0..3 now.
22704         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22705         the brack member now supersedes them.
22706         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22707         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22708         (dfaparse): Remove unnecessary initializations of already-0 storage.
22709         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22710         (dfassbuild): No need to clear sup->mbcsets.
22712         dfa: minor performance tweak
22713         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22715         dfa: wrap charclass inside a struct
22716         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22717         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22718         about 5% faster, where list.txt is generated by 'aspell dump
22719         master | head -n 100000 >list.txt'.  See Bug#22239.
22720         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22721         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22722         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22723         Adjust to this, e.g., by using charclass * rather than charclass.
22724         All callers changed as needed.
22725         (copyset): Remove.  All uses changed to simple assignment.
22726         (parse_bracket_exp): Use zeroset instead of memset.
22728 2016-12-30  Jim Meyering  <meyering@fb.com>
22730         maint.mk: update list of intprops.h symbol names
22731         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22732         This avoids a false failure of the sc_prohibit_intprops_without_use
22733         rule in grep.
22735 2016-12-29  Eric Blake  <eblake@redhat.com>
22737         getopt: fix parallel test failure
22738         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22739         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22740         * tests/test-getopt-main.h (main): Use different file names
22741         in case test-getopt-gnu and test-getopt-posix run in parallel.
22743 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22745         xalloc: x2nrealloc check for ptrdiff_t overflow
22746         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22747         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22749 2016-12-24  Bruno Haible  <bruno@clisp.org>
22751         lock test: Fix performance problem on multi-core machines.
22752         * tests/test-lock.c (USE_VOLATILE): New macro.
22753         (struct atomic_int): New type.
22754         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22755         functions.
22756         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22757         as 'struct atomic_int'.
22758         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22759         reclock_checker_thread, test_recursive_lock): Use the new functions.
22760         Reported by Eric Blake in
22761         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22762         and by Pádraig Brady in
22763         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22765 2016-12-19  Bruno Haible  <bruno@clisp.org>
22767         vma-iter: Fix endless loop on 64-bit Windows.
22768         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22769         'unsigned long'.
22771 2016-12-19  Bruno Haible  <bruno@clisp.org>
22773         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22774         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22775         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22776         Invoke gt_TYPE_WINT_T instead.
22777         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22778         * modules/stdint (Files): Add m4/wint_t.m4.
22779         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22780         * modules/wctype-h (Makefile.am): Likewise.
22781         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22782         not only on MSVC.
22783         * lib/wctype.in.h (wint_t): Likewise.
22785 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22787         getopt-posix-tests: fix Makefile typo
22788         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22789         Fix typo: the last ‘_’ was missing in the name.
22790         I suspect that the typo explains this build failure:
22791         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22792         although I can’t reproduce the problem on Solaris 10 sparc.
22794 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22796         dfa: improve worst-case 'replace' performance
22797         See my note in Bug#22357#71.
22798         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
22799         (merge_constrained): New function, which is like
22800         the old 'merge' function, except with a new argument C2.
22801         Simplify the body by avoiding the need for different sections
22802         of code depending on whether one input is exhausted.
22803         (merge): Use the new function.
22804         (delete): Return the constraint of the deleted position,
22805         not the entire position.  Caller changed.
22806         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
22808 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22810         dfa: performance improvement for removal of epsilon closure
22811         See Bug#22357#32.
22812         * lib/dfa.c (delete): Use binary search to find deleted index.
22813         (replace): New function.  It replaces a position with the followed set.
22814         (epsclosure): Replace it with a new algorithm.  Update caller.
22816 2016-12-18  Bruno Haible  <bruno@clisp.org>
22818         Split tests for getopt-posix and getopt-gnu.
22819         * tests/test-getopt-posix.c: New file.
22820         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22821         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22822         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22823         GNULIB_TEST_GETOPT_GNU.
22824         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22825         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22826         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22827         * modules/getopt-gnu-tests: New file.
22828         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22830 2016-12-18  Bruno Haible  <bruno@clisp.org>
22832         posix-modules: Add options for specific platforms.
22833         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22834         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22835         Invoke func_tmpdir. Filter out the excludes.
22837 2016-12-18  Bruno Haible  <bruno@clisp.org>
22839         getopt: Fix link error for users of getopt() in <unistd.h>.
22840         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22841         __need_getopt is defined. Undefine all macros before defining them.
22842         * modules/getopt (Include): Clarify that including <unistd.h> is also
22843         OK.
22844         * tests/test-getopt.c: Add comment.
22846 2016-12-17  Bruno Haible  <bruno@clisp.org>
22848         getaddrinfo tests: Avoid compilation error on MSVC.
22849         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22850         getaddrinfo on native Windows.
22852 2016-12-17  Bruno Haible  <bruno@clisp.org>
22854         getlogin, getlogin_r: Fix link errors on MSVC.
22855         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22856         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22857         (Link): New section.
22858         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22859         (configure.ac): Require gl_LIB_GETLOGIN.
22860         (Link): New section.
22861         * NEWS: Mention the new link requirements.
22862         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22863         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22865 2016-12-17  Bruno Haible  <bruno@clisp.org>
22867         Un-deprecate the 'progname' module.
22868         * NEWS: Describe the appropriate use-cases of 'progname' versus
22869         'getprogname'. Based on discussion summary at
22870         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22872 2016-12-17  Bruno Haible  <bruno@clisp.org>
22874         Reorganize NEWS a bit.
22875         * NEWS: Move some not so important changes away from section
22876         "Important Notes".
22878 2016-12-17  Bruno Haible  <bruno@clisp.org>
22880         tanhf: Avoid redefinition error on MSVC.
22881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22882         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22883         may be defined as an inline function.
22884         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22885         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22887 2016-12-17  Bruno Haible  <bruno@clisp.org>
22889         tanf: Avoid redefinition error on MSVC.
22890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22891         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22892         may be defined as an inline function.
22893         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22894         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22896 2016-12-17  Bruno Haible  <bruno@clisp.org>
22898         sqrtf: Avoid redefinition error on MSVC.
22899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22900         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22901         may be defined as an inline function.
22902         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22903         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22905 2016-12-17  Bruno Haible  <bruno@clisp.org>
22907         sinhf: Avoid redefinition error on MSVC.
22908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22909         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22910         may be defined as an inline function.
22911         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22912         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22914 2016-12-17  Bruno Haible  <bruno@clisp.org>
22916         sinf: Avoid redefinition error on MSVC.
22917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22918         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22919         may be defined as an inline function.
22920         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22921         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22923 2016-12-17  Bruno Haible  <bruno@clisp.org>
22925         logf: Avoid redefinition error on MSVC.
22926         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22927         may be defined as an inline function.
22929 2016-12-17  Bruno Haible  <bruno@clisp.org>
22931         log10l: Avoid redefinition error on MSVC.
22932         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22933         may be defined as an inline function.
22935 2016-12-17  Bruno Haible  <bruno@clisp.org>
22937         log10f: Avoid redefinition error on MSVC.
22938         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22939         may be defined as an inline function.
22941 2016-12-17  Bruno Haible  <bruno@clisp.org>
22943         hypotl: Avoid redefinition error on MSVC.
22944         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22945         may be defined as an inline function.
22947 2016-12-17  Bruno Haible  <bruno@clisp.org>
22949         hypotf: Avoid redefinition error on MSVC.
22950         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22951         may be defined as an inline function.
22953 2016-12-17  Bruno Haible  <bruno@clisp.org>
22955         fmodl: Avoid redefinition error on MSVC.
22956         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22957         may be defined as an inline function.
22959 2016-12-17  Bruno Haible  <bruno@clisp.org>
22961         fmodf: Avoid redefinition error on MSVC.
22962         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22963         may be defined as an inline function.
22965 2016-12-17  Bruno Haible  <bruno@clisp.org>
22967         expf: Avoid redefinition error on MSVC.
22968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22969         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22970         may be defined as an inline function.
22971         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22972         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22974 2016-12-17  Bruno Haible  <bruno@clisp.org>
22976         coshf: Avoid redefinition error on MSVC.
22977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22978         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22979         may be defined as an inline function.
22980         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22981         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22983 2016-12-17  Bruno Haible  <bruno@clisp.org>
22985         cosf: Avoid redefinition error on MSVC.
22986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22987         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22988         may be defined as an inline function.
22989         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22990         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22992 2016-12-17  Bruno Haible  <bruno@clisp.org>
22994         atan2f: Avoid redefinition error on MSVC.
22995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22996         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22997         may be defined as an inline function.
22998         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22999         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
23001 2016-12-17  Bruno Haible  <bruno@clisp.org>
23003         atanf: Avoid redefinition error on MSVC.
23004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
23005         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
23006         may be defined as an inline function.
23007         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
23008         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
23010 2016-12-17  Bruno Haible  <bruno@clisp.org>
23012         asinf: Avoid redefinition error on MSVC.
23013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
23014         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
23015         may be defined as an inline function.
23016         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
23017         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
23019 2016-12-17  Bruno Haible  <bruno@clisp.org>
23021         acosf: Avoid redefinition error on MSVC.
23022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
23023         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
23024         may be defined as an inline function.
23025         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
23026         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
23028 2016-12-17  Bruno Haible  <bruno@clisp.org>
23030         Avoid redefinition errors on MSVC.
23031         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
23032         the function may be defined as an inline function.
23033         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
23034         the function may be defined as an inline function.
23036 2016-12-17  Bruno Haible  <bruno@clisp.org>
23038         Avoid redefinition errors on MSVC.
23039         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
23040         * lib/unistd.in.h: Include <stdio.h> when necessary.
23042 2016-12-17  Bruno Haible  <bruno@clisp.org>
23044         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
23045         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
23046         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
23047         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
23048         WINT_MAX.
23050 2016-12-17  Bruno Haible  <bruno@clisp.org>
23052         Avoid autoconf warning.
23053         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
23054         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
23056 2016-12-17  Bruno Haible  <bruno@clisp.org>
23058         fpending: Revert workaround against Emacs bug.
23059         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
23060         The Emacs bug is fixed by Eli Zaretskii in
23061         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
23063 2016-12-17  Bruno Haible  <bruno@clisp.org>
23065         getlogin_r tests: Port to mingw.
23066         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
23067         regression introduced on 2014-05-19.
23069 2016-12-17  Bruno Haible  <bruno@clisp.org>
23071         getlogin: Port to newer mingw.
23072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
23073         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
23074         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
23075         HAVE_GETLOGIN.
23076         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
23077         HAVE_GETLOGIN.
23078         * doc/posix-functions/getlogin.texi: Mention the issue.
23079         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
23080         regression introduced on 2014-05-14.
23082 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23084         builtin-expect: improve port to IBM XL C
23085         Problem reported for z/OS by Daniel Richard G. in:
23086         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
23087         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23088         Test for <builtins.h> directly.
23090         builtin-expect: port to IBM XL C
23091         Problem reported for z/OS by Daniel Richard G. in:
23092         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
23093         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23094         Also allow __builtin_expect defined via a standard include file.
23096         regex: fix dependency
23097         Problem reported by Bruno Haible in:
23098         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
23099         * modules/regex: Depend on builtin-expect.
23101         builtin-expect: new module
23102         Fix fnmatch to use it.
23103         Problem reported for z/OS by Daniel Richard G.
23104         * lib/fnmatch.c (__builtin_expect):
23105         * lib/glob.c (__builtin_expect):
23106         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
23107         * lib/memmem.c (__builtin_expect) [!_LIBC]:
23108         * lib/scandir.c (__builtin_expect):
23109         * lib/strstr.c (__builtin_expect) [!_LIBC]:
23110         Remove macro; config.h now does this.
23111         * lib/gl_anytreehash_list1.h (add_to_bucket):
23112         * lib/regex_internal.h (BE):
23113         Assume __builtin_expect.
23114         * m4/builtin-expect.m4, modules/builtin-expect: New files.
23115         * modules/avltreehash-list, modules/fnmatch, modules/glob:
23116         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
23117         * modules/scandir, modules/strstr-simple:
23118         Depend on builtin-expect.
23120 2016-12-15  Bruno Haible  <bruno@clisp.org>
23122         init.sh: Add possibility to not delete temporary files.
23123         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
23124         to yes, don't erase the temporary directory.
23126 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23128         regex: fix integer-overflow bug in never-used code
23129         Problem reported by Clément Pit–Claudel in:
23130         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
23131         * lib/regex_internal.h: Include intprops.h.
23132         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
23133         behavior on integer overflow.
23134         * modules/regex (Depends-on): Add intprops.
23136         fpending: fix port to MinGW on Emacs
23137         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
23138         Problem reported by Eli Zaretskii in:
23139         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
23140         Is Plan 9 still a valid porting target, anyway?
23142 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23144         safe-alloc: use xalloc-oversized
23145         * lib/safe-alloc.c: Include xalloc-oversized.h.
23146         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
23147         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
23149         xalloc: do not exceed PTRDIFF_MAX
23150         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
23151         xalloc_oversized check, since objects larger than PTRDIFF_MAX
23152         bytes have pointer-subtraction problems.
23154         malloca: do not exceed PTRDIFF_MAX
23155         * lib/malloca.h: Include xalloc-oversized.
23156         (nmalloca): Use xalloc_oversized instead of rolling our own.
23157         * modules/malloca (Depends-on):
23158         * modules/relocatable-prog-wrapper (Depends-on):
23159         Add xalloc-oversized.
23161         quotearg: pacify GCC better
23162         * modules/quotearg (Depends-on): Add minmax, stdint.
23163         * lib/quotearg.c: Include minmax.h, stdint.h.
23164         (nslots): Now int, as there seems little point to going to extra
23165         work merely to support the INT_MAX slot, which nobody ever uses.
23166         (quotearg_n_options): Redo size-overflow checks to pacify GCC
23167         and to catch (mostly-theoretical) ptrdiff_t problems too.
23168         This can be done via one comparison.
23170 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
23172         xalloc-oversized: check for PTRDIFF_MAX too
23173         This avoids undefined behavior when subtracting pointers to
23174         objects containing more than PTRDIFF_MAX bytes.
23175         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
23176         Also return 1 if the result would exceed PTRDIFF_MAX>
23177         * modules/xalloc-oversized (Depends-on):
23178         Add stdint.
23180         dfa: fix glitches in previous commit
23181         Sorry, I don't know how I managed to commit the wrong version.
23182         * lib/dfa.c (MIN): Move up.
23183         (xpalloc): Now static.
23185         dfa: fix some unlikely integer overflows
23186         I found these while reviewing the recent Coverity-related fix.
23187         This patch changes part of dfa.c to prefer ptrdiff_t instead of
23188         size_t for object counts.  Using ptrdiff_t is the style typically
23189         used in Emacs; although it wastes a sign bit as sizes can never be
23190         negative, it makes -fsanitize=undefined more likely to catch
23191         integer overflows in index calculation, and nowadays the upside is
23192         typically more important than the downside.  Although perhaps the
23193         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
23194         of dfa.c already does, since it uses state_num which is signed),
23195         that is a bigger change and is not needed to fix the bugs I found.
23196         * lib/dfa.c: Include stdint.h and intprops.h.
23197         (TOKEN_MAX): New macro.
23198         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
23199         (charclass_index, parse_bracket_exp, addtok, insert, merge)
23200         (realloc_trans_if_necessary, free_mbdata):
23201         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
23202         This is safe because xpalloc checks that the sizes do not exceed
23203         either SIZE_MAX or PTRDIFF_MAX.
23204         (xpalloc): New function, mostly taken from Emacs.
23205         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
23206         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
23207         (charclass_index): Check for integer overflow in computing
23208         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
23209         added to it later.
23210         (alloc_position_set): Check for integer overflow.  On typical
23211         platforms this check has zero overhead, since the constant
23212         expression is false.
23213         (realloc_trans_if_necessary):
23214         Remove assertion, which I hope Coverity no longer needs.
23216         * modules/dfa (Depends-on): Add intprops, stdint.
23218 2016-12-12  Jim Meyering  <meyering@fb.com>
23220         dfa: add an assertion to avoid coverity false positive
23221         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
23222         warned that "newalloc1 - 2" could overflow.
23224 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
23226         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
23227         * dfa.h (DFA_CASE_FOLD): Remove.
23228         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
23230 2016-12-13  John W. Eaton  <gnu@jweaton.org>
23232         link: fix test to declare use of rename()
23233         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
23234         -Werror=implicit-function-declaration
23236 2016-12-12  Bruno Haible  <bruno@clisp.org>
23238         fpending: Port to native Windows with MSVC.
23239         * lib/fpending.c: Include stdio-impl.h.
23240         (__fpending): Include all known implementations. Err out if it's not
23241         ported.
23242         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
23243         * modules/fpending (Files): Add lib/stdio-impl.h.
23244         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
23246 2016-12-12  Bruno Haible  <bruno@clisp.org>
23248         stdioext: Port to native Windows with MSVC.
23249         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
23250         (struct _gl_real_FILE): New type.
23251         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
23252         Windows.
23253         * lib/fbufmode.c (fbufmode): Add code for native Windows.
23254         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
23255         other SystemV derived implementations.
23256         * lib/fpurge.c (fpurge): Likewise.
23257         * lib/freadable.c (freadable): Likewise.
23258         * lib/freadahead.c (freadahead): Likewise.
23259         * lib/freading.c (freading): Likewise.
23260         * lib/freadptr.c (freadptr): Likewise.
23261         * lib/freadseek.c (freadptrinc): Likewise.
23262         * lib/fseeko.c (fseeko): Likewise.
23263         * lib/fseterr.c (fseterr): Likewise.
23264         * lib/fwritable.c (fwritable): Likewise.
23265         * lib/fwriting.c (fwriting): Likewise.
23266         Reported by Gisle Vanem <gvanem@yahoo.no>.
23268 2016-12-11  Jim Meyering  <meyering@fb.com>
23270         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
23271         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
23272         to work with most shells, but not with the one provided by many
23273         Solaris 10 systems, so running configure with such a /bin/sh evokes
23274         e.g., "./configure: syntax error at line 33602: `(' unexpected".
23275         Reported by Assaf Gordon in
23276         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
23278 2016-12-10  Bruno Haible  <bruno@clisp.org>
23280         threadlib: Optimize out runtime test on Solaris >= 10.
23281         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
23282         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
23283         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
23285 2016-12-10  Bruno Haible  <bruno@clisp.org>
23287         stdint: Update doc about Solaris 9.
23288         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
23290 2016-12-09  Bruno Haible  <bruno@clisp.org>
23292         c-ctype tests: Fix link error on Solaris 9.
23293         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
23294         Reported at <https://savannah.gnu.org/bugs/?46827>.
23296 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23298         dfa: fix performance bug that recomputes trans
23299         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
23300         25 on-demand changes.  The bug caused build_state to reset all
23301         d->trans elements to -2 even when d->trans was already non-null.
23302         Use C99 style decls after statements in this function.
23304         same-inode: port to MinGW
23305         Here st_ino is always 0, so change the definition of SAME_INODE so
23306         that 1 means the two files are the same, 0 with st_ino != 0 means
23307         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
23308         reported by Bruno Haible (Bug#25146).
23309         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
23310         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
23312 2016-12-04  Bruno Haible  <bruno@clisp.org>
23314         javacomp-script: Support Java 7 and 8.
23315         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
23316         target-version 1.7, 1.8.
23318 2016-12-02  Daiki Ueno  <ueno@gnu.org>
23320         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
23321         GPLv2" rewriting.
23323 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
23325         * gnulib-tool (func_import): Adhere to the license guideline when
23326         rewriting the license text to "LGPLv3+ or GPLv2":
23327         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
23329 2016-12-02  Bruno Haible  <bruno@clisp.org>
23331         localcharset: Avoid theoretical buffer overrun.
23332         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
23333         return value from setlocale if it would lead to a buffer overrun.
23335 2016-12-01  Bruno Haible  <bruno@clisp.org>
23337         Relicense some modules under LGPLv2+.
23338         Kevin Cernekee's approval is in
23339         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
23340         * modules/fseterr (License): Change to LGPLv2+.
23341         * modules/mbchar (License): Likewise.
23342         * modules/mbiter (License): Likewise.
23343         * modules/mbsnlen (License): Likewise.
23344         * modules/wcwidth (License): Likewise.
23346 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23348         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
23349         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
23350         OS/2 kLIBC.
23352 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23354         alphasort, scandir: Port to OS/2 kLIBC
23355         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
23356         declaration.
23357         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
23359 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23361         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
23362         * lib/relocatable.c (relocate): Do not touch pathname if it is started
23363         with '/@unixroot'.
23365 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23367         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
23368         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
23369         OS/2 kLIBC unless TCPV40HDRS is defined.
23371 2016-11-29  Jim Meyering  <meyering@fb.com>
23373         dfa: avoid new infinite loop
23374         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
23375         * lib/dfa.c (dfastate): When constructing a new state table, we could
23376         initially declare that we had found a match, and later find that
23377         constraints eliminate that possibility, yet continue to use the
23378         now stale "matched" indicator.  That would lead to an infinite loop.
23379         The solution is to update "matched" when necessary.
23380         Introduced by commit v0.1-983-g403adf1.
23382 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23384         dfa: avoid match middle in multibyte character
23385         * lib/dfa.c (transit_state): If fails in matching single byte characters
23386         on a state including period expression in non-UTF8 multibyte locales,
23387         skip trailing bytes.
23388         (dfa_supported): Revert previous change.
23390 2016-11-27  Jim Meyering  <meyering@fb.com>
23392         dfa: avoid false match in non-UTF8 multibyte locales
23393         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23394         as "not supported" so that callers will resort to using regex-based
23395         matcher.  This will surely hurt performance, but correctness trumps
23396         performance here, and the affected locales are less and less relevant,
23397         these days.  See grep's bug report https://bugs.gnu.org/24975.
23399 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23401         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23402         * lib/ptsname_r.c: Include the appropriate headers.
23403         [__sun]: Delete sys/sysmacros.h include.
23404         [_AIX || __osf__]: Likewise.
23405         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23407 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23409         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23410         * lib/md4.c (md4_process_bytes): The existing define is made internal
23411         in recent versions of glibc, so also use this new public define.
23412         * lib/md5.c (md5_process_bytes): Likewise.
23413         * lib/sha1.c (sha1_process_bytes): Likewise.
23414         * lib/sha256.c (sha256_process_bytes): Likewise.
23415         * lib/sha512.c (sha512_process_bytes): Likewise.
23417 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23419         maint: use a more standard return from mbrtowc test
23420         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23421         from the test program as this often indicates an
23422         unhandled case in the test program.
23423         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23424         (gl_MBRTOWC_SANITYCHECK): Likewise.
23425         (gl_MBRTOWC_NULL_ARG2): Likewise.
23426         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23428 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23430         freopen: work around glibc bug with closed fd
23431         Work around glibc bug#15589, where freopen mishandles the case
23432         where stdin etc. are already closed.
23433         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23434         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23435         instead of __need_FILE, as the latter does not work with glibc.
23436         Include <fcntl.h>, for open flags.
23437         (rpl_freopen): Work around glibc bug.
23438         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23439         * modules/freopen (Depends-on): Add fcntl-h.
23440         * tests/test-freopen.c (main): Test for bug.
23442 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23444         fnmatch: fix typo introduced on 2016-08-17
23445         This fixes the port to non-GCC compilers that lack __builtin_expect.
23446         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23448         dfa: simplify with new function fillset
23449         * lib/dfa.c (fillset): New function.
23450         Use it for clarity when applicable.
23452         dfa: fix glitches with on-demand states
23453         Also, adjust commentary to better match new code.
23454         Some of these glitches predate the recent change.
23455         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23456         only non-initial states.
23457         (dfastate): Rename locals to better match new roles.
23458         Move them into nested scopes if this is easy.
23459         Omit unnecessary calls to zeroset.
23460         Simplify test for whether to throw in the positions of state 0.
23461         Omit C99-ism (decl after statement) since Gawk still wants C89.
23462         (build_state): Omit unnecessary test and assignment.
23463         Fix some confusion that counted transition tables inaccurately
23464         and could cause a memory leak.
23465         (dfaexec_main): Redo to make it clearer to the compiler that
23466         -1 and -2 are the only negative state numbers here.
23468 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23470         dfa: addition of new state on demand
23471         * src/dfa.c (dfastate): Add argument UC, the current input character.
23472         Fill only a group including the character in transition table.
23473         (realloc_trans_if_necessary): Add the dummy state which means that a
23474         transition table is assigned but the next state is not assigned.
23475         (build_state): Return the next state.  All callers updated.
23476         (transit_state_singlebyte): If we get the dummy state,
23477         fill the transition table.
23478         (dfaexec_main): Handle the dummy state.
23479         (free_mbdata, dfafree): Consider the dummy state.
23481 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23483         srclist: sync with released gettext
23484         * config/srclist.txt: Set "release" option to the files under
23485         $GETTEXT.
23487 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23489         srclist: add "release" option
23490         * config/srclist.txt: Change the format so that the first column
23491         of each line points to the top-level directory of the source
23492         archive.
23493         * config/srclist-update: Accept "release" option that checks files
23494         from the most recently tagged revision in the source archive.
23496 2016-11-21  Bruno Haible  <bruno@clisp.org>
23498         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23499         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23500         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23501         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23502         Inline and remove member function 'rpl ()' of the wrapper struct.
23504 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23506         dfa: fix logic typo
23507         Problem reported by Stephane Chazelas (Bug#24973).
23508         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23509         non-simple locales like fr_FR to be treated as simple.
23511 2016-11-20  Jim Meyering  <meyering@fb.com>
23513         fix test driver leaks: exclude, malloc, realloc
23514         * tests/test-exclude.c (main): Fix trivial leak.
23515         * tests/test-malloc-gnu.c (main): Likewise.
23516         * tests/test-realloc-gnu.c (main): Likewise.
23517         With these changes, grep's tests are now leak free.
23518         I.e., running them with ASAN elicits no failure:
23519           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23520             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23522 2016-11-11  Bruno Haible  <bruno@clisp.org>
23524         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23525         * modules/libunistring: (License): Change from LGPL to
23526         "LGPLv3+ or GPLv2".
23527         * modules/libunistring-optional: Likewise.
23528         * modules/unicase/*: Likewise.
23529         * modules/uniconv/*: Likewise.
23530         * modules/unictype/*: Likewise.
23531         * modules/unigbrk/*: Likewise.
23532         * modules/unilbrk/*: Likewise.
23533         * modules/uniname/*: Likewise.
23534         * modules/uninorm/*: Likewise.
23535         * modules/unistdio/*: Likewise.
23536         * modules/unistr/*: Likewise.
23537         * modules/uniwbrk/*: Likewise.
23538         * modules/uniwidth/*: Likewise.
23540 2016-11-12  Bruno Haible  <bruno@clisp.org>
23542         Relicense some modules under LGPLv2+.
23543         Paul Eggert's approval is in
23544         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23545         Eric Blake's approval is in
23546         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23547         Ludovic Courtès's approval is in
23548         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23549         * modules/isnand-nolibm (License): Change to LGPLv2+.
23550         * modules/isnanf-nolibm (License): Likewise.
23551         * modules/isnanl-nolibm (License): Likewise.
23553 2016-11-19  Bruno Haible  <bruno@clisp.org>
23555         Relicense some modules under LGPLv2+.
23556         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23557         modules/vasnprintf.
23558         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23559         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23560         All other significant changes to the files in lib/ of these modules
23561         are from me.
23562         * modules/memcmp2 (License): Change to LGPLv2+.
23563         * modules/amemxfrm (License): Likewise.
23564         * modules/fpieee (License): Likewise.
23565         * modules/fpucw (License): Likewise.
23566         * modules/frexp-nolibm (License): Likewise.
23567         * modules/frexpl-nolibm (License): Likewise.
23568         * modules/printf-frexp (License): Likewise.
23569         * modules/printf-frexpl (License): Likewise.
23570         * modules/printf-safe (License): Likewise.
23571         * modules/signbit (License): Likewise.
23573 2016-11-17  Bruno Haible  <bruno@clisp.org>
23575         Enable Unicode decoder safety unconditionally.
23576         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23577         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23578         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23579         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23580         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23581         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23582         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23583         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23584         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23585         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23586         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23587         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23588         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23589         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23590         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23591         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23592         * lib/unistr/u32-next.c (u32_next): Likewise.
23593         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23594         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23595         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23596         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23597         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23598         CONFIG_UNICODE_SAFETY tests unconditionally.
23599         * tests/unistr/test-u32-mblen.c (main): Likewise.
23600         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23601         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23602         * tests/unistr/test-u32-next.c (main): Likewise.
23603         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23604         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23605         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23606         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23607         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23608         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23609         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23610         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23611         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23612         * lib/unistr/u16-check.c (u16_check): Update comment.
23613         * NEWS: Mention the changes that callers should be aware of.
23615 2016-11-19  Bruno Haible  <bruno@clisp.org>
23617         relocatable-prog-wrapper: Fix breakage on Cygwin.
23618         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23619         (Depends-on): Remove intprops.
23620         * lib/relocwrapper.c: Update dependency tree.
23621         (strerror): Undefine.
23622         * build-aux/install-reloc (func_create_wrapper): Do not compile
23623         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23625 2016-11-19  Bruno Haible  <bruno@clisp.org>
23627         strerror: Make it compile in C++ mode.
23628         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23630 2016-11-15  Pedro Alves  <palves@redhat.com>
23632         sys_time: add gnulib::timeval for C++
23633         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23634         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23635         timeval macro.
23637 2016-11-14  Pedro Alves  <palves@redhat.com>
23639         snippet/c++defs: fix real-floating arg functions in C++ mode
23640         Also, define isfinite, isinf, isnan, signbit in the gnulib
23641         namespace instead of in the global namespace.
23642         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23643         (_GL_END_NAMESPACE): New.
23644         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23645         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23646         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23647         instead of in the global namespace.
23648         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23649         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23650         of in the global namespace.
23652 2016-11-13  Jim Meyering  <meyering@fb.com>
23654         strftime: don't use __THROW
23655         Each use of __THROW would provoke this from gcc-7-to-be:
23657           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23658             on unit local functions [-Wattributes]
23659           static int iso_week_days (int, int) __THROW;
23660           ^~~~~~
23661         * lib/strftime.c (__THROW): Don't define.
23662         Remove each use of __THROW.
23663         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23664         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23666 2016-11-14  Paul Eggert  <eggert@union>
23668         obstack: port to gcc -fcheck-pointer-bounds
23669         Problem found by 'make check' failure on bleeding-edge coreutils
23670         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23671         6.2.0-5ubuntu12), configured via "./configure
23672         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23673         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23674         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23675         New macro, copied from fts_.h.
23676         (struct _obstack_chunk.contents): Use it.
23678 2016-11-14  Eric Blake  <eblake@redhat.com>
23680         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23682         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23684 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23686         strptime: fix compile error in recent change
23687         * lib/strptime.c (__strptime_internal): Fix ported code.
23689 2016-11-11  Bruno Haible  <bruno@clisp.org>
23691         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23692         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23693         (func_import): Extend determination of license_incompatibilities.
23694         (func_create_testdir): Extend table of license compatibility. Handle
23695         also the licenses GPLv3+, GPL, LGPLv3+.
23697 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23699         strftime: tune %q
23700         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23702         Merge strftime.c changes from glibc
23703         This incorporates:
23704         2007-10-16 [BZ #5184] Add tzset_called argument
23705         2008-06-13 [BZ #6612] pass reference to tzset_called around
23706         2009-10-30 Implement Burmese language locale for Myanmar
23707         2010-01-09 Add support for XPG7 testing
23708         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23709         2015-10-20 Convert miscellaneous function definitions to prototype style
23710         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23711         it anyway and this lessens the difference between gnulib and glibc.
23712         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23713         (__THROW): Define if standard headers do not.
23714         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23715         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23716         Declare with __THROW.
23717         (__strftime_internal): Rename from strftime_case_. Add arg for
23718         whether tzset is called.  All uses changed.  Call tzset at most
23719         once.  Allow %OC, for Burmese.
23720         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23721         Don't assume values are in range.
23723 2016-11-12  Eric Blake  <eblake@redhat.com>
23725         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23726         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23727         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23728         different value.
23730 2006-11-12  Pedro Alves  <palves@redhat.com>
23732         Fix gnulib C++ namespace support and std::frexp
23733         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23734         _GL_CXXALIASWARN.
23736 2006-11-12  Pedro Alves  <palves@redhat.com>
23738         GNULIB_NAMESPACE::func need not pull in rpl_func
23739         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23740         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23741         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23742         struct instead of a function pointer.
23744 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23746         manywarnings: fix -Wno-missing-field-initializers detection
23747         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23748         to be independent of -Wunused-variable.  I.E. ensure the latter
23749         warning doesn't occur so that detection of the former is accurate.
23751 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23753         strftime,strptime: support %q to represent the quarter
23754         * lib/strftime.c (strftime_case_): Add %q case.
23755         * lib/strptime.c (__strptime_internal): Likewise.
23756         * tests/test-strftime.c (quarter_test): A new test case.
23758 2016-11-03  Eric Blake  <eblake@redhat.com>
23760         bootstrap: Fix get_version() for AIX 5.3
23761         * build-aux/bootstrap (get_version): Factor out sed script, since
23762         indented comments choke AIX 5.3 sed.
23763         Reported-by: Michael Felt <aixtools@gmail.com>
23765 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23767         intprops: port to older XL C
23768         Problem reported by Alexander Samoilov in:
23769         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23770         http://savannah.nongnu.org/bugs/?49448
23771         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23772         Define to 1 only for XL C 12.1 or later, since this bug
23773         occurs in XL C for AIX 6.0 but not in 12.1.
23775 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23777         backupfile: initialize default suffix within the implementation
23778         * lib/backupfile.c (find_backup_file_name): Initialize the
23779         global variable here, to simplify usage, and to only call
23780         getenv() when needed.
23782 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23784         futimens: remove FIXME for old Linux kernels
23785         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23786         this in 2012" FIXME, like that for utimensat.
23788         utimensat: remove FIXME for old Linux kernels
23789         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23790         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23791         this in 2012" FIXME, by assuming the file system bug is absent
23792         unless demonstrated to be present.  We no longer need to worry
23793         about Linux kernel 2.6.32 when building with newer kernels.
23795 2016-10-16  Bruno Haible  <bruno@clisp.org>
23797         qsort_r: Fix macrology for platforms that lack the function.
23798         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
23799         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
23800         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
23801         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
23802         not exist.
23803         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
23804         the function exists.
23805         * modules/qsort_r: Add comments.
23807 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23809         sys_types: fix Texinfo typos
23810         * doc/glibc-functions/gnu_dev_major.texi:
23811         * doc/glibc-functions/gnu_dev_makedev.texi:
23812         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
23814 2016-10-26  John David Anglin  <dave.anglin@bell.net>
23816         getprogname: port to HP-UX
23817         See Bug#24805.
23818         * lib/getprogname.c (getprogname) [__hpux]: Port.
23819         * tests/test-getprogname.c (STREQ) [__hpux]:
23820         Special-case for HP-UX limitations on program name length.
23822 2016-10-20  Bruno Haible  <bruno@clisp.org>
23824         Update doc about target platforms.
23825         * doc/gnulib-intro.texi (Target Platforms): Update list.
23827 2016-10-15  Bruno Haible  <bruno@clisp.org>
23829         opendir, readdir, closedir: Relicense under LGPLv2+.
23830         * modules/opendir (License): Change to LGPLv2+.
23831         * modules/readdir (License): Likewise.
23832         * modules/closedir (License): Likewise.
23834 2016-10-16  Bruno Haible  <bruno@clisp.org>
23836         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23837         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23838         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23839         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23840         HAVE_DECL_STRERROR_R.
23842 2016-10-16  Bruno Haible  <bruno@clisp.org>
23844         Make the 'argp' module work without the 'error' module.
23845         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23847 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23849         diffseq: restore TOO_EXPENSIVE heuristic
23850         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23851         (Bug#24715).  The simplest solution is to restore the
23852         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23853         using a higher threshold to avoid Bug#16848 on smaller files.
23854         * lib/diffseq.h (struct context): Restore member too_expensive.
23855         (struct partition): Restore members lo_minimal, hi_minimal.
23856         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23857         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23858         1993 to make 'diff' run faster (but not as well) on large inputs,
23859         but use a threshold of 4096 instead of the old 256.
23860         * lib/fstrcmp.c (strcmp_bounded):
23861         * lib/git-merge-changelog.c (compute_differences):
23862         Adjust to diffseq.h changes.
23864 2016-10-22  Bruno Haible  <bruno@clisp.org>
23866         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23867         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23868         declaration yet, define ICONV_CONST to empty.
23870 2016-10-15  Bruno Haible  <bruno@clisp.org>
23872         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23873         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23874         module.
23876 2016-10-16  Bruno Haible  <bruno@clisp.org>
23878         system-quote tests: Avoid compiler warning on AIX.
23879         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23880         <stdio.h> does.
23882 2016-10-16  Bruno Haible  <bruno@clisp.org>
23884         Fix some "gcc -Wall" warnings.
23885         * tests/test-ffsl.c (main): Use variable x, not i.
23886         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23887         freopen.
23888         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23889         of sethostname.
23891 2016-10-16  Bruno Haible  <bruno@clisp.org>
23893         gnulib-tool: Make --create-testdir on all modules work again.
23894         * gnulib-tool (func_create_testdir): Don't include the
23895         non-recursive-gnulib-prefix-hack module.
23897 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23899         libunistring: change the maintainer to 'all'
23900         * modules/gen-uni-tables, modules/libunistring:
23901         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23902         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23903         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23904         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23905         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23906         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23907         * modules/uniwidth/*: Change the maintainer to 'all'.
23909 2016-10-16  Bruno Haible  <bruno@clisp.org>
23911         Simplify "configure: checking ..." messages.
23912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23913         AC_MSG_NOTICE.
23914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23916 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23918         quotearg-tests: pacify gcc -Wall
23919         Problem reported by Bruno Haible in:
23920         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23921         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23922         * tests/test-quotearg.h: ... from here.
23924 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23926         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23927         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23928         Needed on Centos <= 4.
23930 2016-10-20  Jim Meyering  <meyering@fb.com>
23932         printf.m4: fix a bug in detecting printf %j support
23933         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23934         uintmax_t is defined in neither stdint.h nor inttypes.h.
23935         Before, this macro might have mistakenly set
23936         gl_cv_func_printf_sizes_c99=yes on such a system.
23937         Spotted by Zev Weiss.
23939 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23941         sched: substitute HAVE_SYS_CDEFS_H too
23942         Problem reported by Tom G. Christensen in:
23943         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23944         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23945         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23947 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23949         quotearg: never write beyond the returned length
23950         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23951         scan of the string when we initially encounter a single quote when
23952         shell quoting, so that if we then switch to a more concise quoting method
23953         we will not have written beyond that returned length.
23954         This is significant for sh-quote, which has separate routines
23955         to determine the length and do the actual quoting.
23956         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23957         now that we never write more than the returned length.
23959 2016-10-18  Bruno Haible  <bruno@clisp.org>
23961         getprogname tests: Avoid failure in packages that use libtool.
23962         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23963         Based on a patch by Jim Meyering.
23965 2016-10-16  Bruno Haible  <bruno@clisp.org>
23967         getprogname: Fix test failure on Cygwin. Comments.
23968         * lib/getprogname.h: Add comments.
23969         * lib/getprogname.c: Add comments. Fix #elif indentation.
23970         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23971         ".exe" suffix.
23973 2016-10-16  Bruno Haible  <bruno@clisp.org>
23975         Make sure the libunistring detection rejects older versions with a
23976         known bug.
23977         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23978         * modules/unistr/u16-strtok (configure.ac): Likewise.
23979         * modules/unistr/u32-strtok (configure.ac): Likewise.
23981 2016-10-18  Bruno Haible  <bruno@clisp.org>
23983         sh-quote, system-quote: revert regression of unit test.
23984         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23985         * tests/test-system-quote-main.c (check_one): Likewise.
23987 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23989         quotearg: fix stale tests
23990         * tests/test-quotearg.c [locale_results]: Add the missing str7
23991         entries to the expected results.
23992         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23993         don't write beyond the returned length, since that's no longer the
23994         case if we switch to a more concise quoting style.
23995         * tests/test-sh-quote.c (check_one): Likewise.
23996         (main): Adjust for the new more concise quoting style.
23997         Reported by Bruno Haible.
23999 2016-10-16  Jim Meyering  <meyering@fb.com>
24001         non-recursive-gnulib-prefix-hack: fix inconsequential typo
24002         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
24003         to "$1".  This macro is always invoked with $1 == lib.
24004         Spotted by Bruno Haible
24006 2016-10-16  Bruno Haible  <bruno@clisp.org>
24008         Fix a test crash.
24009         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
24010         fails.
24012 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24014         test-limits-h: suppress -Woverlength-strings
24015         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
24017 2016-10-15  Bruno Haible  <bruno@clisp.org>
24019         gettime, timespec, utimens: Relicense under LGPL.
24020         * modules/gettime (License): Change to LGPL.
24021         * modules/timespec (License): Likewise.
24022         * modules/utimens (License): Likewise.
24024 2016-10-14  Bruno Haible  <bruno@clisp.org>
24025             Pádraig Brady  <P@draigBrady.com>
24027         canonicalize-lgpl: Support the case path_max > INT_MAX.
24028         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
24029         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
24031 2016-10-13  Jim Meyering  <meyering@fb.com>
24033         getprogname: IBM z/OS: avoid NULL-dereference
24034         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
24035         upon strdup failure.
24037 2016-10-12  Jim Meyering  <meyering@fb.com>
24039         test-stdint: use _GL_VERIFY rather than "verify" for some tests
24040         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
24041         and an abbreviated diagnostic rather than verify with the full one,
24042         because the full-length strings would evoke warnings from gcc with
24043         -Woverlength-strings.
24045 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24047         stdint: port SIZE_MAX to glibc s390
24048         Problem reported by Eric Blake in:
24049         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
24050         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
24051         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
24052         correct type, if possible.
24054 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
24056         getprogname: port to IBM z/OS
24057         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
24059 2016-10-11  Jim Meyering  <meyering@fb.com>
24061         maint: remove stray space after "." in AC_DEFINE comment.
24062         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
24063         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24065 2016-10-05  Jim Meyering  <meyering@fb.com>
24067         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24068         * lib/long-options.c (parse_long_options): Add a break statement
24069         to avoid this new warning/failure:
24070         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24071           --create-testdir --dir=/t/x --with-tests --test long-options
24072         ../../gllib/long-options.c: In function 'parse_long_options':
24073         ../../gllib/long-options.c:66:12: error: this statement may \
24074           fall through [-Werror=implicit-fallthrough]
24075                    (*usage_func) (EXIT_SUCCESS);
24076                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24078 2016-10-05  Jim Meyering  <meyering@fb.com>
24080         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24081         Testing this module would fail when using GCC 7 like this:
24082         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24083           --dir=/tmp/x --with-tests --test utimecmp
24084         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24085         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24086           [-Werror=bool-operation]
24087                          time_t s = src_s & ~ (res == 2 * BILLION);
24088                                             ^
24089         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24090           [-Werror=bool-operation]
24091                src_s &= ~ (res == 2 * BILLION);
24092                         ^
24093         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24094         Instead, make it explicit that we intend to apply it to 0 or 1.
24096 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24098         dfa: save memory for states
24099         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
24100         states if dfa has a lot of caches.
24102 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
24104         wchar, wctype-h: fix for MinGW 3.22.2
24105         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
24106         special invocation, to fix issues with MinGW 3.22.2 wchar.h
24107         when included from <string.h>.
24108         * lib/wctype.in.h [__MINGW32__]: Add special invocation
24109         convention for MinGW 3.22.2, to solve issues with their
24110         wctype.h when included from <ctype.h>.
24112 2016-10-05  Jim Meyering  <meyering@fb.com>
24114         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24115         * lib/long-options.c (parse_long_options): Add a break statement
24116         to avoid this new warning/failure:
24117         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24118           --create-testdir --dir=/t/x --with-tests --test long-options
24119         ../../gllib/long-options.c: In function ‘parse_long_options’:
24120         ../../gllib/long-options.c:66:12: error: this statement may \
24121           fall through [-Werror=implicit-fallthrough]
24122                    (*usage_func) (EXIT_SUCCESS);
24123                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24125         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24126         Testing this module would fail when using GCC 7 like this:
24127         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24128           --dir=/tmp/x --with-tests --test utimecmp
24129         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24130         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24131           [-Werror=bool-operation]
24132                          time_t s = src_s & ~ (res == 2 * BILLION);
24133                                             ^
24134         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24135           [-Werror=bool-operation]
24136                src_s &= ~ (res == 2 * BILLION);
24137                         ^
24138         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24139         Instead, make it explicit that we intend to apply it to 0 or 1.
24141 2016-10-03  Pádraig Brady  <P@draigBrady.com>
24143         quotearg: minimize shell quoting using double quotes
24144         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
24145         quote in encountered then use double quotes (c style quoting)
24146         when possible, as it simplifies the quoting.
24147         * tests/test-quotearg-simple.c: Add test cases.
24148         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
24149         for the fact we now may write beyond the returned length.
24151 2016-10-02  Jim Meyering  <meyering@fb.com>
24153         vasnprintf.c: avoid spurious warning from GCC 7
24154         The presence of cpp directives renders this "FALLTHROUGH" comment
24155         ineffective, so does not suppress the -Wimplicit-fallthrough warning
24156         from GCC 7 built from git on 2016-10-02.
24157         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
24158         directives, so that it takes effect once again.  This is clearly
24159         not a proper change, and I will revert it once this bug is fixed:
24160         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
24162 2016-10-01  Jim Meyering  <meyering@fb.com>
24164         getprogname: correct the test for a __progname variable
24165         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
24166         and AC_LINK_IFELSE to check for a global __progname.  If found,
24167         define HAVE_VAR___PROGNAME.
24168         * lib/getprogname.c (getprogname): Reflect the new name of the
24169         feature- checked preprocessor symbol:
24170         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
24172 2016-09-28  Jim Meyering  <meyering@fb.com>
24174         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
24175         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
24176         fall-through case with a /* fallthrough */ comment.
24178         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
24179         * lib/dfa.c (dfassbuild): Mark the end of this case with a
24180         /* fallthrough */ comment.
24182         getprogname: avoid __progname vs program_invocation_short_name pitfall
24183         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
24184         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
24185         not with Fedora 24's glibc-2.23.1-10.
24186         * lib/getprogname.c (__progname): Move this declaration down...
24187         (getprogname): ... into the #elif block where used, and make it
24188         explicitly "extern".
24190         getprogname: port to OpenBSD 5.1
24191         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
24192         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
24193         * modules/getprogname (configure.ac): Move most of this code...
24194         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
24195         increment serial number, and add a test for __progname.
24196         https://bugs.gnu.org/24562
24197         Reported by Nelson H. F. Beebe.
24199 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24201         sched: port to GCC 6.2.1 on macOS Sierra
24202         Problem reported by Denis Davydov in:
24203         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
24204         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
24205         Include <sys/cdefs.h> before <sched.h>.
24206         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
24207         so that we needn’t worry about the sched.h include bug here.
24208         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
24209         and include it before <sched.h> if it exists, when
24210         checking for <sched.h>.
24212         tests/init.sh: port Alpine fix to AIX 7.1
24213         * tests/init.sh (compare_): When attempting to use diff -U3,
24214         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
24215         diff -u not outputting a space after leading '+', as the users
24216         of 'compare' should not be that picky about its output format.
24217         In the AIX 7.1 case, return with diff exit status (or with 2 if
24218         trouble), instead of some random nonzero exit status.
24219         * tests/test-init.sh (test_compare): Remove space after leading
24220         '+', so that AIX 7.1 'diff' passes the test.
24222 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24224         nl_langinfo: pacify GCC
24225         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
24226         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
24228         stdint: also set GL_GENERATE_LIMITS_H
24229         Problem reported by Jim Meyering in:
24230         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
24231         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
24233         limits-h, stdint: Don't assume extensions, fix typo
24234         * m4/limits-h.m4 (gl_LIMITS_H):
24235         * m4/stdint.m4 (gl_STDINT_H):
24236         Don't assume AC_USE_SYSTEM_EXTENSIONS.
24237         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
24238         reported by Jim Meyering in:
24239         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
24241 2016-09-21  Jim Meyering  <meyering@fb.com>
24243         getprogname: port to AIX
24244         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
24245         and strdup to obtain a short program name string.  Using code from
24246         Bruno Haible and an idea from Bastien ROUCARIÈS, in
24247         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24248         Assaf Gordon reported that this new file would fail to compile on
24249         AIX-7.1 32bit.
24251 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24253         extensions: fix typo in comment
24254         * m4/extensions.m4: Sync from Autoconf master.
24256         stdint: support new _WIDTH macros
24257         * doc/posix-headers/stdint.texi: Document this.
24258         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
24259         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
24260         support for INTMAX_WIDTH, etc. as well as for support for just C99.
24261         * modules/stdint (Depends-on): Add limits-h.
24262         (Makefile.am): Substitute HAVE_C99_STDINT_H.
24263         * modules/stdint-tests (Depends-on): Add extensions, so that
24264         INTMAX_MAX etc. are defined.
24265         * tests/test-stdint.c: Verify the new macros.
24267         limits-h: new module
24268         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
24269         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
24270         * doc/posix-headers/limits.texi: Document new module.
24271         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
24272         * modules/limit-h-tests, tests/test-limits-h.c: New files.
24274         stdio: don't redefine __USE_MINGW_ANSI_STDIO
24275         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
24276         if it is already defined.  Apparently GNU Emacs relies on this.  See:
24277         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
24279 2016-09-15  Eric Blake  <eblake@redhat.com>
24281         sys_types: avoid glibc 2.25 warnings about major()
24282         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
24283         older autoconf.
24284         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
24285         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
24286         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
24287         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
24289         mountlist: include sysmacros.h for glibc
24290         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
24291         AC_HEADER_MAJOR.
24292         * lib/mountlist.c (includes): Use correct headers.
24294 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24296         extensions: port to more ISO C TSes
24297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
24298         master, to add support for more recent ISO C TRs and TSes.
24300 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24302         intprops: new macro TYPE_WIDTH
24303         * lib/intprops.h (TYPE_WIDTH): New macro.
24304         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
24305         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
24306         * lib/parse-datetime.y (parse_datetime2):
24307         Use it.
24309         extensions: port to recent ISO C TRs
24310         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24311         Sync from Autoconf master, to add support for recent ISO C TRs.
24312         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
24313         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
24314         the MinGW option is not an extension.
24316 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24318         dfa: port to Solaris 9
24319         Problems reported by Tom G. Christensen in:
24320         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
24321         * modules/dfa (Depends-on): Add isblank.
24322         * modules/dfa-tests (dfa_match_aux_LDADD):
24323         Rename from test_stat_LDADD, to fix typo.
24324         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
24326 2016-09-10  Jim Meyering  <meyering@fb.com>
24328         strverscmp: avoid link failure on OS X
24329         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
24330         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
24332 2016-08-16  Jim Meyering  <meyering@fb.com>
24334         dfa: new module, importing grep's DFA matcher
24335         Since grep's DFA matcher is now being used by two gnulib-enabled
24336         projects, grep and sed, it makes sense to version-control its
24337         sources and unit tests in one place: here.
24338         * modules/dfa: New module.
24339         * modules/dfa-tests: New file.
24340         * lib/dfa.c: New file, from grep.
24341         * lib/dfa.h: Likewise.
24342         * lib/localeinfo.c: Likewise.
24343         * lib/localeinfo.h: Likewise.
24344         * tests/dfa-match-aux.c: Likewise.
24345         * tests/dfa-invalid-char-class.sh: Likewise.
24346         * tests/dfa-match.sh: Likewise, with minor changes.
24347         * MODULES.html.sh (Misc): Add "dfa" to this list.
24349 2016-09-09  Jim Meyering  <meyering@fb.com>
24351         getprogname-tests: don't depend on assert-h
24352         * modules/getprogname-tests (Depends-on): Remove assert-h.
24353         It was not needed, and in fact would cause build failure for
24354         coreutils on some systems.  Reported by Assaf Gordon in https:
24355         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
24357 2016-09-07  Jim Meyering  <meyering@fb.com>
24359         getprogname-tests: work also when EXEEXT is nonempty
24360         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
24361         * tests/test-getprogname.c (main): Use it.
24362         Suggested by Gisle Vanem.
24364 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
24366         getprogname: fix errors in previous change
24367         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
24368         s/program_invocation_name/base/
24369         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
24371 2016-09-08  Pádraig Brady  <P@draigBrady.com>
24373         parse-datetime: restrict debug output to input string
24374         * lib/parse-datetime.y (parse_datetime2): If we parse
24375         all of the input but determine it's invalid, ensure
24376         we don't output the now invalid input pointer.
24377         This issue was seen with `date -d 'now +1'`.
24379 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24381         flexmember: new macro FLEXALIGNOF
24382         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24383         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24384         this macro.  Update comments.
24386 2016-09-07  Jim Meyering  <meyering@fb.com>
24388         getprogname: port to systems with __argv (mingw, msvc)
24389         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24390         last_component: more general than open coding it with hard-coded "/".
24391         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24392         * modules/getprogname (Depends-on): Add dirname-lgpl.
24393         (configure.ac): Check for __argv in <stdlib.h>.
24394         * modules/getprogname-tests: New file.
24395         * tests/test-getprogname.c: New file.
24396         Suggested by Gisle Vanem in
24397         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24399 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24401         flexmember: port better to GCC + valgrind
24402         With a char[] flexible array member in a struct with nontrivial
24403         alignment, GCC-generated code can access past the end of the
24404         array, because GCC assumes there are padding bytes to get the
24405         struct aligned.  So the common idiom of malloc (offsetof (struct
24406         s, m), n) does not properly allocate an n-byte trailing member, as
24407         malloc’s argument should be the next multiple of alignof (struct s).
24408         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24409         Although C11 apparently permits this GCC optimization (i.e., there
24410         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24411         See the thread containing:
24412         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24413         * lib/flexmember.h: New file.
24414         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24415         * lib/localename.c, lib/time_rz.c:
24416         Include flexmember.h.
24417         * lib/fnmatch_loop.c (struct patternlist):
24418         * lib/localename.c (struct hash_node):
24419         Use FLEXIBLE_ARRAY_MEMBER.
24420         * lib/fnmatch_loop.c (EXT):
24421         * lib/fts.c (fts_alloc):
24422         * lib/glob.c (glob_in_dir):
24423         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24424         * lib/localename.c (gl_lock_define_initialized):
24425         * lib/time_rz.c (tzalloc):
24426         Use FLEXSIZEOF instead of offsetof.
24427         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24428         Check that the size of the struct can be taken.
24429         * modules/flexmember (Files): Add lib/flexmember.h.
24430         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24431         Add flexmember.
24433 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24435         getprogname: port to Solaris 10
24436         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24437         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24438         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24440         stdalign: correct mistake in alignof doc
24441         Problem reported by Joseph Myers in:
24442         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24443         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24444         alignof(S) where S is a structure containing a flexible array
24445         member.  The Gnulib substitute does not support this, but C11 does.
24447 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24449         main.mk: remove sc_program_name, since there is no more need to
24450         use set_program_name in tools (getprogname is enough for most
24451         of the cases).
24452         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24453         * top/maint.mk (sc_program_name): Remove.
24455 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24457         Port tests away from progname, since modules that need the
24458         program name already depend on getprogname.
24459         * modules/acl-tests (Depends-on): Remove progname.
24460         * modules/argmatch (Depends-on): Likewise.
24461         * modules/argmatch-tests (Depends-on): Likewise.
24462         * modules/argp-tests (Depends-on): Likewise.
24463         * modules/argp-version-etc-tests (Depends-on): Likewise.
24464         * modules/array-list-tests (Depends-on): Likewise.
24465         * modules/array-oset-tests (Depends-on): Likewise.
24466         * modules/avltree-list-tests (Depends-on): Likewise.
24467         * modules/avltree-oset-tests (Depends-on): Likewise.
24468         * modules/avltreehash-list-tests (Depends-on): Likewise.
24469         * modules/carray-list-tests (Depends-on): Likewise.
24470         * modules/copy-file-tests (Depends-on): Likewise.
24471         * modules/exclude-tests (Depends-on): Likewise.
24472         * modules/fchownat-tests (Depends-on): Likewise.
24473         * modules/fdopendir-tests (Depends-on): Likewise.
24474         * modules/filenamecat-tests (Depends-on): Likewise.
24475         * modules/fstatat-tests (Depends-on): Likewise.
24476         * modules/fstrcmp-tests (Depends-on): Likewise.
24477         * modules/linked-list-tests (Depends-on): Likewise.
24478         * modules/linkedhash-list-tests (Depends-on): Likewise.
24479         * modules/mkdirat-tests (Depends-on): Likewise.
24480         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24481         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24482         * modules/obstack-printf-tests (Depends-on): Likewise.
24483         * modules/openat-tests (Depends-on): Likewise.
24484         * modules/parse-datetime-tests (Depends-on): Likewise.
24485         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24486         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24487         * modules/quotearg-simple-tests (Depends-on): Likewise.
24488         * modules/quotearg-tests (Depends-on): Likewise.
24489         * modules/rbtree-list-tests (Depends-on): Likewise.
24490         * modules/rbtree-oset-tests (Depends-on): Likewise.
24491         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24492         * modules/spawn-pipe-tests (Depends-on): Likewise.
24493         * modules/system-quote-tests (Depends-on): Likewise.
24494         * modules/uniname/uniname-tests (Depends-on): Likewise.
24495         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24496         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24497         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24498         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24499         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24500         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24501         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24502         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24503         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24504         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24505         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24506         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24507         * modules/unlinkat-tests (Depends-on): Likewise.
24508         * modules/version-etc-tests (Depends-on): Likewise.
24509         * modules/xalloc-die-tests (Depends-on): Likewise.
24510         * modules/xmemdup0-tests (Depends-on): Likewise.
24511         * modules/xprintf-posix-tests (Depends-on): Likewise.
24512         * modules/xvasprintf-tests (Depends-on): Likewise.
24513         * tests/test-argmatch.c: Do not include progname.h.
24514         (main) Stop calling set_program_name.
24515         * tests/test-argp-version-etc.c: Likewise.
24516         * tests/test-argp.c: Likewise.
24517         * tests/test-argv-iter.c: Likewise.
24518         * tests/test-array_list.c: Likewise.
24519         * tests/test-array_oset.c: Likewise.
24520         * tests/test-avltree_list.c: Likewise.
24521         * tests/test-avltree_oset.c: Likewise.
24522         * tests/test-avltreehash_list.c: Likewise.
24523         * tests/test-carray_list.c: Likewise.
24524         * tests/test-copy-acl.c: Likewise.
24525         * tests/test-copy-file.c: Likewise.
24526         * tests/test-exclude.c: Likewise.
24527         * tests/test-fchownat.c: Likewise.
24528         * tests/test-fdopendir.c: Likewise.
24529         * tests/test-filenamecat.c: Likewise.
24530         * tests/test-fstatat.c: Likewise.
24531         * tests/test-fstrcmp.c: Likewise.
24532         * tests/test-linked_list.c: Likewise.
24533         * tests/test-linkedhash_list.c: Likewise.
24534         * tests/test-mkdirat.c: Likewise.
24535         * tests/test-nonblocking-pipe-main.c: Likewise.
24536         * tests/test-nonblocking-socket-main.c: Likewise.
24537         * tests/test-obstack-printf.c: Likewise.
24538         * tests/test-openat.c: Likewise.
24539         * tests/test-parse-datetime.c: Likewise.
24540         * tests/test-pipe-filter-gi1.c: Likewise.
24541         * tests/test-pipe-filter-gi2-main.c: Likewise.
24542         * tests/test-pipe-filter-ii1.c: Likewise.
24543         * tests/test-pipe-filter-ii2-main.c: Likewise.
24544         * tests/test-quotearg-simple.c: Likewise.
24545         * tests/test-quotearg.c: Likewise.
24546         * tests/test-rbtree_list.c: Likewise.
24547         * tests/test-rbtree_oset.c: Likewise.
24548         * tests/test-rbtreehash_list.c: Likewise.
24549         * tests/test-sameacls.c: Likewise.
24550         * tests/test-set-mode-acl.c: Likewise.
24551         * tests/test-spawn-pipe-main.c: Likewise.
24552         * tests/test-system-quote-main.c: Likewise.
24553         * tests/test-unlinkat.c: Likewise.
24554         * tests/test-version-etc.c: Likewise.
24555         * tests/test-xalloc-die.c: Likewise.
24556         * tests/test-xfprintf-posix.c: Likewise.
24557         * tests/test-xmemdup0.c: Likewise.
24558         * tests/test-xprintf-posix.c: Likewise.
24559         * tests/test-xvasprintf.c: Likewise.
24560         * tests/uniname/test-uninames.c: Likewise.
24561         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24562         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24563         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24564         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24565         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24566         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24567         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24568         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24569         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24570         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24571         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24572         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24573         * tests/test-c-stack.c: (program_name): Do not define.
24574         (main): Do not set program_name.
24575         * tests/test-closein.c: Likewise.
24576         * tests/test-xstrtol.c: Likewise.
24577         * tests/test-yesno.c: Likewise.
24579 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24581         Port modules to use getprogname explicitly, instead of requiring
24582         progname to be used (or program_name to be provided).
24583         * lib/argmatch.c: Do not include progname.h.
24584         [TEST] (program_name): Do not define.
24585         [TEST] (main): Call getprogname instead of using program_name.
24586         * lib/c-stack.c: Do not include progname.h.
24587         (program_name): Do not define.
24588         (die): Call getprogname instead of using program_name.
24589         * lib/chdir-long.c: Do not include progname.h.
24590         [TEST_CHDIR] (main): Do not set program_name.
24591         * lib/error.c [!_LIBC]: Include progname.h.
24592         [!_LIBC] (program_name): Define using getprogname.
24593         * lib/euidaccess.c: Do not include progname.h.
24594         [TEST] (main): Do not set program_name.
24595         * lib/git-merge-changelog.c: Include getprogname.h instead of
24596         progname.h.
24597         (usage): Call getprogname instead of using program_name.
24598         (main): Likewise.  Stop calling set_program_name.
24599         * lib/group-member.c: Do not include progname.h.
24600         [TEST] (main): Do not set program_name.
24601         * modules/argmatch (Depends-on): Add getprogname.
24602         * modules/c-stack (Depends-on): Likewise.
24603         * modules/error (Depends-on): Likewise.
24604         * modules/git-merge-changelog (Depends-on): Likewise.
24605         Also remove progname.
24607 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24609         * NEWS: Document the deprecation of the 'progname' module.
24611 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24613         getprogname: new module
24614         This provides a LGPL module for getting the name of the current
24615         program, using the same API found on *BSD systems.
24616         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24617         * modules/getprogname: New files.
24618         * MODULES.html.sh (Misc): Add getprogname.
24620 2016-09-02  Jim Meyering  <meyering@fb.com>
24622         manywarnings: add -fno-common
24623         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24624         to the list.  Quoting the manual, "Compiling with -fno-common is
24625         useful on targets for which it provides better performance, or if
24626         you wish to verify that the program will work on other systems that
24627         always treat uninitialized variable declarations this way [putting
24628         it in the data section]."  If diffutils had been using this sooner,
24629         it would have prevented this duplicate declaration issue:
24630         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24632 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24634         parse-datetime: Fix typo.
24635         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24637 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24639         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24640         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24641         GCC 5 and 6 that have __builtin_sub_overflow but not
24642         __builtin_sub_overflow_p.  With the recent changes, these
24643         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24644         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24645         since the former needs just one runtime comparison whereas the
24646         latter needs two.
24648         strverscmp: sync with glibc
24649         Although this doesn't exactly synchronize with glibc
24650         byte-for-byte, it makes the code behave the same as glibc.
24651         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24652         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24653         difference shouldn't matter in practical use.  All uses changed
24654         back to isdigit.
24655         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24656         (next_state): Now unsigned char array; redo elements.
24657         (result_type): Now signed char array; redo elements.
24658         (__strverscmp): Fix glibc bug 9913 by using new states.
24659         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24661 2016-08-29  Jim Meyering  <meyering@fb.com>
24663         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24664         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24665         similarly to how it was done to intprops.h.
24667 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24669         intprops.h: port recent changes to GCC 6.2.0
24670         * lib/intprops.h (__has_builtin): Move earlier.
24671         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24672         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24673         the last argument can be null.  All uses changed.
24674         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24675         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24676         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24677         and it's not clear which GCC versions it works for.
24678         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24679         its definiens.
24681         intprops.h: use __typeof__ with GCC 7
24682         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24683         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24684         This avoids computing the expression's value (which might overflow!).
24686 2016-08-29  Jim Meyering  <meyering@fb.com>
24688         intprops.h, xalloc-oversized.h: work with gcc 7
24689         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24690         __builtin_mul_overflow each accept a NULL pointer as the third
24691         argument.  However in gcc 7, that is no longer accepted.
24692         Instead, one must use the "_p"-suffixed names, with which, the
24693         third parameter is no longer a pointer.
24694         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24695         the definition: not true for gcc 7 and subsequent.
24696         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24697         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24698         Provide new definitions for gcc 7 and subsequent.
24699         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24700         that works with gcc-7.
24702         intprops.h: fix missing-backslash problems
24703         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24704         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24706 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24708         intprops: fix paren typo on old platforms
24709         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24710         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24711         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24712         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24713         && !defined LLONG_MAX]:
24714         Remove stray paren.
24716         intprops: port to OpenVMS
24717         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24718         * doc/posix-headers/limits.texi: Document the problem.
24719         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24720         Define if not already defined.
24722 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24724         parse-datetime: improve debug implementation
24725         Follow-up to commit 12ad79069 ("add optional debug printing").
24726         Improve parse-datetime's debug implementation: remove macros,
24727         replace global debug flag variable with a function parameter,
24728         use nstrftime for formatting.
24729         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24730         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24731         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24732         debug flag. Existing interface 'parse_datetime' left unmodified.
24733         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24734         (struct parser_control): add 'parse_datetime_debug' member variable.
24735         (parse_datetime): Call new function 'parse_datetime2' without debug.
24736         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24737         pc.parse_datetime_debug variable as needed.
24738         (to_year): Accept new flags parameter, instead of using global variable.
24739         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24740         use struct 'debug' variable instead of global variable.
24741         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24742         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24743         correspnding functions directly instead of using macros.
24744         * modules/parse-datetime: Add gnulib's strftime module.
24746 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24748         c-strcase-tests: port to EBCDIC
24749         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24750         which assume ASCII encoding semantics to run only in ASCII
24751         mode, as they fail in EBCDIC.
24753         sigpipe-tests: fix typo
24754         * tests/test-sigpipe.sh: C, not B.
24756 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24758         canonicalize-lgpl: fix errno after malloca fails
24759         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24760         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24761         * lib/canonicalize-lgpl.c (__realpath):
24762         Don't assume malloca sets errno on failure.
24764 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24766         strtod: port errno handling to z/OS
24767         * lib/strtod.c (strtod): Save and restore errno more reliably.
24769 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24771         strtod: port to z/OS
24772         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24773         implementation.
24775 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24777         strtod: port to z/OS
24778         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24779         implementation.
24781         regex, string: rename to avoid '__string'
24782         * lib/regex.h, lib/string.in.h: Do not use the identifier
24783         '__string', as it is effectively reserved by string.h on z/OS.
24785         c-strcase-tests, wcwidth-tests: depend on c-ctype
24786         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24787         Add c-ctype.
24789 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24791         thread: port to z/OS
24792         * lib/glthread/thread.c, lib/glthread/thread.h:
24793         Rudimentary gl_thread support for z/OS.
24795         maint: port tests to z/OS errno behavior
24796         * tests/test-nonblocking-reader.h:
24797         * tests/test-nonblocking-writer.h:
24798         Accommodate z/OS errno code preferences. (I believe this should
24799         still be within spec; IBM is good at following the letter if not
24800         the spirit of such things.)
24802         maint: preprocessor changes to support z/OS
24803         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
24804         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
24805         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
24806         * tests/test-nonblocking-pipe.h:
24808         fclose, strstr-simple, wchar: port to z/OS
24809         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
24810         Changes to the Autoconf M4 code to support z/OS.  Note that
24811         fclose() is broken in a different way on z/OS than it is on other
24812         systems, thus the special-case in fclose.m4.
24814         iconv_open-utf-tests, iconv-tests: port to EBCDIC
24815         * tests/test-iconv-utf.c, tests/test-iconv.c:
24816         Added appropriately conditional #pragmas so that the test strings
24817         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24818         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24819         addressed in a more portable way by simply rewriting all the ASCII
24820         literal characters as octal escapes, but then you would lose the
24821         partial readability that the strings have now. Also, iconv_open()
24822         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24824         c-strcase-tests, wcwidth-tests: port to EBCDIC
24825         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24826         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24827         * tests/test-wcwidth.c: Likewise.
24829 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24831         stdbool: don't require _Bool for C++
24832         Problem reported by David Seifert in:
24833         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24834         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24835         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24836         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24837         stricter about checking that bool and _Bool are compatible in C.
24839 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24841         getdelim: remove dependency on realloc-posix
24842         * lib/canonicalize-lgpl.c (alloc_failed)
24843         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24844         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24845         Use __set_errno where needed, for consistency.
24846         * lib/getdelim.c (alloc_failed): New function.
24847         (getdelim): Use it.
24849 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24851         parse-datetime: add optional debug printing
24852         Print parsing information, warnings, and errors to stderr.
24853         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24854         * lib/parse-datetime.y:
24855         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24856         (PROGRESS*): Same as DEBUG, for progress reporting.
24857         (dbg_printf): Print message to stderr, with 'date' prefix.
24858         (struct parser_control): Add 'debug_*_seen' variables.
24859         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24860         (debug_print_current_time, debug_print_relateive_time): Prints the
24861         current/relative date/time value of parser_control.
24862         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24863         (to_year): Warn about 2-digit year parsing.
24864         (yylex):   Warn about unrecognized words.
24865         (get_effective_timezone): Returns current timezone in minutes.
24866         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24867         clearly and unambigiously as possible.
24868         (debug_mktime_not_ok): Print detailed information about failed
24869         date/time values.
24870         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24871         PROGRESS messages for status messages.
24872         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24874 2016-08-06  Jim Meyering  <meyering@fb.com>
24876         tests/init.sh: exclude dash with bad "local" semantics
24877         * tests/init.sh (gl_shell_test_script_): Add a function to
24878         eliminate a shell like "dash" (unlike bash, zsh) that has
24879         surprising/risky "local var='...'" semantics.  Inspired by
24880         the problem and discussion in https://bugs.gnu.org/24116#11.
24882 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24884         maint.mk: expand the prohibit_doubled_word regex
24885         This check has a static list of words that are checked for
24886         repetitions.  Expand it before running the perl script to
24887         avoid using expensive captures.  This decreases the cost
24888         for libvirt from 1.66s to 0.66s.
24889         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24890         (sc_prohibit_doubled_word): Use it.
24892 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24894         useless-if-before-free: skip non-matching lines early
24895         * build-aux/useless-if-before-free: First match each line with the
24896         simple/quick /\bif\b/ and reject if there is no match. This often
24897         saves the cost of the much more involved regular expression.
24898         For libvirt, this decreases the cost from 1.44s to 1.02s.
24900 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24902         maint.mk: speed up sc_po_check
24903         sc_po_check would skip files based on their names, or on the
24904         existence of files with derived names. Rewrite it to use perl
24905         instead of shell to make the check faster.
24906         * top/maint.mk (perl_translatable_files_list_): Define.
24907         (sc_po_check): Use it.
24909 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24911         maint.mk: speed up require_config_h_first
24912         Instead of spawning three processes per file,
24913         rewrite the check in perl and run it once for all the files.
24914         * top/maint.mk (perl_config_h_first_): Define.
24915         (sc_require_config_h_first): Use it in place of shell code.
24917 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24919         maint.mk: speed up sc_po_check
24920         sc_po_check would skip files based on their names, or on the
24921         existence of files with derived names. Rewrite it to use perl
24922         instead of shell to make the check faster.
24923         * top/maint.mk (perl_translatable_files_list_): Define.
24924         (sc_po_check): Use it.
24926 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24928         obstack: pacify GCC 6 with -Wnull-dereference
24929         Problem reported by Assaf Gordon in:
24930         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24931         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24932         Declare with __attribute_noreturn__.
24933         * lib/obstack.h (__attribute_noreturn__): New macro.
24935 2016-07-13  Eric Blake  <eblake@redhat.com>
24937         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24938         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24939         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24941 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24943         doc: mention glibc SSIZE_MAX buglet
24944         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24946 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24948         printf-posix: Fix mingw build
24949         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24950         expression for detecting C symbol prefixes but forgot to qoute square
24951         brackets in the command line arguments for grep.  That way when
24952         building with mingw the condition was false although it ought to be
24953         true instead.  In particular scenarios this led to the following
24954         compile error:
24956             Cannot export rpl_printf: symbol not found
24957             Cannot export rpl_scanf: symbol not found
24958             collect2: error: ld returned 1 exit status
24960         Fix this by properly quoting square brackets.
24962 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24964         mktime: call tzset as per POSIX
24965         Problem reported by Ludovic Courtès in:
24966         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24967         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24968         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24970 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24972         fts: handle readdir() errors
24973         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24974         but also upon error when it will also set errno.  Therefore
24975         flag the error case from readdir().  We treat the case where
24976         no items are read the same as if the dir can't be accessed,
24977         i.e. by setting fts_errno to FTS_DNR.
24979 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24981         intprops: port better to GCC 7
24982         GCC 7 __builtin_add_overflow supports a new usage form, where the
24983         last argument is a null pointer, and which merely returns 1 if an
24984         overflow would occur.  This is a constant expression if all
24985         arguments are constants, and should generate faster code when code
24986         needs to be generated.
24987         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24988         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24989         Use builtin operations if available.
24990         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24991         operations are available, as it's almost surely faster.
24993 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24995         intprops-test: port to GCC 6
24996         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24997         since the bug is not fixed in GCC 6.1.
24999 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
25001         xalloc-oversized: port to GCC 7; fewer warnings
25002         GCC 7 will have a better way to deal with integer overflow.
25003         Plus, fix a warnings problem reported by Tim Ruehsen in:
25004         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
25005         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
25006         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
25007         For GCC 5, use __xalloc_oversized if both args are constants,
25008         or if pedantic.
25010 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
25012         regex: port to Sun C
25013         Reported by Daiki Ueno.
25014         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
25015         __restrict, in prototype.  This fixes a problem I introduced in
25016         the 2016-02-19 merge from glibc.
25018 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25020         stdbool: Restore __bool_true_false_are_defined check
25021         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
25022         __bool_true_false_are_defined is still defined, even with C++11.
25024 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
25026         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
25027         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
25029 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25031         Use GCC_LINT, not lint
25032         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
25033         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
25034         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
25035         Document problem with lint and _Noreturn.
25036         * lib/diffseq.h (IF_LINT, IF_LINT2):
25037         * lib/fts.c (sccsid):
25038         * lib/getndelim2.c (IF_LINT):
25039         * lib/gl_anylinked_list2.h (gl_linked_iterator)
25040         (gl_linked_iterator_from_to):
25041         * lib/gl_anytree_list2.h (gl_tree_iterator)
25042         (gl_tree_iterator_from_to):
25043         * lib/gl_anytree_oset.h (gl_tree_iterator):
25044         * lib/gl_array_list.c (gl_array_iterator)
25045         (gl_array_iterator_from_to):
25046         * lib/gl_array_oset.c (gl_array_iterator):
25047         * lib/gl_carray_list.c (gl_carray_iterator)
25048         (gl_carray_iterator_from_to):
25049         * lib/idcache.c:
25050         * lib/inet_ntop.c (IF_LINT):
25051         * lib/regcomp.c (build_charclass_op, create_tree):
25052         * lib/regex_internal.c (re_acquire_state)
25053         (re_acquire_state_context):
25054         * lib/trigl.c (rcsid):
25055         * lib/trim.c (IF_LINT):
25056         * lib/vasnprintf.c (IF_LINT):
25057         * lib/verify.h (assume):
25058         Treat GCC_LINT like lint.
25060 2016-05-29  Bruno Haible  <bruno@clisp.org>
25062         secure_getenv: Port to many more platforms.
25063         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
25064         functions.
25065         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
25066         for non-BSD Unix platforms and for native Windows.
25067         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
25068         Prompted by a request from Nikos Mavrogiannopoulos.
25070 2016-05-27  Eric Blake  <eblake@redhat.com>
25072         canonicalize: Fix broken probe for realpath.
25073         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
25074         in logic introduced in 54615b95.
25076 2016-05-26  Eric Blake  <eblake@redhat.com>
25078         unsetenv: relax to LGPLv2+
25079         * modules/unsetenv (License): Match setenv license.
25081 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
25083         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
25084         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
25085         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
25086         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
25087         (commonarg, dirargs, dirs, infoarg, generate_ascii)
25088         (generate_html, generate_info, generate_tex, outdir)
25089         (source_extra, split, srcfile, texarg): Move above 'version'.
25090         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
25092 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25094         manywarnings: update for GCC 6.1
25095         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
25096         Add GCC 6.1 options that apply to C.
25097         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
25098         do not apply to C, are obsolescent, etc.
25100 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
25102         glob: size_t overflow checks
25103         * lib/glob.c (__has_builtin): New macro.
25104         (size_add_wrapv, glob_use_alloca): New static functions.
25105         (glob, glob_in_dir): Check for size_t overflow in several places,
25106         and fix some size_t checks that were not quite right.
25108         glob: don't assume INT_MAX < SIZE_MAX
25109         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
25110         latter is not portable to (probably theoretical) hosts where
25111         SIZE_MAX <= INT_MAX.
25113 2016-05-09  Bruno Haible  <bruno@clisp.org>
25115         Fix undefined behaviour in gettext.h.
25116         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
25117         pointer's value after the storage it points to has been freed.
25118         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
25119         Spotted by Coverity.
25121 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
25123         git-version-gen: avoid undefined shift
25124         Problem reported by Mosè Giordano in:
25125         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
25126         * build-aux/git-version-gen: Avoid undefined behavior if invoked
25127         with --prefix or --fallback but without a later argument.  While
25128         we're at it, omit unnecessary quotes.
25130 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
25132         glob: merge glibc changes into lib/glob.c
25133         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
25134         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
25135         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
25136           struct dirent [BZ #19779]
25137         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
25138           callback gl_readdir
25139         2015-10-20 Convert miscellaneous function definitions to prototype style
25140         2015-10-20 Convert 113 more function definitions to prototype style
25141           (files with assertions)
25142         2015-06-12 Fix getlogin_r namespace (bug 18527).
25143         2014-02-10 Use glibc_likely instead __builtin_expect.
25144         2013-10-20 When glob pattern contains a trailing slash match only
25145           directories. Fixes bug 10278.
25146         2013-09-04 glob: silence -Wattribute warnings
25147         2013-06-07 Avoid use of "register" as optimization hint.
25148         2012-09-25 Use size_t instead of int for internal variables in glob
25149           (bug 14621)
25150         2011-07-20 Check for overflows in expressions
25151         2011-05-28 Remove unused variable
25152         2011-05-22 Add a few more alloca size checks
25153         2010-03-27 Whitespace fixes
25154         2010-03-27 Fix one more issue with the glob patch
25155         2010-03-24 Fix glob with empty pattern
25156         2008-05-27 Remove useless more "if" tests before "free"
25157         * modules/glob (Depends-on): Add stdint.
25159 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25161         mktime: port to stricter signed overflow checking
25162         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
25163         (long_int): Require width for INT_MAX * 3 * (seconds per year),
25164         instead of merely for INT_MAX * 2.  In practice platforms that
25165         do the latter also do the former.
25166         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
25167         (shr): New static function, replacing SHR.  All uses changed.
25168         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
25169         and TIME_T_MAX.  All uses changed.
25170         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
25171         Use long_int, not time_t.
25172         (long_int_avg): New static function, replacing time_t_avg.
25173         All uses changed.  Round toward positive infinity, as that
25174         generates slightly better code.
25175         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
25176         by INT_ADD_WRAPV.
25177         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
25178         (convert_time): New static function.
25179         (ranged_convert): Use it
25180         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
25181         Use simpler test for loop exit.
25182         (__mktime_internal): Store negative of guessed offset, to simplify
25183         overflow checking.  Remove no-longer-needed test for small time_t
25184         overflows.
25186         mktime: speed up DEBUG_MKTIME benchmarks
25187         Call tzset just once, at the start, rather than for every test
25188         case.  This lets us measure the CPU cost of mktime as opposed to
25189         that of tzset.  This is relevant when TZ is not set and glibc is
25190         being used.  This speeds up tests by a factor of 40 on my Fedora
25191         23 x86-64 platform.
25192         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
25193         to call tzset and as a sanity check.  Later on, use localtime_r
25194         instead of localtime.
25196         mktime: resurrect DEBUG_MKTIME testing
25197         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
25198         Include <string.h>, for strcmp.
25200         mktime: simplify DEBUG_MKTIME
25201         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
25202         Simplify later usage accordingly.
25204         Port mktime_internal offset to unsigned time_t
25205         This avoids some assumptions about wraparound arithmetic on
25206         signed integer overflow.
25207         * lib/mktime-internal.h (mktime_offset_t): New type.
25208         (mktime_internal): Use it in decl.
25209         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
25211         * lib/mktime.c (__mktime_internal, localtime_offset):
25212         * lib/timegm.c (timegm): Use it.
25213         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
25214         (gl_FUNC_MKTIME): Require it.
25216 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25218         xstrtol: prohibit monstrosities like "1bB"
25219         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
25220         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
25221         "B" only if the first suffix needs a base.
25222         * tests/test-xstrtol.sh: Test this.
25224 2016-04-21  Pádraig Brady  <P@draigBrady.com>
25226         xstrtod: reinstate setting of *result upon ERANGE
25227         * lib/xstrtod.c (XSTRTOD): The user may decide to use
25228         the returned limits upon ERANGE, so allow and document that.
25230 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
25232         xstrtod: modify *result only if no errors
25233         * lib/xstrtod.c (XSTRTOD).
25235 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25237         btowc: document problems in C locale
25238         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
25239         with mbrtowc.  See: http://bugs.gnu.org/23269#32
25241 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25243         mktime: improve integer overflow checking
25244         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
25245         (WRAPV): Remove; no longer needed.
25246         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
25247         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25248         Remove.  Use intprops.h defns instead.
25249         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
25250         Use bool for Boolean, for clarity.
25251         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
25252         detect integer overflow.
25253         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
25255         intprops: check two's complement assumption
25256         Suggested by Eric Blake in:
25257         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
25258         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
25259         short, int, long, and (if available) long long are two's complement.
25260         * modules/intprops (Depends-on): Add 'verify'.
25262         intprops, mktime, strtol: assume two's complement
25263         These macros were not portable to every conforming C11 ones'
25264         complement platform.  It's not worth the hassle of porting to some
25265         platforms that use ones' complement or signed magnitude, as such
25266         platforms are almost purely theoretical nowadays and porting even
25267         to some of them makes the code harder to review for little
25268         practical benefit.  Problem reported by Florian Weimer in:
25269         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
25270         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25271         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
25272         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
25273         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25274         (TYPE_SIGNED_MAGNITUDE):
25275         Remove.  All uses rewritten to assume two's complement, which is
25276         all we can reasonably test nowadays anyway.
25277         * top/maint.mk (_intprops_names): Remove the removed macros.
25279 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25281         stdint: port to strict C11 left shift
25282         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
25283         Pacify clang -Wshift-negative-value, which should be an issue only
25284         on clang setups where stdint.h does not conform to C11 or to C++11.
25285         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
25287 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25289         mbrtowc: work around glibc bug#19932
25290         Fix mbrtowc so that it never returns -1 in the C locale,
25291         as this conflicts with a future version of POSIX
25292         http://austingroupbugs.net/view.php?id=663#c2738
25293         and causes problems with GNU grep: http://bugs.gnu.org/23234
25294         See glibc bug 19932:
25295         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
25296         * doc/posix-functions/mbrlen.texi (mbrlen):
25297         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25298         Document the glibc bug.
25299         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
25300         Include hard-locale.h, locale.h.
25301         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
25302         if the bug is possible.
25303         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
25304         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
25305         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
25306         * modules/mbrtowc (Depends-on): Add hard-locale.
25307         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
25308         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
25309         * tests/test-mbrtowc5.sh: New file.
25311 2016-04-03  Pedro Alves  <palves@redhat.com>
25313         stdint: detect good enough pre-C++11 stdint.h in C++ mode
25314         When gnulib is configured in C++ mode for a system with a working C99
25315         implementation of stdint.h that predates C++11, gnulib ends up
25316         substituting stdint.h anyway.  This works on most targets, but on e.g.,
25317         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
25318         MinGW is LLP64.  Instead of trying to detect the right types, detect
25319         good-enough-pre-C++11 stdint.h and in such case define
25320         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
25321         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
25322         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
25323         conforms to C99.  If it does, check whether it hides symbols
25324         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
25325         does, define those macros in config.h.
25327 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25329         argp: merge changes from glibc
25330         Among other things, this should fix problems found by a Coverity
25331         scan and reported by Andrei Borzenkov:
25332         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
25333         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
25334         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
25335         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
25336         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
25337         * lib/argp.h:
25338         Merge changes from glibc.
25339         * tests/test-argp-2.sh: Adjust to match new behavior.
25341 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
25343         stddef: support configuring with g++
25344         Problem reported by Ángel González in:
25345         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
25346         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
25347         Do not define if _GCC_MAX_ALIGN_T is defined.
25349 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25351         test-framework-sh: minor cleanups
25352         * tests/init.sh (testdir_prefix_): Output a trailing newline,
25353         since strictly speaking POSIX requires this.
25354         (setup_): Do not use the variable 'fail', as that makes the
25355         trace output harder to read ('fail' is typically used by
25356         tests to mean the test failed).  Treat // portably.
25357         Check that new directory is not merely a sibling of the tmp dir.
25358         Avoid unnecessary invocation of tr.
25360         test-framework-sh: revert port to NetBSD 7.0
25361         It was a false alarm; I misinterpreted Assaf Gordon's report.
25362         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25363         Restore.
25364         (test_dir_): Adjust to mktempd_ change.
25365         (mktempd_): Restore 2nd arg.  Use -t again.
25366         (base_template_, template_, nx_): Resurrect old code.
25368         Port better to Alpine Linux
25369         Its diff implementation does not support -c, but does support -U3.
25370         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25371         * tests/init.sh (diff_opt_): New var.
25372         (compare_): Prefer diff -U3 to diff -c to plain diff.
25374 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25376         test-framework-sh: port to NetBSD 7.0
25377         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25378         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25379         Remove.  All uses removed.
25380         (test_dir_): Adjust to mktempd_ change.
25381         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25382         (base_template_, template_, nx_): Simplify by hardcoding.
25384 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25386         gitlog-to-changelog: suppress ignored chatter
25387         * build-aux/gitlog-to-changelog: Do not warn about skipping
25388         an SHA if it would have been ignored anyway.
25390 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25392         setlocale: add "sv" to Windows language table
25393         * lib/setlocale.c (language_table) [W32]: Add "sv".
25394         Reported in <https://savannah.gnu.org/bugs/?44588>.
25396 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25398         sys_select: port to new Cygwin
25399         Problem reported by Ken Brown in:
25400         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25401         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25402         diagnostics.
25404 2016-03-17  Jim Meyering  <meyering@fb.com>
25406         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25407         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25408         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25409           test-userspec.c:176:9: error: statement is indented as if it were \
25410             guarded by... [-Werror=misleading-indentation]
25411                    {
25412                    ^
25413           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25414                  if (!diag && !T[i].result)
25415                  ^~
25417 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25419         time_rz: port to clang -Wunused-const-variable
25420         * lib/time_rz.c (TZ): Remove.  All uses removed.
25422         std-gnu11: improve clang support
25423         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25424         2016-03-15 Also try clang
25425         2016-03-15 Port C11 and C++11 testing to clang
25427         select: port more to Intel 2016.1.150 compiler
25428         Problem reported by Balázs Hajgató in:
25429         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25430         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25432 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25434         select: try to port to 2016.1.150 compiler
25435         Problem reported by Balázs Hajgató in:
25436         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25437         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25438         POSIX specifies 'restrict'.
25440 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25442         localename-tests: memory allocation fixes
25443         * tests/test-localename.c (test_locale_name)
25444         (test_locale_name_thread): Don't call freelocale on a locale
25445         that was the base of a successful newlocale, as that
25446         results in a double free.  Problem reported by Assaf Gordon.
25447         (test_locale_name_thread): Free saved names after use, to pacify
25448         gcc -fsanitize=address.
25450 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25452         intprops: make .h file license match module
25453         * lib/intprops.h: Change the license wording to match glibc format.
25454         This is what is in modules/intprops anyway.  See:
25455         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25457 2016-03-08  Eric Blake  <eblake@redhat.com>
25459         acl: fix missing return on Cygwin
25460         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25461         fall off end of function. Fixes http://bugs.gnu.org/22949
25463 2016-03-05  Bruno Haible  <bruno@clisp.org>
25465         extern-inline: port to PGI CC
25466         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25467         keyword 'inline'.
25468         Reported by Adam James Stewart in:
25469         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25471 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25473         signbit: port back to pre-C++11 GCC
25474         * lib/math.in.h (signbit): Do previous change only if
25475         __cplusplus < 201103.  See Jonathan Wakely in:
25476         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25478 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25480         mountlist: recognize autofs-mounted remote file systems, too
25481         Originally reported at: https://bugzilla.redhat.com/1309247
25482         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25483         "-hosts" because it is used by autofs to mount remote file systems.
25485 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25487         signbit: port to C++ with GCC 6
25488         * lib/math.in.h (signbit) [__cplusplus]:
25489         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25490         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25492         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25494         regex: make it closer to libc
25495         Make Idx a signed type, rather than possibly unsigned.
25496         The unsignedness was not really buying us anything, since the code
25497         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25498         it signed allows us to use -1 and -2 with abandon, like libc does,
25499         thus lessening the number of differences between gnulib and libc.
25500         Also, it should help avoid gratuitous warnings like the one
25501         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25502         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25505         regex: merge patches from libc
25507         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25508         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25509         Convert miscellaneous function definitions to prototype style.
25510         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25511         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25512         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25513         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25514         (re_search_internal):
25515         Convert to prototype-style function definition.
25516         Use internal_function for internal functions.
25518 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25520         stdalign: port to older HP and IBM cc
25521         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25522         C compilers, by checking their version numbers.  These version
25523         numbers appear in MariaDB and in Qt code that dates way back and
25524         that conditiionally uses the 'aligned' attribute.
25526 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25528         stdalign: port to clang 3.7.0
25529         Problem reported by Herbert J. Skuhra in:
25530         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25531         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25532         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25533         https://llvm.org/bugs/show_bug.cgi?id=26547
25535 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25537         readdir_r: now obsolescent
25538         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25539         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25541 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25543         misc: port better to gcc -fsanitize=address
25544         Without these patches, ./configure CFLAGS='-fsanitize=address'
25545         would compute incorrect values.  This patch fixes some (but not all)
25546         test failures with recent glibc, with this configuration.
25547         * m4/acl.m4 (gl_ACL_GET_FILE):
25548         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25549         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25550         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25551         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25552         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25553         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25554         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25555         * m4/getline.m4 (gl_FUNC_GETLINE):
25556         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25557         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25558         * m4/regex.m4 (gl_REGEX):
25559         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25560         * tests/test-calloc-gnu.c (main):
25561         * tests/test-duplocale.c (main):
25562         * tests/test-getgroups.c (main):
25563         * tests/test-getline.c (main):
25564         * tests/test-inttostr.c (main):
25565         * tests/test-localename.c (test_locale_name)
25566         (test_locale_name_thread, test_locale_name_environ)
25567         (test_locale_name_default):
25568         * tests/test-regex.c (main):
25569         * tests/test-setlocale1.c (main):
25570         * tests/test-stat.h (test_stat_func):
25571         Free heap-allocated storage before exiting.
25572         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25573         Don't match *_foo symbols inserted by AddressSanitizer.
25574         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25576 2016-02-02  Jim Meyering  <meyering@fb.com>
25578         verify-tests: also remove stray test-verify.Tpo
25579         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25580         to remove the test-verify.Tpo file that is left behind by
25581         the automake-generated rule upon compilation failure.
25582         Otherwise, that .Tpo file would cause a failed "make distcheck"
25583         at least for grep.
25585 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25587         std-gnu11: new module
25588         This makes it easier for applications to prefer C11 and C++11
25589         to older variants, when compiling C and C++ code.
25590         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25591         a nontrivial chunk of GPLed Autoconf source code.
25592         * COPYING: Mention the m4/*.m4 copyright situation.
25593         * MODULES.html.sh (std-gnu11): New module.
25594         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25596 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25598         get-permissions, strftime: fix grammar in comments
25599         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25600         some grammar fixes Alan Mackenzie made to GNU Emacs.
25602 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25604         gettext: mark as obsolete
25605         Suggested by Paul Eggert in:
25606         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25607         * modules/gettext (Status): Mark as obsolete.
25608         (Notice): Suggest to use 'gettext-h' instead.
25609         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25610         the 'gettext' module.
25612 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25614         gnulib-tool: don't give up on ln -s so easily
25615         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25616         because an earlier one failed.  The targets could be on different
25617         file systems.  Problem reported by KO Myung-Hun in:
25618         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25620         closedir: fix OS/2-related typos
25621         Problem reported by KO Myung-Hun in:
25622         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25623         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25624         in the last couple of changes.
25626 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25628         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25629         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25630         copying a directory.
25632 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25634         regex: treat [x] as x if x is a unibyte encoding error
25635         Problem reported by Aharon Robbins in:
25636         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25637         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25638         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25640         closedir, dirfd, opendir: port to OpenSolaris 5.10
25641         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25642         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25643         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25644         Don't use ${word##pat} substitution, as it doesn't work in
25645         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25646         http://bugs.gnu.org/22443#11
25648 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25650         bootstrap: use American spelling
25651         * build-aux/bootstrap: Honor American spelling.
25653 2016-01-22  Karl Berry  <karl@freefriends.org>
25655         * doc/posix-functions/localtime.texi,
25656         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25658 2016-01-21  Bruno Haible  <bruno@clisp.org>
25660         hash-pjw-bare: fix comment
25661         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25663         wcwidth: Replace also on OpenBSD 5.8
25664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25665         * doc/posix-functions/wcwidth.texi: Update.
25667 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25669         gnu-web-doc-update: fix addition of new files
25670         If there were already added (emnpty) dirs,
25671         then cvs aborts the add with the message:
25672           cvs [add aborted]: there is a version in <./dirname> already
25673         * build-aux/gnu-web-doc-update: Add directories separately
25674         to the addition of files, to avoid the above issue
25675         impacting the addition of files.
25677 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25679         utimens-tests: avoid pulling gettext .m4 files
25680         Although this is not the right fix to the original problem:
25681         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25682         it makes it possible again for consumer projects to use arbitrary
25683         version of gettext, through the steps described at:
25684         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25685         See here for details:
25686         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25687         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25688         'gettext'.
25689         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25690         'gettext'.
25692 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25694         regex: pacify static checkers
25695         Problem and draft fix reported by Aharon Robbins in:
25696         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25697         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25698         Clear memory to pacify static checkers.
25700         regex: fix [ diagnostic
25701         Problem and fix reported by Aharon Robbins in:
25702         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25703         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25705         regex: fix memory leaks
25706         Problem and draft fix reported by Aharon Robbins in:
25707         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25708         * lib/regcomp.c (build_range_exp, build_charclass_op)
25709         * lib/regex_internal.c (re_dfa_add_node):
25710         Fix memory leak on failure.
25712 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25714         fts: don't unconditionally use leaf optimization for NFS
25715         NFS st_nlink are not accurate on all implementations,
25716         leading to aborts() if that assumption is made.
25717         See <https://bugzilla.redhat.com/1299169>
25718         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25719         the white list, and document the issue.
25721 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25722             KO Myung-Hun  <komh@chollian.net>
25724         gnulib-tool: don't assume ln -s works
25725         * gnulib-tool (func_ln_s): New function.
25726         (func_ln): Use it.
25728 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25730         utimes: detect utimes() correctly on OS/2 kLIBC
25731         utimes() of OS/2 kLIBC has some limitations.
25732         1. OS/2 itself supports a file date since 1980 year in local time.
25733         2. OS/2 itself supports only even seconds for a file time.
25734         3. utimes() of OS/2 kLIBC does not work on an opened file.
25735         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25736         * doc/posix-functions/utimes.texi: Document the above limitations of
25737         utimes() on OS/2 kLIBC.
25739 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25740             KO Myung-Hun  <komh@chollian.net>
25742         openat_proc_name: port to OS/2 kLIBC
25743         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25744         instead of /proc/self/fd.
25745         * lib/openat-proc.c (openat_proc_name):
25746         Don't assume file name length is less than INT_MAX.
25747         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25749 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25751         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25752         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25753         definitions of intptr_t and uintptr_t (which use int and unsigned)
25754         to avoid clashes with declarations of system functions like sbrk.
25755         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25756         _INTPTR_T_DECLARED before defining them.
25758         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25759         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25760         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25761         Declare on kLIBC.
25762         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25763         fd associated with dirp.
25764         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25765         dirp_fd_list.
25766         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25767         (dirfd): Implemented for kLIBC.
25768         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25769         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25770         succeeds.
25771         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25773         (REPLACE_DIRFD): Define to 1 if replaced.
25774         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25775         * modules/closedir (Depends-on): Add dirfd.
25776         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25777         condition.
25778         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25779         * modules/opendir (Depends-on): Add dirfd.
25781         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25782         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25783         * lib/dup.c (dup_nothrow): New.
25784         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25785         (klibc_dup2): New.
25786         * lib/fcntl.c (klibc_fcntl): New.
25787         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25788         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25789         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25790         fd.
25792         pipe_filter_ii_execute: port to OS/2 kLIBC
25793         Pipes on kLIBC do not support O_NONBLOCK like Win32.
25794         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
25795         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
25796         Reuse Win32 code on OS/2 kLIBC.
25797         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
25798         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
25800         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
25801         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
25802         static inline function.  The implementation of wcwidth in wcwidth.c
25803         causes a "conflicting types" error.
25804         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
25806         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
25807         spawn() on OS/2 kLIBC is not silly like one on Windows
25808         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
25809         empty string on OS/2 kLIBC.
25811         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
25812         On OS/2 kLIBC, select() works only on sockets.
25813         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
25815         binary-io: don't put fd in binary mode if it is a console on EMX
25816         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
25817         a console on EMX.
25819 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25821         doc: mention unfixed issues with unsupported localtime() values
25822         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25823         returns nonsense for localtime(2^56).
25824         * doc/posix-functions/localtime_r.texi: Likewise.
25826 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25828         doc: mention setlocale() issues on OpenBSD
25829         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25830         never fails, and the need to check categories individually.
25832 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25834         sig2str: list all signals on FreeBSD >= 7
25835         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25836         to the maximal statically defined signal value.
25837         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25838         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25839         where available, even when NSIG is defined.
25841 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25843         acl-permissions: port to USE_ACL==0 platforms
25844         I ran into this problem when building bleeding-edge GNU Emacs
25845         with gcc -fsanitize=address on Fedora 23.  On this platform
25846         the ACL library does not pass the 'configure' test and Emacs
25847         then does not build due in part to what appear to be typos in the
25848         ACL part of Gnulib.
25849         * lib/acl-internal.c (free_permission_context):
25850         * lib/acl-internal.h (struct permission_context):
25851         Test whether USE_ACL is nonzero, not whether it is defined.
25853 2016-01-12  Martin Sebor  <msebor@redhat.com>
25855         mktime: rename macro to avoid glibc clash
25856         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25857         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25859 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25861         Port "$@" to OpenIndiana ksh93
25862         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25863         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25864         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25865         bug long-dead shells, so remove the workaround.
25866         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25867         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25868         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25869         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25870         Use "$@" instead of ${1+"$@"}.
25872         Port Universal Time settings to strict POSIX
25873         * build-aux/announce-gen, build-aux/bootstrap:
25874         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25875         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25876         * build-aux/gnupload, build-aux/mkinstalldirs:
25877         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25878         * build-aux/update-copyright, build-aux/useless-if-before-free:
25879         * build-aux/vc-list-files, tests/test-strftime.c:
25880         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25881         but POSIX says the behavior of TZ="UTC" is undefined.
25883 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25885         msvc-inval: fix problem with unset shell var
25886         Problem reported by Karl Berry in:
25887         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25888         * modules/msvc-inval (Depends-on):
25889         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25890         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25892 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25894         tests: for compare_(), use cmp -s where available
25895         * tests/init.sh (compare_): Only fall back to cmp without
25896         the POSIX defined -s option, where this is not available.
25898 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25900         version-etc: new year
25901         * build-aux/gendocs.sh (version):
25902         * doc/gendocs_template:
25903         * doc/gendocs_template_min:
25904         * doc/gnulib.texi:
25905         * lib/version-etc.c (COPYRIGHT_YEAR):
25906         Update copyright dates by hand in templates and the like.
25907         * all files: Run 'make update-copyright'.
25909 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25911         human: fix output buffer overrun by 1
25912         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25913         calculation that could lead to a one-byte buffer overrun.
25915 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25917         maint: fix operator precedence in mbrtowc test
25918         This is a fix for test breakage introduced by commit 45228d96; the
25919         equality expression must be parenthesized when negated with '!',
25920         otherwise we always get:
25922           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25924         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25925         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25927 2015-12-23  James Youngman  <jay@gnu.org>
25929         regexprops-generic: update from regex.h
25930         * doc/regexprops-generic.texi: update by running the regexprops binary
25931         from findutils (the command line is 'regexprops "Regular Expressions"
25932         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25933         gnulib with GNU grep had made this document out-of-date.
25935 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25937         strftime-tests: avoid false failure on OS X
25938         * tests/test-strftime.c (struct localtime_rz_test): Add an
25939         ahistorical member which is used to warn rather than fail
25940         when tm_isdst isn't set for such entries.  This is the case for
25941         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25943 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25945         fts: ensure leaf optimization is used for NFS
25946         NFS provides usable dirent.d_type but not necessarily for all entries
25947         of large directories.  See <https://bugzilla.redhat.com/1252549>
25948         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25950 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25952         fts: enable leaf optimization for XFS
25953         XFS provides usable dirent.d_type only for DT_DIR,
25954         but the noleaf optimization still applies.
25955         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25957 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25959         intprops: comment fix
25960         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25961         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25963         intprops-test: work around GCC bug 68971
25964         Problem reported by Pádraig Brady in:
25965         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25966         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25967         (main): Add a case that better tests 64-bit long in this area.
25969 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25971         gnulib-tool: allow multiple --local-dir usage
25972         * gnulib-tool: Use --local-dir to construct compound
25973         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25974         PATH_SEPARATOR early.
25975         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25976         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25977         func_determine_path_separator because that needs to be detected
25978         earlier now.
25979         (func_determine_path_separator): New function.
25980         (func_path_foreach, func_path_foreach_inner): New functions.
25981         (func_path_prepend, func_path_append): Likewise.
25982         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25983         (func_lookup_file, func_all_modules): Use new functions to work
25984         with local_gnulib_path.
25985         (func_modules_in_dir, func_exists_module): New callbacks for
25986         func_path_foreach.
25987         (func_exists_module, func_get_tests_module): Likewise.
25988         (func_is_local_file, func_should_symlink): New helper methods.
25989         (func_add_file, func_update_file): Use new func_should_symlink
25990         instead, DRY.
25991         (func_reconstruct_cached_local_gnulib_path): New helper.
25992         (func_reconstruct_cached_dir): New callback.
25993         (func_import): The cached_local_gnulib_dir renamed to
25994         cached_local_gnulib_path similarly to local_gnulib_dir.
25995         Use new func_reconstruct_cached_local_gnulib_path.
25996         (func_count_relative_local_gnulib_path): New sub-method.
25997         (func_create_testdir): Use func_should_symlink, DRY.
25998         (func_create_megatestdir): Use new functions to work with
25999         local_gnulib_path correctly.
26000         (func_append_local_dir): New helper.
26002 2015-12-08  Pádraig Brady  <P@draigBrady.com>
26004         fix freadptr to work with ungetc on all uClibc configs
26005         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
26006         where GNU coreutils cut(1) generates invalid output on uClibc
26007         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
26008         * lib/freadptr.c (freadptr): Return NULL if there are
26009         ungotten chars.  In this case freadseek() will iterate
26010         again to process the ungotten character.
26012 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
26014         xalloc-oversized: improve performance with GCC 5
26015         * lib/xalloc-oversized.h (xalloc_oversized):
26016         Improve performance with GCC 5 by using __builtin_mul_overflow.
26018 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26020         intprops: new public macro EXPR_SIGNED
26021         Emacs can use this macro, so make it public.
26022         * doc/intprops.texi (Arithmetic Type Properties): Rename from
26023         'Integer Type Determination', since some of these macros apply
26024         to non-integer types.  Clarify what kinds of constant expressions
26025         these macros return.  Say when the arguments can be non-integers.
26026         Mention newly published macro EXPR_SIGNED.
26027         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
26028         make it public.  All uses changed.
26030         intprops: fix typo in clang port
26031         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
26032         '__builtin_add_overflow' that is not caught by compiler.
26034 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26036         test-timespec: fix typo in previous change
26037         * tests/test-timespec.c (main): Fix typo that reduced test quality.
26039         timespec-sub: fix overflow bug; add tests
26040         * lib/timespec-add.c (timespec_add):
26041         * lib/timespec-sub.c (timespec_sub):
26042         Work even if time_t is narrower than int (a theoretical
26043         possibility).  Redo code for a bit more clarity.
26044         * lib/timespec-sub.c (timespec_sub):
26045         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
26046         * modules/timespec-tests, tests/test-timespec.c: New files.
26048         intprops-test: suppress -Woverlength-strings
26049         Problem reported by Pádraig Brady in:
26050         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
26051         It is not worth the hassle to port this test to compilers that
26052         cannot handle long strings in diagnostics.
26053         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
26055 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26057         quotearg: add quotearg_n_style_colon()
26058         This quotes with default options of the specified style,
26059         but with quoting enabled for instances of ':'.
26060         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
26061         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
26063 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26065         intprops: revise _WRAPV macros, revert _OVERFLOW
26066         The incompatible changes to the _OVERFLOW macros were too much of
26067         a hassle in practice, so revert them.  Instead, change the new
26068         _WRAPV macros to make them closer in behavior to GCC 5's new
26069         builtin_add_overflow etc. functions.  No other software was using
26070         these newly-added macros yet, so this should be OK.
26071         * NEWS: Revert previous change, since the incompatible change
26072         has been reverted, and nobody used the incompatible version.
26073         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
26074         Document revised behavior.
26075         (Integer Range Overflow): Adjust example to match above revisions.
26076         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
26077         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
26078         these can be used in integer constant expressions again.
26079         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
26080         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
26081         needed.
26082         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26083         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26084         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
26085         Remove, as they did not seem that useful.
26086         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
26087         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
26088         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
26089         Support new semantics.
26090         (__has_builtin): New macro, if not alreay defined.
26091         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
26092         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26093         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26094         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26095         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
26096         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
26097         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
26098         New macros.
26099         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
26101 2015-11-03  Jim Meyering  <meyering@fb.com>
26103         intprops: add parentheses for when OP has precedence lower than "-"
26104         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
26105         "a OP b" must be parenthesized for when OP is like "<<", which has
26106         lower precedence than the following "-". Reported by Pádraig Brady.
26108 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26110         quotearg: constify get_quoting_style parameters
26111         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
26112         * lib/quotearg.c (get_quoting_style): Likewise.
26114 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26116         quotearg: add support for $'' shell escaping
26117         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
26118         items and descriptions.
26119         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
26120         above types by quoting like "shell", but using $'...' syntax
26121         for non printable characters, which should provide unambiguous
26122         printable output for any input.
26123         * tests/test-quotearg-simple.c: Update accordingly.
26125 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26127         maint: use a more standard return from mbrtowc test
26128         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
26129         from the test program as this is non standard and often
26130         indicates an unhandled case in the test program.
26131         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26133 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26135         intprops: add WRAPV and const flavors for GCC 5
26136         If available, use GCC 5's builtin functions for efficient integer
26137         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
26138         and safely compute the low-order bits of the correct answer.
26139         A downside of these efficient functions is that they cannot be
26140         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
26141         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
26142         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
26143         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
26144         Document the changes.
26145         (Wraparound Arithmetic): New section.
26146         (Integer Range Overflow):
26147         Put this subsection last, since it's least useful.
26148         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
26149         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
26150         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
26151         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26152         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26153         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
26154         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
26155         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
26156         New macros.
26157         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
26158         Generate calls to GCC builtins if available, for speed.
26159         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26160         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26161         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26162         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
26163         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
26164         (CHECK_QUOTIENT, CHECK_REMAINDER):
26165         Test WRAPV and CONST flavors (when available) too.
26167 2015-10-30  Pádraig Brady  <P@draigBrady.com>
26169         doc: use extended timezone format in iso-8601 example
26170         * doc/parse-datetime.texi: The standard states that extended format
26171         is to be used consistently throughout.
26172         Note that lib/parse-datetime.y can handle either tz format.
26174 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26176         stdalign: port to Sun C 5.9
26177         * doc/posix-headers/stdalign.texi: Document this.
26178         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
26179         __attribute__ ((__aligned__ (...))).
26181 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26183         time_rz: fix comment about tzalloc
26184         * lib/time_rz.c (tzalloc): Fix comment.
26186 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26188         stdalign: work around pre-4.9 GCC x86 bug
26189         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
26190         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
26191         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
26193 2015-10-18  Pádraig Brady  <P@draigBrady.com>
26195         maint.mk: sc_tight_scope: remove extraneous expressions
26196         * top/maint.mk (tight_scope): This is not really required since
26197         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
26198         that matches all nm entries.  But it does remove extraneous entries
26199         that may be confusing or cause issue in future maintenance.
26201 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26203         time_rz: return NULL if localtime_r fails
26204         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
26205         while still attempting to pacify bleeding-edge GCC.
26207         fts: port to C11 alignof
26208         * doc/posix-headers/stdalign.texi (stdalign.h):
26209         Document the C11 restriction.
26210         * lib/fts.c: Include stddef.h, for max_align_t.
26211         (fts_alloc): Align using max_align_t, not FTSENT.
26212         * modules/fts (Depends-on): Add stddef.
26214 2015-10-18  Jim Meyering  <meyering@fb.com>
26216         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
26217         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
26218         would see this:
26220         lib/time_rz.c: In function 'localtime_rz':
26221         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
26222           [-Werror=nonnull]
26223                    if (tm && !save_abbr (tz, tm))
26224                        ^
26226         That was complaining about "tm" because it is a parameter that was
26227         declared with the __nonnull__ attribute.
26228         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
26229         result of localtime_r.
26231 2015-10-17  Jim Meyering  <meyering@fb.com>
26233         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
26234         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
26235         name-extraction regexp mistakenly used \S+, and would mistakenly
26236         extract "*F" from "extern int *F()" rather than the desired "F".
26237         Use \w+ instead.
26239 2015-10-17  Jim Meyering  <meyering@fb.com>
26241         maint.mk: sc_tight_scope: factor and support OS X
26242         * top/maint.mk (_gl_tight_scope): Address three issues:
26243         - factor out four instances of code that wraps a string in "^...$"
26244         - allow nm-reported symbol names to have an optional leading "_"
26245         - add "main" to the list of ignored variable names, because on os x,
26246         "main" has nm-reported type "S" in the variable-checking section.
26248 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
26250         safe-alloc-tests: fix typo in license header
26251         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
26253 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
26255         copy-file: fix mem leak in error case
26256         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
26257         upon error opening or performing I/O to the src and dest files.
26259 2015-10-15  Mike Frysinger  <vapier@chromium.org>
26261         localename: control langinfo.h inclusion
26262         This header is only used to work around buggy behavior in old
26263         versions of glibc, so do not include it all the time.  Otherwise
26264         we get build failures on systems that do not provide langinfo.h.
26265         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
26266         in the source later on.
26267         The patch was originally submitted to gettext as:
26268         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
26270 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26272         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
26273         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
26274         * lib/u64.c, lib/unistd.c:
26275         Append 'typedef int dummy;', to pacify compilers that are picky
26276         about empty translation units.
26278 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
26280         accept4-tests: fix to avoid non portable flags
26281         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
26282         as they are the only documented ones, and passing others may trigger
26283         EINVAL (seen on FreeBSD 10.1-RELEASE).
26284         * doc/glibc-functions/accept4.texi: Mention that we don't provide
26285         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
26287 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
26289         gnulib-tool: fix tests of 'extensions' module
26290         This complements f8fe25fab60e3c687a124 commit.
26291         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
26292         emitting of initial gl_EARLY macros.
26293         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
26294         replaced with func_emit_pre_early_macros call.
26296 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26298         unicase/locale-language: fix typo in utf-8 cookie
26299         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
26300         Problem reported by Zbigniew Jędrzejewski-Szmek.
26302 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26304         xalloc: do not worry about GCC 5 warning on 32 bit
26305         * lib/xalloc.h: Revert previous change.
26306         I found a better way to fix this in coreutils.
26308 2015-10-02  Pádraig Brady  <P@draigBrady.com>
26310         xalloc: avoid GCC 5.1 warning on 32 bit
26311         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
26312         xalloc_oversized(), which was seen to give this warning
26313         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
26314         when simplifying conditional".
26316 2015-10-02  Daiki Ueno  <ueno@gnu.org>
26318         uniname/uniname-tests: avoid compiler warnings
26319         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
26320         unused local variables.
26321         (test_alias_lookup): Fix alias name display in failure cases.
26323 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26325         c-ctype: do not worry about EBCDIC + char signed
26326         Drop support for EBCDIC with char being signed, as this breaks too
26327         many programs.  Problem reported by Ben Pfaff in:
26328         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
26329         * lib/c-ctype.h: Verify that we are not using EBCDIC with
26330         char being signed.
26331         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
26332         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
26333         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
26334         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
26335         * tests/test-c-ctype.c (test_all):
26336         Simplify by assuming standard char values cannot be negative.
26337         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
26339 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26341         c-ctype: port better to z/OS EBCDIC
26342         Problems reported by Daniel Richard G. in:
26343         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
26344         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
26345         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
26346         (_C_CTYPE_OTHER_CNTRL): New macro.
26347         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
26348         from SCHAR_MIN, as the functions are defined only from values
26349         promoted from char or from unsigned char, not necessarily from
26350         signed char.
26352 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
26354         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
26356         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
26357         and ARFLAGS variables.  Doing this unconditionally could break
26358         later Automake's AM_PROG_AR invocation (at least it's
26359         AC_CHECK_TOOLS call to detect correct 'ar' binary).
26361         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
26362         Amsterdam Compiler Kit, so make the previous code to have effects
26363         only on ACK, and rather automatically call the Automake's
26364         AM_PROG_AR as soon as possible to decide other cases.
26366         References:
26367         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
26369         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
26370         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
26371         is possible, keep setting AR/ARFLAGS to reasonable defaults.
26372         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
26373         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
26374         'extensions' module is used.
26375         * modules/extensions (configure.ac-early): Remove as this snippet
26376         is added to gnulib-comp.m4 earlier anyway.
26378 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26380         sockets: MS Windows initalization fixes
26381         Problem reported by Test User in:
26382         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26383         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26384         Correct the endianness.
26385         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26386         number mismatch, not just on <.  Cleanup before any such failure.
26388 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26390         gc: fix detection of installed libgcrypt version
26391         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26392         at least as recent as 1.4.4.  The previously used macro is not
26393         available now, since modules were removed in version 1.6.0.
26395 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26397         c-ctype: rewrite to use inline functions
26398         This simplifies maintenance, since it makes for just one
26399         implementation of each function, letting the compiler have the fun
26400         of optimization.  In practice this works well nowadays with GCC.
26401         E.g., c_isascii might need only three instructions even though the
26402         source code lists every ASCII character individually in a large
26403         switch statement.
26404         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26405         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26406         * NEWS: Document the API change.
26407         * lib/c-ctype.c: Drastically simplify, since this now just expands
26408         inline functions.
26409         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26410         (C_CTYPE_INLINE): New macro.
26411         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26412         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26413         Verify that either ASCII or EBCDIC is being used.
26414         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26415         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26416         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26417         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26418         New private macros.
26419         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26420         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26421         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26422         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26423         (c_tolower, c_toupper): When converting, return the unsigned char,
26424         as that is what z/OS does.
26425         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26426         of some c-ctype.h macros.
26427         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26428         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26429         c_tolower promotion to be compatible with z/OS.
26431 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26433         gitlog-to-changelog: trim only trailing whitespaces
26434         This is fix for --format regression introduced by commit
26435         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26436         doubled %n string) had no effect anymore.  This format
26437         specification has been used e.g. by GNU paxuitils (commit
26438         edfd8bcc3).
26440         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26441         newlines in commmit messages.
26443 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26445         Test that c_iscntrl agrees with iscntrl, etc.
26446         Suggested by Daniel Richard G. in:
26447         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26448         * modules/c-ctype-tests (Depends-on): Add ctype.
26449         * tests/test-c-ctype.c: Include <ctype.h>.
26450         (NCHARS): New constant.
26451         (test_agree_with_C_locale): New function.
26452         (main): Use it.
26453         (test_all): Use named constants.
26455         c-ctype: improve c_isascii testing
26456         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26457         Add a test to count the number of ASCII characters.
26459 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26461         savewd: remove SAVEWD_CHDIR_READABLE
26462         It was problematic in the light of file systems that ignore umask.
26463         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26464         * NEWS: Document this.
26465         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26466         successful, -1 (setting errno) on failure, rather than something
26467         more complicated than that.
26468         * lib/mkdir-p.c (make_dir_parents):
26469         Do not use SAVEWD_CHDIR_READABLE.
26470         * lib/savewd.c (savewd_chdir):
26471         Remove support for SAVEWD_CHDIR_READABLE.
26472         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26474         c-ctype: port better to EBCDIC
26475         Problems reported by Daniel Richard G. in
26476         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26477         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26478         Include "verify.h".
26479         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26480         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26481         Define as enum constants with value false, if not defined, so that
26482         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26483         code more portable, as both branches of the 'if' are compiled on
26484         all platforms.
26485         (C_CTYPE_EBCDIC): New constant.
26486         Verify that the character set is either ASCII or EBCDIC.
26487         (to_char): New static function.
26488         (c_isascii, c_iscntrl):
26489         Assume standard control-character assignments for EBCDIC.
26490         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26491         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26492         Rewrite to use 'if' instead of 'ifdef'.
26493         Use to_char if non-ASCII.  Prefer <= to >=.
26494         Prefer true and false to 1 and 0, for booleans.
26495         (c_iscntrl): Use 'if', not 'ifdef'.
26496         * modules/c-ctype (Depends-on): Add verify.
26497         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26498         (to_char): New function.
26499         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26501 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26503         nanosleep: fix return code for interrupted replacement
26504         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26505         that we return -1 in the case the call is interrupted by a signal,
26506         rather than the current value of 1.
26507         Diagnosed and tested by Daniel Richard G.
26509 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26511         Diagnose ERE '()|\1'
26512         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26513         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26514         track of the set of previously-completed subexpressions available
26515         before the first alternative, and restore this set just before
26516         parsing each subsequent alternative.  This lets us diagnose the
26517         invalid back-reference in the ERE '()|\1'.
26519         regex: merge patches from libc
26521         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26522         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26523         * lib/regex_internal.h:
26524         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26526         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26527         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26528         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26529         wcscoll.
26530         * lib/regexec.c (check_node_accept_bytes): Likewise.
26532         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26533         Fix regex wcrtomb namespace (bug 18496).
26534         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26535         instead of wcrtomb.
26537         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26538         Fix regex wctype namespace (bug 18495).
26539         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26540         instead of towlower.
26541         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26542         instead of iswlower.  Call __towupper instead of towupper.
26543         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26544         instead of iswalnum.
26546         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26547         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26548         COLL_SYM in a couple of places to avoid uninitialized variable
26549         wanings on tilegx gcc 4.8.2.
26551         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26552         * lib/regex_internal.h: Remove NOT_IN_libc.
26554         2014-11-17  Andreas Schwab  <schwab@suse.de>
26555         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26557         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26558         Move findidx nested functions to top-level.
26559         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26560         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26561         Pass new arguments to findidx.
26562         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26563         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26564         Don't #include it inside the function.  Pass new arguments to findidx.
26565         * lib/regex_internal.h:
26566         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26567         (re_string_elem_size_at): Don't #include it inside the function.
26568         Pass new arguments to findidx.
26570         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26571         Check if DEBUG is defined in regex_internal.c
26572         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26574 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26576         ceill: detect buggy OpenBSD implementation
26577         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26578         which returns zero for small values.  Discussed here:
26579         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26581 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26583         mountlist: add me_mntroot field on Linux machines
26584         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26585         mount_entry so Linux machines based on /proc/self/mountinfo can
26586         distinguish between bind mounts and original mounts.  In reality bind
26587         mounts aren't treated differently than mountroot=/ mounts by the
26588         kernel, but the user often wants these bind mounts distinguished.
26589         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26590         More details at https://pad.lv/1432871
26592 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26594         doc: Describe to use multiple instances of gnulib
26595         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26596         instances of gnulib with different modules can be used, for example one
26597         for a lib and another one for associated tools.
26599 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26601         base32: mark function as __attribute__ const
26602         * lib/base32.h (isbase32): Mark __attribute__ const as
26603         suggested by GCC, and consistent with the base64 module.
26605 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26607         gnulib-tool: don't transform binary files with sed
26608         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26609         .mo and .class files.
26610         Reported by Denis Denisov.
26612 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26614         gperf: respect silent rules
26615         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26616         V_GPERF_0 for silent rules.
26617         * modules/iconv_open (Makefile.am): Use V_GPERF.
26618         * modules/unicase/locale-language (Makefile.am): Likewise.
26619         * modules/unicase/special-casing (Makefile.am): Likewise.
26620         * modules/unictype/category-byname (Makefile.am): Likewise.
26621         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26622         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26623         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26624         * modules/unictype/property-byname (Makefile.am): Likewise.
26625         * modules/unictype/scripts (Makefile.am): Likewise.
26626         * modules/uninorm/composition (Makefile.am): Likewise.
26628 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26630         Improve port of stdalign to C++11
26631         Problem reported by Sundaram in:
26632         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26633         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26634         (__alignas_is_defined): Define if C++11 or newer.
26636 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26638         pmccabe2html: fix gawk regex escaping
26639         * build-aux/pmccabe2html: Add one more backslash to properly
26640         escape the gsub replacement value.  Fixes this error:
26641         gawk: ./build-aux/pmccabe2html:425: \
26642         warning: escape sequence `\&' treated as plain `&'
26644 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26646         time_rz: port to pedantic memcpy
26647         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26648         that reject memcpy (..., NULL, 0).
26650 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26652         time_rz: port better to MinGW
26653         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26654         Instead, store the tzname copy in the struct tm_zone object.
26655         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26656         * lib/strftime.c [!_LIBC]:
26657         * lib/time_rz.c: Include time-internal.h.
26658         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26659         name from *TZ rather than from TZNAME, doable because *TZ now has
26660         a tzname_copy member.
26661         * lib/time-internal.h: New file, with contents taken from
26662         lib/time_rz.c.  It's separate because strftime.c now accesses
26663         struct tm_zone members.
26664         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26665         New member tzname_copy.
26666         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26667         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26668         Initialize tzname_copy member.
26669         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26670         in tzname_copy member.
26671         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26672         (restore_tzname): Remove; no longer needed.  All calls removed.
26673         * modules/time_rz (Files): Add lib/time-internal.h.
26675         time: port __need_time_t to MinGW
26676         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26677         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26679 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26681         strftime: fix newly-introduced bug on Solaris
26682         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26683         consistently at the start, rather than doing some of the setup at
26684         the start and some in the %Z format spec.  This is cleaner, and
26685         works better with time_rz on platforms like Solaris where struct
26686         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26687         mktime_z and localtime_rz can mess up the tzname cache.
26689         test-strftime: test for Solaris bug
26690         * modules/strftime-tests (Depends-on): Add strerror.
26691         * tests/test-strftime.c: Include <errno.h>.
26692         (posixtm_test): New function, containing the old 'main'.
26693         (struct tzalloc_test, struct localtime_rz_test): New types.
26694         (TZ, LT): New static vars.
26695         (tzalloc_test): New function.
26696         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26698         time_rz: port to Solaris etc.
26699         Works around a tzname problem on platforms like Solaris that have
26700         tzname but not tm_zone, by setting tzname at the appropriate time
26701         and restoring it later.
26702         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26703         New static vars.
26704         (save_abbr) [HAVE_TZNAME]: Set them.
26705         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26706         (restore_tzname): New function.
26707         (localtime_rz, mktime_z): Use it.
26709         time_rz: now LGPL
26710         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26712         time_rz: make a constant 'const'
26713         * lib/time_rz.c (local_tz): Now const.
26715         time_rz: fix off-by-one typo
26716         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26718 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26720         fprintftime, strftime: use timezone_t args
26721         * NEWS: Document the change.
26722         * lib/fprintftime.h (fprintftime):
26723         * lib/strftime.c (extra_args) [my_strftime]:
26724         * lib/strftime.h (nstrftime):
26725         Time zone arg is now of type timezone_t, not int.
26726         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26727         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26728         (my_strftime) [emacs && !my_strftime]:
26729         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26730         Remove; Emacs doesn't need this any more.
26731         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26732         fprintftime and nstrftime to call tzset.
26733         (ut) [!my_strftime]: Remove, replacing with ...
26734         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26735         (strftime_case_): Use localtime_rz and mktime_z instead
26736         of localtime_r and mktime.
26737         * modules/fprintftime (Depends-on): Add time_rz.
26738         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26739         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26741         time_rz: new module
26742         * MODULES.html.sh: Add time_rz.
26743         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26744         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26745         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26747         New var HAVE_TIMEZONE_T (default 0).
26748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26749         New var GNULIB_TIME_RZ (default 0).
26750         * modules/time (time.h): Substitute the new vars.
26752         flexmember: license is now unlimited
26753         * modules/flexmember (License): Change to unlimited,
26754         since its only source file gives an unlimited license.
26756 2015-07-15  Eric Blake  <eblake@redhat.com>
26758         maint: update copyright paper procedures
26759         * config/srclist.txt: Drop outdated files.
26760         * doc/Copyright/conditions.txt: Update to latest.
26761         * doc/Copyright/assign.changes.manual: Delete.
26762         * doc/Copyright/assign.future.manual: Likewise.
26763         * doc/Copyright/assign.manual: Likewise.
26764         * doc/Copyright/assign.translation.manual: Likewise.
26765         * doc/Copyright/disclaim.changes.manual: Likewise.
26766         * doc/Copyright/disclaim.manual: Likewise.
26767         * doc/Copyright/disclaim.program: Likewise.
26769 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26771         localename: fix link error on Illumos
26772         Illumos defines __sun, but does not have getlocalename_l nor the
26773         equivalent.  This partially reverts commit 387c214.
26774         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26775         available, as well as uselocale.
26776         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26777         use getlocalename_l if it is not available.
26779 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26781         unistr/uN-strtok-tests: avoid a trivial leak
26782         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26783         input and delim after the multibyte delimiter tests.
26785 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26787         file-has-acl, acl-permissions: fix HP-UX typos
26788         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26789         * lib/file-has-acl.c (file_has_acl):
26790         * lib/set-permissions.c (context_acl_from_mode)
26791         (context_aclv_from_mode, set_acls):
26792         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
26793         They were introduced by the recent ACL changes.
26795         regex: match current GNU grep behavior
26796         These symbols have not matched GNU grep behavior for quite some time.
26797         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
26798         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
26799         Change to match current GNU behavior.
26800         Simplify by expressing it as differences from POSIX BREs and EREs.
26801         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
26803 2015-07-03  Jim Meyering  <meyering@fb.com>
26805         set-permissions.c: adjust acl_from_mode's cpp guard
26806         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
26807         directives identical to those guarding the sole use.
26808         Otherwise, on some systems, we'd get a warning about
26809         the function being defined but not used.
26810         Also, filter through cppi to correct misleading indentation
26811         of cpp directives.
26813 2015-07-03  Pádraig Brady  <P@draigBrady.com>
26815         tests: restrict shells to those that support 'local'
26816         The local keyword is very widely supported and used
26817         in tests in coreutils and grep at least.  Therefore
26818         restrict to testing with shells that support it.
26819         This mainly excludes /bin/sh on Solaris.
26820         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26822 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26823         and Daiki Ueno  <ueno@gnu.org>
26825         unistr/uN-strtok: handle multibyte delimiters
26826         Previously, uN_strtok moved PTR to the next unit to the token end.
26827         When DELIM contained a multibyte character, the new position could
26828         be a middle of a multibyte character.
26829         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26830         after the token.
26831         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26832         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26833         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26834         * modules/unistr/u8-strtok (Depends-on): Depend on
26835         unistr/u8-strmblen.
26836         * modules/unistr/u16-strtok (Depends-on): Depend on
26837         unistr/u16-strmblen.
26838         * modules/unistr/u32-strtok (Depends-on): Depend on
26839         unistr/u32-strmblen.
26840         * tests/unistr/test-u-strtok.h: New file.
26841         * tests/unistr/test-u8-strtok.c: New file.
26842         * tests/unistr/test-u16-strtok.c: New file.
26843         * tests/unistr/test-u32-strtok.c: New file.
26844         * modules/unistr/u8-strtok-tests: New file.
26845         * modules/unistr/u32-strtok-tests: New file.
26846         * modules/unistr/u16-strtok-tests: New file.
26848 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26850         update-copyright: fix test failure with perl >= 5.22 (trivial)
26851         * build-aux/update-copyright: Escape a literal left curly bracket,
26852         required with perl >= 5.22
26854 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26856         u{16,32}-strstr-tests: relax timeout condition
26857         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26858         tests can take longer than 5 seconds to complete.
26859         Reported by Dagobert Michelsen in:
26860         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26861         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26862         seconds to 10 seconds.
26863         * tests/unistr/test-u32-strstr.c (main): Likewise.
26865 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26867         gnulib-common.m4: change the ARFLAGS default to 'cr'
26868         In some GNU/Linux distributions people started to compile 'ar'
26869         binary with --enable-deterministic-archives (binutils project).
26870         That, however, in combination with previous autotools long time
26871         working default AR{_,}FLAGS=cru causes warnings on such
26872         installations:
26873         ar: `u' modifier ignored since `D' is the default (see `U')
26874         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26875         set already.
26877 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26879         selinux-h: avoid double free after *getfilecon()
26880         Originally reported by Ben Shelton on bug-tar:
26881         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26882         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26883         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26884         param should be freed by freecon(3) (regardless the return value).
26886 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26888         fix pty related tests issues on Windows (trivial)
26889         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26890         however it's still present in tests/ subdirectory of the final project.
26891         Therefore avoid it to pass `make check`.
26892         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26893         will just return -ENOSYS, so avoid this non applicable test allowing
26894         the build to proceed.
26896 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26898         acl: fix definition of acl_from_mode on FreeBSD
26899         This was causing basic coreutils copy operations to fail
26900         with ENOTSUP or ENOENT error messages.
26901         * lib/acl-internal.h (acl_from_mode): Only define when
26902         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26903         of acl_from_mode() defined in lib/set-permissions.c to
26904         be used on FreeBSD at least.
26905         * lib/set-permissions.c: Fix up comment spelling,
26906         and a redundant variable assignment; noticed in passing.
26908 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26910         readutmp: port to FreeBSD >= 9
26911         * lib/readutmp.h: Map utmpxname() to setutxdb().
26912         With that coreutils who(1) and pinky(1) tests pass.
26914 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26916         mgetgroups: port to strict OS X
26917         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26918         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26919         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26920         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26922 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26924         mgetgroups: port to strict OS X
26925         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26926         Document the getgrouplist problem.
26927         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26928         New macro.
26929         (mgetgroups): Use it.
26930         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26931         Check for OS X signature for getgrouplist.
26933 2015-06-29  Jim Meyering  <meyering@fb.com>
26935         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26936         It started like this when building coreutils' latest on OS X,
26937         invoking ./configure with a nonempty --cache=.cache:
26939           lib/linkat.c:46:42: error: operator '||' has no right operand
26940           lib/linkat.c: In function 'rpl_linkat':
26941           lib/linkat.c:330:27: error: #if with no expression
26943         Here's linkat.c's line 46:
26945           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26947         Here's some context:
26949           $ grep linkat_nofoll .cache
26950           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26951           $ grep LINKAT_SYM lib/config.h
26952           #define LINKAT_SYMLINK_NOTSUP
26954         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26955         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26956         but that violates a tenet of AC_CACHE_CHECK: it must
26957         have no side effect other than setting its cache variable.
26959         What happens is that when the cache is set, we'd skip the
26960         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26961         defined to whatever value it happened to have in configure's
26962         environment.  In my case, it was not defined, so this later code:
26964           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26965             [Define to 1 if linkat can create hardlinks to symlinks])
26967         would emit code with an empty RHS.
26969         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26970         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26972 2015-06-28  Jim Meyering  <meyering@fb.com>
26974         mountlist: avoid an unused-label warning on OS X
26975         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26976         Building on OS X, I saw a warning about the "free_then_fail" label
26977         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26979         error.c: correct printf-style format: %d -> %u
26980         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26981         rather than %d, to match the type of "line_number", unsigned int.
26983 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26985         fts: avoid reading beyond the heap allocation
26986         GCC 5.1.1 with -O2 and -fsanitize=address reports
26987         a read of size 4 from a heap object of size 3 is indeed invalid,
26988         though this may be due to incorrect padding assumptions by GCC, see:
26989         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26990         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26991         * modules/fts: Depend on stdalign.
26993 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26995         savedir: avoid undefined behavior in qsort call
26996         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26997         "runtime error: null pointer passed as argument 1,
26998          which is declared to never be null"
26999         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
27001 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27003         userspec: avoid undefined behavior in gettext call
27004         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27005         "runtime error: null pointer passed as argument 2,
27006          which is declared to never be null"
27007         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
27009 2015-06-20  Glenn Morris  <rgm@gnu.org>
27011         gitlog-to-changelog: improve gitmerge.el commits
27012         Let the Emacs ChangeLog generation process exclude "skipped"
27013         messages from merge commits (Bug#20717).
27014         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
27016 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27018         wchar: fix MinGW compilation warnings
27019         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
27020         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
27021         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
27023 2015-06-20  Daiki Ueno  <ueno@gnu.org>
27025         uniname/uniname-tests: use pristine data files
27026         For copyright and maintenance reasons, use the data files from UCD
27027         without modification.
27028         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
27029         (getfield): Remove.
27030         (aliases_count): New global variable.
27031         (fill_names): Skip comments and empty lines in the input.  Don't
27032         use getfield.
27033         (fill_aliases): Likewise.
27034         (main): Change the expected command line arguments to:
27035         NAMES... ["--" ALIASES...].
27036         * tests/uniname/test-uninames.sh: Adjust to the change in
27037         test-uninames.c.
27038         * tests/uniname/UnicodeDataNames.txt: Remove.
27039         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
27040         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
27041         file from Unicode 8.0.0.
27043 2015-06-19  Pádraig Brady  <P@draigBrady.com>
27045         linked-list, linkedhash-list: avoid compiler warnings
27046         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27047         -Werror=suggest-attribute=pure (from GCC 5.1.1).
27049 2015-06-19  Daiki Ueno  <ueno@gnu.org>
27051         libunistring: bump minimum version to 0.9.6
27052         * all modules depending on updated Unicode data: Regenerate.
27053         The modules are listed by a script that does:
27054         - for each file listed by: git show --oneline --name-only 705f4efc
27055           - deduce the containing modules, based on "Files:"
27056         - deduce the modules which depend on the containing modules, based
27057           on "Depends-on:"
27059 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27061         uniname/uniname: update to Unicode 8.0.0
27062         * lib/uniname/uninames.h: Regenerate.
27063         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
27064         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
27066 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27068         libunistring: update to Unicode 8.0.0
27069         * lib/gen-uni-tables.c (SIZEOF): New macro.
27070         (output_numeric): Increase the maximum number of fractions from
27071         128 to 160.  Increase the level3 value width from 7 bits to 8
27072         bits.  Use SIZEOF instead of a hard-coded integer.
27073         (output_blocks): Decrease the cut-off threshold from 0x30000 to
27074         0x28000.
27075         (fill_blocks): Increase the maximum number of blocks from 256 to
27076         384.  Use SIZEOF instead of a hard-coded integer.
27077         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
27078         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
27079         value width.
27080         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
27081         a new case added to LBP22.
27082         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
27083         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
27084         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
27085         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
27086         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
27087         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27088         lib/uniwidth/width.c.
27089         * all generated files under lib/uni* and tests/uni*: Regenerate.
27091 2015-06-16  Pádraig Brady  <P@draigBrady.com>
27093         gnu-web-doc-update: add --mirror to remove stale files
27094         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
27095         out of date files from the CVS server.  Since this is usually
27096         appropriate, a prompt is given when the option is not specified,
27097         along with the `cvs remove` command that would be run.
27099 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27101         acl-permissions: pacify -Wsuggest-attribute=const
27102         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
27103         * lib/acl-internal.h (free_permission_context):
27104         Declare with attribute const if ! (defined USE_ACL &&
27105         (HAVE_ACL_GET_FILE || defined GETACL)).
27107         fsync: document AIX misbehavior
27108         * doc/posix-functions/fsync.texi (fsync):
27109         Document failure on AIX with read-only file descriptor.
27111 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
27113         stdio: Don't redefine gets when using C++
27114         * lib/stdio.in.h (gets): Disable warning on C++.
27116 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
27118         acl-permissions: port to AIX, C89 HP-UX
27119         Problems reported by Michael Felt.
27120         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
27121         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
27122         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
27123         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
27124         Add cast for AIX, whose system calls are declared to accept
27125         char * even though the arguments are really char const *.
27126         * lib/get-permissions.c (get_permissions):
27127         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
27128         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
27129         that broke a build.
27130         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
27131         Rework types to pacify xlc.
27133 2015-06-03  Pádraig Brady  <P@draigBrady.com>
27135         vasprintf-posix: avoid compiling vasnprintf where possible
27136         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
27137         module where not required.  For example on a GNU/Linux system
27138         when gnulib-tool is run with the --conditional-dependencies option.
27140 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27142         file-has-acl: fix build on Mac OS X 10
27143         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
27144         which has an incompatible 6 parameter getxattr() call.
27145         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
27146         call on Mac OS X >= 10.4.
27147         * doc/glibc-functions/fgetxattr.texi: Likewise.
27148         * lib/file-has-acl.c: Revert to more complete combined check.
27149         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
27150         Reported by Jack Howarth.
27152 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27154         prefix-gnulib-mk: remove no longer needed special case
27155         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
27156         continued lib_SOURCES lines are no longer present,
27157         so special case handling of such entries is not required.
27159 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27161         acl: don't depend on the deprecated qacl module
27162         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
27164 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27166         gnulib-tool: concatenate lib_SOURCES to a single line
27167         * gnulib-tool: Refactor the line merging sed logic,
27168         and use that to output a single lib_SOURCES line for each module.
27169         gnulib using projects often postprocess this output to prepend
27170         subdir paths to each item, and having a single line simplifies this
27171         processing allowing better decoupling from the gnulib-tool output.
27173 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
27175         pthread_sigmask: discount system version if a simple macro (trivial)
27176         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
27177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
27178         function to ensure it's available.
27180 2015-05-31  Pádraig Brady  <P@draigBrady.com>
27182         readlinkat: avoid OS X 10.10 trailing slash bug
27183         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
27184         has this bug.
27185         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
27186         that OS X 10.10 has this function.
27187         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
27188         as done for readlink().
27189         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
27190         trailing slash bug, and assume readlinkat() has the same issue.
27191         Also fix a typo where $gl_cv_decl_readlink_works was tested,
27192         rather than the correct $gl_cv_decl_readlinkat_works.
27194 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27196         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
27197         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
27198         module rewrite.
27200         acl-permissions: Fix build on Solaris and Cygwin
27201         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
27202         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
27203         ace_entries variables have moved into struct permission_context but
27204         they were still accessed as local variables here.
27206 2015-05-29  Pádraig Brady  <P@draigBrady.com>
27208         linkat: avoid OS X 10.10 trailing slash with symlink bug
27209         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
27210         causes the symlink to be dereferenced, and if it points
27211         to a non existent file, that file will be created as
27212         a hard link to "path1".
27213         This fixes a test failure in test-linkat.c.
27214         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
27215         this case.  The existing workaround in linkat.c for
27216         trailing slash issues, suffices for this case.
27217         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
27218         the list of platforms with trailing slash issues.
27220 2015-05-28  Pádraig Brady  <P@draigBrady.com>
27222         unlinkat: handle ignoring of ".." on Darwin 14
27223         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
27224         on Mac OS X 10.10, where it ignores paths with a trailing "..",
27225         so handle in the same manner.
27226         * m4/unlinkat.m4: Comment on this Darwin issue.
27227         * doc/posix-functions/unlink.texi: Update the latest version
27228         where the issue was seen.
27229         * doc/posix-functions/unlinkat.texi: Mention this issue.
27230         Fixes a test failure in test-unlinkat.c.
27232 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27234         qacl: split into qcopy-acl and qset-acl
27235         Emacs needs the former, but not the latter.
27236         * modules/acl-permissions: New file, containing most of the old qacl.
27237         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
27238         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
27239         * modules/qcopy-acl, modules/qset-acl: New files.
27240         * MODULES.html.sh (File system functions):
27241         Mention the new modules, and mention qacl while we're at it.
27243 2015-05-27  Glenn Morris  <rgm@gnu.org>
27245         gitlog-to-changelog: new option --ignore-line
27246         (This patch is imported from the GNU Emacs master.)
27247         This option ignores individual commit lines matching a pattern.
27248         * build-aux/gitlog-to-changelog: Add --ignore-line option.
27250 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
27252         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
27253         Implement get_permissions and set_permissions primitives for getting all
27254         the permissions of a file, storing them, and later setting them. (In the
27255         minimal case, the permissions consist only of a file mode.) Reimplement
27256         qset_acl and qcopy_acl based on these new primitives: this avoids code
27257         duplication and makes error handling more consistent.
27258         The Solaris and Cygwin code still uses duplicate code paths for setting
27259         a file mode while making sure that no acls exist and setting an explicit
27260         acl; this is no worse than before, but could be cleaned up.  The AIX
27261         code still doesn't read ACLs, it only makes sure that acls don't get in
27262         the way when setting a file mode.
27263         * lib/acl-internal.h (struct permission_context): New data structure.
27264         (get_permissions, set_permissions, free_permission_context): Declare.
27265         * lib/acl-internal.c (free_permission_context): New helper function.
27266         * lib/get-permissions.c (get_permissions): New helper function split off
27267         from qcopy_acl.
27268         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
27269         AIX, set a file's permissions based only on a file mode.
27270         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
27271         other platforms construct a temporary acl from the file mode and set
27272         that acl in the same way as setting an acl read from the source file.
27273         This should help avoid code duplication and inconsistent / buggy
27274         behavior.
27275         (set_acls): New helper function Split off from qcopy_acl.
27276         (chmod_or_fchmod): Moved here from qset-acl.c.
27277         (set_permissions): New helper function.
27278         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
27279         set_permissions.
27280         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
27281         * modules/qacl: Add get-permissions.c and set-permissions.c.
27283         file-has-acl: Split feature tests again (Bug#20667)
27284         * lib/file-has-acl.c: Instead of testing for
27285         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
27286         define them when needed.
27287         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
27288         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
27290 2015-05-27  Pádraig Brady  <P@draigBrady.com>
27292         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
27293         This avoids a conflict with "FORTIFY_SOURCE" variants
27294         of the string functions when they're replaced on NetBSD-6.0.1
27295         and Darwin-14.3.0 at least.
27296         * lib/string.in.h: Avoid including our "lib/string.h" while
27297         including the system <string.h>.
27299 2015-05-26  Eric Blake  <eblake@redhat.com>
27301         stdio: limit __gnu_printf__ witness to gcc 4.4+
27302         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
27303         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
27305         error: use correct printf attributes on mingw
27306         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
27308         inttypes: force correct mingw PRIdMAX even without <stdio.h>
27309         * modules/inttypes (Depends-on): Require extensions, so that mingw
27310         always uses GNU style inttypes.
27311         * lib/inttypes.in.h: On mingw, include <stdio.h>.
27313         stdio: fix probe on mingw under gcc 5.1
27314         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
27315         around new gcc preprocessor rules.
27317 2015-05-07  Glenn Morris  <rgm@gnu.org>
27319         gitlog-to-changelog: parse "Tiny-change"
27320         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
27321         "Copyright-paperwork-exempt".  (Bug#20324)
27323 2015-05-06  Pádraig Brady  <P@draigBrady.com>
27325         doc: document glibc posix_fallocate() issues
27326         * doc/posix-functions/posix_fallocate.texi: Mention the
27327         glibc efficiency problems and issues with NFS.
27329 2015-05-05  Karl Berry  <karl@freefriends.org>
27331         * build-aux/gendocs.sh (usage): document new css default
27332         for HTML (--htmlarg).
27334 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27336         extern-inline: no need for workaround in GCC 5.1
27337         * doc/extern-inline.texi (extern inline):
27338         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27339         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
27340         around these bugs in GCC 5.1 and later.  Maybe in a decade or
27341         two we can remove these workarounds.
27343 2015-04-28  Pádraig Brady  <P@draigBrady.com>
27345         eealloc, pagealign_alloc, xalloc: avoid clang warnings
27346         Avoid [-Wunknown-attributes] warnings like:
27347         warning: unknown attribute '__alloc_size__' ignored
27348         * lib/xalloc.h: Don't use the __alloc_size__  attribute
27349         with clang, as support has been fully removed as of clang 3.5:
27350         https://github.com/llvm-mirror/clang/commit/c047507a
27351         * lib/eealloc.h: Likewise.
27352         * lib/pagealign_alloc.h: Likewise.
27354 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27356         tests: pacify GCC 5.1's stricter printf checking
27357         * tests/test-dirname.c (main):
27358         * tests/test-getaddrinfo.c (simple):
27359         * tests/test-getlogin.c (main):
27360         * tests/test-getndelim2.c (main):
27361         * tests/test-inttostr.c (CK):
27362         * tests/test-md5.c (main):
27363         * tests/test-read-file.c (main):
27364         * tests/test-sha1.c (main):
27365         Fix mismatches between printf format and value signedness.
27366         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
27367         Remove, as CAST_VAL always returned a value of type uintmax_t.
27369         fts: port to GCC 5.1 with --enable-gcc-warnings
27370         Without this fix, GCC 5.1 (correctly) warns about a subscript
27371         error on the fts_name component of FTSENT.  It's actually a
27372         flexible member, so define it that way on C99 or later hosts.
27373         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
27374         structure that now has a flexible array member.
27375         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
27376         (FTSENT): fts_name is now flexible on C99-or-later platforms.
27377         * modules/fts (Depends-on): Add flexmember.
27379 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27381         file-has-acl: port to CentOS 6
27382         Problem reported by Tom G. Christensen in:
27383         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27384         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27385         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27386         HAVE_GETXATTR.
27387         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27388         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27389         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27390         file-has-acl.c actually needs.
27392 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27394         file-has-acl: always return false when ACLs aren't supported
27395         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27396         change the GNU/Linux getxattr path, to transform "not supported"
27397         errors to a false return rather than an error.  This is handled
27398         within file_has_acl() due to the platform specific tests to
27399         determine if ACLs are not supported.
27401 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27403         gettext: propagate po/Makefile.in.in too
27404         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27405         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27406         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27407         between Makefile.in.in and the gettext-runtime m4 files.
27409 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27411         file-has-acl: new module, split from acl
27412         And add a new module file-has-acl-tests to match.
27413         I ran into a problem with the recent changes to the acl module,
27414         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27415         When using the fixed version with Emacs, I discovered that
27416         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27417         had multiple libraries, but needed only one), so I fixed that too.
27418         * NEWS: Document this incompatible change.
27419         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27420         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27421         Initialize gl_need_lib_has_acl.
27422         (gl_FUNC_ACL): Require it.
27423         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27424         Move the file-has-acl.c-relevant stuff to ...
27425         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27426         use_xattrs = 0' typo, and omit some needless work.  Set
27427         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27428         when gl_FUNC_ACL is called.
27429         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27430         (Link): Remove $(LIB_HAS_ACL).
27431         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27432         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27433         modules/file-has-acl-tests.
27434         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27436         manywarnings: add GCC 5.1 warnings
27437         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27438         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27439         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27440         -Wsuggest-override, -Wuse-without-only.  Change
27441         -Wnormalized=... operands to match 5.1.
27442         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27443         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27444         -Wdiscarded-qualifiers, -Wformat-signedness,
27445         -Wincompatible-pointer-types, -Wint-conversion,
27446         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27447         -Wshift-count-negative, -Wshift-count-overflow,
27448         -Wsizeof-array-argument, -Wsuggest-final-methods,
27449         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27450         and add -Warray-bounds=2 as a special case.
27452 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27454         doc: update FDL template to match FDL examples.
27455         * doc/alloca-opt.texi:
27456         * doc/alloca.texi:
27457         * doc/c-ctype.texi:
27458         * doc/c-strcase.texi:
27459         * doc/c-strcaseeq.texi:
27460         * doc/c-strcasestr.texi:
27461         * doc/c-strstr.texi:
27462         * doc/c-strtod.texi:
27463         * doc/c-strtold.texi:
27464         * doc/ctime.texi:
27465         * doc/error.texi:
27466         * doc/gcd.texi:
27467         * doc/gnulib-tool.texi:
27468         * doc/inet_ntoa.texi:
27469         * doc/intprops.texi:
27470         * doc/lib-symbol-visibility.texi:
27471         * doc/maintain.texi:
27472         * doc/parse-datetime.texi:
27473         * doc/quote.texi:
27474         * doc/regexprops-generic.texi:
27475         * doc/standards.texi: Remove spurious 'with' in FDL license
27476         template.
27478 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27480         lstat: fix cross-compilation 'ln -s' problem
27481         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27482         Have the test program call 'symlink' rather than a separate
27483         script run 'ln -s'; this is more likely to work in
27484         cross-compilation environments.  Reported by Pavel Fedin in:
27485         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27487 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27489         gendocs.sh: default to a common CSS style sheet for HTML output
27490         * build-aux/gendocs.sh (htmlarg): Change default value.
27492 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27494         gnulib-tool: output bold attribute more portably
27495         * gnulib-tool (func_show_module_list): Change hexadecimal
27496         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27497         encoded numbers as arguments to `printf' is not portable,
27498         and is not claimed by POSIX.  This is the case with FreeBSD.
27500 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27502         qacl: Simplify HP-UX acl_nontrivial check
27503         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27504         acl_nontrivial. Check if the acl has at most three entries instead (it must
27505         have exactly three entries according to the HP-UX documentation). Ignore
27506         uids and gids as long as an entry is either for a user (i.e., the owner),
27507         a group (i.e., the owning group), or others.
27508         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27509         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27511 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27513         acl: On Linux, check for acls without libacl
27514         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27515         library function to check for the presence of acls, avoiding a library.
27516         * lib/file-has-acl.c: Include xattr headers if we have them.
27517         (file_has_acl): On Linux, use getxattr().
27518         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27519         file_has_acl(). Check for xattr headers and getxattr().
27521 2015-04-14  Ángel González  <keisial@gmail.com>
27523         tempname: avoid unused parameter warnings (trivial)
27524         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27525         (try_nocreate): Likewise.
27527 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27529         fseeko: fix build failure on NetBSD >= 6 (trivial)
27530         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27531         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27533 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27535         gitlog-to-changelog: port to MS-Windows
27536         * build-aux/gitlog-to-changelog (git_dir_option):
27537         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27538         MS-Windows Perl.  Reported by Eli Zaretskii in:
27539         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27541 2015-04-07  Karl Berry  <karl@gnu.org>
27543         gendocs: new option --tex for passing args to texi2dvi.
27544         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27545         (TEXI2DVI): cut to just command name.
27546         (usage): mention new option, and update copyright.
27547         <generate_tex>: use it.
27549 2015-04-07  Karl Berry  <karl@gnu.org>
27551         * config/srclistvars.sh (GETTEXT): new definition.
27552         * config/srclist.txt: use it for gettext .m4 files.
27553         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27554         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27555         and continuing into April.
27557 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27559         uniname/uniname-tests: fix failure due to alias
27560         Reported by Jack Howarth in:
27561         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27562         * tests/uniname/test-uninames.c (name_has_alias): New function.
27563         (test_inverse_lookup): Exclude character name with valid alias,
27564         from randomly generated character names.
27565         (main): Fill unicode_aliases before calling test functions.
27567 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27569         hash: remove deprecated hash_insert0 function
27570         * lib/hash.h (hash_insert0): Remove deprecated function.
27571         * lib/hash.c (hash_insert0): Likewise.
27573 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27575         mountlist: remove dependency on libmount
27576         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27577         directly, rather than depending on libmount, which has many
27578         dependencies due to its dependence on libselinux, as detailed at:
27579         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27580         Note we restrict this to __linux__ as that's probably where this
27581         interface will remain.  If ever porting, it would be best
27582         to first pull the makedev() wrapper from coreutils to a gnulib module.
27583         Note also we don't add a getline dependency to the mountlist module,
27584         as all Linux versions are sufficient.
27586 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27588         stddef: port to pre-C11 GCC on x86
27589         On this platform, max_align_t should have an alignment of 8 even
27590         though the storage alignments of double, long, etc. max out at 4.
27591         Inspired by a comment of Andreas Schwab's here:
27592         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27593         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27594         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27595         * tests/test-stddef.c: Test __alignof__ too, if available.
27597 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27599         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27600         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27602 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27604         yesno: make EOL optional in ENABLE_NLS case also (trival)
27605         * lib/yesno.c (yesno): Check for EOL before replacing.
27606         * tests/test-yesno.sh: Add a test case (test along with gettext).
27608 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27610         fdopendir-tests: test it does not close its arg
27611         * tests/test-fdopendir.c (main): Test that fdopendir does not
27612         close its argument.  From a suggestion by David Grayson in:
27613         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27615 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27617         gitlog-to-changelog: trim trailing white space
27618         * build-aux/gitlog-to-changelog (main):
27619         Trim trailing white space from commit message lines.
27620         This is helpful for processing the GNU Emacs repository,
27621         which dates back to 1985 and contains a lot of such lines.
27623         gitlog-to-changelog: new option --ignore-matching
27624         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27625         Support new option --ignore-matching=PAT, which ignores all
27626         commit messages whose first line matches PAT.
27628 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27630         fdopendir: port better to MinGW
27631         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27632         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27633         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27634         * modules/fdopendir (Depends-on): Add dirfd.
27636 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27638         fdopendir: fix typo in comment
27639         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27641 2015-03-09  Eric Blake  <eblake@redhat.com>
27643         error: document all entry points provided
27644         * doc/glibc-functions/error_print_progname.texi
27645         (error_print_progname): Mention the error module.
27646         * doc/glibc-functions/error_at_line.texi (error_at_line):
27647         Likewise.
27648         * doc/glibc-functions/error_message_count.texi
27649         (error_message_count): Likewise.
27650         * doc/glibc-functions/error_one_per_line.texi
27651         (error_one_per_line): Likewise.
27653 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27655         vasnprintf: pacify clang 3.5.0
27656         Problem reported by Werner Lemberg in:
27657         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27658         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27659         The casts aren't needed, since the characters in question are ASCII.
27661 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27663         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27664         * lib/dirent--.h (GNULIB_defined_opendir):
27665         * lib/dirent.in.h (GNULIB_defined_opendir)
27666         (GNULIB_defined_closedir):
27667         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27668         #undef only if Gnulib defined it.
27670         poll: port to MSVC v18 on MS-Windows 8.1
27671         Problem reported by Gisle Vanem in:
27672         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27673         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27674         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27675         Add sys_socket.
27677 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27679         tests: support stderr verification with returns_()
27680         * tests/init.sh (returns_): Disable tracing for this wrapper
27681         function, so that stderr of the wrapped command is unchanged,
27682         allowing for verification of the contents.
27684 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27686         passfd: avoid valgrind uninitalised data warning
27687         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27688         to include just the fd we've initialized, rather than including
27689         the extra space used for alignment.
27691 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27693         uniwbrk/u32-wordbreaks-tests: fix copyright
27694         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27696         dup2: doc and test for Android bug
27697         Reported by Kevin Cernekee in:
27698         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27699         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27700         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27702 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27704         Replace dup2() on Android
27705         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27706         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27707         fails.  Using rpl_dup2() fixes this because it has an explicit test
27708         for this condition.
27710 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27712         Android doesn't define RLIM_SAVED_*
27713         Portability problem reported by Kevin Cernekee in:
27714         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27715         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27716         Mention the portability problem.
27717         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27718         Define if not defined.
27719         * m4/dup2.m4 (gl_FUNC_DUP2):
27720         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27721         Likewise.
27723 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27725         vasnprintf-posix-tests: use consistent test
27726         * tests/test-vasnprintf-posix.c (test_function):
27727         Use "<" in assert instead of "<=", for consistency with other tests.
27729 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27731         printf, isinf, etc.: noncanonical != NaN
27732         Do not require that isinf, printf, etc. treat noncanonical
27733         values as NaNs.  Instead, require only that they do not crash.
27734         Problem reported by Joseph Myers in:
27735         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27736         * doc/posix-functions/dprintf.texi (dprintf):
27737         * doc/posix-functions/fprintf.texi (fprintf):
27738         * doc/posix-functions/isfinite.texi (isfinite):
27739         * doc/posix-functions/isinf.texi (isinf):
27740         * doc/posix-functions/isnan.texi (isnan):
27741         * doc/posix-functions/printf.texi (printf):
27742         * doc/posix-functions/snprintf.texi (snprintf):
27743         * doc/posix-functions/sprintf.texi (sprintf):
27744         * doc/posix-functions/vdprintf.texi (vdprintf):
27745         * doc/posix-functions/vfprintf.texi (vfprintf):
27746         * doc/posix-functions/vprintf.texi (vprintf):
27747         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27748         * doc/posix-functions/vsprintf.texi (vsprintf):
27749         Document this.
27750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27751         * m4/isinf.m4 (gl_ISINFL_WORKS):
27752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27753         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27754         * tests/test-isfinite.c (test_isfinitel):
27755         * tests/test-isinf.c (test_isinfl):
27756         * tests/test-isnan.c (test_long_double):
27757         * tests/test-isnanl.h (main):
27758         * tests/test-snprintf-posix.h (test_function):
27759         * tests/test-sprintf-posix.h (test_function):
27760         * tests/test-vasnprintf-posix.c (test_function):
27761         * tests/test-vasprintf-posix.c (test_function):
27762         Test only that noncanonical values do not cause crashes, not that
27763         they are treated as NaNs.  In some cases this means a larger
27764         output buffer is needed.
27766 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27768         fts: remove redundant close() (trivial)
27769         * lib/fts.c (fts_read): Remove redundant call to close().
27770         Spotted by coverity.
27772 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27774         getdtablesize: port better for Android
27775         Problem reported by Kevin Cernekee in:
27776         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27777         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27778         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27779         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27781         poll: fixes for large fds
27782         * lib/poll.c (poll): Don't check directly for NFD too large.
27783         Don't rely on undefined behavior in FD_SET when an arg exceeds
27784         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27785         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27786         as that makes the test a bit stricter.
27788 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27790         fcntl: Fix cross compiling
27791         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27792         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
27794 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27796         dup2, fcntl: cross-compile better for Android
27797         Problem reported by Kevin Cernekee in:
27798         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
27799         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
27800         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
27801         there's little need to cross-compile for older kernels nowadays.
27802         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
27803         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
27805 2015-02-18  Pádraig Brady  <P@draigBrady.com>
27807         getopt: don't crash on memory exhaustion
27808         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
27809         memory exhaustion.  In the _LIBC case we use alloca() as is
27810         already done in glibc, so we don't need to consider the separate
27811         error path in that awkward case.  Also fix a memory leak when
27812         ambiguous options are present.
27813         Reported by Tobias Stoeckmann
27815 2015-02-17  Mike Miller  <mtmiller@ieee.org>
27817         tempname: allow compilation with C++ (trivial)
27818         * lib/tempname.h [C++]: Specify extern "C" linkage.
27819         * lib/tempname.h (try_tempname):
27820         * lib/tempname.c (__try_tempname, __gen_tempname):
27821         Rename 'try' to 'tryfunc'.
27823 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27825         dup2, fcntl: port to AIX
27826         * m4/dup2.m4 (gl_FUNC_DUP2):
27827         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27828         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27829         The former works on AIX 7.1 but the latter does not.
27830         Also, this may work better with Android; see:
27831         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27833 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27835         getdtablesize, dup2, fcntl: port to Android
27836         Problem reported by Kevin Cernekee in:
27837         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27838         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27839         Mention that getdtablesize doesn't work on Android.
27840         * lib/getdtablesize.c: Use getrlimit substitute only if
27841         getdtablesize is declared.  This should suffice for Cygwin
27842         while not breaking Android.
27843         * m4/dup2.m4 (gl_FUNC_DUP2):
27844         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27845         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27846         standardized but the latter is not, and sysconf works on Android.
27847         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27848         Also check that getdtablesize is declared.
27849         This removes the need for a special case for Android.
27851 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27853         localename: Implement gl_locale_name_thread_unsafe for Android
27854         * lib/localename.c: Android API level >= 21 supports two hardcoded
27855         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27856         the internal __locale_t struct.
27858 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27860         fts: avoid crash when a cycle is added while traversing
27861         This could be triggered by auto-mounting a recursive bind mount.
27862         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27863         * lib/fts.c (fts_read): Avoid removing the original hash table item
27864         when leaving a directory that caused a cycle, and preserve the FTS_DC
27865         flag.
27867 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27869         uniname/uniname: support character alias
27870         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27871         Generate one-way mapping from aliases to codepoints in the
27872         generated tables.  Special case variation selectors to reduce
27873         table size.
27874         * lib/uniname/uniname.c (unicode_character_name): Special case
27875         variation selectors.
27876         (unicode_name_character): Special case variation selectors and
27877         their aliases.
27878         * lib/uniname/uninames.h: Regenerate.
27879         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27880         * modules/uniname/uniname-tests (Files): Add
27881         tests/uniname/NameAliases.txt.
27882         * tests/uniname/test-uninames.c: Mark as static.
27883         (ALIASLEN): Define.
27884         (struct unicode_alias): New struct.
27885         (unicode_aliases): New variable.
27886         (fill_aliases): New function.
27887         (test_alias_lookup): New test function.
27888         (main): Run the 'test_alias_lookup' test if the second argument is
27889         given.
27890         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27891         second argument.
27893 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27895         Fix FILE struct compatibility with Android API level >= 21
27896         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27897         __sferror.  Recent versions of Bionic's stdio.h no longer define
27898         __sferror.
27899         * lib/fbufmode.c: Likewise.
27900         * lib/fflush.c: Likewise.
27901         * lib/fpurge.c: Likewise.
27902         * lib/freadable.c: Likewise.
27903         * lib/freadahead.c: Likewise.
27904         * lib/freading.c: Likewise.
27905         * lib/freadptr.c: Likewise.
27906         * lib/freadseek.c: Likewise.
27907         * lib/fseeko.c: Likewise.
27908         * lib/fseterr.c: Likewise.
27909         * lib/fwritable.c: Likewise.
27911         Assume unbroken ungetc() on Android
27912         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27913         test case passed when running on an Android host, and the code
27914         hasn't really changed since 2009.
27916         getdtablesize: Fix Android build
27917         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27918         versions have this symbol in the .so library (at least 32-bit
27919         platforms) but are missing the declaration in the header file,
27920         causing the m4 logic to guess incorrectly.
27922         localename: Fix Android build
27923         * modules/localename (Depends-on): Add langinfo.
27925         getugroups: Fix Android build
27926         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27927         functions.
27929         euidaccess: Fix Android build
27930         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27931         AT_EACCESS gets declared.
27933         linkat_nofollow: Add fallback case for cross compiling
27934         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27936         net_if: Handle content-free <net/if.h> system headers
27937         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27938         struct if_nameindex.  If not, enable the replacement header.
27940         signal_h: Fix Android build
27941         * lib/signal.in.h: Add Android to the list of platforms that declare
27942         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27944         duplocale: Fix Android build of duplocale-tests
27945         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27946         is included by test-duplocale.c (but not by duplocale.c).
27947         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27948         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27949         * doc/posix-headers/monetary.texi: Add Android to the list of
27950         platforms missing monetary.h.
27952 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27954         tests: avoid recent -Werror=unused-variable regression in test-locale
27955         * tests/test-locale.c (main): Reference the variable to avoid the
27956         "unused variable" warning.
27958 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27960         maint: various whitespace cleanups in tempname
27961         * lib/tempname.c: Normalize spacing and line length.
27962         * lib/tempname.h: Likewise.
27963         * modules/tempname: Likewise.
27965 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27967         tests: provide returns_() to simplify exit status checking
27968         * tests/init.sh (returns_): A new function for use in tests,
27969         to allow for easier checking of return values, where you expect
27970         a command to exit with failure status.  By checking for a particular
27971         exit code, you don't hide any crashes for example.
27973 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27975         mountlist: only use libmount when specified
27976         There are currently many shared libs dependencies introduced by
27977         libmount with associated runtime and virt mem overhead.
27978         Therefore don't enable by default.
27979         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27981 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27983         uniname/unimame-tests: don't link with -lunistring
27984         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27985         $(LIBUNISTRING).  Document the rationale why we need to
27986         conditionalize the test.
27988 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27990         fstrcmp: don't assume strlen < INT_MAX
27991         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27992         (uintptr_t): Remove, as we're now assuming stdint.
27993         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27994         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27995         if the input string is long.
27996         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27997         uintptr_t to size_t when the underlying value is a pointer casted
27998         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27999         * modules/fstrcmp (Depends-on): Add stdint.
28001         diffseq: prefer ptrdiff_t to ssize_t
28002         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
28003         ptrdiff_t is the natural type for signed indexes.
28004         On a few older platforms, ssize_t is narrower than size_t.
28006         xalloc: fix typo that suppressed warnings
28007         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
28008         This typo, introduced a couple of years ago, mistakenly suppressed
28009         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
28010         -Wmissing-declarations warnings.
28012         full-read: fix license notice typo
28013         * lib/full-read.h: Remove a stray line in the license notice.
28014         Reported by Sam Ellis in: http://bugs.gnu.org/19808
28016         crypto/gc: fix a -Wswitch warning
28017         Reported by Bruce Korb in:
28018         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
28019         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
28021 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28023         gnulib-tool: fix handling of patch(1) diagnostics
28024         * gnulib-tool: Send diagnostics from patch(1) to stderr,
28025         as otherwise gnulib-tool will reparse that output and attempt
28026         to lookup modules.
28028 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28030         bootstrap: exit immediately upon gnulib-tool failure
28031         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
28032         This was noticed when gnulib-tool exited early due to failure
28033         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
28034         but various confusing errors were then given as the build proceeded.
28036 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
28038         symlinkat: include all required header files
28039         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
28040         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
28041         Reported at https://savannah.gnu.org/bugs/index.php?44151
28042         and by Jack Howarth.
28044 2015-01-29  Pádraig Brady  <P@draigBrady.com>
28046         localename: support Solaris 12 and illumos
28047         * lib/localename.c (gl_locale_name_thread_unsafe): call
28048         getlocalename_l() on newer __sun platforms.
28049         Reported by Alexander Pyhalov.
28050         Fix suggested by Rich Burridge.
28052 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
28054         locale: fix tests on illumos (trivial)
28055         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
28056         so move from global scope to main().
28058 2015-01-24  Daiki Ueno  <ueno@gnu.org>
28060         unictype: avoid undefined left-shift behavior
28061         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
28062         gcc's -fsanitize=shift and running its tests triggered:
28063           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
28064             places cannot be represented in type 'int'
28065         Cast LHS to 'unsigned int' after integer promotion.
28066         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
28067         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
28069 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28071         libunistring: bump version of unitypes dependants
28072         Due to the header file search order, all the headers which depend
28073         on unitypes.h need to be generated, when the preinstalled
28074         libunistring is older.
28075         * modules/unicase/base (configure.ac): Bump minimum version to
28076         0.9.4.
28077         * modules/uniconv/base (configure.ac): Likewise.
28078         * modules/unilbrk/base (configure.ac): Likewise.
28079         * modules/uninorm/base (configure.ac): Likewise.
28080         * modules/unistdio/base (configure.ac): Likewise.
28081         * modules/unistr/base (configure.ac): Likewise.
28082         * modules/uniwbrk/base (configure.ac): Likewise.
28083         * modules/uniwidth/base (configure.ac): Likewise.
28085 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28087         unictype/category-none: fix link with libunistring
28088         Since _UC_CATEGORY_NONE is not a public symbol, it will be
28089         prefixed with "libstring_" when compiled as part of libunistring.
28090         To avoid undefined symbol at link time, increase the minimum
28091         version when the dependant modules are updated.
28092         * modules/unictype/category-none (configure.ac): Bump minimum
28093         version to 0.9.5.
28095 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28097         unitypes: fix build with installed libunistring
28098         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
28099         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
28100         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
28102 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28104         time: port to MinGW32 3.21
28105         Problem reported by Eli Zaretskii in:
28106         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
28107         * lib/time.in.h:
28108         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
28109         * modules/time (Depends-on):
28110         Fall back on unistd.h if the other include files don't define
28111         struct timespec.
28113         update-copyright: apply to self
28114         * build-aux/update-copyright: Fix copyright date.  How ironic!
28116 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28118         libunistring: update to Unicode 7.0.0
28119         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
28120         Manichaean names.
28121         * lib/unictype/joininggroup_name.h: Likewise.
28122         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
28123         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
28124         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
28125         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
28126         (fill_arabicshaping, joining_group_as_c_identifier): Support those
28127         enum values.
28128         (is_property_alphabetic): Accept newly added characters to
28129         cuneiform numeric signs.
28130         (is_property_default_ignorable_code_point): Reject U+0605.
28131         (FIELDLEN): Increase from 120 to 160.
28132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
28133         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
28134         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
28135         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
28136         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
28137         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
28138         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
28139         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
28140         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
28141         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
28142         U+1E8D0..U+1E8D6.
28143         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
28144         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28145         lib/uniwidth/width.c.
28146         * all generated files under lib/uni* and tests/uni*: Regenerate.
28148 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28150         libunistring: update to Unicode 6.3.0
28151         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28152         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
28153         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
28154         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
28155         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
28156         Update WB5, WB9, WB10, WB13a, and WB13b.
28157         * tests/uniwbrk/test-uc-wordbreaks.c
28158         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
28159         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28160         (UC_BIDI_PDI): New enumeration values.
28161         (bidi_category_byname): Support those enum values.
28162         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
28163         dedicated property assigned.
28164         (is_property_case_ignorable): Check 0x0027.
28165         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28166         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28167         (output_wbp): Support those enum values.
28168         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28169         (UC_BIDI_PDI): New enumeration values.
28170         * lib/unictype/bidi_byname.gperf: Add those property names.
28171         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
28172         U+180E, U+1A1B, and U+2066..U+2069.
28173         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28174         lib/uniwidth/width.c.
28175         * all generated files under lib/uni* and tests/uni*: Regenerate.
28177 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28179         libunistring: update to Unicode 6.2.0
28180         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
28181         (unilbrk_table): Adjust table size.
28182         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28183         for LBP_RI.
28184         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
28185         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
28186         Normalize table index skipping ignored properties.
28187         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
28188         WBP_EXTEND and WBP_FORMAT, which are now computed without using
28189         the table.
28190         * lib/uniwbrk/wbrktable.h: Adjust table size.
28191         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
28192         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
28193         Support rule GB8a.
28194         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
28195         * tests/unigbrk/test-uc-is-grapheme-break.c
28196         (graphemebreakproperty_to_string): Support GBP_RI.
28197         * tests/uniwbrk/test-uc-wordbreaks.c
28198         (wordbreakproperty_to_string): Support WBP_RI.
28199         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
28200         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
28201         (output_lbp): Support LBP_RI.  Adjust some characters changed from
28202         LBP_AL to LBP_ID.
28203         (output_lbp): Support LBP_RI.
28204         (WBP_RI): New enumeration value.
28205         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28206         (output_wbp): Support WBP_RI.
28207         (GBP_RI): New enumeration value.
28208         (output_gbp_test, fill_org_gbp): Support GBP_RI.
28209         * all generated files under lib/uni* and tests/uni*: Regenerate.
28211 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28213         libunistring: update to Unicode 6.1.0
28214         * lib/gen-uni-tables.c (output_joining_group): Switch to
28215         3-level table to accommodate joining groups defined with higher
28216         codepoint value.  Since there are only 88 groups defined in
28217         Unicode 7.0.0, use 7-bit packed format for level3 entries.
28218         (get_lbp): Update for Unicode 6.1.0.
28219         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
28220         3-level table.
28221         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
28222         joining group name.
28223         * lib/unictype/joininggroup_name.h: Likewise.
28224         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
28225         (unilbrk_table): Adjust table size.
28226         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28227         for LBP_HL.
28228         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
28229         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
28230         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
28231         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
28232         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
28233         U+302E..U+302F.
28234         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28235         lib/uniwidth/width.c.
28236         * all generated files under lib/uni* and tests/uni*: Regenerate.
28237         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
28239 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28241         uniwbrk/u32-wordbreaks-tests: add conformance test
28242         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
28243         tests/uniwbrk/test-uc-wordbreaks.c,
28244         tests/uniwbrk/test-uc-wordbreaks.sh, and
28245         tests/uniwbrk/WordBreakTest.txt.
28246         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
28247         test-uc-wordbreaks to $(check_PROGRAMS), and define
28248         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
28249         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
28250         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
28252 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28254         uniwbrk: ignore Extended/Format characters at BOL not BOS
28255         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
28256         characters if the previous character property is one of
28257         WBP_NEWLINE, WBP_CR, and WBP_LF.
28259 2015-01-11  Jim Meyering  <meyering@fb.com>
28261         test-strstr.c: avoid a trivial leak
28262         * tests/test-strstr.c (main): Free haystack.
28264         update-copyright: recognize groff's \(co marker
28265         * build-aux/update-copyright (circle_c_re): Also accept
28266         uses of \(co, as found in gzip.1.
28268 2015-01-08  Pádraig Brady  <P@draigBrady.com>
28270         maint.mk: fix compatibility with OS X nm
28271         * top/maint.mk (_gl_tight_scope): Use the -g option to
28272         show exported items rather than the -e option which is
28273         ignored on all platforms except OS X where it gives an error.
28274         Reported by Assaf Gordon.
28276 2015-01-07  KO Myung-Hun  <komh@chollian.net>
28278         localcharset: improve charset detection on OS/2
28279         Use system codepage when appropriate.  Map OS/2 codepages to
28280         GNU canonical charset names if possible.
28281         * lib/config.charset: Don't output aliases if "$os" is os2*.
28282         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
28283         result for OS/2.
28284         (locale_charset) [OS2]: Use system codepage if codeset is omitted
28285         from the locale name which is neither "C" nor "POSIX".
28287 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28289         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
28290         This reverts the last patch but one, as it shouldn't be needed now
28291         that the typo is fixed.
28292         * lib/count-leading-zeros.h (count_leading_zeros_ll):
28293         * lib/count-trailing-zeros.h:
28294         * lib/count-one-bits.h:
28295         Go back to using 64-bit intrinsics.
28297         count-leading-zeros: fix pragma typos
28298         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
28299         Fix typos in declaration of intrinsics when _MSC_VER.
28301 2015-01-06  Pádraig Brady  <P@draigBrady.com>
28303         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
28304         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
28305         intrinsics in this case.
28306         * lib/count-trailing-zeros.h: Likewise.
28307         * lib/count-one-bits.h: Likewise.
28309 2015-01-06  Daiki Ueno  <ueno@gnu.org>
28311         uniname/uniname: update to Unicode 7.0.0
28312         To accommodate new characters added since Unicode 5.1.0, this
28313         changes the internal representation of codepoint ranges.
28314         Previously, we grouped codepoint ranges by manually assigned 4-bit
28315         tag, which only allowed 16 groups.  This removes the limitation by
28316         switching to binary search on a table.  For the detail rationale
28317         and the benchmark results, see:
28318         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
28319         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
28320         to INDEX, as it no longer represents a codepoint.
28321         (range): New struct.
28322         (main): Switch to intervals list from a bit-pattern based
28323         classification.
28324         * lib/uniname/uninames.h: Regenerate.
28325         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
28326         * modules/uniname/base (configure.ac): Bump minimum version to
28327         0.9.5.
28328         * modules/uniname/uniname (configure.ac): Bump minimum version to
28329         0.9.5.
28331 2015-01-05  Eric Blake  <eblake@redhat.com>
28333         doc: update INSTALL from autoconf
28334         * doc/install.texi: Resync from autoconf.
28335         * doc/INSTALL: Reflect recent autoconf update.
28336         * doc/INSTALL.ISO: Likewise.
28337         * doc/INSTALL.UTF-8: Likewise.
28339         stdio: fix use of PRIdMAX on modern mingw
28340         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
28341         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
28342         to work with modern mingw.
28344 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
28346         pthread: detect git mingw builds with only partial pollution
28347         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
28348         pollution, as seen temporarily in Fedora 21.
28350 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28352         lib-symbol-versions: cache script check
28353         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
28354         Cache the check for linker version scripts.
28355         From a suggestion by Christophe Curis in:
28356         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
28358 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
28360         maint: fix grammar nits in propername (trivial change)
28361         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
28362         and use an adequate verb and tense.
28364 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
28366         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28367         * module/gendocs: Add 'doc/gendocs_template_min'.
28369         * build-aux/gendocs.sh: Change email addresses and upstream URLs
28370         from to Gnulib's.
28371         (scripturl, templateurl): Adjust accordingly.
28373 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28375         gendocs: copyright date and version fix
28376         Reported by Karl Berry in:
28377         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
28378         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
28379         Fix copyright date.
28380         * build-aux/gendocs.sh (scriptversion): Update.
28382 2015-01-01  Karl Berry  <karl@gnu.org>
28384         * doc/install.texi,
28385         * build-aux/mdate-sh,
28386         * build-aux/depcomp,
28387         * build-aux/config.guess,
28388         * build-aux/config.sub,
28389         * build-aux/ar-lib,
28390         * build-aux/compile: revert copyright updates (some from last
28391         year) in slaved files.
28393 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28395         version-etc: new year
28396         * doc/gnulib.texi:
28397         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28398         * all files: Run 'make update-copyright'.
28400 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28402         xstrtol: ensure errno is reset
28403         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28404         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28406         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28408 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28410         utimens: fix dependency typo
28411         * modules/utimens (Depends-on): Remove 'assure'.
28412         This bug was introduced in the recent 'assure' patch.
28414 2014-12-22  Eric Blake  <eblake@redhat.com>
28416         docs: mention why libgen.h is bad
28417         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28419 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28421         assure: new module
28422         This works better than 'assert' when compiling with -DNDEBUG,
28423         as it avoids some compiler diagnostics in that case.
28424         Reported by Norihiro Tanaka in:
28425         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28426         * MODULES.html.sh (func_all_modules): Add 'assure'.
28427         * lib/assure.h, modules/assure: New files.
28428         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28429         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28430         Prefer 'assure' to 'assert'.
28431         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28432         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28433         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28434         Depend on 'assure'.
28436 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28438         stdalign: port better to HP compilers
28439         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28440         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28442         stdalign: work around Apple GCC 4.0 bug
28443         Reported by David Fang in:
28444         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28445         * lib/stdalign.in.h (_Alignas):
28446         * m4/stdalign.m4 (gl_STDALIGN_H):
28447         Do not use aligned attribute with GCC 4.0 on Apple.
28449 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28451         getcwd: fix test failure on OS X 10.9
28452         * m4/getcwd-path-max.m4: Avoid the replacement if it
28453         won't be effective due to the PATH_MAX limitation of lstat().
28454         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28455         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28456         for this case for use in tests, and also exclude this
28457         case when setting REPLACE_GETCWD.
28458         * tests/test-getcwd.c (test_long_name): Restrict the
28459         tested path length so that lstat() will not be passed
28460         a path greater than PATH_MAX.
28461         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28462         than AT_FDCWD, since the latter is set unconditionally
28463         since Sep 2009 in commit 52c658e9.
28465 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28467         parse-datetime: avoid a compiler warning with byacc (trivial)
28468         * lib/parse-datetime.y (yylex): Use the same prototype in the
28469         function definition as the declaration, to avoid a -Wstrict-prototypes
28470         warning seen when using byacc.
28472 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28474         unicase/locale-language-tests: fix LOCALE_FR test
28475         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28476         a French locale with traditional encoding.
28477         Reported by umerqayam in:
28478         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28480 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28482         stddef: support C11's max_align_t
28483         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28484         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28485         Do not undef, as that might cause max_align_t to be defined twice.
28486         Instead, change use to check for _GL_STDDEF_WINT_T too.
28487         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28488         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28489         Check for max_align_t.
28490         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28491         * modules/stddef-tests (Depends-on): Add stdalign.
28492         * tests/test-stddef.c: Test max_align_t.
28494 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28496         unistd: fix iOS check conditional
28497         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28498         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28499         yielded true on non-iOS environment.
28500         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28501         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28502         they are defined.
28504 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28506         posixtm: avoid compiler warning in a better way
28507         * lib/posixtm.c (IF_LINT): Remove.
28508         (year, posix_time_parse):
28509         Return true (not 0) if successful.  All callers changed.
28510         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28512 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28514         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28515         started with '/' on EMX.
28517 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28519         freopen: workaround freopen() on OS/2 kLIBC
28520         * lib/freopen.c (rpl_freopen): Workaround.
28521         * m4/freopen.m4: Add os2* case.
28523         get_shared_library_fullname: port to EMX
28524         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28525         on EMX, respectively.
28526         (_DLL_InitTerm): New on EMX.
28527         (get_shared_library_fullname): Implement on EMX.
28529         find_executable: port to EMX
28530         * lib/progreloc.c (find_executable): Implement on EMX.
28532         sched: check struct sched_param in spawn.h as well
28533         * lib/sched.in.h: Include spawn.h on kLIBC.
28534         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28536 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28538         bootstrap: Allow perl modules in $buildreq
28539         * build-aux/bootstrap: Add case for perl modules.
28541 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28543         apply _GL_ATTRIBUTE_PURE to some inline functions
28544         clang 3.4.2 flagged these inline functions as pure
28545         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28546         * lib/sig-handler.h (get_handler): Likewise.
28547         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28548         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28550 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28552         vasnprintf: fix potential use after free
28553         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28554         flagged by clang-analyzer 3.4.2.
28556 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28558         filevercmp, posixtm: avoid compiler warnings with -O3
28559         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28560         * lib/posixtm.c: (IF_LINT): Define.
28561         (posix_time_parse): Use it to void a "may be used uninitialized"
28562         warning, seen only with -O3.
28564 2014-12-05  Bruno Haible  <bruno@clisp.org>
28566         Fix LDBL80_WORDS macro on big endian platforms.
28567         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28568         LDBL80_WORDS macro.
28569         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28571         * tests/test-isfinite.c (test_isfinitel): Likewise.
28572         * tests/test-isinf.c (test_isinfl): Likewise.
28573         * tests/test-isnan.c (test_long_double): Likewise.
28574         * tests/test-isnanl.h (main): Likewise.
28575         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28576         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28577         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28578         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28579         Reported by Pádraig Brady.
28581 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28583         git-version-gen: do not print new line characters
28584         * build-aux/git-version-gen: Use printf instead of echo and tr.
28586         gnulib-tool: recognize x:* as an absolute path
28587         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28588         (func_relconcat): Likewise.
28590 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28592         argp: avoid extraneous translation and mem leak with empty pre doc
28593         * lib/argp-help.c (argp_doc): Never translate the empty string,
28594         when "\v" is the first or last character of the string, as that
28595         has a reserved meaning to return the header info from a po file.
28596         This also fixes a small memory leak in the !post case.
28597         The issue can be seen with this command for example:
28598         LC_MESSAGES=en_US grub2-mknetdir --help
28600 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28602         uniname/uniname-tests: skip if system's libunistring is used
28603         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28604         uniname/uniname module is not compiled.
28606 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28608         printf: fix configure check on big endian systems
28609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28611 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28613         pipe-filter-gi, pipe-filter-ii: port to AIX
28614         On AIX 7.1, 'select' is defined as static and cannot be referred
28615         to from inline function.
28616         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28617         the definition...
28618         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28619         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28621 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28623         gitlog-to-changelog: add --until
28624         * build-aux/gitlog-to-changelog: Support new --until option.
28625         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28627 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28629         extern-inline: update commentary about GCC bugs
28630         * m4/extern-inline.m4: Add another GCC bug number to comments.
28632 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28634         gen-uni-tables: untabify
28635         * lib/gen-uni-tables.c: Untabify.
28637 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28639         gen-uni-tables: check out-of-range values added to 3-level tables
28640         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28641         (output_joining_type, output_ident_category): Check out-of-range
28642         values added to 3-level tables.
28644 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28646         gen-uni-tables: utilize 'assert'
28647         * lib/gen-uni-tables.c: Include <assert.h>.
28648         (output_category, output_combclass, output_decimal_digit_test)
28649         (output_decimal_digit, output_digit_test, output_digit)
28650         (output_numeric, get_mirror_value, fill_properties)
28651         (fill_property30, is_property_alphabetic)
28652         (is_property_default_ignorable_code_point)
28653         (is_property_uppercase, is_property_lowercase)
28654         (is_property_cased, is_property_case_ignorable)
28655         (is_property_changes_when_lowercased, is_property_iso_control)
28656         (is_property_math, fill_arabicshaping, output_joining_group)
28657         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28658         (output_wbp, fill_org_gbp, get_decomposition)
28659         (output_decomposition, fill_composition_exclusions)
28660         (debug_output_composition_tables, output_composition_tables)
28661         (redistribute_casefolding_rules, output_casing_rules): Use
28662         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28663         reporting.
28665 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28667         gen-uni-tables: cosmetic improvements
28668         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28669         variables specification.
28670         (is_outdigit): Remove unused function.
28672 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28674         fcntl-h-tests: port to PA-RISC GNU/Linux
28675         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28677 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28679         fts: port to C89
28680         Problem reported for MSVC 16 by Gisle Vanem in:
28681         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28682         * lib/fts.c (fts_build): Avoid declaration before statement.
28684 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28686         unistd: port to iOS
28687         Problem reported by André Klitzing in:
28688         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28689         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28691 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28693         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28694         Problem reported by Alan Modra in:
28695         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28696         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28697         Always cast the function arg, reverting this part of the previous
28698         change.
28700 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28702         obstack: avoid potentially-nonportable function casts
28703         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28704         Remove, replacing with ...
28705         (call_chunkfun, call_freefun): New static functions.
28706         All uses changed.  Avoid potentially-nonportable casts.
28707         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28708         (_obstack_begin_worker): Omit last two args, since they
28709         rely on potentially-nonportable casts.  All callers changed.
28710         * lib/obstack.h (_OBSTACK_CAST): New macro.
28711         Use it everywhere the old API used a potentially-nonportable cast.
28712         The new API doesn't cast.
28713         (struct obstack): Use unions rather than requiring
28714         potentially-nonportable casts.
28715         (obstack_chunkfun, obstack_freefun): Return void.
28717 2014-11-03  Alan Modra  <amodra@gmail.com>
28719         obstack: fix macro return values
28720         * lib/obstack.h (obstack_next_free): Return void *.
28721         (obstack_1grow_fast, obstack_blank_fast): Return void.
28722         For __GNUC__ macros:
28723         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28724         For !__GNUC__ macros:
28725         (obstack_make_room, obstack_grow, obstack_grow0)
28726         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28728 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28730         obstack: do not assume system-supplied obstack is size_t safe
28731         * m4/obstack.m4: New file.
28732         * modules/obstack (Files): Add it.
28734         obstack: port to platforms that #define __alignof__
28735         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28736         not if !_LIBC.  We don't know of any platforms that #define
28737         __alignof__, but it might be useful in tests.  Conversely,
28738         glibc assumes GCC.
28740 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28742         linkat: don't unconditionally replace on GNU/Linux
28743         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28744         was redundant for a few reasons.  It was present to support compiling
28745         on new systems but running on the old narrow window of Linux 2.6.1[67].
28746         It setup and cleaned up test files which weren't actually used.
28747         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28748         implicit in the following check.
28750 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28752         linkat: wrap to handle symlinks on OS X 10.10
28753         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28754         but not usable because it doesn't support creating hardlinks
28755         to symlinks.  Therefore add a generic test for this capability
28756         and fallback to our emulation if linkat() fails with ENOTSUP.
28758 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28760         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28761         * doc/posix-functions/open.texi (open):
28762         * doc/posix-functions/openat.texi (openat):
28763         Document that these functions do not set errno to ELOOP when
28764         a symlink is opened with O_NOFOLLOW.
28766 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28768         obstack: add NEWS entry for recent incompatible changes
28769         * NEWS: Describe recent changes.
28771 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28773         mountlist: don't use libmount to decide on dummy/remote
28774         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28775         routines to determine whether a file system is dummy or remote,
28776         as they're not currently compatible.  For example the remoteness
28777         is determined on file system type (for which the list seems incomplete),
28778         rather than simply checking for a ':' in the device name.
28779         Also libmount currently determines that 'tmpfs' is a dummy file system
28780         even though it has associated storage.
28782 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28784         obstack: prefer __alignof__ to alignof
28785         This is for portability to pre-4.7 GCC when compiling glibc.
28786         See Joseph S. Myers in:
28787         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28788         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28789         New macro, defined by including and using <alignof.h>.
28790         (MAX): New macro.
28791         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28792         Do not use enums as they are not portable to some broken compilers.
28793         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
28795         obstack: prefer alignof to calculating alignments by hand
28796         * lib/obstack.c: Include <stdalign.h>.
28797         (struct fooalign): Remove.
28798         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
28799         * modules/obstack (Depends-on): Add stdalign.
28801 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28803         obstack: use size_t alignments and check for overflow
28804         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
28805         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
28806         * lib/obstack.h (struct obstack.alignment_mask):
28807         Use _OBSTACK_SIZE_T, not int, for alignments.
28808         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
28809         overflows, e.g., when adding the alignment.
28811 2014-10-29  Alan Modra  <amodra@gmail.com>
28813         obstack: 64-bit obstack support, part 3
28814         This finally enables full 64-bit obstack support.  The glibc
28815         shared library specific code is removed from obstack.c too, and
28816         the error handling code conditionally compiled under control of
28817         another macro, _OBSTACK_NO_ERROR_HANDLER.
28818         * lib/obstack.h: Include string.h earlier.
28819         (_OBSTACK_INTERFACE_VERSION): Define.
28820         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28821         * lib/obstack.c: Don't include shlib-compat.h.
28822         (OBSTACK_INTERFACE_VERSION): Delete.
28823         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28824         glibc code is compatible with version 2.  Don't include stdio.h for
28825         __GNU_LIBRARY.
28826         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28827         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28828         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28829         glibc shared library specific source.
28831         obstack: 64-bit obstack support, part 2
28832         This gets us 4G obstack support, without changing ABI
28833         compatibility, apart from possibly introducing some
28834         signed/unsigned comparison warnings in code that uses obstack.h.
28835         a) Replace "int" size parameters, return values, and macro local vars
28836            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28837         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28838         c) Make all obstack macros checking available room use obstack_room.
28839            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28840            allocated near the top of memory.
28841         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28842         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28843         in place of "int" size parameters, return values and local vars.
28844         (_CHUNK_SIZE_T): Define.
28845         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28846         union use an _OBSTACK_SIZE_T integer type.
28847         For __GNUC__ versions of the following macros...
28848         (obstack_room): Rename local var.
28849         (obstack_make_room): Use obstack_room.
28850         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28851         obstack_int_grow, obstack_blank): Likewise.
28852         (obstack_finish): Use unsigned comparison when comparing aligned
28853         next_free against chunk_limit.
28854         (obstack_free): Cast OBJ to remove possible const qualifier.
28855         For !__GNUC__ versions of the following macros...
28856         (obstack_make_room): Use obstack_room.
28857         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28858         obstack_int_grow, obstack_blank): Likewise.
28859         (obstack_finish): Use unsigned comparision when comparing aligned
28860         next_free against chunk_limit.
28861         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28862         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28863         _OBSTACK_SIZE_T.
28864         (_obstack_begin, _obstack_begin_1): Likewise.
28865         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28866         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28868         obstack: 64-bit obstack support, part 1
28869         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28870            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28871            and "size_t" 64 bits.
28872         b) Consolidate _obstack_begin and _obstack_begin1 code.
28873         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28874         use "size_t" rather than "long".
28875         (_obstack_begin, _obstack_begin1): Likewise.
28876         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28877         obstack_chunkfun): Update alloc function casts.
28878         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28879         (chunkfun_type, freefun_type): New typdefs.
28880         (_obstack_begin_worker): Split out from ..
28881         (_obstack_begin, _obstack_begin_1): ..here.
28883         obstack: tidy part 2
28884         a) Don't be concerned about "not polluting the namespace with stddef.h
28885            symbols" in obstack.h, since gnulib string.h includes stddef.h
28886            anyway, and it seems unlikely that anyone would care.
28887         b) Don't roll our own slow memcpy in _obstack_newchunk.
28888         c) Rename obstack_free to _obstack_free.  This makes the naming
28889            consistent with other obstack functions and obviates the need for
28890            __obstack_free.  Ancient obstack.c defined both obstack_free and
28891            _obstack_free.  We continue to do that for _LIBC via an alias.
28892         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28893            is clever, but nowadays gcc warns on undefined macros.  You'll get
28894            an undefined macro warning if simulating an old gcc with -U__GNUC__
28895            -U__GNUC_MINOR__ -D__GNUC__=1.
28896         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28897         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28898         (__obstack_free): Delete, update refs.
28899         (_obstack_free): Rename from obstack_free.
28900         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28901         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28902         * lib/obstack.c: Don't include stddef.h.
28903         (COPYING_UNIT): Delete.
28904         (_obstack_begin): Formatting fix.
28905         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28906         (_obstack_free): Rename from __obstack_free, update alias.  Move
28907         undef of obstack_free to where it is needed.
28909         obstack: tidy part 1
28910         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28911            to me, and result in overlong lines after later patches.
28912         b) Move error handling code, to avoid a forward declaration and to
28913            simplify later patches in this series.
28914         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28915         and update all uses.
28916         * lib/obstack.c: Include stdlib.h earlier.
28917         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28918         in file.
28919         (print_and_abort): Remove now redundant forward declaration.
28921 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28923         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28924         Without this change, in bleeding-edge fileutils Autoconf complains
28925         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28926         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28927         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28928         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28930 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28932         iconv: avoid false detection of non-working iconv
28933         The INBUF arguments of iconv can be either 'const char **'
28934         or 'char **'.  If CC is g++, the difference causes a compile error
28935         and thus leads to a false detection of non-working iconv.
28936         Reported by Eli Zaretskii and Werner LEMBERG in:
28937         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28938         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28939         iconv.  Bump serial number.
28941 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28943         bootstrap: print more diagnostics for missing programs
28944         * build-aux/bootstrap: only suppress stderr when checking for
28945         alternative program names.  This supports programs issuing non
28946         standard error messages.
28948 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28950         bootstrap: only update the gnulib submodule
28951         * build-aux/bootstrap: Restrict the "submodule update" command
28952         to the gnulib path.
28954 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28956         symlinkat: port to AIX 7.1
28957         * doc/posix-functions/symlinkat.texi (symlinkat):
28958         Mention AIX porting problem.
28959         * lib/symlinkat.c: Always include errno.h.
28960         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28961         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28962         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28964         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28965         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28966         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28968         readlinkat: port to AIX 7.1
28969         * doc/posix-functions/readlink.texi (readlink):
28970         * doc/posix-functions/readlinkat.texi (readlinkat):
28971         Mention AIX porting problem.
28972         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28973         New function.
28974         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28975         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28977         * modules/readlinkat (configure.ac): Also compile replacement
28978         if REPLACE_READLINKAT.
28979         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28981 2014-10-12  Karl Berry  <karl@gnu.org>
28983         * doc/posix-functions/dirname.texi: remove spurious {.
28985 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28987         basename, dirname: Improve documentation.
28988         * doc/posix-functions/basename.texi: Mention dirname module and
28989         base_name() function.
28990         * doc/posix-functions/dirname.texi: Mention dir_name() and
28991         mdir_name() functions.
28992         Suggested by Werner LEMBERG <wl@gnu.org>.
28994 2014-09-24  Jim Meyering  <meyering@fb.com>
28996         exclude: declare exclude_patopts static
28997         * lib/exclude.c (exclude_patopts): Declare static,
28998         to avoid triggering a -Wmissing-prototypes warning.
28999         The alternative (declaring it in the .h file) would
29000         require publicizing the private "struct patopts".
29002 2014-09-21  Werner Lemberg  <wl@gnu.org>
29004         dirname: support compilation with C++
29005         * lib/dirname.h: Add necessary C linkage declarations.
29007 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29009         qsort_r: include <config.h>
29010         Problem reported by Tom G. Christensen in:
29011         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
29012         * lib/qsort.c [!_LIBC]: Include <config.h> first.
29014 2014-09-16  Dylan Cali  <calid1984@gmail.com>
29016         avltree-list: avoid compiler warnings (trivial)
29017         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29018         -Werror=suggest-attribute=pure.
29019         * lib/gl_array_list.c: Likewise.
29020         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
29021         declaration to avoid -Werror=missing-prototypes.  This is not added
29022         to a header as only exported for tests.  Add (void) to the
29023         check_invariants() call to indicate we're discarding the result
29024         in this context which avoids -Werror=unused-value.  Note we don't
29025         use ignore_value here to avoid a dependency as we know we'll not
29026         be adding __attribute__((warn_unused_result)) to check_invariants().
29027         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
29029 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29031         qsort_r: new module, for GNU-style qsort_r
29032         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
29034 2014-09-15  Werner LEMBERG  <wl@gnu.org>
29036         strerror_r-posix: support compilation with C++
29037         * lib/strerror_r.c: Add necessary C linkage declarations.
29039 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
29041         fcntl-h: fix compilation with Intel C++ compiler (trivial)
29042         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
29044 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
29046         mountlist: use /proc/self/mountinfo when available
29047         Use libmount to propagate device IDs provided by Linux in
29048         /proc/self/mountinfo.  This will give more accurate output when
29049         using df in chroot'ed environments as the device IDs are not
29050         determined by stat() which may be inaccurate within the chroot.
29051         * lib/mountlist.c (read_file_system_list): Use the libmount routines
29052         from util-linux to parse "/proc/self/mountinfo" or fall back to
29053         standard getmntent() processing.
29054         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
29055         getmntent() is used, as is the case on GNU/Linux.
29057 2014-09-07  Eric Wong  <normalperson@yhbt.net>
29059         users.txt: add cmogstored
29060         cmogstored has used gnulib since the beginning in 2012 to support
29061         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
29063 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29065         Trivial change.
29066         * gnulib-tool: Use same options as build-aux/bootstrap to download
29067         PO files.
29069 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29071         Trivial change.
29072         * gnulib-tool: Fallback to wget when rsync of PO files fails.
29074 2014-09-04  Eric Blake  <eblake@redhat.com>
29076         maintainer-makefile: add syntax check for useless ';;'
29077         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
29079 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
29081         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
29082         Problem reported by Assaf Gordon in:
29083         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
29084         Apparently Ubuntu is doing some fancy link-time optimization
29085         that doesn't work with -lpthread but does work with -pthread.
29086         Work around the bug by preferring -pthread to -lpthread.
29087         * m4/pthread.m4 (gl_PTHREAD_CHECK):
29088         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
29089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29090         Treat -pthread like -lpthread.
29092 2014-09-04  Eric Blake  <eblake@redhat.com>
29094         error: drop spurious semicolon
29095         * lib/error.c (__error_at_line): Fix ';;'.
29097 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29099         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
29100         * m4/gnulib-common.m4 (AC_C_RESTRICT):
29101         Override AC_C_RESTRICT unconditionally.
29102         Update from autoconf, incorporating:
29103         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
29104         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
29106 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29108         manywarnings: add GCC 4.9 warnings
29109         Also, make it easier to maintain this in the future.
29110         * build-aux/gcc-warning.spec: Add -Wabi-tag,
29111         -Wconditionally-supported, -Wdelete-incomplete,
29112         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
29113         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
29114         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
29115         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
29116         only for older GCC versions that need them.  Handle
29117         -Wnormalized=nfc specially, so that the 'comm' command used
29118         for maintenance doesn't get confused.
29120 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29122         vasnprintf: fix bugs in width computation
29123         * lib/vasnprintf.c (VASNPRINTF):
29124         Rework previous change, which introduced a bug,
29125         to avoid the warning in a different way.
29126         Avoid undefined behavior if the width arg is less than -INT_MAX.
29127         Avoid unnecessary use of HAS_WIDTH local.
29129 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
29131         vasnprintf: Avoid signed/unsigned comparison warning.
29132         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
29133         compare end addr of generated string w/ maximum end addr.
29135 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29137         parse-datetime: Avoid pointer difference.
29138         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
29139         instead of calculating difference of pointers.  This removes an
29140         annoying warning, devoid of any use.
29142 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29144         qsort_r: new module, for GNU-style qsort_r
29145         This works even on FreeBSD, which has an incompatible qsort_r API.
29146         * MODULES.html.sh: Add it.
29147         * doc/glibc-functions/qsort_r.texi: It's now supported.
29148         * lib/qsort.c: New file, taken from glibc with minor changes
29149         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
29150         removed.
29151         * lib/qsort_r.c: New file, compiled only on FreeBSD.
29152         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
29153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
29154         * modules/qsort_r, modules/qsort_r-tests: New files.
29155         * modules/stdlib (Makefile): Set up its defaults.
29156         * tests/test-qsort_r.c: New file.
29158 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29160         vla: new module
29161         GNU RCS can use this, mostly for documentation I expect.  See:
29162         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
29163         * MODULES.html.sh: Add vla.
29164         * lib/vla.h, modules/vla: New files.
29166 2014-08-07  Daiki Ueno  <ueno@gnu.org>
29168         localename: make gl_locale_name_thread really thread-safe on Windows
29169         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
29170         "glthread/lock.h".
29171         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
29172         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
29174 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
29176         getpass: don't assume struct termios
29177         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
29178         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
29179         * lib/getpass.c (getpass): Port to systems lacking struct termios.
29181         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
29182         Problem reported by Jonas 'Sortie' Termansen in:
29183         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
29184         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
29185         Implement via sysconf for platforms that lack getdtablesize.
29187         vararrays: modernize AC_C_VARARRAYS for C11
29188         This backports a change I recently made to Autoconf.
29189         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
29190         VLAs are not supported, as this is what C11 does.  The old macro
29191         HAVE_C_VARARRAYS is still defined if they are supported, but is
29192         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
29194 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
29196         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
29197         * build-aux/install-reloc (func_create_wrapper): Also wrap
29198         strerror-override, stat, stat.
29200 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29202         sys_select: fix FD_ZERO problem on Solaris 10
29203         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
29204         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
29205         to expand to an expression that invoked memset without necessarily
29206         including <string.h>.  The problem was that the first include
29207         defined _SYS_TIME_H, causing the second include to short-circuit.
29208         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
29209         Also, fix what appears to be a cut-and-paste typo, by replacing
29210         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
29211         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
29213         accept: document Solaris 10 type glitch
29214         * doc/posix-functions/accept.texi (accept): Mention that
29215         Solaris 10 'accept' takes void * last arg, not socklen_t *.
29217 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
29219         extern-inline: port to FreeBSD, DragonFly
29220         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
29221         is present if either __DragonFly__ or __FreeBSD__ is defined.
29222         FreeBSD problem reported by Andrey Borzenkov in:
29223         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
29224         Also, worry about __APPLE__ only if __MACH__ is also defined,
29225         as this is more consistent with the rest of gnulib.
29226         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
29227         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
29229 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29231         regex: Make #if/#ifdef usage consistent for DEBUG
29232         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
29233         of the inconsistent usage of #if and #ifdef as that works with
29234         both Glibc and Gnulib's style.
29236 2014-07-31  Eric Blake  <eblake@redhat.com>
29238         openat-die: use _Noreturn markup
29239         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
29240         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
29241         _Noreturn.
29243 2014-07-30  Eric Blake  <eblake@redhat.com>
29245         test-open: port to cygwin, which lacks Fortify
29246         * tests/test-open.h (ALWAYS_INLINE): New macro.
29247         (__always_inline): Don't abuse internal symbol on non-glibc.
29249 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
29251         localename: Enforce declarations before statements.
29252         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
29253         first statement.
29255 2014-07-18  Jim Meyering  <meyering@fb.com>
29257         test-userspec: don't look up numeric user names
29258         * tests/test-userspec.c: I found a system for which getpwnam("0")
29259         returned a pointer to a non-root user's entry, and that made the
29260         test fail.
29261         (T): Prefix each numeric input with "+", to inhibit lookup.
29263 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
29265         localcharset, localename: MS-Windows support for non-default locales
29266         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
29267         falling back on the default system codepage, try extracting
29268         the codepage from what 'setlocale' returns.  This allows to
29269         take into account changes of the codeset due to non-default
29270         locale set by a previous call to 'setlocale'.
29271         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
29272         Define if not already defined.
29273         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
29274         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
29275         current locale by calling 'setlocale', then converting the
29276         locale name into LCID by calling 'get_lcid'.  This allows to
29277         take into account changes in the current locale from the
29278         default one, in contrast to GetThreadLocale.
29280 2014-07-14  Daiki Ueno  <ueno@gnu.org>
29282         announce-gen: avoid failure when Digest::SHA is installed
29283         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
29284         Digest::SHA1->new in print_checksums fails.
29285         * build-aux/announce-gen (digest_classes): New associative array
29286         for available message digest implementations.
29287         (print_locations): Use it.
29289 2014-07-13  Pádraig Brady  <P@draigBrady.com>
29291         gettext: revert "update macros to version 0.19"
29292         This reverts commit 9b9370ca, as it currently requires that
29293         developers of any project that explicitly uses the gettext module
29294         or implicitly uses it through the utimens-tests or
29295         futimens-tests modules, use gettext >= 0.19.
29296         However there are some stability and availablity issues with
29297         that version at present.  We can reinstate this soon, when stability
29298         is addressed and packages are more readily available.
29300 2014-07-12  Jim Meyering  <meyering@fb.com>
29302         regex: don't deref NULL upon heap allocation failure
29303         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
29304         failure in one more place.
29305         To trigger the segfault, configure grep -with-included-regex,
29306         build it, and run these commands:
29307         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
29308         I discovered this while replying to a private report from
29309         Jens Schleusener about excessive memory consumption by grep
29310         when using a regular expression like the one above.
29312 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29314         regex: fix memory leak in compiler
29315         Fix by Andreas Schwab in:
29316         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
29317         * lib/regcomp.c (parse_reg_exp): Deallocate partially
29318         constructed tree before returning error.
29320 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29322         announce-gen: avoid perl warnings
29323         * build-aux/announce-gen: add two minor checks to avoid
29324         "use of uninitialized value" warnings when command-line parameters are
29325         missing.
29327 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29329         localename: avoid -Wsuggest-attribute={const,pure} warnings
29330         * lib/localename.c (string_has): Tag internal function as pure.
29331         * lib/localename.h (gl_locale_name_default): Tag extern declaration
29332         as const when appropriate.
29334 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
29336         nl_langinfo: Fix last change.
29337         * lib/nl_langinfo.c (includes): Drop redundant include.
29339 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29341         error: Fix -Wundef warnings in glibc
29342         * lib/error.c [_LIBC]: Define default macros for
29343         glibc.
29344         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
29345         Check _LIBC before STRERROR_R_CHAR_P.
29347         error: Sync from glibc master
29348         * lib/error.c [_LIBC]: Remove INTUSE usage.
29349         (error_tail): Remove unused macro ALLOCA_LIMIT.
29350         Fix potential buffer overflow.  Fix potential NULL dereference
29351         in strcmp.
29353 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
29355         nl_langinfo: fix build under mingw
29356         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
29358 2014-07-09  Andrew D Warshall  <warshall@99main.com>
29360         mountlist: do not classify a bind-mounted dir entry as "dummy"
29361         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
29362         1-argument getmntent() (instead of assuming absence).
29364 2014-07-08  Eric Blake  <eblake@redhat.com>
29366         maint.mk: less syntax-check noise when SIGPIPE is ignored
29367         * top/maint.mk (_sc_header_without_use)
29368         (sc_require_config_h_first): Parse full list.
29370 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
29371             Paul Eggert  <eggert@cs.ucla.edu>
29373         nl_langinfo: CODESET on MS-Windows and more items from localeconv
29374         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
29375         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
29376         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
29377         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
29378         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
29379         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29380         Include <stdio.h> if Microsoft Windows.
29381         Include <time.h> if !REPLACE_NL_LANGINFO.
29382         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29383         and with improvements for Microsoft Windows.
29384         (rpl_nl_langinfo): Use it.
29385         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29386         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29387         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29388         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29389         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29390         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29391         corresponding values returned by 'localeconv'.  Compute the values
29392         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29393         'strftime' with a suitable struct tm value.
29395 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29397         Bruno Haible has stepped down as maintainer.
29398         See Karl Berry in:
29399         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29400         Daiki Ueno has volunteered to maintain libunistring; see:
29401         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29402         * modules/gen-uni-tables, modules/libunistring:
29403         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29404         * modules/unicase/base, modules/unicase/cased:
29405         * modules/unicase/empty-prefix-context:
29406         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29407         * modules/unicase/locale-language, modules/unicase/special-casing:
29408         * modules/unicase/tocasefold, modules/unicase/tolower:
29409         * modules/unicase/totitle, modules/unicase/toupper:
29410         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29411         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29412         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29413         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29414         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29415         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29416         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29417         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29418         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29419         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29420         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29421         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29422         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29423         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29424         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29425         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29426         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29427         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29428         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29429         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29430         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29431         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29432         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29433         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29434         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29435         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29436         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29437         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29438         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29439         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29440         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29441         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29442         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29443         * modules/uniconv/u16-conv-to-enc:
29444         * modules/uniconv/u16-strconv-from-enc:
29445         * modules/uniconv/u16-strconv-from-locale:
29446         * modules/uniconv/u16-strconv-to-enc:
29447         * modules/uniconv/u16-strconv-to-locale:
29448         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29449         * modules/uniconv/u32-strconv-from-enc:
29450         * modules/uniconv/u32-strconv-from-locale:
29451         * modules/uniconv/u32-strconv-to-enc:
29452         * modules/uniconv/u32-strconv-to-locale:
29453         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29454         * modules/uniconv/u8-strconv-from-enc:
29455         * modules/uniconv/u8-strconv-from-locale:
29456         * modules/uniconv/u8-strconv-to-enc:
29457         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29458         * modules/unictype/bidicategory-all:
29459         * modules/unictype/bidicategory-byname:
29460         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29461         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29462         * modules/unictype/bidiclass-byname:
29463         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29464         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29465         * modules/unictype/block-all, modules/unictype/block-list:
29466         * modules/unictype/block-of, modules/unictype/block-test:
29467         * modules/unictype/category-C, modules/unictype/category-Cc:
29468         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29469         * modules/unictype/category-Co, modules/unictype/category-Cs:
29470         * modules/unictype/category-L, modules/unictype/category-LC:
29471         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29472         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29473         * modules/unictype/category-Lu, modules/unictype/category-M:
29474         * modules/unictype/category-Mc, modules/unictype/category-Me:
29475         * modules/unictype/category-Mn, modules/unictype/category-N:
29476         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29477         * modules/unictype/category-No, modules/unictype/category-P:
29478         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29479         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29480         * modules/unictype/category-Pi, modules/unictype/category-Po:
29481         * modules/unictype/category-Ps, modules/unictype/category-S:
29482         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29483         * modules/unictype/category-Sm, modules/unictype/category-So:
29484         * modules/unictype/category-Z, modules/unictype/category-Zl:
29485         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29486         * modules/unictype/category-all, modules/unictype/category-and:
29487         * modules/unictype/category-and-not, modules/unictype/category-byname:
29488         * modules/unictype/category-longname, modules/unictype/category-name:
29489         * modules/unictype/category-none, modules/unictype/category-of:
29490         * modules/unictype/category-or, modules/unictype/category-test:
29491         * modules/unictype/category-test-withtable:
29492         * modules/unictype/combining-class:
29493         * modules/unictype/combining-class-all:
29494         * modules/unictype/combining-class-byname:
29495         * modules/unictype/combining-class-longname:
29496         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29497         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29498         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29499         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29500         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29501         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29502         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29503         * modules/unictype/digit, modules/unictype/joininggroup-all:
29504         * modules/unictype/joininggroup-byname:
29505         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29506         * modules/unictype/joiningtype-all:
29507         * modules/unictype/joiningtype-byname:
29508         * modules/unictype/joiningtype-longname:
29509         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29510         * modules/unictype/mirror, modules/unictype/numeric:
29511         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29512         * modules/unictype/property-ascii-hex-digit:
29513         * modules/unictype/property-bidi-arabic-digit:
29514         * modules/unictype/property-bidi-arabic-right-to-left:
29515         * modules/unictype/property-bidi-block-separator:
29516         * modules/unictype/property-bidi-boundary-neutral:
29517         * modules/unictype/property-bidi-common-separator:
29518         * modules/unictype/property-bidi-control:
29519         * modules/unictype/property-bidi-embedding-or-override:
29520         * modules/unictype/property-bidi-eur-num-separator:
29521         * modules/unictype/property-bidi-eur-num-terminator:
29522         * modules/unictype/property-bidi-european-digit:
29523         * modules/unictype/property-bidi-hebrew-right-to-left:
29524         * modules/unictype/property-bidi-left-to-right:
29525         * modules/unictype/property-bidi-non-spacing-mark:
29526         * modules/unictype/property-bidi-other-neutral:
29527         * modules/unictype/property-bidi-pdf:
29528         * modules/unictype/property-bidi-segment-separator:
29529         * modules/unictype/property-bidi-whitespace:
29530         * modules/unictype/property-byname:
29531         * modules/unictype/property-case-ignorable:
29532         * modules/unictype/property-cased:
29533         * modules/unictype/property-changes-when-casefolded:
29534         * modules/unictype/property-changes-when-casemapped:
29535         * modules/unictype/property-changes-when-lowercased:
29536         * modules/unictype/property-changes-when-titlecased:
29537         * modules/unictype/property-changes-when-uppercased:
29538         * modules/unictype/property-combining:
29539         * modules/unictype/property-composite:
29540         * modules/unictype/property-currency-symbol:
29541         * modules/unictype/property-dash:
29542         * modules/unictype/property-decimal-digit:
29543         * modules/unictype/property-default-ignorable-code-point:
29544         * modules/unictype/property-deprecated:
29545         * modules/unictype/property-diacritic:
29546         * modules/unictype/property-extender:
29547         * modules/unictype/property-format-control:
29548         * modules/unictype/property-grapheme-base:
29549         * modules/unictype/property-grapheme-extend:
29550         * modules/unictype/property-grapheme-link:
29551         * modules/unictype/property-hex-digit:
29552         * modules/unictype/property-hyphen:
29553         * modules/unictype/property-id-continue:
29554         * modules/unictype/property-id-start:
29555         * modules/unictype/property-ideographic:
29556         * modules/unictype/property-ids-binary-operator:
29557         * modules/unictype/property-ids-trinary-operator:
29558         * modules/unictype/property-ignorable-control:
29559         * modules/unictype/property-iso-control:
29560         * modules/unictype/property-join-control:
29561         * modules/unictype/property-left-of-pair:
29562         * modules/unictype/property-line-separator:
29563         * modules/unictype/property-logical-order-exception:
29564         * modules/unictype/property-lowercase, modules/unictype/property-math:
29565         * modules/unictype/property-non-break:
29566         * modules/unictype/property-not-a-character:
29567         * modules/unictype/property-numeric:
29568         * modules/unictype/property-other-alphabetic:
29569         * modules/unictype/property-other-default-ignorable-code-point:
29570         * modules/unictype/property-other-grapheme-extend:
29571         * modules/unictype/property-other-id-continue:
29572         * modules/unictype/property-other-id-start:
29573         * modules/unictype/property-other-lowercase:
29574         * modules/unictype/property-other-math:
29575         * modules/unictype/property-other-uppercase:
29576         * modules/unictype/property-paired-punctuation:
29577         * modules/unictype/property-paragraph-separator:
29578         * modules/unictype/property-pattern-syntax:
29579         * modules/unictype/property-pattern-white-space:
29580         * modules/unictype/property-private-use:
29581         * modules/unictype/property-punctuation:
29582         * modules/unictype/property-quotation-mark:
29583         * modules/unictype/property-radical:
29584         * modules/unictype/property-sentence-terminal:
29585         * modules/unictype/property-soft-dotted:
29586         * modules/unictype/property-space:
29587         * modules/unictype/property-terminal-punctuation:
29588         * modules/unictype/property-test, modules/unictype/property-titlecase:
29589         * modules/unictype/property-unassigned-code-value:
29590         * modules/unictype/property-unified-ideograph:
29591         * modules/unictype/property-uppercase:
29592         * modules/unictype/property-variation-selector:
29593         * modules/unictype/property-white-space:
29594         * modules/unictype/property-xid-continue:
29595         * modules/unictype/property-xid-start:
29596         * modules/unictype/property-zero-width, modules/unictype/scripts:
29597         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29598         * modules/unictype/syntax-c-whitespace:
29599         * modules/unictype/syntax-java-ident:
29600         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29601         * modules/unigbrk/u16-grapheme-breaks:
29602         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29603         * modules/unigbrk/u32-grapheme-breaks:
29604         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29605         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29606         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29607         * modules/unigbrk/uc-is-grapheme-break:
29608         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29609         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29610         * modules/unilbrk/u16-width-linebreaks:
29611         * modules/unilbrk/u32-possible-linebreaks:
29612         * modules/unilbrk/u32-width-linebreaks:
29613         * modules/unilbrk/u8-possible-linebreaks:
29614         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29615         * modules/unilbrk/ulc-possible-linebreaks:
29616         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29617         * modules/uniname/uniname, modules/uninorm/base:
29618         * modules/uninorm/canonical-decomposition:
29619         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29620         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29621         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29622         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29623         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29624         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29625         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29626         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29627         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29628         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29629         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29630         * modules/unistdio/base, modules/unistdio/u-printf-args:
29631         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29632         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29633         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29634         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29635         * modules/unistdio/u16-u16-sprintf:
29636         * modules/unistdio/u16-u16-vasnprintf:
29637         * modules/unistdio/u16-u16-vasprintf:
29638         * modules/unistdio/u16-u16-vsnprintf:
29639         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29640         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29641         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29642         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29643         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29644         * modules/unistdio/u32-u32-asnprintf:
29645         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29646         * modules/unistdio/u32-u32-sprintf:
29647         * modules/unistdio/u32-u32-vasnprintf:
29648         * modules/unistdio/u32-u32-vasprintf:
29649         * modules/unistdio/u32-u32-vsnprintf:
29650         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29651         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29652         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29653         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29654         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29655         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29656         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29657         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29658         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29659         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29660         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29661         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29662         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29663         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29664         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29665         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29666         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29667         * modules/unistr/u16-check, modules/unistr/u16-chr:
29668         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29669         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29670         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29671         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29672         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29673         * modules/unistr/u16-move, modules/unistr/u16-next:
29674         * modules/unistr/u16-prev, modules/unistr/u16-set:
29675         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29676         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29677         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29678         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29679         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29680         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29681         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29682         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29683         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29684         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29685         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29686         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29687         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29688         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29689         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29690         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29691         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29692         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29693         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29694         * modules/unistr/u32-next, modules/unistr/u32-prev:
29695         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29696         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29697         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29698         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29699         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29700         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29701         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29702         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29703         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29704         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29705         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29706         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29707         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29708         * modules/unistr/u8-check, modules/unistr/u8-chr:
29709         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29710         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29711         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29712         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29713         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29714         * modules/unistr/u8-next, modules/unistr/u8-prev:
29715         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29716         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29717         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29718         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29719         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29720         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29721         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29722         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29723         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29724         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29725         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29726         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29727         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29728         * modules/uniwbrk/base, modules/uniwbrk/table:
29729         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29730         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29731         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29732         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29733         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29734         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29735         * modules/uniwidth/width, modules/utf16-ucs4:
29736         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29737         * modules/utf8-ucs4-unsafe:
29738         Change maintainer from Bruno Haible to Daiki Ueno.
29739         This is my guess at the libunistring modules; please feel free
29740         to fix if I guessed incorrectly.
29741         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29742         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29743         * modules/areadlink, modules/array-list, modules/array-mergesort:
29744         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29745         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29746         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29747         * modules/binary-io, modules/bison-i18n, modules/btowc:
29748         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29749         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29750         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29751         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29752         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29753         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29754         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29755         * modules/closedir, modules/concat-filename, modules/copy-file:
29756         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29757         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29758         * modules/csharpcomp-script, modules/csharpexec:
29759         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29760         * modules/dprintf, modules/dprintf-posix, modules/dup:
29761         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29762         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29763         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29764         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29765         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29766         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29767         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29768         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29769         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29770         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29771         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29772         * modules/findprog, modules/findprog-lgpl, modules/floor:
29773         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29774         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29775         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29776         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29777         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29778         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29779         * modules/freadable, modules/freadahead, modules/freadptr:
29780         * modules/freadseek, modules/freopen, modules/frexp:
29781         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29782         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29783         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29784         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29785         * modules/ftello, modules/full-read, modules/full-write:
29786         * modules/fwritable, modules/fwriteerror, modules/gcd:
29787         * modules/get-rusage-as, modules/get-rusage-data:
29788         * modules/getdtablesize, modules/getrusage, modules/gettext:
29789         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29790         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29791         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29792         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
29793         * modules/iconv, modules/iconv-h, modules/iconv_open:
29794         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
29795         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
29796         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
29797         * modules/integer_length_ll, modules/ioctl, modules/isatty:
29798         * modules/isblank, modules/isnand, modules/isnand-nolibm:
29799         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
29800         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
29801         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
29802         * modules/javaexec, modules/javaexec-script, modules/javaversion:
29803         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
29804         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
29805         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
29806         * modules/lib-symbol-visibility, modules/libsigsegv:
29807         * modules/linked-list, modules/linkedhash-list, modules/list:
29808         * modules/localcharset, modules/locale, modules/localeconv:
29809         * modules/localename, modules/lock, modules/log, modules/log-ieee:
29810         * modules/log10, modules/log10-ieee, modules/log10f:
29811         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
29812         * modules/log1p, modules/log1p-ieee, modules/log1pf:
29813         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
29814         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
29815         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
29816         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
29817         * modules/logf, modules/logf-ieee, modules/login_tty:
29818         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29819         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29820         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29821         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29822         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29823         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29824         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29825         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29826         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29827         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29828         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29829         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29830         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29831         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29832         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29833         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29834         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29835         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29836         * modules/posix_spawn, modules/posix_spawn-internal:
29837         * modules/posix_spawn_file_actions_addclose:
29838         * modules/posix_spawn_file_actions_adddup2:
29839         * modules/posix_spawn_file_actions_addopen:
29840         * modules/posix_spawn_file_actions_destroy:
29841         * modules/posix_spawn_file_actions_init:
29842         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29843         * modules/posix_spawnattr_getpgroup:
29844         * modules/posix_spawnattr_getschedparam:
29845         * modules/posix_spawnattr_getschedpolicy:
29846         * modules/posix_spawnattr_getsigdefault:
29847         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29848         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29849         * modules/posix_spawnattr_setschedparam:
29850         * modules/posix_spawnattr_setschedpolicy:
29851         * modules/posix_spawnattr_setsigdefault:
29852         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29853         * modules/pow, modules/powf, modules/printf-frexp:
29854         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29855         * modules/progname, modules/propername, modules/pselect:
29856         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29857         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29858         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29859         * modules/read, modules/readdir, modules/readlink:
29860         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29861         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29862         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29863         * modules/relocatable-script, modules/remainder:
29864         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29865         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29866         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29867         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29868         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29869         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29870         * modules/setlocale, modules/sh-quote, modules/shutdown:
29871         * modules/signal, modules/signbit, modules/sigpipe:
29872         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29873         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29874         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29875         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29876         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29877         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29878         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29879         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29880         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29881         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29882         * modules/streq, modules/strerror_r-posix, modules/striconv:
29883         * modules/striconveh, modules/striconveha, modules/strncat:
29884         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29885         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29886         * modules/sys_wait, modules/system-posix, modules/system-quote:
29887         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29888         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29889         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29890         * modules/truncf, modules/truncf-ieee, modules/truncl:
29891         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29892         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29893         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29894         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29895         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29896         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29897         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29898         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29899         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29900         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29901         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29902         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29903         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29904         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29905         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29906         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29907         * modules/write, modules/xconcat-filename, modules/xlist:
29908         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29909         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29910         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29911         * modules/y0, modules/y1, modules/yn:
29912         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29913         change the maintainer to 'all'.  Let's hope someone volunteers.
29915 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29917         mktime: merge #if/#ifdef usage from glibc
29918         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29919         as that works with both Glibc's and Gnulib's style.
29920         See thread starting at Siddhesh Poyarekar's bug report at:
29921         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29923 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29925         git-version-gen: improve option descriptions
29926         * build-aux/git-version-gen: Mention that --prefix and --fallback
29927         have a mandatory argument.
29929 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29931         regex: fix memory leak in compiler
29932         Fix by Andreas Schwab in:
29933         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29934         * lib/regcomp.c (parse_expression): Deallocate partially
29935         constructed tree before returning error.
29937         regex: merge patch from libc
29938         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29939         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29940         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29942 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29944         acl: port to gcc -Wredundant-decls
29945         From a request by Dmitry Antipov in:
29946         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29947         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29948         "#ifndef _GL_ACL_H".
29950 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29951         Jim Meyering  <meyering@fb.com>
29953         parse-duration: eliminate 68-year duration limit
29954         * lib/parse-duration.c: Include "intprops.h".
29955         (TIME_MAX): Rename to MAX_DURATION and define to
29956         TYPE_MAXIMUM(time_t).
29957         * modules/parse-duration (Depends-on): Add intprops.
29958         Reported by Jonas 'Sortie' Termansen.
29960 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29962         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29963         * modules/pthread (Depends-on): Add 'extensions', as it defines
29964         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29965         (configure.ac-early): New section.
29966         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29967         it is no longer needed.
29969 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29971         pthread: define thread-safe macros on some platforms
29972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29973         for thread-safe operation on some platforms.
29975 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29977         regex: don't be multithreaded if USE_UNLOCKED_IO.
29978         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29979         * lib/regex_internal.h: Do not use multithreaded version if
29980         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29981         around a porting bug with coreutils 8.22 on AIX 7.1.
29983 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29985         gettext: update macros to version 0.19
29986         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29987         depend on gl_EXTERN_INLINE and drop support for older Bison
29988         versions.
29990 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29992         select,poll: fix console handle check on windows 8
29993         lib/poll.c (IsConsoleHandle): Change from testing the lower
29994         2 bits of the handle to the more expensive but accurate syscall.
29995         lib/select.c: Likewise.
29997 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29999         select: fix waiting on anonymous pipes on MS-Windows
30000         * lib/select.c (rpl_select): Fall back to polling when select()
30001         indicates there is nothing to check, while due to the timeout not
30002         expiring, activity is indicated on one of the handles.
30003         Also clear the TIMEOUT argument if the timer does expire.
30005 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30007         times: fix to return non constant value on MS-Windows
30008         * lib/times.c (times): Don't use the process creation time,
30009         rather clock() which on windows returns the number of
30010         clock ticks since the process started.
30012 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
30014         isatty: fix to work on windows 8
30015         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
30016         2 bits of the handle to the more expensive but accurate syscall.
30018 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
30020         maint: fix typo in fdl.texi
30021         * doc/fdl.texi: Fix typo (missing '@').
30022         Somehow this was in fdl.texi but not fdl-1.3.texi.
30024 2014-06-06  Ben Walton  <bdwalton@gmail.com>
30026         mountlist: avoid hasmntopt const type warning on solaris
30027         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
30028         with char * instead of const char *.  Passing the constant string
30029         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
30030         to avoid the warning.
30032 2014-06-04  Eric Blake  <eblake@redhat.com>
30034         maintainer-makefile: delete obsolete code
30035         * top/maint.mk (build_aux): Drop old code, as threatened.
30037         maintainer-makefile: avoid spurious error messages
30038         * top/maint.mk (syntax-check): Guard definition and use of
30039         $(shell) by whether Makefile is present.
30041 2014-06-03  Ben Walton  <bdwalton@gmail.com>
30043         rename: avoid unused-but-set-variable compiler warning
30044         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
30045         it is possible that dst_exists may be set but not used.  Mark it with
30046         the unused attribute to avoid compiler warnings.
30048 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30050         rename: mark a label as potentially unused
30051         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
30052         by marking the out label as potentially unused.
30053         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
30055 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30057         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
30058         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
30060 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30062         acl: apply pure attribute to two functions
30063         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
30064         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
30066 2014-06-01  Pádraig Brady  <P@draigBrady.com>
30068         gnulib-common.m4: add _GL_UNUSED_LABEL
30069         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
30070         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
30072 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30074         dup2, fcntl, fcntl-h: port to AIX 7.1
30075         This fixes some porting problems discovered when testing the latest
30076         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
30077         in grep but it could be important for other applications.
30078         * doc/posix-functions/dup2.texi:
30079         * doc/posix-functions/fcntl.texi:
30080         * doc/posix-headers/fcntl.texi:
30081         Document AIX bugs.
30082         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
30083         Define to 0 if outside 'int' range.
30084         * m4/dup2.m4 (gl_FUNC_DUP2):
30085         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30086         Check for getdtablesize.  If it's available, test a value just
30087         outside its range instead of testing 1000000.  When cross-compiling,
30088         guess that AIX will fail this improved test.
30090 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30092         printf, config.rpath: Port to FreeBSD 10.
30093         Problem reported by Tijl Coosemans in:
30094         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
30095         * build-aux/config.rpath (hardcode_libdir_flag_spec)
30096         (hardcode_direct): Simplify FreeBSD configuration.
30097         (library_names_spec): Don't mishandle FreeBSD 10+.
30098         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
30099         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
30100         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
30101         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
30102         Don't mishandle FreeBSD 10+ when cross-compiling.
30104         ftoastr: work around compiler bug in IBM xlc 12.1
30105         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
30106         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
30107         around a compiler bug in IBM xlc 12.1.0.0: it complains
30108         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
30109         _GL_FLT_PREC_BOUND.'
30111 2014-05-30  Kieran Colford  <colfordk@gmail.com>
30113         valgrind-tests: fixed misleading help message
30114         * m4/valgrind-tests.m4: The help message generated by configure
30115         implied that valgrind was disabled by default, which it wasn't.
30116         Adjusted the help message using s/enable/disable/ to clarify.
30118 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
30120         isfinite, isinf, isnan tests: fix for little-endian PowerPC
30121         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
30122         first double of a PowerPC "double double" pair.
30123         * tests/test-isinf.c (test_isinfl): Likewise.
30124         * tests/test-isnan.c (test_long_double): Likewise.
30125         * tests/test-isnanl.h (main): Likewise.
30126         * tests/test-signbit.c (test_signbitl): Likewise.
30128 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30130         exclude-tests: port to AIX 7.1
30131         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
30132         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
30133         the regex code uses locks.
30135 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
30137         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
30138         Without this fix, Emacs would sometimes call sigprocmask instead
30139         of pthread_sigmask, which is a no-no in multithreaded applications.
30140         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
30141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30142         Suppress check for pthread_sigmask working without -lpthread if
30143         the application always links with -lpthread.  Do not link with
30144         $LIBMULTITHREAD if gl_THREADLIB is not defined.
30145         * m4/timer_time.m4 (gl_TIMER_TIME):
30146         Require gl_THREADLIB only if it is defined.  Do not append
30147         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
30149 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
30151         gnulib-tool: wget translations using --no-verbose rather than --quiet
30152         This allows the user to see error messages if any (--quiet hides them)
30153         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
30155 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
30157         gnulib-tool: adjust translation wget to avoid a https redirection
30158         Context: http://translationproject.org/latest/gnulib redirects to
30159            https://translationproject.org/latest/gnulib/
30160         Rationale: if the user falls back to wget, she doesn't have rsync and
30161         is probably in a minimal build environment, where packages such as
30162         'ca-certificates' are missing as well, resulting in a failed (and
30163         difficult to detect since ignored) translation initial fetch.
30164         Consequently let's avoid https if possible, and add the missing
30165         trailing slash.  This also avoids an unnecessary 302 redirection.
30166         * gnulib-tool: Add trailing slash to gnulib URL.
30168 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30170         getlogin_r-tests: check return value rather than errno
30171         * tests/test-getlogin_r.c (main): As per POSIX we should be
30172         verifying the return value from getlogin_r() rather than errno.
30174 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30176         getlogin_r-tests: fix various issues in recent change
30177         * tests/test-getlogin_r.c: Include required headers that were
30178         missed in recent commit eec20b4e.
30179         Also consistently check the errno rather than the return value from
30180         getlogin_r as POSIX only specifies that non zero is returned on error.
30181         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
30183 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
30185         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
30186         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
30187         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
30188         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
30189         * lib/spawn-pipe.c:
30190         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
30191         and then 'int open64(const char *, int, ...);', which means the
30192         declaration for 'open' gets lost if we later '#undef open'.
30193         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
30194         where the compilation reported the non-fatal error "In function
30195         'openat_proc_name' ... warning: implicit declaration of function
30196         'open'".  In this case the error is relatively harmless, but in
30197         other cases it might not be so minor.
30199 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30201         xalloc: don't potentially generate invalid code for xmemdup calls
30202         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
30203         this function can initialize the newly-allocated storage with new
30204         pointers, which means this function is not malloc-like.  See:
30205         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
30207 2014-05-19  Pádraig Brady  <P@draigBrady.com>
30209         getlogin_r-tests: avoid false failure under sudo/ssh etc.
30210         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
30211         changes from commit 97249cf29 to not depend on environment variables.
30213 2014-05-18  Pádraig Brady  <P@draigBrady.com>
30215         getlogin-tests: avoid false failure under cron
30216         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
30217         since that's not what's under test.  Centos 6 was seen to return
30218         EINVAL for ttyname() when run from cron.
30220 2014-05-16  Jim Meyering  <meyering@fb.com>
30222         mbrtowc.m4: fix a comment typo
30223         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
30224         emitted documentation string.
30226 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30228         mbrlen, mbrtowc: fix bug with empty input
30229         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
30230         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
30231         so this is mainly for documentation.
30232         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
30233         (gl_FUNC_MBRTOWC): Use it.
30234         * tests/test-mbrtowc.c (main): Test for the bug.
30236 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30238         doc: document mbrtowc and mbrlen problem with empty input
30239         * doc/posix-functions/mbrlen.texi (mbrlen):
30240         * doc/posix-functions/mbrtowc.texi (mbrtowc):
30241         Document portability problem when the input string is empty.  See:
30242         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
30244         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
30245         Problem reported by Eli Zaretskii in:
30246         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
30247         * doc/posix-functions/execl.texi (execl):
30248         * doc/posix-functions/execle.texi (execle):
30249         * doc/posix-functions/execlp.texi (execlp):
30250         * doc/posix-functions/execv.texi (execv):
30251         * doc/posix-functions/execve.texi (execve):
30252         * doc/posix-functions/execvp.texi (execvp):
30253         Mention spawn+exit problem on non-Cygwin Windows platforms.
30255 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
30257         getlogin-tests: avoid false failure under sudo/ssh etc.
30258         * modules/getlogin-tests (configure.ac): Check for ttyname().
30259         * tests/test-getlogin.c (main): Don't depend on environment variables
30260         to correlate with getlogin(), since sudo and ssh etc. can tamper
30261         with the LOGNAME and USER env vars.  Instead lookup the name from
30262         the uid associated with the stdin tty.
30264 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30266         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
30267         These were found when building the latest grep snapshot on IRIX 6.5.
30268         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
30269         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
30270         never used later.
30271         * lib/quotearg.c (quoting_options_from_style):
30272         * lib/xstrtol.c (__xstrtol):
30273         Use enum instead of 0, to pacify IRIX 6.5 cc.
30275 2014-04-18  Pádraig Brady  <P@draigBrady.com>
30277         gitlog-to-changelog: revert inclusion of git-log-fix file
30278         * build-aux/git-log-fix: Delete dummy file.
30279         * modules/gitlog-to-changelog: Don't reference (overwrite)
30280         the project specific git-log-fix file.
30282 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
30284         maint.mk: Relax the copyright check to cater for non FSF projects
30285         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
30286         to not require the "Free" suffix after the copyright years.
30288 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
30290         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
30291         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
30292         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
30293         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
30294         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
30296 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
30298         exclude: port to strict C99
30299         Strict C does not allow converting a function pointer to void *
30300         and vice versa.  Pass a pointer to a function pointer instead.
30301         * lib/exclude.c (add_exclude_file):
30302         Pass the address of the function pointer.
30303         (call_addfn): And deference the address here, to match.
30305 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30307         regex: do not depend on malloc-gnu
30308         * modules/regex (Depends-on): Remove malloc-gnu.
30309         It's no longer needed, because of the 2012-12-29 patch
30310         "regex: port to hosts where malloc (0) == NULL".
30311         Reported by Nathan Kennedy in:
30312         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
30314 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
30316         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
30317         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
30318         * doc/posix-functions/expl.texi: Mention the workaround.
30320 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30322         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
30323         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
30324         size to be zero even when the pointer is nonnull.  This
30325         accommodates the use case where P is malloc (0) and *PN is 0 on a
30326         host where malloc (0) yields nonnull.
30328 2014-04-09  Eric Blake  <eblake@redhat.com>
30330         fts: avoid unnecessary strlen calls
30331         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
30333 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30335         fts: avoid unnecessary strlen calls
30336         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
30337         when that can be faster than strlen.
30339 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30341         fts: avoid unnecessary strlen calls
30342         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
30343         (fts_build): Store the length of the dp->d_name entry in a local variable
30344         instead of calling strlen() several times via the above, removed macro.
30345         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
30346         run by ~4%, yet this reduces the execution time by about a third if run
30347         via "ltrace -c rm -rf some-dir".
30349 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30351         obstack: Remove ancient NeXTSTEP gcc support conditional
30352         This change will ease merging with glibc.  The "#if ... __NEXT__"
30353         causes a warning with -Wundef which glibc now enables by default.
30354         Problem reported by Will Newton in
30355         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
30356         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
30357         so go with that.
30358         * lib/obstack.h (__extension__):
30360 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30362         obstack: merge with glibc changes
30363         * lib/obstack.c, lib/obstack.h: Merge from glibc.
30364         This is mostly indenting and commentary changes.
30365         Instances of 'register' have been removed.
30367 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30369         strftime: wrap macros in "do {...} while(0)"
30370         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
30371         this macro in "do {...} while(0)" to prevent false use as a
30372         single statement, e.g., in an un-braced "{}" else-block.
30373         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
30374         (strftime_case_): Remove 'else' after 'goto' - which was the
30375         only non-fatal, un-braced use of one of the above macros.
30376         Spotted by coverity (NESTING_INDENT_MISMATCH).
30378 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30380         modechange: avoid memory leaks for invalid octal modes
30381         * lib/modechange.c (mode_compile): During the parsing of
30382         notations like +40, free the 'mc' buffer for invalid mode
30383         strings like +17777 (greater than the maximum octal mode),
30384         =18 (bad octal mode characters) or u=1 ('affected' with
30385         octal modes).
30386         Reproducer, e.g.:
30387             $ valgrind --leak-check=full chmod +17777 file
30388         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30389         add notations +40, 00440, etc.".
30390         Spotted by coverity (RESOURCE_LEAK).
30392 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30394         gitlog-to-changelog: include a dummy git-log-fix file
30395         Problem reported by Nathan Stratton Treadway in:
30396         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30397         * build-aux/git-log-fix: New file.
30399 2014-03-13  Jim Meyering  <meyering@fb.com>
30401         gitlog-to-changelog: also include the file, git-log-fix
30402         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30403         Reported by Assaf Gordon.
30405 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30407         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30408         This fixes a bug when ignoring case and when comparing the
30409         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30410         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30411         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30412         titlecase letter is neither lowercase nor uppercase, but
30413         uppercasing the titlecase letter (via towupper) yields the
30414         uppercase letter, so the two letters should match when ignoring case.
30415         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30416         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30417         Don't test whether a character is lowercase before uppercasing it.
30419 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30421         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30422         This is basically one of the options Bruno Haible proposed in:
30423         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30424         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30425         * lib/stdint.in.h: Use it.
30426         * modules/stdint (Depends-on): Add sys_types.
30428 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30430         parse-datetime: fix crash or infloop in TZ="" parsing
30431         * lib/parse-datetime.y (parse_datetime): Break out of the
30432         TZ="" parsing loop once the second significant " is found.
30433         Also skip over any subsequent whitespace to be consistent
30434         with the non TZ= case.
30435         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30437 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30439         savedir: new symbol for fast-read version
30440         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30441         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30442         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30443         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30445 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30447         unistd: port readlink to Mac OS X 10.3.9
30448         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30449         around self-include problem in Mac OS X 10.3.9 when combined with
30450         readlink module.  Problem reported by Klaus Zietler in
30451         <http://bugs.gnu.org/16825>.
30453 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30455         diffseq: remove TOO_EXPENSIVE heuristic
30456         Problem with diffutils reported by Vincent Lefevre in
30457         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30458         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30459         Although appropriate for circa-1993 hardware, these days the heuristic
30460         seems to be more trouble than it's worth.
30461         * lib/diffseq.h: Modernize citations.
30462         (struct context): Remove member too_expensive.
30463         All uses changed.
30464         (struct partition): Remove members lo_minimal, hi_minimal.
30465         All uses changed.
30466         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30467         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30468         1993 to make 'diff' run faster (but not as well) on large inputs.
30469         These days, computers are fast enough that it's typically better
30470         to run slower but more accurately.
30471         * lib/fstrcmp.c: Remove duplicate comment.
30472         * lib/fstrcmp.c (strcmp_bounded):
30473         * lib/git-merge-changelog.c (compute_differences):
30474         Adjust to diffseq.h changes.
30475         * NEWS: Document the change.
30477         savedir: simplify by using stpcpy
30478         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30479         (streamsavedir): Use stpcpy instead.
30480         * modules/savedir (Depends-on): Add stpcpy.
30482 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30484         spawn: fix link error on uclibc
30485         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30486         to incorporate -lrt if needed (on uclibc for example).
30487         * modules/posix_spawn: Reference the substituted LIB.
30489 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30490         timer: fix uClibc detection of threading
30491         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30492         enabled in uClibc.
30494 2014-02-21  Eric Blake  <eblake@redhat.com>
30496         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30497         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30499 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30501         exclude: add support for posix regexps
30503         This commit adds support for POSIX extended regular expressions
30504         and fixes a long-standing memory leak (pattern buffer was never
30505         freed).  It also implements a new interface function to read
30506         exclude patterns from a FILE, which passes an additional parameter
30507         to its callback function, thereby allowing to preserve its state
30508         between invocations.
30510         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30511         (pattern_buffer): New struct.
30512         (exclude): New member patbuf.
30513         (exclude_add_pattern_buffer): New function.
30514         (free_exclude_segment): Free regexps.
30515         (free_exclude): Free allocated pattern buffers.
30516         (exclude_patopts): New function.
30517         (file_pattern_matches): Use exclude_patopts.
30518         (add_exclude): support regexps.
30519         (add_exclude_fp): New function.
30520         (add_exclude_file): Rewrite using add_exclude_fp.
30521         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30522         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30523         (add_exclude_fp)
30524         (add_exclude_file): Rewrite using add_exclude_fp.
30525         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30526         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30527         (add_exclude_fp)
30528         (exclude_add_pattern_buffer): New prototypes.
30529         * modules/exclude: Depends on regex and filename.
30531 2014-02-20  Eric Blake  <eblake@redhat.com>
30533         maintainer-makefiles: use $(SED) for syntax check
30534         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30535         * top/maint.mk: Change sed to $(SED).
30537 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30538             Paul Eggert  <eggert@cs.ucla.edu>
30540         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30541         Patch based on an idea by Dick Streefland in
30542         <https://savannah.gnu.org/patch/?7892>.
30543         * NEWS: Document this.
30544         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30545         (direntry_t, comparison_function): New types.
30546         (direntry_cmp_name): New function.
30547         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30548         (streamsavedir, savedir): New arg OPTION.
30549         (streamsavedir): Simplify memory allocation.
30550         (fdsavedir): Remove.
30551         * lib/savedir.h (enum savedir_option): New type.
30552         (streamsavedir, savedir): New arg OPTION.
30553         (fdsavedir): Remove.
30555 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30557         file-type: add support for doors and other less-common file types
30558         Problem with S_ISDOOR reported by Rich Burridge.
30559         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30560         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30561         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30563 2014-01-23  Eric Blake  <eblake@redhat.com>
30565         pthread: work around winpthread header pollution on mingw
30566         * lib/time.in.h: Move pthread workarounds...
30567         * lib/pthread.in.h: ...here.
30568         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30569         detect macro pollution on mingw.
30570         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30572 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30574         qacl: check for fchmod
30575         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30576         and qset-acl.c both use HAVE_FCHMOD.
30578 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30580         fdopen-tests: port to Tru64
30581         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30582         descriptor that is not open, as POSIX doesn't specify the
30583         resulting behavior and the test does not work on Tru64.
30584         Problem reported by Steven M. Schweda in:
30585         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30587         stdalign: port to HP-UX compilers
30588         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30589         if __HP_cc or __HP_aCC are nonzero.
30591 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30593         strtoimax: port to platforms lacking 'long long'
30594         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30595         check whether strtoll is declared, which causes the C file to
30596         wrongly report an error.  Problem reported by Steven M. Schweda in:
30597         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30598         * lib/strtoimax.c (strtoull):
30599         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30600         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30602 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30604         relocatable-perl: fix texi syntax
30605         * doc/relocatable-maint.texi: Escape braces.
30607 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30609         relocatable-perl: like relocatable-script, but for Perl scripts
30610         * build-aux/relocatable.pl.in: Add.
30611         * doc/relocatable-maint.texi: Add documentation.
30612         * modules/relocatable-perl: Add.
30614 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30616         tests: fix export bug in previous patch
30617         Problem reported by Jim Meyering.
30618         * tests/init.sh (re_shell): New var, which is exported instead of
30619         re_shell_.
30621         tests: simplify porting to Solaris 10 /bin/sh
30622         Some test cases in 'grep' need a shell that groks '$(';
30623         export re_shell_ for their benefit.  Problem reported for 'grep'
30624         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30625         * tests/init.sh (re_shell_): Export if it's used.
30627 2014-01-06  Eric Blake  <eblake@redhat.com>
30629         md5, sha1, sha256, sha512: support older autoconf
30630         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30631         for autoconf < 2.63b.
30633         include_next: port to autoconf 2.63
30634         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30636 2014-01-04  Jim Meyering  <meyering@fb.com>
30638         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30639         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30640         so that "make sc_maint" will ding anyone who puts non-ascii
30641         in any of gnulib's .texi files.
30643 2014-01-03  Jim Meyering  <meyering@fb.com>
30645         freadable, fwritable, fwriting: declare with the "pure" attribute
30646         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30647         * lib/fwritable.h (fwritable): Likewise.
30648         * lib/fwriting.h (fwriting): Likewise.
30649         Suggested by Bruno Haible.
30651         maint.mk: adapt openat.h-include-without-use test
30652         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30653         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30654         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30655         With this change, running "make sc_maint" in gnulib's top-level
30656         directory now passes for me.
30658 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30660         doc: use ASCII in .texi files where UTF-8 isn't needed
30661         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30662         * doc/posix-functions/setkey.texi, doc/regex.texi:
30663         Use ASCII input, not UTF-8.
30665 2014-01-02  Jim Meyering  <meyering@fb.com>
30667         freading: declare with the "pure" attribute
30668         * lib/freading.h (freading): Declare with the "pure" attribute.
30670         manywarnings: remove -Wmudflap
30671         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30672         it is no longer supported in gcc-4.9-to-be.
30674 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30676         relocatable-script: remove unused code
30677         Problem reported by Reuben Thomas in:
30678         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30679         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30681 2014-01-01  Jim Meyering  <meyering@fb.com>
30683         maint: fix public-submodule-commit to work with newer git
30684         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30685         We were over-quoting the test arguments, and somewhere prior to
30686         version 1.8.5.2.229, git stopped removing those excess quotes,
30687         which made the test fail, since the unexpanded strings would
30688         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30689         command wasn't even being run.
30691 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30693         doc: update main copyright year
30694         * doc/gnulib.texi: Update copyright date.
30696 2014-01-01  Eric Blake  <eblake@redhat.com>
30698         version-etc: new year
30699         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30700         * all files: run 'make update-copyright'
30702 2013-12-24  Eric Blake  <eblake@redhat.com>
30704         passfd: give nicer error for recvfd at eof
30705         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30706         * tests/test-passfd.c (main): Enhance test to cover this.
30708 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30710         gettimeofday: port recent C++ fix to Emacs
30711         Without this further patch, Emacs won't build due to
30712         the portcheck failing.  Also, this simplifies the patch a bit.
30713         * lib/time.in.h (localtime, gmtime): Don't replace unless
30714         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30715         * lib/time.in.h (localtime, gmtime):
30716         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30718         * modules/time (time.h):
30719         Don't worry about the possibility of localtime and gmtime
30720         being absent; they're present in all C libraries we know about.
30721         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30722         Don't assume sys_time is present and has been initialized.
30723         Instead, use a hack that should work even if it hasn't been.
30724         Don't use a portcheck for gmtime or localtime; this supports
30725         the hack.
30726         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30728 2013-12-17  John W. Eaton  <jwe@gnu.org>
30730         gettimeofday: fix C++ crosscompilation
30732         Never replace gmtime and localtime by macros when compiling with
30733         C++, this prevents <ctime> from being included.
30735         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30736         define gmtime and localtime as preprocessor macros.  Instead
30737         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30738         REPLACE_LOCALTIME substitutions.
30739         * lib/time.in.h: Declare gmtime and localtime when needed.
30740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30741         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30742         * modules/time: Depend on gettimeofday, and substitute the above
30743         variables in time.h.
30745 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30747         qacl: port to Windows better
30748         See Eli Zaretskii in
30749         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30750         * lib/file-has-acl.c (acl_access_nontrivial):
30751         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30752         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30754 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30756         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30757         * lib/gl_openssl.h: Cast void pointers to a specific type.
30759 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30761         open-tests: fix build failure with -Werror=old-style-declaration
30762         * tests/test-open.h: Reorder the inline to avoid the issue.
30764 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30766         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30767         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30768         init time, so that if early checks find crypto routines,
30769         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30770         avoiding link failures.
30772 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30774         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30775         This provides a new way to specify the default for
30776         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30777         Emacs uses this, as well as the old way.
30778         This attempts to implement a suggestion by Pádraig Brady in
30779         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30780         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30781         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30783         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30784         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30785         Add support for a new option, --with-openssl=auto, which causes
30786         the library to be used if available and silently ignored if not.
30787         Add support to allow configure.ac to specify its own
30788         default, by setting with_openssl_default before invoking gl_INIT.
30790 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30792         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
30793         Problem reported by Daiki Ueno in:
30794         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
30795         * tests/test-open.h (__always_inline):
30796         New macro, if not already defined.
30797         (test_open): Use it.
30799 2013-12-04  Eric Blake  <eblake@redhat.com>
30801         include_next: minimize code duplication
30802         * modules/include_next (Depends-on): Add absolute-header.
30803         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
30804         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
30806 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30808         getcwd: fix compile error in configure check
30809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
30811 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30813         regex: suppress core dumps from detection code
30814         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
30815         to suppress core dumps that may well occur on glibc systems.
30816         These core dumps might not be cleaned up automatically, or could
30817         trigger some system core dump handling logic.
30819 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30821         md5, sha1, sha256, sha512: support mandating use of openssl
30822         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30823         description, to list the now 3 separate options.  also don't
30824         mention the default=no, since this is implicit given the option
30825         is described as --with-openssl rather than --without-openssl.
30826         If projects change the default they're free to document that.
30827         with --with-openssl[=yes] we now error out when the specified
30828         hash algorithm is not available in libcrypto.
30830 2013-12-03  Ivailo  <xakepa10@gmail.com>
30832         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30833         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30834         -Wformat-nonliteral checks, as these edge cases are part of the test.
30836 2013-12-03  Eric Blake  <eblake@redhat.com>
30838         regex: avoid glibc deadlock during configure
30839         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30840         glibc bug 15078 in turn triggers bug 16159.
30841         Reported by Michal Privoznik.
30843 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30845         md5, sha1, sha256, sha512: use openssl routines if available.
30846         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30847         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30848         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30849         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30850         in the standard system location.
30851         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30852         * m4/sha256.m4: Likewise with SHA256.
30853         * m4/sha512.m4: Likewise with SHA512.
30854         * m4/md5.m4: Likewise with MD5.
30855         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30856         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30857         * lib/sha256.h: Likewise with SHA256.
30858         * lib/sha512.h: Likewise with SHA512.
30859         * lib/md5.h: Likewise with MD5.
30860         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30861         * lib/sha256.c: Likewise with SHA256.
30862         * lib/sha512.c: Likewise with SHA512.
30863         * lib/md5.c: Likewise with MD5.
30864         * modules/crypto/sha1 (Link:): Add the new optional lib.
30865         (Depends-on:): Add dependency on extern-inline.
30866         * modules/crypto/sha256: Likewise.
30867         * modules/crypto/sha512: Likewise.
30868         * modules/crypto/md5: Likewise.
30869         * modules/crypto/sha1-tests: Reference the lib here too.
30870         * modules/crypto/md5-tests: Likewise.
30871         * modules/crypto/gc-des-tests: Likewise.
30872         * modules/crypto/gc-hmac-md5-tests: Likewise.
30873         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30874         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30875         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30876         * modules/crypto/gc-md5-tests: Likewise.
30877         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30878         * modules/crypto/gc-sha1-tests: Likewise.
30879         * modules/crypto/gc-tests: Likewise.
30880         * modules/crypto/hmac-md5-tests: Likewise.
30881         * modules/crypto/hmac-sha1-tests: Likewise.
30882         * modules/crypto/hmac-sha256-tests: Likewise.
30883         * modules/crypto/hmac-sha512-tests: Likewise.
30885 2013-11-29  RV1971  <rv1971@web.de>
30887         base64: (trivial) fix compilation regression on some compilers
30888         * lib/base64.c: Don't return the void function,
30889         instead split to a separate return statement.
30891 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30893         ignore-value: revert previous code change
30894         * lib/ignore-value.h (ignore_value): Use __extension__ and
30895         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30896         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30897         Change the comment to try to explain this better.
30899 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30901         selinux-h: improve stub types and add more stub functions
30903         * lib/se-selinux.in.h: Change security_context_t to a typedef
30904         rather than a define, as it's a pointer type and so is better
30905         as a typedef to avoid issues declaring multiple variables
30906         with the comma operator.  Also add stub for string_to_security_class().
30907         * lib/se-context.in.h: Add stub functions for
30908         context_{type,range,role,user}_get().
30910 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30912         ignore-value: prefer GCC version back through 2.0
30913         The code didn't match the comments, so I did a bit of software
30914         archaeology.  GCC 2.0 seems to support __extension__ and
30915         __typeof__, so fix both code and comments to use 2.0.
30916         * lib/ignore-value.h (ignore_value): Use __extension__ and
30917         __typeof__ for GCC 2.0 through 3.3, too.
30919 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30921         pty: Activate the signature wrapper of forkpty.
30922         The intended preprocessor macro HAVE_FORKPTY is
30923         never defined, yet `lib/forkpty.c' depends on it.
30925         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30926         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30927         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30929 2013-11-18  Jim Meyering  <meyering@fb.com>
30930         and Paul Eggert  <eggert@cs.ucla.edu>
30932         quotearg: don't attempt to store 1 << 31 into an "int"
30933         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30934         gcc's new -fsanitize=undefined and running its tests triggered some
30935         new test failures due to undefined behavior, all with this diagnostic:
30936           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30937             cannot be represented in type int
30938         Rather than shifting "1" left to form a mask, shift the bits right and
30939         simply use "1" as the mask.
30941 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30943         error: depend on stdio
30944         Problem reported by Nikos Mavrogiannopoulos in
30945         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30946         * modules/error (Depends-on): Add stdio.
30948 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30950         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30951         wording.
30952         Reported by Reuben Thomas <rrt@sc3d.org>.
30954 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30956         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30957         New function and macro, to work around _DARWIN_C_SOURCE problem.
30958         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30960 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30962         base64: provide a fast path for encoding well sized buffers
30963         Avoid conditionals in the base64 encoding loop,
30964         which was seen to give 60% better throughput.
30965         * lib/base64.c (base64_encode_fast): A new function to be called
30966         when we don't want to NUL terminate, and we have enough space
30967         in the output to encode the given input.
30968         (base64_encode): Call the _fast() version when appropriate.
30969         Also remove a redundant mask with 0x3F on the first encoded byte.
30971 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30973         extern-inline: port better to OS X 10.9
30974         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30975         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30976         OS X 10.9, except for g++ where the bug is still present.
30977         See <http://trac.macports.org/ticket/41033>.
30979 2013-11-08  Eric Blake  <eblake@redhat.com>
30981         fpending: fix regression on DragonFly BSD
30982         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30983         * lib/fpending.h (__fpending): Don't declare twice.
30984         Reported by GW in
30985         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30987 2013-11-05  Jim Meyering  <meyering@fb.com>
30989         hash: relax license to LGPLv2+, for libguestfs
30990         * modules/hash (License): Change from GPL to LGPLv2+.
30992 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30994         intprops: port to Oracle Studio c99
30995         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30996         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30998 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31000         obstack: pacify HP C
31001         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
31002         warning "conversion from pointer to smaller integer" from HP
31003         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
31004         C89 or later nowadays, so cast to void instead of int.  Privately
31005         reported by H.Merijn Brand.  Also, change header to match glibc's,
31006         to make checking against glibc easier.
31008 2013-10-29  Jim Meyering  <meyering@fb.com>
31010         maint.mk: prefer gpgv2 over gpgv
31011         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
31012         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
31013         Reported by Gary Vaughan.
31015 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31017         isnan: port to VAX
31018         Reported by John Klos for NetBSD-5/VAX in
31019         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
31020         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
31021         (FUNC): Use it.
31023 2013-10-28  Jim Meyering  <meyering@fb.com>
31025         gnulib-tool: protect against CDPATH
31026         * gnulib-tool: Many "cd" built-in functions print a directory name
31027         to stdout when CDPATH is set, e.g.,
31028           $ bash -c 'CDPATH=/; cd tmp'
31029           /tmp
31030         Unset it, when possible.  Prompted by a comment from Bruce Korb.
31032         maint.mk: restore functionality removed by recent change...
31033         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
31034         the context of a shallow-cloned gnulib repository: "git describe"
31035         would fail in such a directory.  However, that change made it so
31036         the reported gnulib revision no longer includes the version number
31037         or a commit count, even when run from a full clone.
31038         * top/maint.mk (gnulib-version): Use the full "git describe"
31039         output when possible, e.g., the form above, rather than the
31040         abbreviated, no-tag, no-commit-count string, and fall back to
31041         using a 10-byte hash, rather than the default minimal-length
31042         hash prefix, since while the minimal-length one may be fine today,
31043         it is likely not to be unique for very long.
31045 2013-10-26  Jim Meyering  <meyering@fb.com>
31047         maint.mk: fix "release" target to build _version
31048         This fixes a bug in README-release whereby following the outlined
31049         steps, one would publish a tarball whose programs would report
31050         --version output not consistent with the package version number.
31051         This bug caused grep-2.15 to produce a grep program whose
31052         --version option made it print 2.14.56-1e3d rather than 2.15.
31053         * top/maint.mk (release): Making this target build "_version"
31054         ensures that the new version number is reflected in configure.
31056 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
31058         install-reloc: Support multi-binary installation.
31059         * build-aux/install-reloc: Support installing multiple programs in
31060         one invocation, as done by Automake starting with commit
31061         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
31062         Haible <bruno@clisp.org>, archived at
31063         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
31064         Reported by Sylvain <beuc@gnu.org>.
31066 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31068         selinux-h: Really build without selinux when library is missing.
31069         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
31070         continue without selinux, as already told in the warning message.
31072 2013-10-21  Jim Meyering  <meyering@fb.com>
31074         regex: also remove dependency on HAVE_WCSCOLL
31075         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
31077 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
31079         xfreopen: Fix typo. s/frepoen/freopen/
31080         * lib/xfreopen.c: Fix description.
31081         * modules/xfreopen: Likewise.
31083 2013-10-21  Jim Meyering  <meyering@fb.com>
31085         regex: don't depend on wcscoll
31086         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
31087         It is no longer used.
31089 2013-10-20  Jim Meyering  <meyering@fb.com>
31091         error: add the printf attribute to a static function
31092         * lib/error.c (error_tail): Add the printf attribute, to placate
31093         gcc's -Werror=suggest-attribute=format option.
31095 2013-09-30  Jim Meyering  <meyering@fb.com>
31097         fpending, obstack, strerror-override: use pure+const function attrs
31098         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
31099         * lib/obstack.c (_obstack_allocated_p): Likewise.
31100         * lib/obstack.h (_obstack_memory_used): Likewise.
31101         (_obstack_memory_used): Likewise.
31102         * lib/strerror-override.h (strerror_override): Declare with
31103         the "const" attribute.
31105 2013-10-18  Eric Blake  <eblake@redhat.com>
31107         extern-inline: make safe for -Wundef usage
31108         Reported by Vladimir 'phcoder' Serbinenko in
31109         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
31110         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
31112 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31114         mkfifo-tests, etc.: allow HP-UX 11.11 bug
31115         Problem reported by Daniel Richard G. in
31116         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
31117         * doc/posix-functions/mkfifo.texi (mkfifo):
31118         * doc/posix-functions/mkfifoat.texi (mkfifoat):
31119         * doc/posix-functions/mknod.texi (mknod):
31120         * doc/posix-functions/mknodat.texi (mknodat):
31121         Document the HP-UX 11.11 bug.
31122         * tests/test-mkfifo.h (test_mkfifo):
31123         Allow the HP-UX 11.11 bug.
31125 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31127         acl: allow cross-compilation to Gentoo
31128         Problem reported by Gabriel Marcano in
31129         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
31130         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
31131         test only whether it links.
31133 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
31135         mgetgroups: remove dependency on realloc-gnu
31136         The dependency violates the comment in realloc-gnu, which
31137         says that tests can't depend on realloc-gnu; some tests depend
31138         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
31139         Problem reported by Daniel Richard G. in
31140         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
31141         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
31142         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
31143         not realloc-gnu.
31145 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31147         regex-tests: port to HP-UX 11.11
31148         Problem reported by Daniel Richard G. in
31149         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
31150         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
31152 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31154         verify: document some 'assume' pitfalls
31155         * doc/verify.texi (Compile-time Assertions):
31156         Mention that 'assume (E)' can sometimes slow things down.
31157         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
31159 2013-10-10  Eric Blake  <eblake@redhat.com>
31161         strtoumax: fix typo in previous commit.
31162         * modules/strtoumax (Depends-on): Fix typo.
31163         * modules/strtoimax (Depends-on): Likewise.
31165 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31167         strtoumax: port to Solaris 8
31168         This problem was introduced in the recent HP-UX patch.
31169         Reported by Tom G. Christensen in
31170         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
31171         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
31172         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
31174 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31176         strtoimax, strtoumax: port to HP-UX 11.11
31177         Problem reported by Daniel Richard G. in
31178         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
31179         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
31180         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
31181         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
31182         REPLACE_STRTOUMAX.
31183         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
31184         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
31185         Replace the function if defined as a macro but not as a function.
31186         * modules/inttypes-incomplete (inttypes.h): Substitute
31187         REPLACE_STRTOUMAX.
31188         * modules/strtoumax (configure.ac): Replace strtoumax if
31189         REPLACE_STRTOUMAX.
31191 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31193         strtoimax: port to HP-UX 11.11
31194         Problem reported by Daniel Richard G.
31195         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
31196         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
31197         they might clash with inttypes.h.
31199 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31201         New module 'count-trailing-zeros'.
31202         * MODULES.html.sh: Mention it.
31203         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
31204         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
31205         * modules/count-trailing-zeros-tests:
31206         * tests/test-count-trailing-zeros.c:
31207         New files.
31209         count-leading-zeros: port to MSC; support types wider than 64 bits
31210         The ideas behind the MSC port are stolen from Emacs.
31211         * lib/count-leading-zeros.h:
31212         Don't include verify.h: it's no longer needed, as types wider than
31213         64 bits are now supported.
31214         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
31215         performance with MSC.  All uses changed.  Do not assume that TYPE
31216         has at most 64 bits.
31217         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
31218         All uses changed.  Fold the subtraction from 31 into the table.
31220         count-one-bits: port to MSC; support types wider than 64 bits
31221         The ideas behind the MSC port are stolen from Emacs.
31222         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
31223         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
31224         Don't include verify.h: it's no longer needed, as types wider than
31225         64 bits are now supported.
31226         (COUNT_ONE_BITS_GENERIC): New macro.
31227         (popcount_supported) [_MSC_VER]: New inline function.
31228         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
31229         performance with MSC.  All uses changed.  Do not assume that TYPE
31230         has at most 64 bits.
31231         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
31233 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
31235         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
31236         * lib/mountlist.c (read_file_system_list): fix leak of directory
31237         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
31239 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31241         tests: improve diagnostic when an assertion fails
31242         * tests/macros.h (ASSERT): Report the assertion that failed.
31244 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31246         verify: new macro 'assume'
31247         This is taken from Emacs, and should be generally useful.
31248         * doc/verify.texi (assume): Document it.
31249         * lib/verify.h (assume): New macro.
31250         (__has_builtin): Expand to 0 if not defined.
31252 2013-09-26  Eric Blake  <eblake@redhat.com>
31254         dup2, dup3: work around another cygwin crasher
31255         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
31256         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
31257         * tests/test-dup2.c (main): Likewise.
31258         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
31259         * lib/dup3.c (dup3): Likewise.
31260         * doc/posix-functions/dup2.texi (dup2): Document it.
31261         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31263         getdtablesize: work around cygwin issue
31264         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
31265         * modules/getdtablesize (configure.ac): Build replacement.
31266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
31267         * modules/unistd (Makefile.am): Expose the witness.
31268         * lib/unistd.in.h (getdtablesize): Declare replacement.
31269         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
31270         * tests/test-getdtablesize.c (main): Test it.
31271         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
31273 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
31275         pmccabe2html: escaping of special characters
31276         Escape all '<', '>', and '&' in HTML output.
31277         * build-aux/pmccabe2html (html_fnc): Call gsub()
31278         instead of sub() to capture all '<', '>', and '&'.
31279         Neither of '<' and '>' is special in a regexp,
31280         so first arguments to gsub() are corrected. Also,
31281         in replacement strings, ampersand must be escaped.
31282         Finally, '&' must be handled first, then '<' and '>'.
31284 2013-09-24  Eric Blake  <eblake@redhat.com>
31286         manywarnings: enable nicer gcc warning messages
31287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
31288         some -f options for optimal warnings.
31290 2013-09-21  Jim Meyering  <meyering@fb.com>
31292         timespec: use the new TIMESPEC_RESOLUTION in a few more places
31293         * lib/timespec-add.c (timespec_add): Also replace 999999999
31294         with TIMESPEC_RESOLUTION - 1.
31295         * lib/timespec-sub.c (timespec_sub): Likewise.
31297 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31299         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
31300         Problem reported by Dagobert Michelsen via Eric Blake in
31301         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
31302         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31303         not AC_COMPILE_IFELSE.
31305 2013-09-23  Eric Blake  <eblake@redhat.com>
31307         configmake: support new --runstatedir option
31308         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
31309         even if autoconf was too old to provide the command line option.
31310         * modules/configmake (Makefile.am): Propagate it to .h file.
31312 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31314         ctype, string: depend on extern-inline
31315         This is needed to complete the recent OS X fixes.
31316         Also, fix related documentation as suggested by Eric Blake.
31317         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31318         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
31319         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
31320         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
31321         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
31322         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
31323         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
31324         * doc/posix-functions/toupper.texi:
31325         List the 'ctype' gnulib module.
31326         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
31327         * doc/posix-functions/strncpy.texi:
31328         List the 'string' gnulib module.
31329         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
31330         Add string.
31331         * modules/ctype, modules/string (Depends-on): Add extern-inline.
31333 2013-09-19  Pádraig Brady  <P@draigBrady.com>
31335         userspec: support optional parameters to parse_user_spec()
31336         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
31337         then avoid group processing and treat the full spec as a user.
31338         (parse_with_separator): Allow the USERNAME and GROUPNAME to
31339         be optional params (NULL), in which case they're ignored.
31341 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
31343         timespec: new function make_timespec, and new constants
31344         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
31345         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
31346         (make_timespec): New function.
31347         * lib/dtotimespec.c (dtotimespec):
31348         * lib/timespec-add.c (timespec_add):
31349         * lib/timespec-sub.c (timespec_sub):
31350         * lib/utimens.c (validate_timespec):
31351         * lib/utimensat.c (rpl_utimensat):
31352         Use these new constants and functions.
31354         stdio: OS X port of putc_unlocked + extern inline
31355         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
31356         * doc/posix-functions/putc_unlocked.texi:
31357         * doc/posix-functions/putchar_unlocked.texi:
31358         Document this portability problem.
31360         signal: OS X port of sigaddset etc. + extern inline
31361         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
31362         (sigismember): #undef on problematic Apple platforms.
31363         * doc/posix-functions/sigaddset.texi:
31364         * doc/posix-functions/sigdelset.texi:
31365         * doc/posix-functions/sigemptyset.texi:
31366         * doc/posix-functions/sigfillset.texi:
31367         * doc/posix-functions/sigismember.texi:
31368         Document this portability problem.
31370         extern-inline: do not always suppress extern inline on OS X
31371         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
31372         extern inline on Apple only if the particular compile-time
31373         configuration is known to have the problem.
31374         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
31375         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
31376         other Gnulib modules.
31378         extern-inline: document fixes for ctype and wctype macros
31379         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31380         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31381         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31382         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31383         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31384         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31385         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31386         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31387         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31388         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31389         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31390         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31391         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31392         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31393         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31394         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31395         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31396         * doc/posix-functions/strncpy.texi:
31397         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31398         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31399         Document that Gnulib fixes portability problems with these
31400         functions on OS X 10.8 and earlier when called from plain inline
31401         or extern inline functions.
31403 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31405         fflush, freadahead, fseeko: Fix for Android
31406         Suggested by Bruno Haible in:
31407         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31408         * lib/stdio-impl.h: Use local __sfileext definition.
31410 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31412         pmccabe2html: Portability to other awk versions.
31413         The functions systime() and strftime() are available
31414         in Gawk only.  Properly close two HTML-tags 'style'
31415         and 'span'.
31416         * build-aux/pmccabe2html (BEGIN): Store timing
31417         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31418         systime() in HTML_COMMENT.
31419         (html_header): Correctly close tag 'style'.
31420         (END): Replace strftime() by CHRONOS_TIME.  Close
31421         tag 'span' correctly, not as 'div'.
31423 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31425         getgroups: statement without effect
31426         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31427         Change equality conditional to expected assignment.
31429 2013-09-09  Eric Blake  <eblake@redhat.com>
31431         glob: fix compilation
31432         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31434 2013-09-07  Eric Blake  <eblake@redhat.com>
31436         glob: fix build for platforms without __THROW
31437         * lib/glob.in.h (__THROW): Add definition again.
31439 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31441         regex-quote: fix buffer access out of bounds
31442         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31443         * lib/regex-quote.c (regex_quote_spec_pcre):
31444         Fix typo that resulted in an out-of-bounds read.
31446 2013-09-04  Eric Blake  <eblake@redhat.com>
31448         glob: avoid -Wattribute warnings on glibc
31449         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31450         __THROWNL, not __THROW, on static functions.
31451         * lib/glob.in.h (__THROW): Adjust...
31452         (__THROWNL): ...accordingly.
31454 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31456         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31457         Suggested by Bruce Korb in:
31458         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31459         * doc/extern-inline.texi (extern inline):
31460         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31461         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31462         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31463         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31464         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31465         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31466         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31467         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31468         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31469         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31470         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31471         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31472         * lib/xtime.h:
31473         Check that _GL_INLINE_HEADER_BEGIN is defined.
31475 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31477         bootstrap: remove the --version requirement from ancillary tools
31478         * build-aux/bootstrap (check_exists): A new refactored function to
31479         determine if a command exists.
31480         (find_tool): Use the new function which does not require the
31481         --version option to be supported.
31482         (check_versions): Use the new function.
31484 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31486         gc: support HMAC-SHA256 and HMAC-SHA512.
31487         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31488         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31489         functions.
31490         (gc_hmac_md5): Use symbolic constant.
31491         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31492         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31493         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31494         * m4/sha256.m4: Protect against empty expansion.
31495         * m4/sha512.m4: Likewise.
31496         * lib/hmac-sha256.c: New file.
31497         * lib/hmac-sha512.c: Likewise.
31498         * m4/gc-hmac-sha256.m4: Likewise.
31499         * m4/gc-hmac-sha512.m4: Likewise.
31500         * m4/gc-sha256.m4: Likewise.
31501         * m4/gc-sha512.m4: Likewise.
31502         * modules/crypto/gc-hmac-sha256: Likewise.
31503         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31504         * modules/crypto/gc-hmac-sha512: Likewise.
31505         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31506         * modules/crypto/hmac-sha256: Likewise.
31507         * modules/crypto/hmac-sha256-tests: Likewise.
31508         * modules/crypto/hmac-sha512: Likewise.
31509         * modules/crypto/hmac-sha512-tests: Likewise.
31510         * tests/test-gc-hmac-sha256.c: Likewise.
31511         * tests/test-gc-hmac-sha512.c: Likewise
31512         * tests/test-hmac-sha256.c: Likewise.
31513         * tests/test-hmac-sha512.c: Likewise
31515 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31517         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31518         of AC_CHECK_DECLS.
31520 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31522         selinux-at: omit unnecessary include
31523         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31524         this source file doesn't use its macros, and subsidiary files that
31525         use the macros already include it.
31527 2013-08-21  Eric Blake  <eblake@redhat.com>
31529         d-ino: avoid false negative on symlink
31530         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31531         Reported by Stephane Chazelas.
31533 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31535         bootstrap: port to OpenBSD sed
31536         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31537         does not interpret `-' as a file argument to mean stdin.
31539 2013-08-15  Eric Blake  <eblake@redhat.com>
31541         warnings: minor optimization
31542         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31544         warnings: check -Wfoo rather than -Wno-foo
31545         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31546         -Wno-, test if the compiler recognizes the positive form instead.
31548 2013-08-15  Karl Berry  <karl@gnu.org>
31550         * config/srclist-update: add option "doclicense" to placate
31551         pulling *.texi files from Emacs.  Write terse usage
31552         documentation at the top.
31554 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31556         xvasprintf-tests: port to GCC with hardening flags
31557         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31558         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31559         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31561 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31563         fpending: port to recent Cygwin change to stdio_ext.h
31564         Reported by LRN in
31565         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31566         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31567         just declare __fpending unless it's a macro.
31568         A duplicate decl shouldn't hurt.
31569         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31570         call compiles and links, instead of separately checking for
31571         decl and lib function.
31572         * modules/fpending (configure-ac):
31573         Adjust to fpending.m4's renaming of shell variable.
31575 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31577         sys_time: port to OpenBSD
31578         * lib/sys_time.in.h: Simply delegate to the system's header
31579         in the BSDish cases as well.  Problem reported by Mike Miller in
31580         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31581         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31582         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31583         wider than time_t.
31585 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31587         bootstrap: support checksum utils having -c but not --status
31588         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31589         Add sha1 to the list of supported checksum utils since it's now
31590         supported through adjustments below.
31591         (update_po_files): Remove the use of --status
31592         in a way that will suppress all error messages, but since this is
31593         only used to minimize updates, it shouldn't cause an issue.
31594         Exit early if there is a problem updating the po file checksums.
31595         (find_tool): Remove the check for --version support as this
31596         is optional as per commit 86186b17.  Don't even check for the
31597         presence of the command as if that is needed, it's supported
31598         through configuring prerequisites in bootstrap.conf.
31599         Prompt that when a tool isn't found, one can define an environment
31600         variable to add to the hardcoded search list.
31602 2013-08-05  Jim Meyering  <meyering@fb.com>
31604         regex: port to non-glibc/lock-using systems
31605         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31606         system with GNULIB_LOCK would fail due to absence of the
31607         included "glthread/lock.h".  This would affect any package
31608         for which the "lock" module is used only by the regex module,
31609         and not explicitly used.
31610         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31611         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31612         Add a dependency on the "lock" module.
31614 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31616         localecharset: make locale_charset thread-safe on Mac OS X
31617         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31618         instead of MB_CUR_MAX.
31620 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31622         gettext: update to version 0.18.3
31623         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31624         require AC_PROG_SED to allow user to specify custom sed command when
31625         generating en@quot PO file.
31627 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31629         bootstrap: use correct source when copying build-aux files
31630         * build-aux/bootstrap (gnulib_extra_files): This variable is
31631         relative to upstream gnulib layout, not downstream.
31633 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31635         tmpdir: fix bug in VMS port
31636         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31637         See Steven M. Schweda in
31638         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31640 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31642         tmpdir: port to VMS, to // != /, and to long dirs
31643         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31644         __secure_getenv, so that we're more like the glibc version.
31645         All uses changed.
31646         (path_search): Don't put slash after directory if __VMS.
31647         Problem reported by Steven M. Schweda in
31648         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31649         Simplify code to add slash; no need for a loop.
31650         Do not remove trailing slash from "//".
31651         Do not assume dlen <= INT_MAX.
31653 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31655         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31656         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31657         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31658         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31660         accept4, dup3, pipe2: port to Cygwin
31661         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31662         * lib/accept4.c (accept4) [O_BINARY]:
31663         * lib/dup3.c (dup3) [O_BINARY]:
31664         * lib/pipe2.c (pipe2) [O_BINARY]:
31665         Use set_binary_mode, not setmode.
31666         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31667         * modules/binary-io (Depends-on): Remove module indicator.
31668         These last two bits undo the previous change to pipe2 and binary-io.
31670 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31672         mountlist: add support for deallocating returned list entries
31673         * lib/mountlist.c (free_mount_entry): A new exported function
31674         to deallocate a mount list entry.
31675         (read_file_system_list): Refactor to use the new deallocation function.
31676         Suggested by Anton Ovchinnikov.
31678 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31680         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31681         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31682         * lib/stdalign.in.h (_Alignas, _Alignof):
31683         Port to FreeBSD 9.1, and to C11 and C++11.
31684         (_Alignas): Also support ICC.
31685         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31686         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31688 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31690         fnmatch: don't goto over declaration
31691         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31692         undefined behavior for goto over a declaration.
31693         Problem reported by Charlie Brown in
31694         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31696         pipe2: decouple from binary-io a bit
31697         This is for Emacs, which needs pipe2 but not binary-io.
31698         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31699         * modules/binary-io (Depends-on): Add module indicator.
31701 2013-07-03  Eric Blake  <eblake@redhat.com>
31703         mgetgroups: relax license to LGPLv2+
31704         * modules/getugroups (License): Change from GPLv3+.
31705         * modules/mgetgroups (License): Likewise.
31706         * modules/getgroups (License): Change from LGPLv3+.
31708         xalloc-oversized: relax license to LGPLv2+
31709         * modules/xalloc-oversized (License): Change from GPLv3+.
31711         nproc: relax license to LGPLv2+
31712         * modules/nproc (License): Change from LGPLv3+.
31714         bootstrap: honor --no-git
31715         * build-aux/bootstrap: Don't even try to use git when user is
31716         pointing to a static checkout.
31718 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31720         ignore-value: port to gcc -pedantic
31721         * lib/ignore-value.h (ignore_value):
31722         Port to gcc -pedantic, by using __extension__.
31723         Reindent as per usual gnulib style nowadays.
31724         Simplify GCC version check.
31726 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31728         extern-inline: port to gcc -std=c89
31729         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31730         Do not use __gnu_inline__ if pedantic and pre-C99.
31732 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31734         doc: document extern-inline
31735         * doc/extern-inline.texi: New file.
31736         * doc/gnulib.texi (alloca-opt): Include it.
31737         * m4/extern-inline.m4: Move some comments to documentation,
31738         and others closer to what they describe.
31740         doc: chatter less
31741         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31742         (updated-stamp): Use it.  This causes 'make' to output just
31743         one file name rather than zillions.
31745         fflush, fseeko: port to musl cross-compiles
31746         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31747         on some implementation that (1) is not known to be buggy,
31748         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31749         cross-compiled to so we can't easily check for lack of
31750         conformance.  This is for cross-compiling to musl.
31751         Reported by Rich Felker in
31752         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31753         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31754         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31755         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31756         Adjust to above change.
31757         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31758         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31759         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31760         known not to work, or unknown.
31762 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31764         msvc-inval: port to mingw-w64
31765         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31766         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31767         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31769 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31771         getcwd-lgpl: port to Tru64
31772         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31773         Problem reported by Steven M. Schweda in
31774         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31776         tests: port large-fd POSIX spawn tests to OS X
31777         Problem reported by Daiki Ueno in
31778         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31779         * tests/test-posix_spawn_file_actions_addclose.c:
31780         * tests/test-posix_spawn_file_actions_adddup2.c:
31781         * tests/test-posix_spawn_file_actions_addopen.c:
31782         Include <limits.h>, for OPEN_MAX, if available.
31783         (big_fd): New static function.
31784         (main): Use it.
31786 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31788         tests/nap.h: use an adaptive delay to avoid ctime update issues
31789         The recent change in nap.h (5191133e) decreased the probability of lost
31790         races to about a third, however such problems could still be observed
31791         in virtual machines and openSUSE's OBS.
31792         Before, nap() detected the needed time once empirically and then used
31793         that delay (together with a small correction multiplier) in further
31794         calls.  This problem has been reported and discussed several times,
31795         including guesses about possible kernel issues:
31796         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
31797         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
31798         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
31799         http://bugs.gnu.org/12820
31800         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
31801         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
31802         Now, nap() avoids the race alltogether by verifying on a reference
31803         file whether a timestamp difference has happened.
31804         * tests/nap.h (nap_fd): Define file descriptor variable for the
31805         witness file.
31806         (nap_works): Change return value to bool.  Change passing
31807         the old file's status by value instead of by reference as this function
31808         does no longer update that timestamp; rename the function argument from
31809         st to old_st.  Remove the local variables cdiff and mdiff because that
31810         function now returns true/false instead of the precise delay.
31811         (guess_delay): Remove function.
31812         (clear_tmp_file): Add new function to close and unlink the witness file.
31813         (nap): Instead of re-using the delay which has been calculated during
31814         the first call, avoid the race by actually verifying that a timestamp
31815         difference can be observed on the current file system.  Use an adaptive
31816         approach for the delay to minimize execution time.  Assert that the
31817         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31818         = 2^31 - 1 = 2.1s.
31819         Use atexit to call clear_tmp_file when the process terminates.
31821 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31823         sig2str: port to C++
31824         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31825         Reported by Daniel J Sebald in
31826         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31828 2013-05-30  Eric Blake  <eblake@redhat.com>
31830         docs: mention cygwin shortcoming in <sys/un.h>
31831         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31833         vasnprintf: silence mingw compiler warning
31834         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31836 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31838         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31839         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31840         This fixes a porting bug I recently reintroduced in regex, and
31841         some other instances that I discovered while testing the fix.
31842         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31843         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31844         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31845         with an empty argument if this is a pedantic pre-C99 GCC.
31846         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31847         pre-C11 GCC.
31849         regex: adapt to locking regime instead of depending on pthread
31850         Instead of depending on pthread, adapt to whatever thread
31851         modules are in use.  Problem reported by Ludovic Courtès in
31852         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31853         and by Mats Erik Andersson in
31854         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31855         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31856         Support either the 'lock' module, or the 'pthread' module, or
31857         no module.
31858         (lock_lock, lock_unlock): New macros.
31859         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31860         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31861         * modules/regex (Depends-on): Remove pthread.
31863 2013-05-22  Eric Blake  <eblake@redhat.com>
31865         getgroups: document portability issues
31866         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31867         multithread safety.
31868         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31869         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31870         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31871         getugroups.
31872         * doc/posix-functions/getgroups.texi (getgroups): Mention
31873         multithread safety and mgetgroups.
31875 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31877         test-lchown, test-chown: also skip test if chown fails with EPERM
31878         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31879         skip this test, to handle FAT file systems.
31880         * tests/test-chown.h (test_chown): Likewise.
31882 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31884         regex: fix dfa race in multithreaded uses
31885         Problem reported by Ludovic Courtès in
31886         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31887         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31888         New macros.  All uses of __libc_lock_define, __libc_lock_init
31889         changed to use the first two of these.
31890         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31891         non-glibc platforms.
31892         (struct re_dfa_t): Define the lock unconditionally.
31893         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31894         '#ifdef _LIBC"s.
31895         * modules/regex (Depends-on): Add pthread, if we use the
31896         included regex.
31898         * lib/regcomp.c: Do actions that are not needed for glibc,
31899         but may be needed elsewhere.
31900         (regfree, re_compile_internal): Destroy the lock.
31901         (re_compile_internal): Check for lock-initialization failure.
31903         malloca: port to compilers that reject size-zero arrays
31904         This fixes a bug introduced in my previous patch.
31905         * lib/malloca.c (struct preliminary_header): Use an int
31906         rather than a character array of size int; that's simpler.
31907         (struct header): Remove, replacing with ...
31908         (union header): New type.  This avoids the need for declaring a
31909         character array of size zero, which is not allowed on some platforms.
31910         All uses changed.
31912 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31914         parse-datetime, tests: don't use "string" + int
31915         Recent versions of 'clang' complain about C source code that
31916         uses expressions of the form '"string literal" + integer',
31917         I guess on the theory that it's confusing for readers who are
31918         used to C++.  On those grounds I suppose it's OK to make this
31919         minor style change.
31920         * lib/parse-datetime.y (parse_datetime):
31921         * tests/test-fchdir.c (main):
31922         * tests/test-snprintf-posix.h (test_function):
31923         * tests/test-snprintf.c (main):
31924         * tests/test-vasnprintf-posix.c (test_function):
31925         * tests/test-vasnprintf.c (test_function):
31926         * tests/test-vsnprintf.c (main):
31927         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31928         Rewrite '"str" + E' to '&"str"[E]'.
31930 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31932         argmatch: port to C++
31933         * lib/argmatch.h [__cplusplus]: Add extern "C".
31935         argp: typo fix
31936         * lib/argp-help.c: Typo in comment.
31938 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31940         manywarnings: update for GCC 4.8.0
31941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31942         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31943         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31944         -Wmissing-noreturn, as they are duplicates of other warnings.
31945         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31946         was documented to be flaky in earlier versions of GCC.
31948         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31949         * tests/test-spawn.c (main):
31950         * tests/test-sys_socket.c (main):
31951         * tests/test-sys_wait.c (main):
31952         Don't have a switch value that isn't covered by a case.
31954         getaddrinfo-tests: port --enable-gcc-warnings to clang
31955         * tests/test-getaddrinfo.c (simple):
31956         Avoid casts from looser to stricter-aligned pointers.
31958         thread: port --enable-gcc-warnings to clang
31959         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31960         Include <signal.h>, to pacify a warning about pthread_sigmask.
31962         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31963         * lib/stdio.in.h (fwrite):
31964         When working around bug 11959, use __REDIRECT rather than '#define
31965         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31966         fix the -Wunused-value issue with clang, and it works with GCC too.
31967         Problem with targeting reported by Eric Blake in
31968         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31969         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31970         debugging the fwrite issue.
31972         stdio: port --enable-gcc-warnings to clang
31973         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31974         since the GCC workaround for fwrite does not pacify clang.
31976         sig2str: port --enable-gcc-warnings to clang
31977         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31979         obstack: port --enable-gcc-warnings to clang
31980         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31981         Avoid casts from looser to stricter-aligned pointers.
31983         memchr2: port --enable-gcc-warnings to clang
31984         * lib/memchr2.c (memchr2):
31985         Avoid casts from looser to stricter-aligned pointers.
31987         mbsstr: port --enable-gcc-warnings to clang
31988         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31989         Avoid casts from looser to stricter-aligned pointers.
31991         malloca: port --enable-gcc-warnings to clang
31992         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31993         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31995         inttostr: port --enable-gcc-warnings to clang
31996         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31998         warnings: port to clang
31999         Problem reported by Daniel P. Berrange via Eric Blake in
32000         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
32001         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
32002         (gl_WARN_ADD): Use it.
32004 2013-05-11  Jim Meyering  <meyering@fb.com>
32006         quotearg: do not read beyond end of buffer
32007         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
32008         end of an ARG for which no length was specified.  With an N-byte
32009         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
32010         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
32011         via coreutils' misc/sort-debug-keys.sh test and detected by running
32012         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
32013         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
32014         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
32015         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
32016         characters correctly."
32018 2013-05-11  Daiki Ueno  <ueno@gnu.org>
32020         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
32021         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
32022         compilation target is Mac OS X 10.6.
32023         Problem reported by parafin and Andoni Morales in
32024         <http://savannah.gnu.org/bugs/?37844> and
32025         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
32027 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32029         mkdir-p: remove assumptions about umask and mode
32030         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
32031         umask is 0, or that MODE is a subset of MODE_BITS.
32033 2013-05-10  Eric Blake  <eblake@redhat.com>
32035         maint.mk: catch more abuse of HAVE_DECL in syntax-check
32036         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
32038 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
32040         deps: require Automake >= 1.9.6 in generated Makefile fragments
32042         That is the same minimal version required in the DEPENDENCIES file.
32043         Moreover, the old code generated a requirement of Automake >= 1.5,
32044         and that is an insanely outdated version.
32046         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
32047         * tests/havelib/rpathlx/Makefile.am: Likewise.
32048         * tests/havelib/rpathly/Makefile.am: Likewise.
32049         * tests/havelib/rpathlyx/Makefile.am: Likewise.
32050         * tests/havelib/rpathlz/Makefile.am: Likewise.
32051         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
32052         * tests/havelib/rpathx/Makefile.am: Likewise.
32053         * tests/havelib/rpathy/Makefile.am: Likewise.
32054         * tests/havelib/rpathz/Makefile.am: Likewise.
32056 2013-05-08  Eric Blake  <eblake@redhat.com>
32058         bootstrap: AC_INIT may have more than four parameters
32059         * build-aux/bootstrap (extract_package_name): Correctly extract
32060         non-empty tarname field.  Avoid range in regex.
32061         Based on a report by Sami Kerola <kerolasa@iki.fi>.
32063 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32065         qacl: port to MS-Windows port of GNU Emacs
32066         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
32067         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
32068         port of GNU Emacs.  Problem reported by Eli Zaretskii in
32069         <http://bugs.gnu.org/14295#14>.
32071 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
32073         acl: include quote.h
32074         * lib/copy-acl.c: Include quote.h.
32075         * lib/set-acl.c: Likewise.
32077 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
32079         fchownat, renameat, unlinkat: update statat dependencies
32080         These modules use statat and lstatat, not fstatat; so depend on
32081         the statat module, which was split out recently from fstatat.
32082         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
32083         * modules/renameat: Likewise.  Also delete fstat.
32084         URL: http://bugs.gentoo.org/468790
32086 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
32088         Assume gnulib is checked out from Git, not CVS
32090         In fact, access to the gnulib repository through CVS has been
32091         disabled, or more precisely, got broken and was never restored; see:
32092         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
32094         Note that support for CVS is not removed completely and unthinkingly
32095         by this change: only support for CVS checkouts of gnulib itself is
32096         removed.  For example, the 'bootstrap' script still cater to .cvsingore
32097         files and CVS directories, for the benefit of those poor gnulib clients
32098         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
32100         * gnulib-tool: Simplify accordingly.
32101         * posix-modules: Likewise.
32102         * MODULES.html.sh: Likewise.
32103         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
32104         repository.
32105         * doc/gnulib-intro.texi: Likewise.
32106         * doc/gnulib-readme.texi: Likewise.
32107         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
32108         sample '.gitignore' file rather than a sample '.cvsignore'.
32109         * NEWS: Update.
32110         * m4/extensions.m4: While at it, remove a comment mistakenly referring
32111         to "CVS Autoconf" rather than "git Autoconf".
32113 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
32115         utimensat-tests, etc.: try to fix some races
32116         Problem reported by Bernhard Voelker in
32117         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
32118         I don't know whether this patch fixes that race condition, but it
32119         fixes *some* race conditions, so it should be a win.
32120         * modules/chown-tests (Depends-on):
32121         * modules/fchownat-tests (Depends-on):
32122         * modules/fdutimensat-tests (Depends-on):
32123         * modules/futimens-tests (Depends-on):
32124         * modules/lchown-tests (Depends-on):
32125         * modules/stat-time-tests (Depends-on):
32126         * modules/utimens-tests (Depends-on):
32127         * modules/utimensat-tests (Depends-on):
32128         Depend on nanosleep, not usleep.
32129         * modules/chown-tests (test_chown_LDADD):
32130         * modules/lchown-tests (test_lchown_LDADD):
32131         * modules/stat-time-tests (test_stat_time_LDADD):
32132         New macro.
32133         * modules/fchownat-tests (test_fchownat_LDADD):
32134         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
32135         * modules/futimens-tests (test_futimens_LDADD):
32136         * modules/utimens-tests (test_utimens_LDADD):
32137         * modules/utimensat-tests (test_utimensat_LDADD):
32138         Add $(LIB_NANOSLEEP).
32139         * modules/stat-time-tests (Files): Add tests/nap.h.
32140         * tests/nap.h: Include <limits.h>, for INT_MAX.
32141         (lt_mtime): Remove.
32142         (diff_timespec): New function.
32143         (get_stat): Rename from get_mtime.  All callers changed.
32144         (nap_works): Determine the needed delay by inspecting the
32145         file system's timestamp jumps; this should be more reliable.
32146         Look at both mtime and ctime, and take the maximum of the two jumps.
32147         (nap_works, guess_delay):
32148         Return a nanosecond count, not a microsecond count.
32149         All callers changed.
32150         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
32151         failure.
32152         (nap): Multiply the guess by 1.125, to accommodate the case where
32153         the file system's clock is a bit slower than nanosleep's clock.
32154         * tests/test-stat-time.c (BASE): New macro.
32155         Include nap.h.
32156         (nap): Remove; nap.h now defines this.  This removes a duplicate
32157         implementation of 'nap'.
32159         utimens, utimensat: work around Solaris UTIME_OMIT bug
32160         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
32161         Linux kernel 2.6.32 does.  Work around it in the same way.
32162         * doc/posix-functions/futimens.texi (futimens):
32163         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
32164         * lib/utimens.c (fdutimens, lutimens):
32165         * lib/utimensat.c (rpl_utimensat): Work around the bug.
32167         gettext: now it's your responsibility to add -I$(top_builddir)/intl
32168         Formerly, it was your responsibility to do this for all Makefile.ams
32169         other than Gnulib's.  Now it's your responsibility to do it for
32170         Gnulib's Makefile.am, too.
32171         * NEWS: Document this.
32172         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
32174         acl: include errno.h to get errno
32175         Reported by Daiki Ueno in
32176         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
32177         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
32179 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
32181         tests: don't assume getdtablesize () <= 10000000
32182         * modules/cloexec-tests:
32183         * modules/dup2-tests:
32184         * modules/dup3-tests:
32185         * modules/nonblocking-tests:
32186         * modules/posix_spawn_file_actions_addclose-tests:
32187         * modules/posix_spawn_file_actions_adddup2-tests:
32188         * modules/posix_spawn_file_actions_addopen-tests:
32189         * modules/unistd-safer-tests:
32190         Depend on the getdtablesize module.
32191         * tests/test-cloexec.c:
32192         * tests/test-dup-safer.c:
32193         * tests/test-dup2.c:
32194         * tests/test-dup3.c:
32195         * tests/test-fcntl.c:
32196         * tests/test-nonblocking.c:
32197         * tests/test-posix_spawn_file_actions_addclose.c:
32198         * tests/test-posix_spawn_file_actions_adddup2.c:
32199         * tests/test-posix_spawn_file_actions_addopen.c:
32200         Don't assume getdtablesize () <= 10000000.
32202 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
32204         extern-inline: work around bug in Sun c99
32205         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32206         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
32208 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
32210         qacl: new module, broken out from the acl module
32211         This is for GNU Emacs, which wants the acl functions but does
32212         not want 'error' invoked when they fail.
32213         * lib/acl-internal.h: Do not include error.h, quote.h.
32214         (ENOSYS, ENOTSUP): Remove; no longer needed.
32215         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
32216         * lib/acl.h: Include <stdbool.h>.
32217         (acl_errno_valid): New function.
32218         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
32219         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
32220         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
32221         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
32222         (ACL_INTERNAL_INLINE): Remove; no longer needed.
32223         * lib/file-has-acl.c (file_has_acl):
32224         * lib/qcopy-acl.c (qcopy_acl):
32225         * lib/qset-acl.c (qset_acl):
32226         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
32227         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
32228         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
32229         lib/file-has-acl.c, m4/acl.m4 to qacl module.
32230         Add lib/set-acl.c.
32231         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
32232         Add qacl.
32233         (configure.ac): Move gl_FUNC_ACL to qacl module.
32234         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
32235         Rename set-mode-acl.c to set-acl.c.
32236         * lib/acl-errno-valid.c: New file.
32237         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
32238         copy_acl function remains in copy-acl.c.
32239         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
32240         (_): Remove; not needed.
32241         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
32242         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
32243         * modules/qacl: New file, moved from the old modules/acl.
32244         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
32245         Remove set-mode-acl.c, copy-acl.c.
32246         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
32248         alignof, intprops, malloca: port better to IBM's C compiler
32249         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
32250         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
32251         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
32253 2013-04-25  Daiki Ueno  <ueno@gnu.org>
32255         wctype-h: fix gettext link error on mingw
32256         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
32257         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
32258         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
32259         rpl_towupper and rpl_towupper.
32261 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
32263         regex-tests, regex: allow glibc re_search behavior
32264         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
32265         re_search input data to make the multi-character collating element
32266         in it clearly visible, and treat re_search return code 0 as valid.
32267         * m4/regex.m4 (gl_REGEX): Likewise.
32269 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32271         stdalign: doc fix
32272         * doc/posix-headers/stdalign.texi (stdalign.h):
32273         Gnulib doesn't support '_Alignof expr'.
32275 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32277         stdalign: port to stricter ISO C11
32278         ISO C11 says that _Alignof's operand must be a parenthesized type.
32279         Problem reported by Eli Zaretskii in
32280         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
32281         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
32282         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
32284 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32286         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
32287         Problem reported by Marco Atzeri in
32288         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
32289         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
32290         Simply delegate to the system <sys/select.h> in this case too.
32291         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
32292         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
32293         be needed on Solaris either.
32294         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
32295         Simply delegate to the system <sys/time.h> in this case.
32297 2013-03-19  Karl Berry  <karl@gnu.org>
32299         * build-aux/gnupload: check for erroneous (with gnupload) use of
32300         ftp-upload.gnu.org, tweak help.
32302 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32304         copy-file, rpmatch: fix problems found by cppcheck
32305         Reported by Arno Onken in
32306         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
32307         * lib/rpmatch.c (try): Fix memory leak.
32308         * lib/copy-file.c: Include "ignore-value.h".
32309         (qcopy_file_preserving): Ignore chown value.
32310         * modules/copy-file (Depends-on): Add ignore-value.
32312 2013-01-27  Jim Meyering  <jim@meyering.net>
32314         prefix-gnulib-mk: give better diagnostics
32315         * build-aux/prefix-gnulib-mk: Don't just "die".
32316         Give better diagnostics upon failure.
32318 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32320         putenv: port to Solaris 10
32321         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
32322         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
32323         is not what is wanted here.
32324         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
32325         declaration, not for its existence.
32327 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
32329         mktime: fix configure typo
32330         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
32332 2013-03-12  Eric Blake  <eblake@redhat.com>
32334         regex-tests: skip UTF-8 test on mingw
32335         * modules/regex-tests (Depends-on): Add localcharset.
32336         * tests/test-regex.c (main): Use it to skip test on mingw.
32338 2013-03-11  Eric Blake  <eblake@redhat.com>
32340         tests: make it easier to bypass alarm time in debugger
32341         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
32342         * tests/test-memmem.c (main): Likewise.
32343         * tests/test-passfd.c (main): Likewise.
32344         * tests/test-ptsname.c (main): Likewise.
32345         * tests/test-ptsname_r.c (main): Likewise.
32346         * tests/test-strcasestr.c (main): Likewise.
32347         * tests/test-strstr.c (main): Likewise.
32349         regex: port to mingw's recent addition of undeclared alarm
32350         * doc/posix-functions/alarm.texi (alarm): Document that alarm
32351         exists but still doesn't work in newer mingw.
32352         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
32353         not existence.  Ensure SIGALRM is not trapped.
32354         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
32355         * m4/regex.m4 (gl_REGEX): Likewise.
32356         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
32357         * tests/test-regex.c (main): Use correct probe for alarm.
32359         putenv: avoid compilation warning on mingw
32360         * lib/putenv.c (_unsetenv): Protect variable declaration.
32361         (putenv): Fix indentation.
32363 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
32365         unistd: don't prevent Tru64 Unix from using gnulib strtod.
32366         * lib/unistd.in.h: be careful not to include un-needed system
32367         stdlib.h from here, because that prevents gnulib stdlib.h from
32368         defining rpl_strtod correctly.
32370 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
32372         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
32373         changesets, but for the 'precision 0' test.
32374         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32375         round-to-even, since POSIX says rounding is implementation-defined
32376         and OS X 10.8.2 rounds 1.51 to 1 here.
32378         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
32379         changeset.
32380         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32381         round-to-even, since POSIX says rounding is implementation-defined
32382         and OS X 10.8.2 rounds 1.5 to 1 here.
32384 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32386         vasnprintf-posix-tests: allow rounding 1.5 to 1
32387         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32388         round-to-even, since POSIX says rounding is implementation-defined
32389         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32390         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32392         bootstrap: port to FreeBSD
32393         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32394         that treat '--' differently.  Reported by Mats Erik Andersson in
32395         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32397 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32399         regex: rename remaining __attribute calls to __attribute__.
32400         2012-02-25 changed definition of __attribute, but left some uses
32401         unchanged, preventing compilation of regex module on most non-gcc
32402         environments.
32403         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32404         (lookup_collation_sequence_value, build_range_exp)
32405         (build_collating_symbol): Set attributes with newly renamed
32406         __attribute__ decorator.
32407         * lib/regex_internal.c (re_string_peek_byte_case)
32408         (re_node_set_compare, re_node_set_contains): Likewise.
32409         * lib/regexec.c (acquire_init_state_context): Likewise.
32411 2013-03-06  Bruno Haible  <bruno@clisp.org>
32413         execute: Revert last change, but use a different condition.
32414         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32415         on Windows.
32417 2013-03-05  Eric Blake  <eblake@redhat.com>
32419         execute: drop dead code
32420         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32422 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32424         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32425         * m4/non-recursive-gnulib-prefix-hack.m4
32426         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32427         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32428         <http://bugs.gnu.org/10305#237>.
32430 2013-03-04  Eric Blake  <eblake@redhat.com>
32432         test-getsockopt: avoid compiler warning
32433         * tests/test-getsockopt.c (includes): Ensure close is declared.
32435 2013-03-02  Bruno Haible  <bruno@clisp.org>
32437         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32438         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32440 2013-03-02  Bruno Haible  <bruno@clisp.org>
32442         gettext: Update to version 0.18.2.
32443         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32444         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32445                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32447 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32449         regex: merge patches from libc
32451         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32452         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32453         All uses changed.
32454         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32455         (re_string_wchar_at, re_string_elem_size_at):
32456         Mark function as possibly unused.
32458         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32459         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32460         elements compare against the byte sequence of it, not its name.
32462 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32464         putenv: port better to native Windows
32465         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32466         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32467         (_unsetenv): Use _putenv if available.
32468         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32469         a bit less likely to cause damage.
32470         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32471         Fix the wrong value with SetEnvironmentVariable.
32472         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32473         code better.
32475 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32477         regex: ignore old-style-definition warnings
32478         * lib/regex.c: Add pragma to ignore these warnings.
32479         Problem reported for GNU tar by Pavel Raiskup.
32481 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32483         getcwd: support coreutils better
32484         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32485         but this might not be correct in coreutils, which disables
32486         the raw decl checks.  Problem reported by Nagendra in
32487         <http://bugs.gnu.org/10305#192>.
32488         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32489         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32490         Test the getcwd function, not any macro, since getcwd.c wants the
32491         function.
32492         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32493         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32494         compile, as might happen if there's a macro but no function.
32496         strtod: support coreutils better
32497         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32498         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32499         disables the raw decl checks.  This assumes there is an underlying
32500         strtod, but that's a safe assumption these days.
32501         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32503         mountlist: port to HP NonStop
32504         Reported by Joachim Schmitz in
32505         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32506         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32507         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32509 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32511         extern-inline: avoid compilation error with HP-UX cc
32512         Reported by Richard Lloyd in
32513         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32514         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32515         Suppress extern inline with HP-UX cc.  This should be safe,
32516         though it may hurt performance.  Perhaps someone with some HP-UX
32517         experience can come up with a higher-performance fix.
32519 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32521         putenv: fix heap corruption with mixed putenv/_putenv
32522         Problem reported by Michael Goffioul in
32523         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32524         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32525         Rely on _putenv to allocate the new environment.
32526         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32527         * modules/putenv (configure.ac): Use it.
32529 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32531         unsetenv etc.: port to Solaris 11 + GNU Emacs
32532         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32533         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32534         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32535         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32536         idea but is too painful to fix right now), and without this gnulib
32537         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32538         compiling unsetenv.c on Solaris 11.  Fix the problem for
32539         unsetenv.c, and fix other similar occurrences.
32541 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32543         secure_getenv: fix C++ declaration typo
32544         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32545         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32546         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32548 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32550         careadlinkat: stop exporting careadlinkatcwd
32551         Only Emacs used it directly, and Emacs no longer needs it.
32552         * NEWS: Document this simplification.
32553         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32554         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32555         for readlink.
32556         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32557         Don't include stdlib.h; no longer needed.
32558         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32559         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32560         * modules/areadlink (Depends-on): Add readlink.
32561         (Maintainer): Add self.
32562         * modules/careadlinkat (Depends-on): Remove readlink.
32564         extensions: port better to HP-UX
32565         This is merged from git Autoconf.
32566         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32567         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32568         so that it's compatible with the value used when compiling.
32570         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32571         Problem reported by Mats Erik Andersson in
32572         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32573         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32574         openpty function exists, not merely when we intend to replace it.
32575         This corrects the 2013-01-31 patch, which mistakenly defined
32576         HAVE_OPENPTY even on hosts that lacked it.
32578 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32580         secure_getenv: fix include typo
32581         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32583         secure_getenv: port better to FreeBSD and Solaris
32584         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32585         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32586         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32587         This works better on BSDish platforms.
32588         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32589         Test for issetugid if __secure_getenv is missing.
32591 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32593         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32594         Some of these changes are merged in from git Autoconf.
32595         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32596         When deciding whether to define _XOPEN_SOURCE, inspect the
32597         preprocessor macro __hpux instead of the more-heavyweight
32598         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32599         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32600         as the key for __EXTENSIONS__.
32602         unistd: avoid namespace pollution on non-glibc systems
32603         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32604         This avoids namespace pollution on non-glibc systems, by causing
32605         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32606         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32607         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32609 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32611         tmpdir: use secure_getenv
32612         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32613         Define to secure_getenv, not getenv.
32614         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32615         as that's now secure_getenv's job.
32616         * modules/tmpdir (Depends-on): Add secure_getenv.
32618         tempname: use secure_getenv
32619         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32620         Define to secure_getenv, not getenv.
32621         * modules/tempname (Depends-on):
32622         Add secure_getenv.
32624         secure_getenv: new module
32625         * MODULES.html.sh (Extra functions based on ANSI C 89):
32626         Add secure_getenv.
32627         * doc/glibc-functions/secure_getenv.texi: New file.
32628         * doc/gnulib.texi: Include it.
32629         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32630         New files.
32631         * lib/stdlib.in.h (secure_getenv): New decl.
32632         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32633         * modules/stdlib (stdlib.h):
32634         Add secure_getenv checks.
32636 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32638         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32639         Reported for OS X 10.8.2 by Assaf Gordon in
32640         <http://bugs.gnu.org/13516>.
32641         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32642         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32643         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32644         so that they can be kept in sync more easily.  Avoid PATH_MAX
32645         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32646         mkdir or chdir failure.
32647         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32648         lib/getcwd.c.
32649         (test_abort_bug): Do not test for the deep directory bug unless we
32650         have openat support.  Avoid PATH_MAX test on the Hurd.
32652         regex-tests, regex: fix bug: memset undeclared
32653         * tests/test-regex.c: Don't include regex.h twice.  Include
32654         string.h, to declare memset.  Christensen's report also mentioned
32655         this issue.
32656         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32657         test-regex.c, to avoid future problems like this.  Remove
32658         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32659         twice.
32661         regex-tests: fix link errors on older Solaris
32662         These need to link with @LIBINTL@ to get libintl_gettext.
32663         Problem reported by Tom G. Christensen in
32664         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32665         * modules/regex-tests (test_regex_LDADD): New macro.
32667 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32669         regex-tests: new module
32670         * modules/regex-tests, tests/test-regex.c: New files.
32672         regex: fix off-by-one error in configure test
32673         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32675 2013-01-31  Eric Blake  <eblake@redhat.com>
32677         regex: avoid infinite configure test
32678         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32680 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32682         openpty: fix bug where HAVE_OPENPTY wasn't defined
32683         See the thread starting at:
32684         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32685         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32686         openpty function exists, not merely when we intend to replace it.
32688 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32690         sys_time: port to Solaris 2.6
32691         There is a circularity problem on Solaris 2.6, where <time.h> includes
32692         <sys/time.h> for struct timespec.  The include nesting is gnulib
32693         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32694         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32695         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32696         <sys/siginfo.h>; the last, innermost file needs struct
32697         timestruc_t, which is defined in <sys/time.h>, which has not been
32698         fully parsed.  Problem reported by Tom G. Christensen in
32699         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32700         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32701         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32702         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32703         uses split double-inclusion guards.
32705 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32707         regex: test for buffer overrun
32708         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32709         for the just-fixed regex bug.
32711 2013-01-29  Andreas Schwab  <schwab@suse.de>
32713         regex: fix buffer overrun in regexp matcher [BZ #15078]
32714         * lib/regexec.c (extend_buffers): Add parameter min_len.
32715         (check_matching): Pass minimum needed length.
32716         (clean_state_log_if_needed): Likewise.
32717         (get_subexp): Likewise.
32719 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32721         mountlist: don't consider "devtmpfs" as dummy
32722         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32723         as there is storage associcated with it.
32725 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32727         futimens-tests, utimens-tests: Depend on gettext.
32728         This works around a problem introduced in my 2013-01-12 patch,
32729         which added @LIBINTL@ to these modules.
32730         * modules/futimens-tests (Depends-on):
32731         * modules/utimens-tests (Depends-on): Add gettext.
32733 2013-01-26  Eric Blake  <eblake@redhat.com>
32735         test-getpeername: fix typo
32736         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32738 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32740         bootstrap: remove the need for a sorted .gitignore file
32741         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32742         rename to insert_if_absent(), so that we don't need or generate
32743         a sorted .gitignore file.  We do require a .gitignore with no
32744         existing duplicate entries and enforce that.
32745         (sort_patterns): Remove this function as we now use the simpler
32746         technigue of inserting blacklist entries at the top of the file,
32747         assuming gnulib won't be inserting !whitelist entries.
32749 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32751         readlinkat: don't depend on gl_FUNC_OPENAT
32752         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32753         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32754         renameat.m4, symlinkat.m4; but one thing at a time.
32756         statat: new module, split out from fstatat
32757         GNU Emacs needs the POSIX-specified fstatat, but not the
32758         gnulib-specified statat and lstat.  Split the latter two into a
32759         new module 'statat'.
32760         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32761         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32762         Rename from FSTATAT_INLINE. All uses changed.
32763         * modules/fstatat (Files): Remove lib/statat.c.
32764         (gl_MODULE_INDICATOR([fstatat])): Remove.
32765         (lib_SOURCES): Remove.
32766         (Maintainer): Add self.
32767         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32768         * tests/test-fstatat.c (BASE): Don't define if already defined.
32769         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32771 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32773         tests: don't assume fd 99 is closed
32774         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32775         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32776         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32777         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32778         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32779         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32780         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32781         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32782         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32783         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32784         * tests/test-fwrite.c, tests/test-getpeername.c:
32785         * tests/test-getsockname.c, tests/test-getsockopt.c:
32786         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32787         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32788         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32789         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32790         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32791         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32792         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
32793         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
32794         * tests/test-unlinkat.c, tests/test-unlockpt.c:
32795         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
32796         Close file descriptor 99, instead of assuming it's already closed.
32798 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32800         stpncpy: port to OS X 10.8
32801         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
32802         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
32804 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32806         unistd: port to recent mingw
32807         * lib/unistd.in.h: Remove special invocation convention for mingw,
32808         which breaks for the latest mingw version.  See John W. Eaton in
32809         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
32811         largefile: port better to Mac OS X 10.5
32812         This patch is backported from Autoconf git.
32813         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
32814         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
32815         with ino_t size being different for configuration time versus
32816         build/run time.  Problem reported by PHO in
32817         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32819 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32821         doc: clarify -Werror
32822         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32823         clarify that it's intended for developers, not for ordinary builds,
32824         and mention --enable-gcc-warnings as one possible use.
32826 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32828         stdint: fix build with Android's Bionic fox x86
32829         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32830         was already included as _SSIZE_T_DEFINED_ might also be defined
32831         in include/machine/_types.h, which is included by stdio.h
32833 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32835         net_if-tests: port to Solaris 7 + GCC 3.4.6
32836         Problem reported by Tom G. Christensen in
32837         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32838         * tests/test-net_if.c (ni): Move to next the code that uses it,
32839         so that it's declared only if needed.
32841 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32843         net_if-tests: port to older Solaris
32844         Problem reported by Tom G. Christensen in
32845         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32846         * modules/net_if-tests (NET_IF_LIB): New substitution.
32847         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32848         (HAVE_IF_NAMEINDEX): New C macro.
32849         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32851         system-quote-tests: port to older Solaris
32852         Problem reported by Tom G. Christensen in
32853         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32854         * tests/test-system-quote-child.c (fopen, fread): Undef.
32856         c-xvasprintf etc.: fix link errors on older Solaris
32857         These need to link with @LIBINTL@ to get libintl_gettext.
32858         Problem reported by Tom G. Christensen in
32859         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32860         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32861         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32862         * modules/futimens-tests (test_futimens_LDADD):
32863         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32865 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32867         locale: port to Solaris 2.6 and 7 + GNU gettext
32868         * lib/locale.in.h: Just include_next <locale.h> when
32869         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32870         when combining the localename module with GNU gettext 0.18.2.
32871         Problem reported by Tom G. Christensen in
32872         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32874 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32876         stdlib: port to Solaris 2.6
32877         Also, the code worked on Solaris 7 through 9 only by accident.
32878         Problem reported by Tom G. Christensen in
32879         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32880         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32881         simply include the system stdlib.h.
32882         * lib/getopt.in.h (__need_system_stdlib_h):
32883         * lib/pthread.in.h (__need_system_stdlib_h):
32884         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32885         Define when including <stdlib.h>, to avoid problems at least for
32886         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32887         with the system stdlib.h.
32889 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32891         doc: update main copyright year
32892         * doc/gnulib.texi: Update copyright date.
32894         doc: improve ISO 8601 discussion
32895         * doc/parse-datetime.texi (Combined date and time of day items):
32896         Specify more carefully what formats are supported and what is
32897         done with excess precision.
32899 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32901         doc: avoid small caps
32902         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32903         they're more trouble than they're worth.  Suggested by Karl Berry
32904         in <http://bugs.gnu.org/13360>.
32906         regex: conform to strict C
32907         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32908         From Aharon Robbins.
32910         gnulib-tool: fix incompatibility with autopoint 0.18.2
32911         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32912         Problem reported by Tom G. Christensen in
32913         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32915 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32917         fprintftime: bring back and reword fwrite comment
32918         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32920         stdio: remove now-unnecessary stdio.c
32921         Since stdio.in.h no longer uses inline functions, we no longer
32922         need to compile the extern versions.
32923         * lib/stdio.c: Remove.
32924         * modules/stdio (Files): Remove lib/stdio.c.
32925         (lib_SOURCES): Remove.
32927         unicodeio: depend on stdio, not ignore-value
32928         * lib/unicodeio.c: Do not include ignore-value.h.
32929         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32930         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32932         fprintftime: depend on stdio, not ignore-value
32933         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32934         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32935         since the stdio module arranges to silence that warning now.
32936         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32938 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32940         stdint-tests: Fix expanded-before-required-warning.
32941         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32943 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32945         fwrite: silence __wur only for older glibc versions
32946         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32947         This will help us remove this workaround some time in the far future.
32949 2013-01-03  Eric Blake  <eblake@redhat.com>
32951         fwrite: silence __wur without using inline
32952         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32953         just gcc, and in a way that avoids inline issues.
32954         * modules/stdio (Depends-on): Drop extern-inline.
32956 2013-01-03  Jim Meyering  <jim@meyering.net>
32958         update-copyright: avoid copyright notice date corruption
32959         Given a sequence of copyright year numbers in which the final
32960         one was a two-digit number that happened to be a substring of
32961         a preceding four-digit year number, we would mistakenly update
32962         the substring (from two- to four-digit) rather than the two-digit
32963         number at the end, which, combined with the addition of the current
32964         4-digit year number would yield two 5-digit year numbers, e.g.,
32965         here, it would convert the first "99" to "1999, 2013" rather than
32966         the final one:
32967           1991, 99
32968           11999, 20131, 1999
32969         * build-aux/update-copyright: Tighten a regexp.
32970         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32971         Reported by Joseph Myers in
32972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32974 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32976         regex: omit needless signed-pointer casts
32977         * lib/regcomp.c (build_charclass, build_charclass_op):
32978         Use char *, not unsigned char *, for class name and extra.
32979         The char values are always nonnegative so there's no need to
32980         insist on unsigned char * here, and using char * removes the need
32981         for casts.  Reported by Aharon Robbins in
32982         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32984         regex: support Gawk, which never uses alloca
32985         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32986         Do not include in this case.  Gawk doesn't supply a substitute
32987         alloca.h and doesn't need one.
32989         regex: port __libc_lock_define usage to C89
32990         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32991         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32992         does not conform to C89, as it has an empty macro argument.
32993         Reported by Aharon Robbins in
32994         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32996 2013-01-01  Eric Blake  <eblake@redhat.com>
32998         maint: update all copyright year number ranges
32999         Run "make update-copyright".
33001         version-etc: bump copyright year reported in --version
33002         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
33004 2012-12-31  Eric Blake  <eblake@redhat.com>
33006         sigprocmask-tests: skip test if pid is unexpectedly large
33007         * tests/test-sigprocmask.c (main): Add range check.
33009         git-version-gen: avoid test -z portability glitch
33010         * build-aux/git-version-gen: Prefer portable test spelling, since
33011         git-version-gen is run on more than just developer machines.
33013 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
33015         git-version-gen: add --fallback option to use if git is not present
33016         * build-aux/git-version-gen: Add support for the new option --fallback,
33017         which comes into play when there is no $tarball_version_file and
33018         git is not working.
33019         (scriptversion): Update.
33021         maint.mk: handle missing git with more grace
33022         * top/maint.mk (no-submodule-changes, public-submodule-commit):
33023         Quietly proceed if git is not present.
33025 2012-12-31  Eric Blake  <eblake@redhat.com>
33027         dup2: work around cygwin bug
33028         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
33029         * lib/dup2.c (rpl_dup2): Work around it.
33030         * doc/posix-functions/dup2.texi (dup2): Document it.
33032 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
33034         regex: remove unnecessary dependency on localcharset.h
33035         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
33036         hasn't been needed for years.
33037         * modules/regex (Depends-on): Remove localcharset.
33039         regex: revert single-byte change
33040         * lib/regexec.c (check_node_accept_bytes): Revert previous change
33041         to this function.  This was alredy fixed in a different way, at
33042         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
33043         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
33044         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
33046         regex: simplify based on Gawk version
33047         * lib/regex_internal.c (re_dfa_add_node): Simplify.
33048         Reported by Aharon Robbins in
33049         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33051 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33053         regex: check that pattern char is single-byte
33054         Reported by Aharon Robbins in
33055         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33056         * lib/regexec.c (check_node_accept_bytes):
33057         Return 0 if the pattern string has a multibyte character here.
33059         regex: implement rational ranges
33060         Reported by Aharon Robbins in
33061         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33062         * lib/regcomp.c (build_range_exp) [!_LIBC]:
33063         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
33064         Implement rational ranges.
33066         regex: avoid redefining __wctype
33067         Reported by Aharon Robbins in
33068         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33069         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
33070         #undef before defining.
33072         regex: port to hosts where malloc (0) == NULL
33073         Reported by Aharon Robbins in
33074         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33075         * lib/regex_internal.c (re_node_set_alloc):
33076         Don't assume that malloc (0) yields nonnull.
33077         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
33078         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
33079         * modules/regex (Files): Add m4/eealloc.m4.
33081         regex: port to C89
33082         Reported by Aharon Robbins in
33083         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33084         * lib/regcomp.c (init_word_char): Declaration before statement.
33086         regex: merge glibc changes
33087         Also, copy the license wording from glibc.  This simplifies
33088         merging changes.  gnulib-tool will change the wording to GPL as
33089         appropriate, when importing it to other packages.  The only
33090         glibc change made since the last merge, which needs merging, is:
33091         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
33092         * lib/regex_internal.h (gettext): Remove use of INTUSE.
33094         * users.txt: Add Emacs.
33096         doc: omit mention of version when not needed
33097         * doc/gnulib-intro.texi (Portability and Application Code):
33098         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
33099         Don't mention particular dates or versions when not necessary, so
33100         that the documentation won't go out of date so quickly.
33102         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
33104 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
33106         bootstrap: pass --force to autoreconf.
33107         * build-aux/bootstrap (AUTORECONFFLAGS): New.
33108         Add "--force" so that Automake's ylwrap and other such tools
33109         be updated at each bootstrap invocation.
33110         Use it.
33112 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
33114         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
33115         The earlier patch forgot to update one of the #if conditions, causing
33116         a problem on Debian testing i386 reported by Mats Erik Andersson
33117         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
33118         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
33119         (__argp_fmtstream_puts, argp_fmtstream_puts)
33120         (__argp_fmtstream_write, argp_fmtstream_write)
33121         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
33123         * doc/gnulib-readme.texi: Minor fixups.
33124         (Portability guidelines): Modernize URLs.  Remove some repetition.
33125         (Indent with spaces not TABs): Reword to avoid too-long lines.
33126         Remove some '@ifset standalone' stuff that isn't used.
33128         * doc/gnulib-readme.texi (Portability guidelines):
33129         ctype.h, not ctime.h.
33131         Correct name of POSIX.1-2001.
33132         * doc/posix-functions/fgetc.texi (fgetc):
33133         * doc/posix-functions/fgets.texi (fgets):
33134         * doc/posix-functions/fread.texi (fread):
33135         * doc/posix-functions/fscanf.texi (fscanf):
33136         * doc/posix-functions/getc.texi (getc):
33137         * doc/posix-functions/getchar.texi (getchar):
33138         * doc/posix-functions/scanf.texi (scanf):
33139         POSIX.1-2001, not POSIX-2001.
33141         doc: move README into manual
33142         * README: Move contents to new file doc/gnulib-readme.texi.
33143         Replace with a one-line summary.
33144         * doc/gnulib.texi (Brief Overview): New section,
33145         with old intro preface.  Include gnulib-readme.texi for contents.
33146         (Philosophy): Rename from "Introduction", since this
33147         section no longer introduces the rest.  Write a new preface.
33148         * doc/gnulib-readme.texi: New file, with the old contents of
33149         README texinfo-ized.  This way, the README info appears
33150         in the online and printed manual.
33152 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
33154         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
33155         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
33156         c_vasprintf() prototype.
33158 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
33160         c-vasprintf: Fix "empty declaration" warning reported by GCC.
33161         * lib/c-vasprintf.h: Remove stray semicolon.
33163 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33165         gettext: avoid obsolete macro AM_PROG_MKDIR_P
33166         It is obsolete and is planned to be removed from Automake 1.14; see
33167         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
33168         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
33169         (installdirs-data, installdirs-data-yes):
33170         Use $(MKDIR_P), not $(mkdir_p).
33171         * m4/intl.m4 (AM_INTL_SUBDIR):
33172         * m4/po.m4 (AM_PO_SUBDIRS):
33173         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
33175 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
33177         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
33178         On this platform, we are not optimizing but we are using
33179         the substitute for extern inlines, so compile as if
33180         C99-style extern inline, or a substitute, is available.
33181         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
33182         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
33183         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
33184         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
33185         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
33186         Declare as ARGP_FS_EI, not as extern.
33187         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
33188         (__option_is_short, _option_is_end, __option_is_end)
33189         [!_LIBC && __USE_EXTERN_INLINES]:
33190         Declare as ARGP_EI, not as extern.
33192 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
33194         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
33195         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
33196         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
33197         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
33198         ...), as the latter is fatal with older Autoconfs.
33199         Problem reported and fix suggested by Eric Blake in thread starting at
33200         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
33202 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
33204         AC_PROG_MKDIR_P: don't workaround if not buggy
33205         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
33206         Define only for Autoconf versions before 2.62.
33207         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
33208         undocumented m4_PACKAGE_VERSION, for consistency with the
33209         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
33210         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
33211         was introduced in 2.62.
33213 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
33215         New 'c-*printf' modules for formatted output in C locale.
33217         New module 'c-vasnprintf'.
33218         * modules/c-vasnprintf: New file.
33219         * lib/c-vasnprintf.c: New file.
33220         * lib/c-vasnprintf.h: New file.
33222         New module 'c-snprintf'.
33223         * modules/c-snprintf: New file.
33224         * modules/c-snprintf-tests: New file.
33225         * lib/c-snprintf.c: New file.
33226         * lib/c-snprintf.h: New file.
33227         * tests/test-c-snprintf.c: New file.
33228         * tests/test-c-snprintf.sh: New file.
33230         New module 'c-vsnprintf'.
33231         * modules/c-vsnprintf: New file.
33232         * modules/c-vsnprintf-tests: New file.
33233         * lib/c-vsnprintf.c: New file.
33234         * lib/c-vsnprintf.h: New file.
33235         * tests/test-c-vsnprintf.c: New file.
33236         * tests/test-c-vsnprintf.sh: New file.
33238         New module 'c-vasprintf'.
33239         * modules/c-vasprintf: New file.
33240         * modules/c-vasprintf-tests: New file.
33241         * lib/c-asprintf.c: New file.
33242         * lib/c-vasprintf.c: New file.
33243         * lib/c-vasprintf.h: New file.
33244         * tests/test-c-vasprintf.c  +: New file.
33245         * tests/test-c-vasprintf.sh: New file.
33247         New module 'c-xvasprintf'.
33248         * modules/c-xvasprintf: New file.
33249         * modules/c-xvasprintf-tests: New file.
33250         * lib/c-xasprintf.c: New file.
33251         * lib/c-xvasprintf.c: New file.
33252         * lib/c-xvasprintf.h: New file.
33253         * tests/test-c-xvasprintf.c: New file.
33254         * tests/test-c-xvasprintf.sh: New file.
33256 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33258         argp: better 'inline'
33259         Use extern-inline module to declare extern inline functions.
33260         This avoids some bogus warning diagnostics.  Problem discovered
33261         when modifying GNU tar to use the manywarnings module.
33262         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
33263         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
33264         Define based on extern-inline.
33265         * modules/argp (Depends-on): Add extern-inline.
33267 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33269         filemode, sys_stat: Handle MPX files a la AIX.
33270         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
33271         * lib/sys_stat.in.h (S_ISMPX): New macro.
33272         * tests/test-sys_stat.c: Add tests for MPX files.
33274 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33276         x-to-1: honor $PERL
33277         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
33278         a chance to use his preferred version of Perl.  This is typically
33279         required by Darwin users whose default /usr/bin/perl does not have all
33280         the libraries required by help2man, and who need to use their MacPorts
33281         installation of Perl instead.
33283 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33285         gnu-web-doc-update: add all the new files, even in new directories
33286         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
33287         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
33288         Use it.
33289         (main): Don't use cvsutils to get the list of unknown files,
33290         just add all the existing files and directories.
33292 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33294         gnu-web-doc-update: improve --help
33295         * build-aux/gnu-web-doc-update: Move comments into --help.
33297 2012-12-07  Eric Wong  <normalperson@yhbt.net>
33299         mountlist: recognize more "dummy" file systems
33300         * lib/mountlist.c (ME_DUMMY_0):
33301         Add these dummy FS names to the list:
33302         - "debugfs" virtual filesystem for kernel debugging
33303         - "devpts" PTY slave filesystem
33304         - "devtmpfs" device filesystem on top of tmpfs/ramfs
33305         - "fusectl" control filesystem for FUSE
33306         - "mqueue" enumerates POSIX message queues
33307         - "rpc_pipefs" kernel <-> userspace bridge for NFS
33308         - "sysfs" is for exporting kernel objects
33309         - "devfs" device filesystem for Linux 2.4 and FreeBSD
33311 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33313         extern-inline: avoid incompatibility with Darwin Libc
33314         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
33315         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
33316         Problem reported by Akim Demaille in
33317         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
33319 2012-12-11  Simon Josefsson  <simon@josefsson.org>
33321         gnupload: Work with GnuPG using gpg-agent (for smartcards).
33322         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
33323         let it handle password prompting.
33325 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
33327         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
33328         * lib/canonicalize.c (canonicalize_filename_mode):
33329         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
33330         fetching the current directory.  Don't overrun the beginning of
33331         rpath if there's no slashes after the MS-Windows drive letter.
33333 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
33335         maint.mk: avoid extra forks
33336         * top/maint.mk (_cfg_mk): The GNU make manual documents that
33337         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
33338         So use that instead of "$(shell test -f FILE && echo FILE)".
33340 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33342         vasnprintf: fix ASCII_ONLY typo
33343         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33344         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33345         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33346         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
33347         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
33349 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33351         list, oset, xlist, xoset: fix extern inline issue with C99
33352         This was introduced by my recent changes for 'inline'.
33353         Problem reported for gettext by Daiki Ueno in
33354         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
33355         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
33356         (gl_list_nx_create, gl_list_size, gl_list_node_value)
33357         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
33358         (gl_list_previous_node, gl_list_get_at)
33359         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
33360         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
33361         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
33362         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
33363         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
33364         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33365         (gl_list_iterator_free, gl_sortedlist_search)
33366         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
33367         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
33368         (gl_sortedlist_remove):
33369         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
33370         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
33371         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
33372         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
33373         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
33374         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
33375         (gl_list_add_at, gl_sortedlist_add):
33376         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
33377         Wrap these extern decls inside "#if 0", because they are implemented
33378         as inline functions, and extern inline is not what's wanted here.
33379         It would simplify these .h files to remove the extern decls entirely,
33380         although a downside would be less-clear separation between
33381         specification and implementation.
33383 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33385         sys_stat: no 'static inline'
33386         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33387         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33389         extern-inline: no 'static inline'
33390         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33391         Do not require AC_C_INLINE.
33392         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33393         'static inline', for older compilers.
33395         snippet/warn-on-use: no 'static inline'
33396         * build-aux/snippet/warn-on-use.h:
33397         Remove unnecessary 'inline' in comment.
33399         rbtree-list, rbtreehash-list: no 'static inline'
33400         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33401         * lib/gl_anytree_list2.h (node_at):
33402         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33403         (gl_oset_first, add_nodes_to_buckets):
33404         Now static, not static inline.
33406         regex: no 'static inline'
33407         * lib/regex_internal.c (calc_state_hash):
33408         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33409         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33410         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33411         Now static, not static inline.
33412         (inline) [__GNUC__ < 3 && _LIBC]:
33413         Remove macro; no longer needed.
33415         xvasprintf: no 'static inline'
33416         * lib/xvasprintf.c (xstrcat):
33417         Now static, not static inline.
33418         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33419         Do not require AC_C_INLINE.
33421         parse-datetime, parse-duration: no 'static inline'
33422         * lib/parse-datetime.y (to_uchar):
33423         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33424         (scale_n_add):
33425         Now static, not static inline.
33426         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33427         * modules/parse-duration (configure.ac):
33428         Do not require AC_C_INLINE.
33430         getaddrinfo: no 'static inline'
33431         * lib/getaddrinfo.c (validate_family):
33432         Now static, not static inline.
33433         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33434         Do not require AC_C_INLINE.
33436         ftruncate, fts, lstat, openat, raise: no 'static inline'
33437         * lib/ftruncate.c (chsize_nothrow):
33438         * lib/fts.c (opendirat, diropen):
33439         * lib/lstat.c (orig_lstat):
33440         * lib/openat.c (orig_openat):
33441         * lib/raise.c (raise_nothrow):
33442         Now static, not static inline.
33443         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33444         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33445         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33446         * m4/openat.m4 (gl_PREREQ_OPENAT):
33447         * m4/raise.m4 (gl_PREREQ_RAISE):
33448         Do not require AC_C_INLINE.
33450         fflush, stat: no 'static inline'
33451         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33452         (clear_ungetc_buffer, disable_seek_optimization)
33453         (restore_seek_optimization, update_fpos_cache):
33454         * lib/stat.c (orig_stat):
33455         Now static, not static inline.
33456         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33457         (update_fpos_cache):
33458         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33459         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33460         * m4/stat.m4 (gl_PREREQ_STAT):
33461         Do not require AC_C_INLINE.
33463         error, filevercmp: no 'static inline'
33464         * lib/error.c (is_open, flush_stdout):
33465         * lib/filevercmp.c (order):
33466         Now static, not static inline.
33467         * m4/error.m4 (gl_PREREQ_ERROR):
33468         * modules/filevercmp (configure.ac):
33469         Do not require AC_C_INLINE.
33471         dup, execute, fatal-signal, etc.: no 'static inline'
33472         * lib/dup.c (dup_nothrow):
33473         * lib/execute.c (nonintr_close, nonintr_open):
33474         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33475         * lib/fopen.c (orig_fopen):
33476         * lib/freadseek.c (freadptrinc):
33477         * lib/freopen.c (orig_freopen):
33478         * lib/fstat.c (orig_fstat, fstat_nothrow):
33479         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33480         (get_rusage_as_via_iterator):
33481         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33482         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33483         * lib/isatty.c (_isatty_nothrow):
33484         * lib/open.c (orig_open):
33485         * lib/read.c (read_nothrow):
33486         * lib/sigprocmask.c (signal_nothrow):
33487         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33488         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33489         * lib/wait-process.c (unregister_slave_subprocess):
33490         * lib/write.c (write_nothrow):
33491         Now static, not static inline.
33492         * lib/spawn-pipe.c (nonintr_open): Define only if
33493         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33494         * m4/dup.m4 (gl_PREREQ_DUP):
33495         * m4/execute.m4 (gl_EXECUTE):
33496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33497         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33498         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33499         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33500         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33501         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33502         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33503         * m4/open.m4 (gl_PREREQ_OPEN):
33504         * m4/read.m4 (gl_PREREQ_READ):
33505         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33506         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33508         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33509         * m4/write.m4 (gl_PREREQ_WRITE):
33510         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33511         Do not require AC_C_INLINE.
33513         c-strtod, memcoll, readutmp: no 'static inline'
33514         * lib/c-strtod.c (c_locale):
33515         * lib/memcoll.c (strcoll_loop):
33516         * lib/readutmp.c (desirable_utmp_entry):
33517         Now static, not static inline.
33518         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33519         * m4/memcoll.m4 (gl_MEMCOLL):
33520         * m4/readutmp.m4 (gl_READUTMP):
33521         Do not require AC_C_INLINE.
33523         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33524         * lib/arctwo.c (to_uchar):
33525         * lib/md4.c (set_uint32):
33526         * lib/md5.c (set_uint32):
33527         * lib/sha1.c (set_uint32):
33528         * lib/sha256.c (set_uint32):
33529         * lib/sha512.c (set_uint64):
33530         Now static, not static inline.  This is a bit simpler, and doesn't
33531         affect performance with GCC and default optimization.
33532         * m4/arctwo.m4 (gl_ARCTWO):
33533         * m4/md4.m4 (gl_MD4):
33534         * m4/md5.m4 (gl_MD5):
33535         * m4/sha1.m4 (gl_SHA1):
33536         * m4/sha256.m4 (gl_SHA256):
33537         * m4/sha512.m4 (gl_SHA512):
33538         Do not require AC_C_INLINE.
33540         cond, lock, thread: better 'inline'
33541         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33542         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33543         New macros.  Use them instead of static inline, for header functions.
33544         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33545         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33546         * lib/glthread/lock.c (gl_waitqueue_init)
33547         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33548         * lib/glthread/thread.c (get_current_thread_handle):
33549         Change 'static inline' to 'inline'.
33550         * lib/glthread/cond.h, lib/glthread/thread.h:
33551         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33552         * m4/cond.m4 (gl_COND):
33553         * m4/lock.m4 (gl_PREREQ_LOCK):
33554         * m4/thread.m4 (gl_THREAD):
33555         Do not require AC_C_INLINE.
33556         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33558         chdir-long, cycle-check, savewd: better 'inline'
33559         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33560         (find_non_slash):
33561         * lib/cycle-check.c (is_zero_or_power_of_two):
33562         * lib/savewd.c (savewd_delegating):
33563         Change 'static inline' to 'inline'.
33564         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33565         Replace all remaining uses of 'static inline' with it.
33566         * lib/savewd.h:
33567         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33569         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33570         * m4/savewd.m4 (gl_SAVEWD):
33571         Do not require AC_C_INLINE.
33572         * modules/savewd (Depends-on): Add extern-inline.
33574         base32, base64: no need for 'inline'
33575         * lib/base32.c (to_uchar, get_8, decode_8):
33576         * lib/base64.c (to_uchar, get_4, decode_4):
33577         Change 'static inline' to 'inline'.
33578         * m4/base32.m4 (gl_PREREQ_BASE32):
33579         * m4/base64.m4 (gl_PREREQ_BASE64):
33580         Do not require AC_C_INLINE.
33582         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33583         * lib/gl_array_oset.c (gl_array_nx_add_at):
33584         (gl_array_remove_at):
33585         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33586         (add_to_bucket, remove_from_bucket):
33587         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33588         Change 'static inline' to 'static', as it's simpler to omit
33589         'inline' unless there's a significant performance advantage.
33591         list, oset, xlist, xoset, xsublist: simplify via extern inline
33592         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33593         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33594         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33595         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33596         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33597         New macro.  Replace all uses of 'static inline' with it.
33598         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33599         instead of as macros FOO that are defined to static inline
33600         functions FOO_inline.
33601         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33602         * lib/gl_xsublist.c:
33603         Reimplement from scratch, by defining the corresponding *_INLINE
33604         macro and including the corresponding .h file.  This is simpler.
33605         * modules/list, modules/oset, modules/xlist, modules/xoset:
33606         (Files): Remove m4/gl_list.m4.
33607         (configure.ac): Remove gl_LIST.
33608         * m4/gl_list.m4: Remove.
33609         * modules/list, modules/oset, modules/xlist, modules/xoset:
33610         * modules/xsublist:
33611         (Depends-on): Depend on extern-inline, not inline.
33613         xalloc: better 'inline'
33614         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33615         New macro.  Replace all uses of 'static inline' with it.
33616         (static_inline): Remove.
33617         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33618         Let 'extern inline' do the work automatically, instead of doing
33619         it by hand.
33620         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33621         Remove.  All uses removed.
33622         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33624         gethrxtime: better 'inline'
33625         * lib/xtime.c: New file.
33626         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33627         * lib/xtime.h (XTIME_INCLUDE):
33628         New macros.  Replace all uses of 'static inline' with them.
33629         * lib/gethrxtime.c (gethrxtime): Define only if
33630         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33631         this source file is now always compiled, because of the extern inline.
33632         * lib/gethrxtime.h, lib/xtime.h:
33633         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33634         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33635         if gethrtime works, as they're not needed in that case.
33636         (gl_XTIME): Do not require AC_C_INLINE.
33637         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33638         compiled now.  Move the check into gl_GETHRXTIME.
33639         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33640         (Depends-on): Add extern-inline.
33641         (configure.ac): gethrxtime is always compiled now.
33642         (lib_SOURCES): Add gethrxtime.c.
33644         wctype-h: better 'inline'
33645         * lib/wctype-h.c: New file.
33646         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33647         New macro.  Replace all uses of 'static inline' with it.
33648         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33649         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33650         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33651         (Depends-on): Add extern-inline.
33653         unistd: better 'inline'
33654         * lib/unistd.c: New file.
33655         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33656         New macro.  Replace all uses of 'static inline' with it.
33657         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33658         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33659         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33660         (Depends-on): Add extern-inline.
33662         sys_socket: better 'inline'
33663         * lib/sys_socket.c: New file.
33664         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33665         New macro.  Replace all uses of 'static inline' with it.
33666         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33668         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33669         (Depends-on): Add extern-inline.
33671         stdio: better 'inline'
33672         * lib/stdio.c: New file.
33673         * lib/stdio.in.h (_GL_STDIO_INLINE):
33674         New macro.  Replace all uses of 'static inline' with it.
33675         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33676         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33677         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33678         (Depends-on): Add extern-inline.
33680         sigaction: better 'inline'
33681         * lib/sig-handler.c: New file.
33682         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33683         New macro.  Replace all uses of 'static inline' with it.
33684         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33685         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33686         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33687         (Depends-on): Add extern-inline.
33689         selinux-h: better 'inline'
33690         * lib/se-context.c, lib/se-selinux.c: New files.
33691         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33692         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33693         New macro.  Replace all uses of 'static inline' with it.
33694         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33695         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33696         New macro.  Replace all uses of 'static inline' with it.
33697         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33698         * modules/selinux-h (Files, lib_SOURCES):
33699         Add lib/se-context.c, lib/se-selinux.c.
33700         (Depends-on): Add extern-inline.
33701         (configure.ac): Do not require AC_C_INLINE.
33703         pthread: better 'inline'
33704         * lib/pthread.c: New file.
33705         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33706         New macro.  Replace all uses of 'static inline' with it.
33707         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33708         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33709         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33710         * modules/pthread (Files): Add lib/pthread.c.
33711         (Depends-on): Add extern-inline.
33713         math: better 'inline'
33714         * lib/math.c: New file.
33715         * lib/math.in.h (_GL_MATH_INLINE):
33716         New macro.  Replace all uses of 'static inline' with it.
33717         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33718         * m4/math_h.m4 (gl_MATH_H):
33719         Do not require AC_C_INLINE.
33720         * modules/math (Files, lib_SOURCES):
33721         Add lib/math.c.
33722         (Depends-on): Add extern-inline.
33724         count-one-bits: better 'inline'
33725         * lib/count-one-bits.c: New file.
33726         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33727         New macro.  Replace all uses of 'static inline' with it.
33728         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33729         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33730         Do not require AC_C_INLINE.
33731         * modules/count-one-bits (Files, lib_SOURCES):
33732         Add lib/count-one-bits.c.
33733         (Depends-on): Add extern-inline.
33735         count-leading-zeros: better 'inline'
33736         * lib/count-leading-zeros.c: New file.
33737         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33738         New macro.  Replace all uses of 'static inline' with it.
33739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33740         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33741         Do not require AC_C_INLINE.
33742         * modules/count-leading-zeros (Files, lib_SOURCES):
33743         Add lib/count-leading-zeros.c.
33744         (Depends-on): Add extern-inline.
33746         bitrotate: better 'inline'
33747         * lib/bitrotate.c: New file.
33748         * lib/bitrotate.h (BITROTATE_INLINE):
33749         New macros.
33750         Replace all uses of 'static inline' with them.
33751         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33752         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33753         (Depends-on): Add extern-inline.
33754         (configure.ac): Do not require AC_C_INLINE.
33756 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33758         maint.mk: avoid gratuitous failure
33759         Reported by Stefano Lattarini in
33760         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33761         * top/maint.mk (public-submodule-commit): Quote more safely.
33763 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33765         canonicalize, canonicalize-lgpl: support MS-Windows file names
33766         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33767         for test cases, which it'd be nice to add at some point.
33768         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33769         * lib/canonicalize.c (canonicalize_filename_mode):
33770         * lib/canonicalize-lgpl.c (__realpath):
33771         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33772         slash is at the beginning of the file name.  Use ISSLASH, instead
33773         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33774         the first character with '/'.  Test for
33775         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33776         with a drive letter.
33777         * lib/canonicalize.c (SLASHES): New macro.
33778         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33780 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33782         fts: introduce FTS_VERBATIM
33783         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33784         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33785         * lib/fts.c (fts_open): Honor it.
33787 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33789         getlogin-tests: allow errno == ENXIO
33790         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33791         with errno == ENXIO (No controlling tty).
33792         getlogin_r-tests: Likewise. Also allow errno == ENOENT
33793         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
33794         with errno == ENOENT.  This was reported to happen in various
33795         situations on GNU/Linux.
33797 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33799         getlogin-tests: allow errno == ENOENT
33800         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33801         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
33802         when running a test in an Emacs shell buffer.
33804 2012-11-08  Jim Meyering  <jim@meyering.net>
33806         tests/nap.h: avoid warning about unused variable
33807         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
33809         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
33810         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
33811         white space before each of the special-cased file names, to avoid
33812         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
33813         in http://bugs.gnu.org/12830.
33815 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33817         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33818         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33819         fails with errno == EBADF when fd is opened with O_PATH.
33820         Reported by Jim Meyering in
33821         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33822         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33823         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33825 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33827         test-utimens: speed up by taking shorter naps
33828         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33829         New functions.
33830         (nap): Use them, to do a better job of guessing the delay.
33831         On Fedora 17 with ext4 atop md atop hard disks, this made
33832         test-utimens run 10x faster, because the test napped for
33833         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33834         <http://bugs.gnu.org/12820#11>.
33836 2012-11-07  Jim Meyering  <jim@meyering.net>
33838         mountlist.c: fix a compilation failure
33839         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33840         I introduced while transforming commit v0.0-7683-g613bcb6
33842 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33844         errno: port to LynxOS 178 2.2.2
33845         Problem reported by Joel Brobecker in
33846         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33847         * doc/posix-headers/errno.texi (errno.h): Document this.
33848         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33849         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33850         Supply a string for EILSEQ.
33851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33853 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33855         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33856         Linux kernel 2.6.39 introduced O_PATH (see
33857         <http://lwn.net/Articles/433854/>) and this is a better fallback
33858         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33859         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33860         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33861         * lib/fcntl.in.h (O_ACCMODE):
33862         * tests/test-fcntl-h.c (main):
33863         Do not reject O_ACCMODE merely because it has more than the
33864         minimal number of bits, as POSIX allows extensions here.
33866 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33868         mountlist: do not classify a bind-mounted dir entry as "dummy"
33869         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33870         the "none"-testing clause.
33871         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33872         exception for bind-mounted directories.
33874 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33876         quote: provide a means to escape strings with nul characters
33877         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33878         (quote, quote_n): Rename formal arguments for consistency with
33879         quotearg.
33881 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33883         test-raise: don't assume 199 is an invalid signal
33884         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33886         sh-quote-tests: port to Solaris 9
33887         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33888         Problem reported by Dagobert Michelsen in
33889         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33891 2012-10-28  Jim Meyering  <jim@meyering.net>
33893         maint.mk: rename a new configurable variable
33894         * top/maint.mk (_gl_translatable_string_re): Rename from
33895         translation-markers: _gl_ prefix to insulate from user Makefile code,
33896         and the _re suffix to inform that it's a regular expression.
33898 2012-10-26  Eric Blake  <eblake@redhat.com>
33900         maint.mk: let packages tweak sc_po_check pattern
33901         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33902         finding files with other translation markers.
33904 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33906         euidaccess: speed up 'configure' on GNU hosts
33907         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33908         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33909         it's needed only in this case.  Use AC_CHECK_DECLS, not
33910         AC_CHECK_DECLS_ONCE.
33911         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33912         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33914         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33916 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33918         fchmodat, fchownat, fstatat: port to non-inlining compilers
33919         Problem reported for FreeBSD 9 by Jim Meyering in
33920         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33921         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33922         New files, which define FCHMODAT_INLINE etc.
33923         * lib/fchmodat.c (FCHMODAT_INLINE):
33924         * lib/fchownat.c (FCHOWNAT_INLINE):
33925         * lib/fstatat.c (FSTATAT_INLINE):
33926         Remove, as chmodat.c etc. now do this.
33927         * modules/fchmodat (Files): Add lib/chmodat.c.
33928         * modules/fchownat (Files): Add lib/chownat.c.
33929         * modules/fstatat (Files): Add lib/statat.c.
33931 2012-10-15  Jim Meyering  <jim@meyering.net>
33933         fchmodat.c, fchownat.c: compile-impeding typos
33934         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33935         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33936         Introduced in commit v0.0-7636-gd202279.
33938 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33940         fcntl-h: support GNU flags like O_IGNORE_CTTY
33941         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33942         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33943         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33944         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33945         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33946         Define to 0 if not already defined.
33947         * tests/test-fcntl-h.c: Test these new flags.
33949 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33951         faccessat, etc.: support AT_FDCWD-only use
33952         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33953         this function only if its first argument is AT_FDCWD.
33954         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33955         values other than AT_FDCWD, so it doesn't want all the openat
33956         machinery with fchdir etc.
33957         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33958         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33959         * modules/unlinkat (Files):
33960         Remove lib/openat-priv.h, as at-internal supplies this file.
33961         Removing this file here allows us to support programs like Emacs
33962         that avoid at-internal.
33964         faccessat: speed up 'configure' on mainstream hosts
33965         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33966         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33967         since it's only on unusual platforms that we need to check for
33968         'access', and it's better not to slow 'configure' down on all
33969         platforms.
33971         faccessat: port to Solaris 10
33972         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33973         Needed on Solaris 10, which doesn't have AT_EACCESS,
33974         so we need the Gnulib fcntl.h, which defines it.
33976 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33977         canonicalize: fix C89 compilation
33978         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33979         declarations so C89 is supported.  Also remove the comment
33980         referencing memorty allocation as the suggested feature could
33981         not be implemented as suggested.
33982         Reported by Michael Goffioul.
33984 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33986         group-member: omit unnecessary dependencies
33987         This is for Emacs, which has its own allocator and where we
33988         don't want to use xalloc.
33989         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33990         since we no longer use xmalloc.  Do not include stdbool.h, since
33991         the changes below happen to remove the only use of bool.
33992         (GROUPBUF_SIZE): New constant.
33993         (struct group_info): Remove n_groups member.  Add groupbuf member.
33994         This lets us get the groups without using malloc, usually.
33995         (free_group_info, get_group_info): Adjust to this.
33996         (get_group_info): Return the number of groups found, or -1 on error.
33997         Use plain malloc not xmalloc, and treat its failure as if there
33998         are no groups, as the user already loses in case of error.
33999         (group_member): Simplify, based on changes to get_group_info.
34000         * modules/group-member (Depends-on): Remove dependencies on
34001         xalloc and stdbool.  Add dependency on xalloc-oversized.
34003 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
34005         gethrxtime: port to C++
34006         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
34008 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34010         ptsname: fix macro-name typo
34011         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
34013 2012-10-03  Simon Josefsson  <simon@josefsson.org>
34015         inttostr: Relax license.
34016         * modules/inttostr (License): Change from LGPL to LGPLv2+.
34018 2012-10-03  Eric Blake  <eblake@redhat.com>
34020         ptsname_r: support ptys returned by FreeBSD posix_openpt
34021         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
34022         lives in /dev/pts/.
34024 2012-10-02  Eric Blake  <eblake@redhat.com>
34026         pselect: reject invalid file descriptors
34027         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
34028         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
34029         * modules/pselect (Depends-on): Add dup2.
34030         * doc/posix-functions/pselect.texi (pselect): Document this.
34032         select: reject invalid file descriptors
34033         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
34034         * lib/select.c (rpl_select) [!win32]: Work around it.
34035         * modules/select (Depends-on): Add dup2.
34036         * doc/posix-functions/select.texi (select): Document this.
34038         select: enhance test
34039         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
34040         New functions.
34041         (test_function): Enhance test.
34042         (do_select_bad_fd): Avoid any stale errno values.
34044         ptsname: reject invalid file descriptors
34045         http://www.austingroupbugs.net/view.php?id=503
34046         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
34047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
34048         * modules/stdlib (Makefile.am): Replace witness.
34049         * lib/stdlib.in.h (ptsname): Allow for replacement.
34050         * modules/ptsname (configure.ac): Trigger replacement.
34051         * doc/posix-functions/ptsname.texi (ptsname): Document this.
34053 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
34055         hash-pjw-bare: new module
34056         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
34057         * lib/hash-pjw-bare.h: Likewise.
34058         * modules/hash-pjw-bare: New file.
34059         * MODULES.html.sh (Misc): Add it.
34061 2012-10-02  Eric Blake  <eblake@redhat.com>
34063         manywarnings: cater to more gcc infelicities
34064         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
34065         -Wuninitialized without -O.
34067 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
34069         select, poll tests: Make setsockopt invocation effective.
34070         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
34071         the bind() call.
34072         * tests/test-select.h (open_server_socket): Likewise.
34074 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34076         sockets, sys_stat: restore AC_C_INLINE
34077         This undoes the 2012-09-22 patch.
34078         * m4/sockets.m4 (gl_SOCKETS):
34079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34080         Restore AC_C_INLINE, since MSVC requires __inline or _inline
34081         and does not support plain 'inline'.  Reported by Bruno Haible in
34082         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
34084 2012-09-30  Bruno Haible  <bruno@clisp.org>
34086         localeconv tests: Avoid test failure on OpenIndiana.
34087         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
34088         skip the 'grouping' and 'mon_grouping' tests.
34089         Reported by Jim Meyering.
34091 2012-09-30  Bruno Haible  <bruno@clisp.org>
34093         havelib: Follow libtool developments.
34094         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
34095         Suggested by Simon Josefsson.
34097 2012-09-29  Jim Meyering  <meyering@redhat.com>
34099         fstatat.c: fix a compile-impeding typo
34100         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
34101         Introduced in commit v0.0-7636-gd202279.
34102         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
34104 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
34106         extern-inline: provide a -Wundef safe config.h
34107         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
34108         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
34109         to produce a -Wundef warning free config.h.
34111 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34113         hash-pjw: relax license to LGPLv2+
34114         * modules/hash-pjw (License): Relax, with consent of author.
34116 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34118         maint.mk: fix strict vs. lazy variable issues with RELEASE
34119         * top/maint.mk (_equal): New function.
34120         (member_check): Strip the result to avoid spurious spaces.
34121         (url_dir_list): Do not use ifeq, which is strict, as it will
34122         require RELEASE_TYPE to be defined.
34123         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
34124         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
34125         (announcement_Cc_alpha,announcement_mail_headers_alpha)
34126         (announcement_Cc_beta,announcement_mail_headers_beta)
34127         (announcement_Cc_stable,announcement_mail_headers_stable): these.
34128         (release): Do not depend on $(release-type), as it forces its
34129         evaluation.  Bounce to it.
34131 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34133         maint.mk: formatting changes
34134         * top/maint.mk: Indent bodies of if's.
34136 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
34138         maint.mk: factor the validation of RELEASE_TYPE
34139         With help from Jim Meyering.
34140         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
34141         * top/maint.mk (_empty, _sp): Move their definition earlier.
34142         (member-check, release-type): New.
34143         Use the latter instead of $(RELEASE_TYPE).
34144         Remove now useless local checks.
34146 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34148         maint.mk: provide "make upload" to ease uploading
34149         See
34150         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
34151         Do not depend simply on the current $(VERSION), as there may have been
34152         new commits since the tarball generation.  Rather, rely on $(RELEASE),
34153         as "make release-commit" already does.
34155         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
34156         "make TYPE".
34158         * top/maint.mk (upload_command, upload, release): New.
34159         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
34160         (VERSION): first word of $(RELEASE) is always right.
34161         (emit_upload_commands): Adjust.
34162         * top/README-release: Update.
34164 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34166         maint.mk: silent rules
34167         With help from Stefano Lattarini.
34168         * top/maint.mk (writable-files): Use $(AM_V_GEN).
34169         (announcement): Use $(AM_V_at).
34171 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34173         localename: port gl_locale_name_thread_unsafe to FreeBSD
34174         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
34175         and use the simpler FreeBSD implementation on Mac OS X as well.
34176         Original idea suggested by Ed Maste in
34177         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
34179 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34181         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
34182         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
34183         * lib/mbuiter.c, lib/xsize.c: New files.
34184         * lib/binary-io.h (BINARY_IO_INLINE):
34185         * lib/eealloc.h (EEALLOC_INLINE):
34186         * lib/mbfile.h (MBFILE_INLINE):
34187         * lib/mbiter.h (MBITER_INLINE):
34188         * lib/mbuiter.h (MBUITER_INLINE):
34189         * lib/xsize.h (XSIZE_INLINE):
34190         New macros.
34191         Replace all uses of 'static inline' with them.
34192         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34193         * m4/eealloc.m4 (gl_EEALLOC):
34194         * m4/mbfile.m4 (gl_MBFILE):
34195         * m4/mbiter.m4 (gl_MBITER):
34196         * m4/xsize.m4 (gl_XSIZE):
34197         Do not require AC_C_INLINE.
34198         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
34199         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
34200         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
34201         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
34202         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
34203         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
34204         * modules/binary-io, modules/eealloc, modules/mbfile:
34205         * modules/mbiter, modules/mbuiter:
34206         (Depends-on): Add extern-inline.
34208         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
34209         * lib/pipe-filter-aux.c: New file.
34210         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
34211         Replace all uses of 'static inline' with it.
34212         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34213         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
34214         (filter_retcode): No real need for inline here.
34215         * modules/pipe-filter-gi, modules/pipe-filter-ii:
34216         (Files): Add lib/pipe-filter-aux.c.
34217         (Depends-on): Add extern-inline.
34218         (configure.ac): Do not require AC_C_INLINE.
34219         (lib_SOURCES): Add pipe-filter-aux.c.
34221         fdutimensat: omit unnecessary AC_C_INLINE
34222         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
34224         fchmodat, fchownat, fstatat: use extern-inline
34225         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
34226         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
34227         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
34228         New macros.
34229         * lib/openat.h:
34230         Replace all uses of 'static inline' with them.
34231         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34232         * modules/fchmodat, modules/fchownat, modules/fstatat:
34233         * modules/openat-h:
34234         (Depends-on):
34235         Add extern-inline.
34236         (configure.ac): Remove AC_C_INLINE.
34238         acl, mbchar, priv-set: use extern-inline
34239         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
34240         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
34241         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
34242         New macros.
34243         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
34244         Replace all uses of 'static inline' with it.
34245         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34246         * m4/acl.m4 (gl_FUNC_ACL):
34247         * m4/mbchar.m4 (gl_MBCHAR):
34248         * m4/priv-set.m4 (gl_PRIV_SET):
34249         Remove AC_C_INLINE, since 'inline' is no longer used directly.
34250         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
34251         Add extern-inline.
34253         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
34254         * m4/sockets.m4 (gl_SOCKETS):
34255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34256         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
34257         environments where it's already guaranteed to work, so we needn't
34258         check for it at 'configure'-time.
34260         tls-tests: omit unnecessary 'inline'
34261         * tests/test-tls.c (perhaps_yield): No longer inline.
34262         Simplicity and portability trump efficiency in test cases.
34264         utimens-tests: avoid unnecessary 'inline'
34265         * modules/fdutimensat-tests (configure.ac):
34266         * modules/futimens-tests (configure.ac):
34267         * modules/utimens-tests (configure.ac):
34268         * modules/utimensat-tests (configure.ac):
34269         Remove AC_C_INLINE.
34270         * tests/test-utimens-common.h (ctime_compare):
34271         No longer inline.  Simplicity and portability trump efficiency here.
34273         misc: don't limit commentary to inline functions
34274         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
34275         * lib/xalloc-oversized.h, lib/xsize.h:
34276         Contrast macros to functions in general, not just to inline functions,
34277         when the commentary does not apply only to inline functions.
34279 2012-09-20  Jim Meyering  <meyering@redhat.com>
34281         non-recursive-gnulib-prefix-hack: new module
34282         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
34283         the file that originated in Bison.
34284         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
34285         largely copied from a snippet that resided in bison's configure.ac.
34286         * modules/non-recursive-gnulib-prefix-hack: New file.
34287         * MODULES.html.sh (Support for maintaining and releasing projects):
34288         Add it.
34290 2012-09-18  Jim Meyering  <meyering@redhat.com>
34292         maint.mk: generalize _gl_tight_scope for non-recursive make
34293         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
34294         that *.h would describe additional .h files in the directory
34295         specified by $(_gl_TS_dir).  I.e., add this...
34296         (_gl_TS_other_headers): New variable.
34298         maint.mk: exempt trailing blanks found in "binary" files
34299         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
34300         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
34301         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34303 2012-09-17  Jim Meyering  <meyering@redhat.com>
34305         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
34306         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
34307         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
34308         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34310 2012-09-17  Jim Meyering  <meyering@redhat.com>
34312         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
34313         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
34314         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
34315         It is not in the same category as "exit (0)" or "exit (1)", and
34316         besides, I know of no symbolic name for that 77.  Reported by
34317         Richard W.M. Jones in
34318         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34320 2012-09-17  Jim Meyering  <meyering@redhat.com>
34322         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
34323         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
34324         all uses of #define, not just those that start in column 1.
34325         Richard W.M. Jones reported a false positive in
34326         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34328 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
34330         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
34331         * lib/localcharset.c (locale_charset) [DARWIN7]:
34332         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
34333         as these two values are incompatible.  Problem reported by Max Horn.
34334         For more discussion, please see
34335         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
34337         doc: document sticky-EOF issue
34338         * doc/posix-functions/fgetc.texi (fgetc):
34339         * doc/posix-functions/fgets.texi (fgets):
34340         * doc/posix-functions/fread.texi (fread):
34341         * doc/posix-functions/fscanf.texi (fscanf):
34342         * doc/posix-functions/getc.texi (getc):
34343         * doc/posix-functions/getchar.texi (getchar):
34344         * doc/posix-functions/scanf.texi (scanf):
34345         Mention that glibc and default Solaris do not conform to
34346         C99 and POSIX-2001 or later, with respect to how getchar
34347         etc. behave when feof reports nonzero.
34349 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34351         poll: fix poll(0, NULL, msec)
34352         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
34353         but nfd is 0.  In that case poll should behave like select.
34355 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34356             Paolo Bonzini  <bonzini@gnu.org>
34358         poll: fix for systems that can't recv() on a non-socket
34359         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
34360         is readable.  In this case POLLHUP will not be supported.
34361         * doc/posix-functions/poll.texi: Document this.
34363 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
34365         poll/select: document portability problems not fixed by Gnulib.
34366         * doc/posix-functions/poll.texi: poll does not work well on
34367         pipes under Windows.  It has the same limitations as select on
34368         BeOS.
34369         * doc/posix-functions/select.texi: select does not work well
34370         on pipes under Windows.
34372 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
34374         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
34375         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
34376         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
34377         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
34379 2012-09-06  Eric Blake  <eblake@redhat.com>
34381         net_if: give more details about the bug being fixed
34382         * doc/posix-headers/net_if.texi: Add clarification.
34384 2012-09-05  Eric Blake  <eblake@redhat.com>
34386         net_if: new module
34387         * modules/net_if: New module, borrowing ideas from netinet_in.
34388         * m4/net_if_h.m4: New file.
34389         * lib/net_if.in.h: Likewise.
34390         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34391         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34392         * tests/test-net_if.c: Make function checks conditional.
34393         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34395 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34397         readutmp: fix non-portable UT_PID use
34398         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34399         Use `UT_PID (u) > 0' as absolute condition.
34401 2012-09-04  Jim Meyering  <meyering@redhat.com>
34403         fts: reduce two or more trailing spaces to just one, usually
34404         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34405         or more slashes, trim all but the final one.  But if a name consists
34406         solely of two slashes, don't modify it.  If it consists solely of
34407         three or more slashes, strip all but one.
34409         This is part of the solution to a minor problem with rm:
34410         it would print a bogus ELOOP diagnostic when failing to remove
34411         the slash-decorated name of a symlink-to-directory:
34413             $ mkdir d && ln -s d s && env rm -r s/
34414             rm: cannot remove 's': Too many levels of symbolic links
34416         With the change below and a trivial don't-trim-trailing-slashes
34417         adjustment to remove.c, it does this:
34419             $ env rm -r s/
34420             rm: cannot remove 's/': Not a directory
34422         Improved by: Eric Blake
34424         fts: when there is no risk of overlap, use memcpy, not memmove
34425         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34427 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34429         stdbool: be more compatible with mixed C/C++ compiles
34430         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34431         Define to bool, true, false, respectively, as GCC's builtin
34432         stdbool.h does.  Problem reported by Michael Goffioul in
34433         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34435 2012-08-28  Jim Meyering  <meyering@redhat.com>
34437         revert last change: it was not needed
34438         * tests/test-vc-list-files-git.sh: There's already a test for
34439         a working git, just below.
34441 2012-08-28  Jim Meyering  <meyering@redhat.com>
34443         tests: test-vc-list-files-git.sh: skip if git is not available
34444         * tests/test-vc-list-files-git.sh: Skip this test when git is
34445         not available.
34447 2012-08-26  Bruno Haible  <bruno@clisp.org>
34449         gnulib-tool: Remove no-op option --no-changelog.
34450         * gnulib-tool (func_usage): Don't mention --no-changelog.
34451         (do_changelog): Remove variable.
34452         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34454 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34456         doc: remove fdl-1.2.texi
34457         It is no longer used or maintained, and its use of @acronym
34458         is problematic.  See the thread containing
34459         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34460         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34461         * doc/old-licenses/fdl-1.2.texi: Remove.
34463         execinfo: port to FreeBSD
34464         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34465         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34466         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34467         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34469 2012-08-23  Jim Meyering  <meyering@redhat.com>
34471         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34472         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34473         to placate gcc's -Wold-style-declaration.
34475 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34477         doc: do not use @acronym
34478         * doc/inet_ntoa.texi (inet_ntoa):
34479         * doc/parse-datetime.texi (Seconds since the Epoch)
34480         (Specifying time zone rules):
34481         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34482         Don't use @acronym.  Problem reported by John Darlington in
34483         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34485 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34487         stdnoreturn: port to newer GCCs
34488         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34489         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34490         Problem reported by Jim Meyering in
34491         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34492         Also, rename the 'test' function to a void a clash with the
34493         already-supplied 'main' function; this fixes a bug that incorrectly
34494         rejected GCC 4.7.1's <stdnoreturn.h>.
34495         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34496         Document GCC problem.
34498 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34500         pipe-filter: fix comment typo
34501         * lib/pipe-filter.h: Mention correct function.
34503 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34505         execinfo: new module
34506         This is for Emacs.  Currently, it provides a no-effect stub
34507         on all platforms where it does not already work.
34508         It already works on glibc-based systems, and on Solaris 11.
34509         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34510         New files.
34511         * doc/glibc-headers/execinfo.texi (execinfo.h):
34512         * MODULES.html.sh (Misc): Document it.
34514 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34516         extern-inline: support old GCC 'inline'
34517         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34518         if available.  This applies to GCC versions 2.7 through 4.2, or
34519         when newer GCC is using -fgnu89-inline.  The goal is to address
34520         some of the performance issues mentioned by Bruno Haible in
34521         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34523 2012-08-20  Eric Blake  <eblake@redhat.com>
34525         maint.mk: avoid redundant file name in message
34526         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34527         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34528         (sc_makefile_path_separator_check): Remove bogus $(ME).
34530 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34532         timer-time: fix link order when static linking on glibc
34533         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34534         _after_ -lrt so that it's significant.
34536 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34538         timespec: omit unnecessary AC_C_INLINE
34539         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34541         stat-time: omit unnecessary AC_C_INLINE
34542         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34543         Do not require AC_C_INLINE.
34545         ignore-value: omit unnecessary AC_C_INLINE
34546         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34548         sys_select: avoid 'static inline'
34549         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34551         mktime: avoid 'static inline'
34552         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34553         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34555 2012-08-19  Bruno Haible  <bruno@clisp.org>
34557         gnulib-tool: Improve coding style.
34558         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34559         func_emit_lib_Makefile_am.
34560         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34562 2012-08-19  Bruno Haible  <bruno@clisp.org>
34564         gnulib-tool: Fix indentation.
34565         * gnulib-tool (func_import): Fix indentation.
34567 2012-08-19  Bruno Haible  <bruno@clisp.org>
34569         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34570         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34571         on the list of removed files.
34573 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34575         test-parse-datetime: avoid glibc leap-second glitch
34576         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34577         with the 2012 rules.  Problem reported by Bruce Dubbs in
34578         <http://bugs.gnu.org/12206>.
34580 2012-08-14  Bruno Haible  <bruno@clisp.org>
34582         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34583         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34584         from argument.
34585         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34587 2012-08-14  Eric Blake  <eblake@redhat.com>
34589         ldexp: relax license
34590         * modules/ldexp (License): Trivial relax, since the module only
34591         provides a permissively licensed m4 file.
34593 2012-08-13  Bruno Haible  <bruno@clisp.org>
34595         gnulib-tool: Fix persistence of --witness-c-macro option.
34596         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34597         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34599 2012-08-11  Eric Blake  <eblake@redhat.com>
34601         count-leading-zeros: use a lookup table on non-gcc compilers
34602         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34603         alternate implementation, suggested by Jim Meyering.
34605 2012-08-10  Eric Blake  <eblake@redhat.com>
34607         count-leading-zeros: new module
34608         * modules/count-leading-zeros: New module.
34609         * m4/count-leading-zeros.m4: New file.
34610         * lib/count-leading-zeros.h: Likewise.
34611         * modules/count-leading-zeros-tests: New test.
34612         * tests/test-count-leading-zeros.c: New file.
34613         * MODULES.html.sh (Integer arithmetic functions): Document it.
34615 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34616             Jim Meyering  <meyering@redhat.com>
34618         maintainer-makefile: Fix syntax error with dash.
34619         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34620         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34622 2012-08-05  Jim Meyering  <meyering@redhat.com>
34624         extern-inline: also ignore -Wmissing-declarations
34625         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34626         required with gcc-4.8.0-to-be.
34628         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34629         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34630         for /error ?([^,]*)/.  This avoids false-positives for strings like
34631         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34633 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34635         gnumakefile: better interaction with Automake-NG
34636         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34637         Automake-NG always contain a definition of VPATH, even in non-VPATH
34638         builds (its value being simply '.' in that case).  So, in the
34639         'clean-GNUmakefile' rule, to determine whether running under a
34640         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34641         '$(VPATH)' expands to the empty string.
34643 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34645         base64: Use extern C scope in header file, for C++.
34646         * lib/base64.h: Add C++ namespace protection.
34648 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34650         stat-time, timespec, u64: support naive out-of-dir builds
34651         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34652         Use '#include "foo.h"', not '#include <foo.h>', when including
34653         one's own interface.  This works better when configuring with
34654         out-of-directory builds, since packages need not add an
34655         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34657 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34659         utimens: use extern-inline
34660         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34661         * lib/utimens.h: Add copyright notice, since this is now large enough
34662         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34663         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34664         * modules/utimens (Depends-on): Add extern-inline.
34666         u64: use extern-inline
34667         * lib/u64.c: New file.
34668         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34669         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34670         * modules/u64 (Files): Add lib/u64.c.
34671         (Depends-on): Add extern-inline.
34672         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34673         does that now.
34674         (lib_SOURCES): Add u64.c.
34676         timespec: use extern-inline
34677         * lib/timespec.c: New file.
34678         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34679         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34680         * modules/timespec (Files): Add lib/timespec.c.
34681         (Depends-on): Add extern-inline.
34682         (lib_SOURCES): Add timespec.c.
34684         stat-time: use extern-inline
34685         * lib/stat-time.c: New file.
34686         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34687         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34688         * modules/stat-time (Files): Add lib/stat-time.c.
34689         (Depends-on): Add extern-inline.
34690         (lib_SOURCES): Add stat-time.c.
34692         extern-inline: new module
34693         * modules/extern-inline, m4/extern-inline.m4: New files.
34694         This is for better support of 'extern inline' a la ISO C99,
34695         with a portable alternative on compilers that do not support
34696         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34697         of the Emacs executable, when compiled with debugging disabled,
34698         which is a typical way that Emacs is built while developing.
34700 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34702         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34703         * build-aux/do-release-commit-and-tag: Move variable definitions
34704         together.
34705         ($branch): Instead of defaulting to "master", default to the current
34706         branch (as gnu-web-doc-update does).
34707         (help): Display the current values of the option arguments.
34708         * top/maint.mk (release-commit): New.
34709         * top/README-release: Simplify the corresponding step.
34711 2012-07-30  Eric Blake  <eblake@redhat.com>
34713         passfd: fix comment on recvfd
34714         * lib/passfd.c (recvfd): Fix comment.
34715         Reported by Jann Horn <jannhorn@googlemail.com>.
34717 2012-07-30  Jim Meyering  <meyering@redhat.com>
34719         maint.mk: avoid a sub-shell
34720         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34722 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34724         maint.mk: use silent-rules support from Automake
34725         * top/maint.mk (news-check, vc-diff-check, announcement)
34726         (no-submodule-changes, alpha beta stable, release-prep)
34727         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34729 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34731         maint.mk: provide a web-manual-update target
34732         * top/maint.mk: here.
34733         * top/README-release: Use it to simplify the web manual update step.
34735 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34737         README-release: shorten the circuit to post a news
34738         * top/README-release: Point directly to the news submission form.
34740 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34742         gnu-web-doc-update: fix --help
34743         * build-aux/gnu-web-doc-update: The information "top level" was written
34744         twice.
34746 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34748         maint.mk: absolute VPATH issue
34749         * top/maint.mk (release-prep): Help Git find .git/.
34750         From Jim Meyering.
34752 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34754         gitlog-to-changelog: fix previous change
34755         * build-aux/gitlog-to-changelog: Fix condition.
34756         Add missing ";".
34758 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34760         gitlog-to-changelog: don't expect .git to be in $srcdir
34761         Reported by Bruno Haible.
34762         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34763         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34764         Use it.
34766 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34768         maint.mk: absolute VPATH build fix
34769         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34770         $(srcdir) is not a parent of $(builddir).
34772 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34774         clean-temp: Fix memory leak.
34775         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34776         'files' members of tmpdir.
34778 2012-07-27  Jim Meyering  <meyering@redhat.com>
34780         maint.mk: new rule: refresh-gnulib-patches
34781         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34782         Use this rule to refresh them.
34783         * top/maint.mk (refresh-gnulib-patches): New rule.
34785 2012-07-24  Bruno Haible  <bruno@clisp.org>
34787         gnulib-tool: Fix handling of inctests variable.
34788         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34789         Reported by Nick Bowler <nbowler@elliptictech.com>.
34791 2012-07-22  Bruno Haible  <bruno@clisp.org>
34793         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
34794         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
34795         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34796         Remove exemption for getpass.h.
34797         Suggested by Eric Blake.
34799 2012-07-20  Eric Blake  <eblake@redhat.com>
34801         verify: document conflict with -Wnested-externs
34802         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
34804         maint.mk: forbid exit(-1)
34805         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
34807 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34809         fsusage: port back to Solaris
34810         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
34811         error (fsd not declared) on Solaris 10.  Reported privately by
34812         Andrew Borodin.
34814 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
34816         gnu-web-doc-update: fix error messages
34817         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34819         gnu-web-doc-update: check the requirements.
34820         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34821         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34822         * build-aux/bootstrap (find_tool): Comment change.
34824 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34826         maint.mk: minor simplication.
34827         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34828         for default values.
34830 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34832         gitlog-to-changelog: VPATH build issues
34833         If builddir is not a subdirectory of srcdir, running git from it will
34834         fail.
34835         * build-aux/gitlog-to-changelog (--srcdir): New option.
34837 2012-07-15  Bruno Haible  <bruno@clisp.org>
34839         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34840         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34841         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34842         Remove exemption for fpending.h.
34843         Suggested by Eric Blake.
34845 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34847         pthread_sigmask: fix bug on FreeBSD 9
34848         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34849         Include string.h.
34850         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34851         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34852         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34853         but pthread_sigmask (1729, NULL, NULL) returns zero.
34854         See <http://bugs.gnu.org/11884>.
34855         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34856         by inspecting whether the main call changed the old mask.
34858 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34860         README-release: make it more legible
34861         * top/README-release: Improve typography slightly.
34863 2012-07-15  Jim Meyering  <meyering@redhat.com>
34865         maint: require that each sc_... command start with "@"
34866         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34867         "make sc_maint" helps us avoid this nit.
34869 2012-07-15  Jim Meyering  <meyering@redhat.com>
34871         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34872         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34874 2012-07-13  Eric Blake  <eblake@redhat.com>
34876         maint.mk: new syntax check for HAVE_DECL checks
34877         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34878         * cfg.mk
34879         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34880         Exempt some false positives.
34881         Based on a report by Karel Zak.
34883         argp: make HAVE_DECL usage consistent
34884         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34885         macros, not whether they are defined.
34886         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34887         convention with other declaration checks.
34888         Reported by Karel Zak, with suggestions from Paul Eggert.
34890         stat-time: relax license to LGPLv2+
34891         * modules/stat-time (License): Relax, with consent of all authors.
34893         strndup: fix m4 usage error
34894         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34895         defined, to either 0 or 1.
34896         Reported by Karel Zak.
34898 2012-07-11  Jim Meyering  <meyering@redhat.com>
34900         maint: enable the sc_avoid_if_before_free syntax-check rule
34901         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34902         (if_before_free_offenders_): Define.
34903         (if_before_free_basename_re_): Define.
34904         Exempt current files with useless if-before-free.
34906 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34908         gettext: do not assume '#define ... defined ...' behavior
34909         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34910         Do not use '#define FOO ... defined BAR ...', as the C standard says
34911         it's not portable to expect that this works after macro expansion.
34912         Problem reported for gzip by Steven M. Schweda in
34913         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34915 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34917         getloadavg: clean out old Emacs and Autoconf cruft
34918         See Glenn Morris in <http://bugs.gnu.org/11905>.
34919         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34920         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34921         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34922         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34924 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34926         bootstrap: let warn be like tests/init.sh's warn_
34927         Reported by Jim Meyering.
34928         * build-aux/bootstrap (warn): Remove, replaced by...
34929         (warnf_, warn_): these.
34930         Adjust callers.
34931         Shorten messages that no longer fit in 80 columns.
34933 2012-07-09  Bruno Haible  <bruno@clisp.org>
34935         getopt: Simplify after Emacs changed.
34936         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34937         (gl_GETOPT_IFELSE): Remove macro.
34939 2012-07-09  Jim Meyering  <meyering@redhat.com>
34941         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34942         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34944         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34945         Bugs in both of those conspired to make the
34946         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34947         _sc_search_regexp's handling of non-empty $in_files would filter
34948         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34949         choice of in_files value meant there would be no match in most
34950         projects, due to the presence of two or more Makefile.in files.
34951         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34952         Fix a bug in how a non-empty $$in_files was processed:
34953         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34954         in spite of the name, it's a regexp, not a list of file names.
34956 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34958         getloadavg, getopt: fix commentary re configure.in
34959         Autoconf is deprecating the name 'configure.in', so change it to
34960         to the new name 'configure.ac' in a couple of places.
34961         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34962         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34963         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34964         Emacs has renamed it to configure.ac, and it no longer refers
34965         to these macros anyway.
34967         timespec: mark functions with const attributes
34968         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34969         Mark with _GL_ATTRIBUTE_CONST.
34971 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34973         canonicalize[-lgpl]: handle "guessing" values when cross-building
34974         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34975         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34976         matches "*yes" instead of just "yes".  Regression introduced in commit
34977         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34979 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34980             Bruno Haible  <bruno@clisp.org>
34982         canonicalize: make the right guess when cross-compiling to GNU
34983         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34984         determine whether cross-compiling to glibc systems, so as to
34985         include GNU/Hurd.
34987 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34989         timespec-sub: avoid duplicate include
34990         * lib/timespec-sub.c: Do not include <config.h> twice.
34991         Reported by Juanma Barranquero.
34993 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34995         bootstrap: use a more consistent error reporting scheme
34996         * build-aux/bootstrap (warn, die): New.
34997         Use them.
34999 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35001         sys_time: allow too-wide tv_sec
35002         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
35003         timeval even if tv_sec is wider than time_t.  This allows
35004         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
35005         as without this patch gnulib replaces struct timeval
35006         and OpenBSD futimes therefore has a type mismatch.
35007         * doc/posix-headers/sys_time.texi: Mention this.
35009         pthread: check for both pthread_create and pthread_join
35010         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
35011         alter the check so that it tests for both pthread_create and
35012         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
35013         Suggested by Bruno Haible and Richard Yao in
35014         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
35016         parse-datetime: doc tuneup
35017         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
35018         spacing issues.
35020 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
35022         do-release-commit-and-tag: fix the previous commit
35023         * build-aux/do-release-commit-and-tag: Actually the test was right,
35024         but the comment and the error message were misleading.
35025         Fix comment, and improve error message.
35026         Perform check first, so that NEWS is not modified uselessly.
35028         do-release-commit-and-tag: fix typo
35029         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
35030         _not_ start with a stub.
35032 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35034         pthread: check for pthread_create, not pthread_join
35035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
35036         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
35037         pthread_join in libc.  I hope this removes the need for all the
35038         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
35039         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
35041 2012-07-04  Jim Meyering  <meyering@redhat.com>
35043         parse-datetime: fix failure to diagnose invalid input
35044         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
35045         rather than diagnosing the invalid input.  Now it reports this:
35046         date: invalid date '\260'
35047         * lib/parse-datetime.y (to_uchar): Define.
35048         (yylex): Don't sign-extend "other" bytes.
35049         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
35050         Thanks to Bruno Haible for the patch to this file.
35051         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
35052         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
35054 2012-07-03  Jim Meyering  <meyering@redhat.com>
35056         bootstrap: do not require now-removed build-aux/missing
35057         Now that build-aux/missing is, er, missing, bootstrap would
35058         silently fail.
35059         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
35060         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
35061         no longer part of gnulib.
35062         Diagnose the failure.
35064 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35066         alloca: add support for HP NonStop TNS/E native
35067         * lib/alloca.in.h (alloca): Support the new host.
35068         From a suggestion by Joachim Schmitz in
35069         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
35071 2012-07-02  Pádraig Brady  <P@draigBrady.com>
35073         fsusage: remove code not needed on non GNU/Linux systems.
35075         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35076         Don't include headers no longer needed in this case.
35077         * lib/fsusage.c [STAT_STATVFS &&
35078         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
35079         STAT_STATFS2_FRSIZE to exclude code not used in this case.
35081 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35083         fsusage: include files needed for glibc 2.6 fallback
35084         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35085         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
35086         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
35087         Problem reported by Ludovic Courtès in
35088         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
35090         fsusage: avoid needless check on GNU/Linux
35091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
35092         on GNU/Linux systems, since it can't possibly work.
35094 2012-07-01  Bruno Haible  <bruno@clisp.org>
35096         log: Fix an autoconf >= 2.64 warning.
35097         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
35098         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35100 2012-06-28  Bruno Haible  <bruno@clisp.org>
35102         log10f: Fix possible configuration problem.
35103         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
35104         $LOGF_LIBM.
35105         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35107 2012-06-28  Bruno Haible  <bruno@clisp.org>
35109         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
35110         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
35111         not gl_cv_func_unlink_works.
35112         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35114 2012-06-27  Eric Blake  <eblake@redhat.com>
35116         config: drop scripts that automake says are not independent
35117         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
35118         * build-aux/elisp-comp: Delete.
35119         * build-aux/missing: Likewise.
35120         * build-aux/ylwrap: Likewise.
35121         * modules/elisp-comp: Likewise.
35122         * MODULES.html.sh: Drop mention of elisp-comp.
35123         * NEWS: Mention this.
35125 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35127         root-uid: new module
35128         This is for portability to Tandem's NonStop Kernel.
35129         * lib/root-uid.h, modules/root-uid: New files.
35130         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
35131         * lib/write-any-file.c, tests/test-sethostname2.c:
35132         Include "root-uid.h".
35133         * lib/euidaccess.c (euidaccess):
35134         * lib/pt_chown.c (main):
35135         * lib/unlinkdir.c (cannot_unlink_dir):
35136         * lib/write-any-file.c (can_write_any_file):
35137         * m4/mknod.m4 (gl_FUNC_MKNOD):
35138         * tests/test-sethostname2.c (geteuid, main):
35139         Don't assume ROOT_UID == 0.
35140         * modules/euidaccess (Depends-on):
35141         * modules/pt_chown (Depends-on):
35142         * modules/sethostname-tests (Depends-on):
35143         * modules/unlinkdir (Depends-on):
35144         * modules/write-any-file (Depends-on):
35145         Add root-uid.
35147         regex: use locale-independent comparison for codeset name
35148         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
35149         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
35150         for codeset name.
35151         * lib/regex_internal.h: Do not include <strings.h>, since we
35152         no longer use strcasecmp.
35153         * modules/regex (Depends-on): Remove strcase.
35155 2012-06-23  Bruno Haible  <bruno@clisp.org>
35157         getopt-posix: No longer guarantee that option processing is resettable.
35158         * doc/posix-functions/getopt.texi: Drop description of problem with
35159         internal state. Fix info about mingw and msvc9.
35160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
35161         option processing by getopt(). Run three test programs instead of one.
35162         Simplify cross-compilation guess.
35163         * NEWS: Mention the change.
35164         Reported by Rich Felker <dalias@aerifal.cx>.
35166 2012-06-26  Bruno Haible  <bruno@clisp.org>
35168         argp, regex: Ensure strcasecmp gets declared.
35169         * lib/argp-help.c: Include <strings.h>.
35170         * lib/regex_internal.h: Likewise.
35171         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
35173 2012-06-24  Bruno Haible  <bruno@clisp.org>
35175         ptsname_r: Make it consistent with ptsname on AIX.
35176         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
35177         implementation as for OSF/1.
35178         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
35179         a pty master.
35181         ptsname_r: Make it consistent with ptsname on OSF/1.
35182         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35183         OSF/1.
35185 2012-06-24  Bruno Haible  <bruno@clisp.org>
35187         ttyname_r: Fix result on OSF/1, Solaris.
35188         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
35190 2012-06-24  Bruno Haible  <bruno@clisp.org>
35192         ptsname_r: Add support for Solaris.
35193         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35194         Solaris.
35196         ptsname_r: Fix test failure on native Windows.
35197         * modules/ptsname_r (Depends-on): Add isatty.
35199         ptsname_r: Fix test failures on IRIX, Solaris.
35200         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
35201         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
35202         accordingly.
35203         * lib/ptsname_r.c: Include <fcntl.h>.
35204         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
35205         set errno if fd is invalid.
35206         * tests/test-isatty.c (main): Update comments.
35208 2012-06-24  Bruno Haible  <bruno@clisp.org>
35210         ptsname test: Extend test.
35211         * tests/test-ptsname.c: Include <errno.h>.
35212         (main): Test behaviour with invalid file descriptor.
35214 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35216         time: fix obsolete comment
35217         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
35218         reference to HAVE_STRUCT_TIMESPEC in comment.
35220 2012-06-23  Bruno Haible  <bruno@clisp.org>
35222         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
35223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
35224         does not handle abbreviated long options with equivalent
35225         disambiguations, set gl_replace_getopt to yes.
35226         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
35228 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35230         time_r: fix typo that always overrode localtime_r decl
35231         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
35232         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
35233         not in a standard include.
35235 2012-06-22  Bruno Haible  <bruno@clisp.org>
35237         Write "Mac OS X" instead of "MacOS X".
35238         * README: Write "Mac OS X" instead of "MacOS X".
35239         * build-aux/bootstrap: Likewise.
35240         * build-aux/install-reloc: Likewise.
35241         * lib/acl-internal.h: Likewise.
35242         * lib/acl_entries.c: Likewise.
35243         * lib/argp-ba.c: Likewise.
35244         * lib/argp-pv.c: Likewise.
35245         * lib/config.charset: Likewise.
35246         * lib/copy-acl.c: Likewise.
35247         * lib/csharpexec.c: Likewise.
35248         * lib/euidaccess.c: Likewise.
35249         * lib/fbufmode.c: Likewise.
35250         * lib/fflush.c: Likewise.
35251         * lib/file-has-acl.c: Likewise.
35252         * lib/filemode.h: Likewise.
35253         * lib/fpurge.c: Likewise.
35254         * lib/freadable.c: Likewise.
35255         * lib/freadahead.c: Likewise.
35256         * lib/freading.c: Likewise.
35257         * lib/freadptr.c: Likewise.
35258         * lib/freadseek.c: Likewise.
35259         * lib/fseeko.c: Likewise.
35260         * lib/fseterr.c: Likewise.
35261         * lib/fsusage.c: Likewise.
35262         * lib/fwritable.c: Likewise.
35263         * lib/fwriting.c: Likewise.
35264         * lib/get-rusage-as.c: Likewise.
35265         * lib/get-rusage-data.c: Likewise.
35266         * lib/getdomainname.c: Likewise.
35267         * lib/idpriv-drop.c: Likewise.
35268         * lib/idpriv-droptemp.c: Likewise.
35269         * lib/localcharset.c: Likewise.
35270         * lib/locale.in.h: Likewise.
35271         * lib/localename.c: Likewise.
35272         * lib/mbsrtowcs-state.c: Likewise.
35273         * lib/nproc.c: Likewise.
35274         * lib/passfd.c: Likewise.
35275         * lib/posix_openpt.c: Likewise.
35276         * lib/printf-parse.c: Likewise.
35277         * lib/progreloc.c: Likewise.
35278         * lib/safe-read.h: Likewise.
35279         * lib/safe-write.h: Likewise.
35280         * lib/sched.in.h: Likewise.
35281         * lib/set-mode-acl.c: Likewise.
35282         * lib/signal.in.h: Likewise.
35283         * lib/stdint.in.h: Likewise.
35284         * lib/stdio-impl.h: Likewise.
35285         * lib/stdlib.in.h: Likewise.
35286         * lib/strtod.c: Likewise.
35287         * lib/sys_select.in.h: Likewise.
35288         * lib/tcgetsid.c: Likewise.
35289         * lib/unistd.in.h: Likewise.
35290         * lib/unlockpt.c: Likewise.
35291         * lib/vasnprintf.c: Likewise.
35292         * lib/vma-iter.c: Likewise.
35293         * lib/wcsrtombs-state.c: Likewise.
35294         * m4/acl.m4: Likewise.
35295         * m4/acosl.m4: Likewise.
35296         * m4/asinl.m4: Likewise.
35297         * m4/atanl.m4: Likewise.
35298         * m4/c-stack.m4: Likewise.
35299         * m4/cosl.m4: Likewise.
35300         * m4/expl.m4: Likewise.
35301         * m4/extensions.m4: Likewise.
35302         * m4/fdatasync.m4: Likewise.
35303         * m4/fmal.m4: Likewise.
35304         * m4/frexp.m4: Likewise.
35305         * m4/frexpf.m4: Likewise.
35306         * m4/frexpl.m4: Likewise.
35307         * m4/fsusage.m4: Likewise.
35308         * m4/getdomainname.m4: Likewise.
35309         * m4/getloadavg.m4: Likewise.
35310         * m4/getopt.m4: Likewise.
35311         * m4/gettext.m4: Likewise.
35312         * m4/gnulib-common.m4: Likewise.
35313         * m4/intdiv0.m4: Likewise.
35314         * m4/intlmacosx.m4: Likewise.
35315         * m4/largefile.m4: Likewise.
35316         * m4/ldexpl.m4: Likewise.
35317         * m4/link-follow.m4: Likewise.
35318         * m4/locale-ar.m4: Likewise.
35319         * m4/locale-fr.m4: Likewise.
35320         * m4/locale-ja.m4: Likewise.
35321         * m4/locale-tr.m4: Likewise.
35322         * m4/locale-zh.m4: Likewise.
35323         * m4/locale_h.m4: Likewise.
35324         * m4/lock.m4: Likewise.
35325         * m4/logl.m4: Likewise.
35326         * m4/mathfunc.m4: Likewise.
35327         * m4/minus-zero.m4: Likewise.
35328         * m4/mktime.m4: Likewise.
35329         * m4/mmap-anon.m4: Likewise.
35330         * m4/multiarch.m4: Likewise.
35331         * m4/nanosleep.m4: Likewise.
35332         * m4/nocrash.m4: Likewise.
35333         * m4/poll.m4: Likewise.
35334         * m4/printf-frexpl.m4: Likewise.
35335         * m4/printf.m4: Likewise.
35336         * m4/signbit.m4: Likewise.
35337         * m4/sinl.m4: Likewise.
35338         * m4/sqrtl.m4: Likewise.
35339         * m4/strerror_r.m4: Likewise.
35340         * m4/tanl.m4: Likewise.
35341         * m4/threadlib.m4: Likewise.
35342         * m4/ttyname_r.m4: Likewise.
35343         * m4/unlink.m4: Likewise.
35344         * m4/visibility.m4: Likewise.
35345         * m4/wcwidth.m4: Likewise.
35346         * tests/minus-zero.h: Likewise.
35347         * tests/test-alloca-opt.c: Likewise.
35348         * tests/test-copy-acl.sh: Likewise.
35349         * tests/test-copy-file.sh: Likewise.
35350         * tests/test-fdatasync.c: Likewise.
35351         * tests/test-file-has-acl.sh: Likewise.
35352         * tests/test-flock.c: Likewise.
35353         * tests/test-fsync.c: Likewise.
35354         * tests/test-localename.c: Likewise.
35355         * tests/test-malloca.c: Likewise.
35356         * tests/test-nonblocking-pipe.h: Likewise.
35357         * tests/test-nonblocking-socket.h: Likewise.
35358         * tests/test-openpty.c: Likewise.
35359         * tests/test-posix_openpt.c: Likewise.
35360         * tests/test-ptsname.c: Likewise.
35361         * tests/test-ptsname_r.c: Likewise.
35362         * tests/test-sameacls.c: Likewise.
35363         * tests/test-select.h: Likewise.
35364         * tests/test-set-mode-acl.sh: Likewise.
35365         * tests/test-snprintf-posix.h: Likewise.
35366         * tests/test-sprintf-posix.h: Likewise.
35367         * tests/test-strtod.c: Likewise.
35368         * tests/test-time.c: Likewise.
35369         * tests/test-vasnprintf-posix.c: Likewise.
35370         * tests/test-vasprintf-posix.c: Likewise.
35371         * doc/acl-resources.txt: Likewise.
35372         * doc/**/*.texi: Likewise.
35373         Reported by Max Horn <max@quendi.de>.
35375 2012-06-22  Bruno Haible  <bruno@clisp.org>
35377         grantpt: Relax requirement regarding invalid file descriptors.
35378         * lib/grantpt.c: Don't include <fcntl.h>.
35379         (grantpt): Don't verify the validity of the file descriptor.
35380         * modules/grantpt (Depends-on): Remove fcntl-h.
35381         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35382         file descriptors.
35383         * doc/posix-functions/grantpt.texi: Document more platforms on which
35384         grantpt succeeds for invalid file descriptors.
35385         Reported by Rich Felker <dalias@aerifal.cx>.
35387 2012-06-22  Bruno Haible  <bruno@clisp.org>
35389         fbufmode test: Don't test unportable behaviour.
35390         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35391         (main): Invoke it three times.
35392         Reported by Szabolcs Nagy <nsz@port70.net>
35393         and Rich Felker <dalias@aerifal.cx>.
35395 2012-06-21  Bruno Haible  <bruno@clisp.org>
35397         gnulib-tool: Refactor inctests variable.
35398         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35399         (func_modules_transitive_closure,
35400         func_modules_transitive_closure_separately,
35401         func_import, func_create_testdir): Update.
35403         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35404         * gnulib-tool: Accept option --without-tests.
35405         (func_usage): Document --without-tests option. Rearrange.
35406         (inctests): Normalize according to the mode.
35407         * NEWS: Mention the change.
35408         Suggested by Simon Josefsson.
35410 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35412         parse-duration test: Avoid spurious output.
35413         * tests/test-parse-duration.sh: Reindent with leading tabs.
35415 2012-06-21  Jim Meyering  <meyering@redhat.com>
35417         maint: disable the strncpy prohibition
35418         * cfg.mk: Do not prohibit strncpy here.
35420 2012-06-21  Bruno Haible  <bruno@clisp.org>
35422         nonblocking: Avoid compilation error on mingw64.
35423         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35424         fscanf.
35425         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35426         * modules/vfscanf (configure.ac): Likewise.
35427         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35428         definition only if stdio.h has prepared it.
35429         Reported by Daniel P. Berrange <berrange@redhat.com>.
35431 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35433         gnulib-tool: Use readlink if it is available.
35434         * gnulib-tool (func_readlink): Choose function more appropriately.
35436 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35438         posixtm-tests: port to buggy compiler
35439         Problem reported by Simon Josefsson in
35440         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35441         * modules/posixtm-tests (Depends-on): Add stdint.
35442         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35443         Now of type int_least64_t, not int64_t, both because that's
35444         what INT64_C returns and because int_least64_t works even
35445         on 72-bit hosts.
35446         (T): Use INT64_C on constants outside the traditional int range,
35447         to work around compiler bug noted by Simon.
35449         mktime: fix integer overflow in 'configure'-time test
35450         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35451         after integer overflow.  Problem reported by Rich Felker in
35452         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35453         Also, don't look for further instances of a bug if we've already
35454         found one instance; this helps 'configure' run faster.
35456 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35458         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35459         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35460         GetVersionEx correctly.
35461         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35463 2012-06-20  Bruno Haible  <bruno@clisp.org>
35465         fdopen: Allow implementations that don't reject invalid fd arguments.
35466         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35467         succeeds.
35468         Reported by Rich Felker <dalias@aerifal.cx>.
35470 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35472         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35473         bring in LIBINTL.
35475 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35477         init.sh: do not rely on autoupated PWD
35478         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35479         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35480         Although Nelson's bug was not necessarily fixed by this patch,
35481         it seems wise to make the change for safety.
35482         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35483         automagically after 'cd'; this is not reliable on older shells.
35484         (setup_): Fail if we cannot cd to temporary directory.
35486 2012-06-19  Bruno Haible  <bruno@clisp.org>
35488         stat, fstat: Avoid warnings on mingw64.
35489         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35490         redefining.
35491         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35492         Reported by Daniel P. Berrange <berrange@redhat.com>.
35494 2012-06-19  Bruno Haible  <bruno@clisp.org>
35496         stdioext: Add support for musl libc.
35498         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35499         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35501         * m4/fseterr.m4: New file.
35502         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35503         function exists.
35504         * modules/fseterr (Files): Add m4/fseterr.m4.
35505         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35506         __fseterr does not exist.
35507         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35509         * lib/freadable.h: Update comment.
35511         * lib/fwritable.h: Update comment.
35513         * lib/freading.h: Update comment.
35515         * lib/fwriting.h: Update comment.
35517         * m4/freadahead.m4: New file.
35518         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35519         that function exists.
35520         * modules/freadahead (Files): Add m4/freadahead.m4.
35521         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35522         __freadahead does not exist.
35523         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35525         * m4/freadptr.m4: New file.
35526         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35527         function exists.
35528         * modules/freadptr (Files): Add m4/freadptr.m4.
35529         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35530         __freadptr does not exist.
35531         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35533         * m4/freadseek.m4: New file.
35534         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35535         exists.
35536         * modules/freadseek (Files): Add m4/freadseek.m4.
35537         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35539         * lib/fpurge.c (fpurge): Update comment.
35541         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35543 2012-06-19  Bruno Haible  <bruno@clisp.org>
35545         *printf-posix: Put more info into config.log.
35546         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35547         exit code into config.log.
35549 2012-06-19  Bruno Haible  <bruno@clisp.org>
35551         getopt-gnu: Fix exit code overflow in autoconf test.
35552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35553         to keep them below < 128.
35555 2012-06-17  Jim Meyering  <meyering@redhat.com>
35557         maint.mk: fix typo in code to derive GPG key at release time
35558         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35560 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35562         regex: avoid warning when pointers are not long
35563         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35564         and uintptr_t, not long, for portability to hosts where pointers and
35565         long have different sizes.  Issue noted by Daniel P. Berrange in
35566         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35567         and fix suggested by Bruno Haible in
35568         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35570 2012-06-17  Bruno Haible  <bruno@clisp.org>
35572         dummy: Relicense into the public domain.
35573         * modules/dummy (License): Set to "public domain".
35574         Suggested by Reuben Thomas.
35576 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35578         announce-gen: VPATH issues
35579         * build-aux/announce-gen (--srcdir): New option, used to trim the
35580         $srcdir part of the path from $builddir to NEWS.
35581         * top/maint.mk (announcement): Adjust.
35583 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35585         gnu-web-doc-update: VPATH builds
35586         * build-aux/gnu-web-doc-update (--builddir): New option.
35587         Revamp the handling of options.
35588         Prefer $(...) to `...`.
35589         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35590         the template, and it is GNU mktemp specific.
35591         Prefer set -e to long series of &&.
35592         Restore the initial git branch, not "master".
35593         Properly initialize submodules (don't rely only on bootstrap).
35594         Do not reconfigure blindly, use config.status.
35595         * top/README-release: Update instructions for gnu-web-doc-update.
35597 2012-06-11  Jim Meyering  <meyering@redhat.com>
35599         maint.mk: revert most of the previous change re "all these"
35600         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35601         For rationale, see the discussion at
35602         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35604 2012-06-10  Karl Berry  <karl@gnu.org>
35606         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35608         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35610 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35612         parse-duration: Relicense under LGPLv2+.
35613         * modules/parse-duration (License): Change to LGPLv2+.
35615 2012-06-10  Jim Meyering  <meyering@redhat.com>
35617         maint.mk: prohibit common grammar error: "all these"
35618         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35619         the list of prohibited word sequences.  It should be "all of these".
35620         * lib/tempname.c (__gen_tempname): Fix one of them.
35622 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35624         do-release-commit-and-tag: support VPATH builds
35625         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35626         (noteworthy): Defined earlier to factor its value.
35627         (noteworthy_stub): New.
35628         Use it to factor.
35629         (help_version): Split into...
35630         (help, version): these.
35631         Adjust the option processing part.
35632         Support "--option=value" in addition to "--option value".
35633         (builddir): New.
35634         (--builddir): New option.
35635         * top/README-release: Document this.
35636         Reword slightly so that the reader cannot understand that he
35637         has to do these steps before calling do-release-commit-and-tag.
35639 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35641         readme-release: also require announce-gen and maintainer-makefile
35642         * modules/readme-release (Depends-on): here.
35643         * modules/announce-gen, modules/do-release-commit-and-tag,
35644         modules/gnu-web-doc-update, modules/maintainer-makefile
35645         (Description): Point to readme-release.
35647 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35649         maint.mk: fix VPATH issues.
35650         * top/maint.mk (news-check): GNU Make understand $< very well.
35651         (release-prep): NEWS is in $(srcdir).
35653 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35655         readme-release: require the promoted modules.
35656         * modules/readme-release (Depends-on): Add
35657         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35658         in this text.
35660 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35661             Bruno Haible  <bruno@clisp.org>
35663         error, strerror-override: Support mingw64 from Fedora 17.
35664         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35665         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35666         EINPROGRESS.
35667         * lib/strerror-override.h (strerror_override): Test it.
35668         * lib/strerror-override.c (strerror_override): Likewise.
35669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35671 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35672             Bruno Haible  <bruno@clisp.org>
35674         error, strerror-override: Support mingw64 from Fedora 17.
35675         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35676         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35677         * lib/strerror-override.h (strerror_override): Test it.
35678         * lib/strerror-override.c (strerror_override): Likewise.
35680 2012-06-03  Bruno Haible  <bruno@clisp.org>
35682         error, strerror-override: Support new errno values from POSIX:2008.
35683         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35684         ENOTRECOVERABLE.
35685         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35686         platforms.
35687         * lib/strerror-override.c (strerror_override): Conditionalize the
35688         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35689         * lib/strerror-override.h (strerror_override): Declare also if
35690         GNULIB_defined_EOWNERDEAD is defined.
35691         * tests/test-errno.c (e130, e131): New variables.
35692         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35693         ENOTRECOVERABLE.
35694         Reported by Paolo Bonzini.
35696 2012-05-31  Jim Meyering  <meyering@redhat.com>
35698         savewd: add missing dependency on sys_wait module
35699         * modules/savewd (Depends-on): Add sys_wait, needed at least
35700         for MSVC.  Report and suggested change by Michael Goffioul.
35702 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35704         system-quote-tests: port to CentOS 5
35705         Problem reported by Tom G. Christensen in
35706         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35707         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35709 2012-05-29  Jim Meyering  <meyering@redhat.com>
35711         maint: fix typos in comments and ChangeLog
35712         Culprits identified and fixed mostly automatically using these commands:
35713         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35714         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35715         using http://github.com/lyda/misspell-check
35716         * ChangeLog: Fix typos.
35717         * doc/solaris-versions: Likewise.
35718         * lib/regexec.c (re_search_stub): Likewise.
35719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35721 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35723         manywarnings: remove duplicate -Wmultichar entry
35724         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35725         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35726         so keep the entry marked as documented.
35728 2012-05-27  Karl Berry  <karl@gnu.org>
35730         * config/srclist.txt (mktime.c): remove last libc sync,
35731         perhaps just temporarily.
35733 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35735         regex: don't assume uint64_t or uint32_t
35736         * lib/regcomp.c (init_word_char): Don't assume that the types
35737         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35738         them, and on some 32-bit compilers there is no uint64_t.
35739         Problem reported by Gianluigi Tiesi in
35740         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35742 2012-05-25  Jim Meyering  <meyering@redhat.com>
35744         maint.mk: add strncpy-prohibiting syntax-check rule
35745         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35747 2012-05-24  Jim Meyering  <meyering@redhat.com>
35749         maint.mk: compute $(gpg_key_ID) more portably
35750         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35751         That use of sed is not portable to some fringe systems.
35752         Reported by Paul Eggert in
35753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35755 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35757         mktime: sync from glibc
35758         * config/srclist.txt: Uncomment mktime.c.
35759         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35760         First, indent with tabs, since glibc uses tabs and doesn't want to
35761         change and we'd rather be identical to glibc.  Also, two small
35762         coding changes:
35763         (isdst_differ): Use &&, not &, as && is the usual style.
35764         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35765         for clarity.
35767 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35769         announce-gen: du -h is more portable than du --human
35770         * build-aux/announce-gen (sizes): Invoke du with -h instead
35771         of --human.  Accept leading white space in its output.
35773 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35775         announce-gen: Improve diagnostics.
35776         * build-aux/announce-gen: When parsing command line options,
35777         prefer "announce-gen: option --release-type requires an argument"
35778         to "Option release-type requires an argument".
35780 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35782         maint.mk: gpg_key_ID: use sed more portably
35783         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35784         the closing brace.
35785         (refresh-po): Fuse two sed invocations into one.
35787 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35789         gitlog-to-changelog: support the log message format used in Bison.
35790         * build-aux/gitlog-to-changelog: Support --strip-tab and
35791         --strip-cherry-picked.
35793 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35795         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
35796         the rest of the current time slice to another thread in the current
35797         process. So if the thread that feeds the file decscriptor we're
35798         polling is not in the current process, we get busy-waiting.
35799         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
35800         Patch from Theodore Leblond.
35801         * lib/select.c: Split polling out of the loop that sets the output
35802         fd_sets.  Check for zero result and loop if the wait timeout is
35803         infinite.
35805 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35807         select: Fix build error on IRIX 6.5.
35808         * lib/select.c: Include stddef.h for NULL.
35810 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35812         gc: fix libgcrypt detection on older machines.
35813         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
35814         copyright years because the file has been distributed every year
35815         since it was created.
35817 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35819         crypto: fix bug in large buffer handling
35820         Problem reported by Serge Belyshev for glibc in
35821         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35822         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35823         * lib/md4.c (md4_process_block):
35824         * lib/md5.c (md5_process_block):
35825         * lib/sha1.c (sha1_process_block):
35826         * lib/sha256.c (sha256_process_block):
35827         Don't assume the buffer length is less than 2**32.
35828         * lib/sha512.c (sha512_process_block): Likewise.
35829         Here, the bug is present only in the rare case where the host does
35830         not support uint64_t or where size_t is wider than 64 bits.
35831         Use u64size to work around the problems.
35832         * lib/u64.h (u64size): New macro.
35834 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35836         fsusage: fix block size returned on older Linux 2.6
35838         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35839         which is available since Linux 2.6.
35840         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35841         when the member is available so it can be used as a fallback.
35842         * doc/posix-functions/statvfs.texi: Mention the hang issue
35843         on Linux < 2.6.36.
35845 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35847         bootstrap: suppress stderr chatter
35848         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35849         Omit unnecessary chatter to stderr.  The main program chatter
35850         was there only inadvertantly.
35852         bootstrap: .gitignore files created by autopoint, libtool
35853         I ran into this problem when bootstrapping the latest diffutils.
35854         After './bootstrap', 'git status' reported lots of untracked files
35855         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35856         autopoint and do not need to be version-controlled.
35857         * build-aux/bootstrap: Put into .gitignore the files that
35858         autopoint and libtool create, by keeping track of files that exist
35859         after but not before these programs are run.
35860         (version_controlled_file): Move up.  2nd arg is now full file
35861         name, not base name; this is more convenient.  Put CVS at the end,
35862         as it's now somewhat deprecated.
35864 2012-05-14  Jim Meyering  <meyering@redhat.com>
35866         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35867         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35868         definition.  Reported by Bruno Haible.
35870 2012-05-13  Bruno Haible  <bruno@clisp.org>
35871             Paul Eggert  <eggert@cs.ucla.edu>
35873         binary-io: Define set_binary_mode function.
35874         * lib/binary-io.h (set_binary_mode): New function.
35875         (SET_BINARY): Define in terms of set_binary_mode.
35876         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35877         * tests/test-binary-io.c (main): Accept an argument, and test either
35878         set_binary_mode or SET_BINARY depending on the argument.
35879         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35880         argument. Clean up also t-bin-out0.tmp.
35882 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35884         bootstrap: take advantage of POSIX shell features
35886         The 'bootstrap' script offered by Gnulib script already uses POSIX
35887         shell features (like $((...)) arithmetic expansions) that are not
35888         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35889         means that bootstrap must already be run using a proper POSIX shell,
35890         which will thus provide more features, like ${var#pattern} parameter
35891         expansion or inversion of a command exit status with '!'.  We can
35892         thus use these features to improve the clarity and the performances
35893         of the bootstrap script.
35895         Suggested by Eric Blake.
35897         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35898         of sed/expr plus command substitutions, to save some forks.  While
35899         we are at it, prefer the POSIX $(...) form of command substitution,
35900         rather than the legacy form `...` (since the former is visually
35901         clearer and interacts better with quoting), and prefer the idiom:
35902           "if ! CMD; then ACTION ..."
35903         over the idiom:
35904           "if CMD; then :; else ACTION ..."
35905         which was required by legacy Bourne shells not supporting '!'.
35907 2012-05-12  Bruno Haible  <bruno@clisp.org>
35909         system-quote: Add more comments.
35910         * lib/system-quote.h: Add more comments about wilcards and limitations.
35911         Suggested by Eli Zaretskii <eliz@gnu.org>.
35913         sh-quote, system-quote: Add comments about wildcards.
35914         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35915         * lib/system-quote.h: Likewise.
35916         Reported by Eli Zaretskii <eliz@gnu.org>.
35918 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35920         fsusage: check for GNU/Linux statvfs problem dynamically
35921         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35922         Define STAT_STATFS2_BSIZE too, since in this case the code now
35923         checks dynamically whether statvfs is reliable, falling back on
35924         Linux-style statfs otherwise.
35925         (statvfs_works): New function, for dynamically testing statvfs.
35926         (get_fs_usage) [STAT_STATVFS]: Use it.
35927         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35928         statvfs on GNU/Linux hosts, since it's now done dynamically.
35930 2012-05-10  Bruno Haible  <bruno@clisp.org>
35932         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35933         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35934         '?' character.
35935         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35936         * tests/test-system-quote-main.c (check_all): Check also strings like
35937         "??????????".
35938         Reported by Eli Zaretskii <eliz@gnu.org>.
35940 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35942         _Noreturn: port config.h to gcc -Wundef
35943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35944         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35945         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35947 2012-05-10  Bruno Haible  <bruno@clisp.org>
35949         system-quote: Refactor.
35950         * lib/system-quote.h (system_quote_copy): Fix comment.
35951         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35952         New functions, extracted from system_quote_copy.
35953         (system_quote_length, system_quote_copy): Use these functions.
35954         Reported by Paul Eggert.
35956 2012-05-08  Bruno Haible  <bruno@clisp.org>
35958         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35959         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35961 2012-05-08  Bruno Haible  <bruno@clisp.org>
35963         Tests for module 'system-quote'.
35964         * modules/system-quote-tests: New file.
35965         * tests/test-system-quote.sh: New file.
35966         * tests/test-system-quote-main.c: New file.
35967         * tests/test-system-quote-child.c: New file.
35969         New module 'system-quote'.
35970         * lib/system-quote.h: New file.
35971         * lib/system-quote.c: New file.
35972         * modules/system-quote: New file.
35974 2012-05-08  Bruno Haible  <bruno@clisp.org>
35976         sh-quote: Make C++ safe and allow multiple inclusion.
35977         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35978         declarations in extern "C".
35980 2012-05-08  Bruno Haible  <bruno@clisp.org>
35982         sh-quote tests: Make tests stricter.
35983         * tests/test-sh-quote.c (check_one): Check the return value of
35984         shell_quote_copy.
35985         (main): Check a string with a CR character. Check a string that
35986         contains UCHAR_MAX.
35988 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35990         warnings.m4: provide a means to specify the program to compile.
35991         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35992         (gl_WARN_ADD): here.
35993         Use gl_AS_VAR_APPEND.
35994         Support an argument to specify the program to compile.
35995         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35996         AC_SUBST the WARN_CFLAGS when they are used.
35997         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35998         leave this to gl_WARN_ADD.
36000 2012-05-08  Eric Blake  <eblake@redhat.com>
36002         doc: recommendations on gettext version
36003         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
36004         choice between versions.
36005         * DEPENDENCIES (gettext): Cover both approaches.
36007 2012-05-08  Jim Meyering  <meyering@redhat.com>
36009         init.sh: explain why EXEEXT support uses aliases rather than functions
36010         * tests/init.sh: Add a comment.
36012         init.sh: don't let bash aliases interfere with tests
36013         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
36014         is bash.  This avoids problems for those who alias standard commands to
36015         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
36016         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
36018 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36020         stdint: be more consistent with glibc, SunOS libc
36021         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
36022         (gl_int_fast16_t, gl_uint_fast16_t)
36023         (gl_int_fast32_t, gl_uint_fast32_t)
36024         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
36025         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
36026         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36027         Be consistent with glibc by default, and with SunOS 5.10 and later
36028         if __sun is defined.  This lessens the likelihood of clashes if
36029         code compiled for older hosts is combined with code compiled for
36030         newer ones.  Problem reported by Niels Möller in
36031         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
36033 2012-05-07  Eric Blake  <eblake@redhat.com>
36035         isatty: relax license to LGPLv2+
36036         * modules/isatty (License): Relax license.
36038 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36040         stat-size: comment fix
36041         * lib/stat-size.h: Remove obsolete comment about indenting.
36043 2012-05-06  Bruno Haible  <bruno@clisp.org>
36045         Tests for module 'sh-quote'.
36046         * modules/sh-quote-tests: New file.
36047         * tests/test-sh-quote.c: New file.
36049 2012-05-06  Bruno Haible  <bruno@clisp.org>
36051         sh-quote: Improve shell_quote_argv's signature.
36052         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
36053         * lib/sh-quote.c (shell_quote_argv): Likewise.
36055 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36057         stdint: document issues with int_fast8_t etc.
36058         * doc/posix-headers/stdint.texi (stdint.h): Say that other
36059         stdint.h substitutes may define these types differently.  See
36060         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
36062 2012-05-05  Bruno Haible  <bruno@clisp.org>
36064         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
36065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
36066         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
36067         or 'guessing no (mishandles large arguments)'.
36069 2012-05-05  Bruno Haible  <bruno@clisp.org>
36071         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
36072         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
36073         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36074         set gl_cv_func_link_follows_symlink to "guessing no".
36076 2012-05-05  Bruno Haible  <bruno@clisp.org>
36078         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
36079         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
36080         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
36081         "guessing no".
36082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
36084 2012-05-05  Bruno Haible  <bruno@clisp.org>
36086         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
36087         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
36088         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36089         set gl_cv_struct_dirent_d_ino to "guessing yes".
36091 2012-05-05  Bruno Haible  <bruno@clisp.org>
36093         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
36094         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
36095         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
36096         "guessing yes".
36098 2012-05-05  Bruno Haible  <bruno@clisp.org>
36100         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
36101         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
36102         compiling to a glibc system, set gl_cv_func_signbit and
36103         gl_cv_func_signbit_gcc to "guessing yes".
36105 2012-05-05  Bruno Haible  <bruno@clisp.org>
36107         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
36108         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
36109         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
36110         to "guessing yes".
36111         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
36112         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
36114 2012-05-05  Bruno Haible  <bruno@clisp.org>
36116         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
36117         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
36118         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
36119         gl_cv_func_realpath_works to "guessing yes".
36121 2012-05-05  Bruno Haible  <bruno@clisp.org>
36123         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
36124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
36125         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
36127 2012-05-04  Bruno Haible  <bruno@clisp.org>
36129         Tweak last commit.
36130         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
36131         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36133 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
36135         unistd_h: make it easier to avoid sys_types_h
36136         This is useful for Emacs, which has its own method of porting to
36137         Windows, and which therefore does not need the sys_types_h module.
36138         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
36139         code moved here from gl_SYS_TYPES_H.
36140         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
36141         using the code directly.
36142         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
36143         gl_SYS_TYPES_H.
36144         * modules/sys_types (Files):
36145         * modules/unistd (Files): Add m4/off_t.m4.
36147 2012-05-03  Bruno Haible  <bruno@clisp.org>
36149         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
36150         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
36151         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
36152         "guessing yes" or "guessing no".
36153         (gl_FUNC_LSTAT): Update.
36154         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
36155         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36156         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
36158 2012-05-03  Bruno Haible  <bruno@clisp.org>
36160         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
36161         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
36162         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
36163         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
36164         cross-compiling, choose the first alternative on glibc systems.
36165         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
36167 2012-05-03  Bruno Haible  <bruno@clisp.org>
36169         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
36170         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
36171         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
36173 2012-05-03  Bruno Haible  <bruno@clisp.org>
36175         chown: Avoid "guessing no" when cross-compiling to glibc systems.
36176         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
36178 2012-05-03  Bruno Haible  <bruno@clisp.org>
36180         Avoid "guessing no" guesses when cross-compiling to glibc systems.
36181         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
36182         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
36183         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
36184         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
36185         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
36186         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
36187         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
36188         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
36189         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
36190         compiling to glibc systems, set gl_cv_func_chown_slash_works,
36191         gl_cv_func_chown_ctime_works to "guessing yes".
36192         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
36193         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
36194         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
36195         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
36196         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
36197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
36198         compiling to glibc systems, set gl_cv_func_open_directory_works to
36199         "guessing yes".
36200         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
36201         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
36202         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
36203         "guessing yes".
36204         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
36205         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
36206         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
36207         compiling to glibc systems, set gl_cv_func_floorf_ieee to
36208         "guessing yes".
36209         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
36210         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
36211         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
36212         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
36213         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
36214         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
36215         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
36216         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
36217         "guessing yes".
36218         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
36219         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
36220         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
36221         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
36222         "guessing yes".
36223         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
36224         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
36225         "guessing yes".
36226         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
36227         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
36228         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
36229         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
36230         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
36231         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
36232         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
36233         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
36234         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
36235         compiling to glibc systems, set gl_cv_func_log10f_ieee to
36236         "guessing yes".
36237         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
36238         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
36239         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
36240         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
36241         "guessing yes".
36242         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
36243         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
36244         "guessing yes".
36245         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
36246         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
36247         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
36248         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
36249         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
36250         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
36251         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
36252         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
36253         compiling to glibc systems, set gl_cv_func_mkfifo_works to
36254         "guessing yes".
36255         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
36256         compiling to glibc systems, set gl_cv_func_mknod_works to
36257         "guessing yes".
36258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
36259         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
36260         "guessing yes".
36261         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
36262         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
36263         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
36264         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
36265         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
36266         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
36267         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
36268         compiling to glibc systems, set gl_cv_func_svid_putenv to
36269         "guessing yes".
36270         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
36271         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
36272         "guessing yes".
36273         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
36274         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
36275         "guessing yes".
36276         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
36277         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
36278         to "guessing yes".
36279         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
36280         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
36281         to "guessing yes".
36282         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
36283         compiling to glibc systems, set gl_cv_func_rmdir_works to
36284         "guessing yes".
36285         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
36286         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
36287         gl_cv_func_unlink_parent_fails to "guessing yes".
36288         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
36289         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
36290         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
36291         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
36292         gl_cv_func_rename_dest_works to "guessing yes".
36293         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
36294         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
36295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
36296         compiling to glibc systems, set gl_cv_func_roundf_ieee to
36297         "guessing yes".
36298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
36299         compiling to glibc systems, set gl_cv_func_roundl_ieee to
36300         "guessing yes".
36301         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
36302         compiling to glibc systems, set gl_cv_func_setenv_works to
36303         "guessing yes".
36304         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
36305         compiling to glibc systems, set gl_cv_func_unsetenv_works to
36306         "guessing yes".
36307         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
36308         compiling to glibc systems, set gl_cv_func_sleep_works to
36309         "guessing yes".
36310         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
36311         compiling to glibc systems, set gl_cv_func_stat_file_slash to
36312         "guessing yes".
36313         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
36314         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
36315         "guessing yes".
36316         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
36317         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
36318         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
36319         compiling to glibc systems, set gl_cv_func_truncf_ieee to
36320         "guessing yes".
36321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
36322         compiling to glibc systems, set gl_cv_func_truncl_ieee to
36323         "guessing yes".
36324         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
36325         compiling to glibc systems, set gl_cv_func_usleep_works to
36326         "guessing yes".
36327         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
36328         compiling to glibc systems, set gl_cv_func_futimesat_works to
36329         "guessing yes".
36331 2012-05-03  Bruno Haible  <bruno@clisp.org>
36333         Say "guessing yes" or "guessing no" when cross-compiling.
36334         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
36335         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
36336         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
36337         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
36338         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
36339         am_cv_func_working_getline to "guessing yes" or "guessing no".
36340         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
36341         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
36342         (gl_FUNC_MEMMEM): When cross-compiling, set
36343         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
36344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
36345         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
36346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
36347         set gl_cv_func_strcasestr_works_always to "guessing yes" or
36348         "guessing no".
36349         (gl_FUNC_STRCASESTR): When cross-compiling, set
36350         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
36351         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
36352         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
36353         (gl_FUNC_STRSTR): When cross-compiling, set
36354         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
36355         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
36356         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
36357         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
36358         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
36360 2012-05-01  Bruno Haible  <bruno@clisp.org>
36362         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
36363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
36364         * build-aux/reloc-ldflags: Likewise.
36365         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
36367 2012-05-01  Bruno Haible  <bruno@clisp.org>
36369         gnulib-tool: Remove transitional code.
36370         * gnulib-tool: Don't warn about --import with 0 arguments any more.
36371         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36373 2012-05-01  Bruno Haible  <bruno@clisp.org>
36375         getcwd: Fix misindentation.
36376         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
36378 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36380         exclude: process exclude and include directives in order
36381         This restores the pre-2009 behavior, and is part of a fix of a
36382         grep bug reported by Quentin Arce in
36383         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36384         * lib/exclude.c (struct exclude): Remove 'tail' member.
36385         (new_exclude_segment): Prepend the new segment instead of appending.
36386         Return void, since that's now more convenient.
36387         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36388         (file_name_matches): Renamed from excluded_file_name_p.
36389         (file_pattern_matches, file_name_matches):
36390         Return true if the pattern matches, not if it excludes.
36391         All callers changed.
36392         (excluded_file_name): Process the list in reverse order;
36393         since the list is now reversed this restores the pre-2009 behavior.
36394         (add_exclude): Adjust to new reversed-order list.  Use local var
36395         rather than macro, for clarity.
36396         * tests/test-exclude7.sh: Adjust to corrected behavior.
36398         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36399         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36400         it's not possible here.  Handle the case of \ at end of pattern
36401         without dumping core.
36402         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36404         _Noreturn: future-proof non-GNU and non-MSVC compilers
36405         * build-aux/snippet/_Noreturn.h (_Noreturn):
36406         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36407         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36408         C11 or later.  This is more likely to work with random future C
36409         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36410         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36412         exclude: handle wildcards with FNM_EXTMATCH
36413         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36414         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36415         comment that "has wildcards" really means "has or may have
36416         wildcards".  Simplify by avoiding the need to call strcspn.
36418 2012-04-29  Bruno Haible  <bruno@clisp.org>
36420         gnulib-tool: Fix list of authors.
36421         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36423 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36425         bootstrap: support Automake-NG in $buildreq
36426         * bootstrap (check_versions): Handle automake and aclocal from
36427         Automake-NG specially.  They can be specified as respectively
36428         the "automake-ng" and "aclocal-ng" requirements.
36430 2012-04-25  Eric Blake  <eblake@redhat.com>
36432         bootstrap: only force latest Makefile.in.in for gettext module
36433         * build-aux/bootstrap (with_gettext): Only install latest
36434         Makefile.in.in for projects requesting bleeding edge gettext.
36436 2012-04-22  Bruno Haible  <bruno@clisp.org>
36438         doc: Mention reason for replacement on glibc/Linux systems.
36439         * doc/posix-functions/dprintf.texi: Mention the problem with special
36440         'long double' values.
36441         * doc/posix-functions/fprintf.texi: Likewise.
36442         * doc/posix-functions/printf.texi: Likewise.
36443         * doc/posix-functions/snprintf.texi: Likewise.
36444         * doc/posix-functions/sprintf.texi: Likewise.
36445         * doc/posix-functions/vdprintf.texi: Likewise.
36446         * doc/posix-functions/vfprintf.texi: Likewise.
36447         * doc/posix-functions/vprintf.texi: Likewise.
36448         * doc/posix-functions/vsnprintf.texi: Likewise.
36449         * doc/posix-functions/vsprintf.texi: Likewise.
36450         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36451         platforms with F_DUPFD_CLOEXEC problems.
36452         * doc/posix-functions/glob.texi: Mention which platforms are affected
36453         by the problem with symbolic links.
36454         * doc/posix-functions/linkat.texi: Mention the problem with
36455         AT_SYMLINK_FOLLOW on Linux.
36457 2012-04-22  Bruno Haible  <bruno@clisp.org>
36459         pwrite: Don't replace on all platforms.
36460         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36462 2012-04-22  Bruno Haible  <bruno@clisp.org>
36464         rint* tests: Avoid gcc warnings.
36465         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36466         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36467         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36469 2012-04-21  Bruno Haible  <bruno@clisp.org>
36471         users.txt: Update.
36472         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36473         switched from CVS to git, bzr, or svn.
36475 2012-04-21  Bruno Haible  <bruno@clisp.org>
36477         Large File Support for native Windows platforms.
36479         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36480         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36482         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36483         type.
36484         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36485         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36486         * doc/posix-headers/sys_types.texi: Mention the effect of the
36487         'largefile' module.
36489         * lib/fcntl.in.h: Add comments about off_t.
36490         * modules/fcntl-h (Depends-on): Add sys_types.
36492         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36493         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36494         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36495         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36496         * modules/unistd (Depends-on): Add sys_types.
36497         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36499         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36500         instead of lseek.
36501         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36502         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36503         * modules/lseek (Depends-on): Add sys_types.
36505         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36506         msvc-nothrow.h.
36507         (SetFileSize): New function.
36508         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36509         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36510         if Large File Support is requested.
36511         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36512         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36514         * lib/stdio.in.h: Add comments about off_t.
36515         * modules/stdio (Depends-on): Add sys_types.
36517         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36518         instead of ftello.
36519         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36520         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36521         (gl_PREREQ_FTELLO): New macro.
36522         * modules/ftello (Depends-on): Add sys_types.
36523         (configure.ac): Incoke gl_PREREQ_FTELLO.
36525         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36526         instead of fseeko.
36527         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36528         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36529         (gl_PREREQ_FSEEKO): New macro.
36530         * modules/fseeko (Depends-on): Add sys_types.
36531         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36533         * lib/sys_stat.in.h: Add comments about off_t.
36534         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36535         64-bit integer for st_size in 'struct stat'.
36536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36537         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36538         * modules/sys_stat (Depends-on): Add sys_types.
36539         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36541         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36542         instead of stat or _stat.
36544         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36545         'struct _stati64' instead of fstat and 'struct stat'.
36546         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36547         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36549         Reported by Ray Satiro <raysatiro@yahoo.com>.
36551 2012-04-19  Eric Blake  <eblake@redhat.com>
36553         bootstrap: accommodate older libtool
36554         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36555         Reported by Daniel P. Berrange.
36557 2012-04-19  Jim Meyering  <meyering@redhat.com>
36559         announce-gen: avoid failure due to lack of Digest::SHA1
36560         Even with the preferred Digest::SHA available, this script
36561         would fail when the backup module, Digest::SHA1, was not installed.
36562         * build-aux/announce-gen: Quote the conditional use of "use".
36563         Reported by Reuben Thomas in:
36564         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36566         bootstrap: don't let a user's CDPATH setting affect this script
36567         When CDPATH is set, cd will sometimes generate output.
36568         When "cd" is run in a subshell whose output matters, that
36569         surprising-to-some output can cause malfunction.
36570         Unsetting CDPATH turns off this shell "feature."
36571         * build-aux/bootstrap (CDPATH): Unset.
36572         Reported by Reuben Thomas in:
36573         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36574         and inspired by his patch here:
36575         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36577 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36578         and Jim Meyering  <meyering@redhat.com>
36580         maint.mk: catch "see @xref{}" and similar
36581         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36582         prohibit "See also @xref{", "Also see @pxref{", and similar.
36584 2012-04-16  Jim Meyering  <meyering@redhat.com>
36586         bootstrap: really use gnulib's po/Makefile.in.in
36587         * build-aux/bootstrap: Correct the source file name in previous change.
36588         Reported by Akim Demaille.
36590         configmake: correct minor inconsistency in Makefile rule
36591         * modules/configmake (Makefile.am): All other rules like this one
36592         run the final "mv -f ..." in the same backslash-continued command
36593         as the one that does everything else.  This one put the mv -f ...
36594         command on a separate, non-backslash-continued line.
36595         Make it like the others.
36597         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36598         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36599         the one from gettext.  Reported by Akim Demaille.
36601 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36603         Fix recursion of install-* into po directories.
36604         Bison's install-pdf bug reported by Hans Aberg at
36605         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36606         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36607         (install-info, install-pdf, install-ps): New targets.
36609 2012-04-16  Jim Meyering  <meyering@redhat.com>
36611         maint: avoid spurious "make sc_maint" failure
36612         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36613         exempt all *.class file names, for lib/javaversion.class.
36615 2012-04-15  Bruno Haible  <bruno@clisp.org>
36617         lseek: Make configure test independent of environment.
36618         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36619         Windows, we know that lseek() on pipes is broken; skip the runtime
36620         test.
36622 2012-04-14  Bruno Haible  <bruno@clisp.org>
36624         stat: Bypass buggy override in mingw64.
36625         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36626         * lib/stat.c (stat) [mingw64]: Define to _stat.
36627         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36629 2012-04-14  Bruno Haible  <bruno@clisp.org>
36631         pathmax: Fix compilation error on MSVC 9.
36632         * modules/pathmax (Depends-on): Add unistd.
36634 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36636         README: document pointer comparison assumption
36637         * README (Portability guidelines): Document assumption about
36638         pointer comparisons, in response to a recent bug-gnulib comment by
36639         Jeffrey Kegler.
36641 2012-04-12  Bruno Haible  <bruno@clisp.org>
36643         Tests for module 'getrusage'.
36644         * modules/getrusage-tests: New file.
36645         * tests/test-getrusage.c: New file.
36647         New module 'getrusage'.
36648         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36649         warn-on-use.h.
36650         (getrusage): New declaration.
36651         * lib/getrusage.c: New file.
36652         * m4/getrusage.m4: New file.
36653         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36654         is declared.
36655         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36656         HAVE_GETRUSAGE.
36657         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36658         snippet/c++defs, snippet/warn-on-use.
36659         (Makefile.am): Update generation of sys/resource.h. Substitute
36660         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36661         * modules/getrusage: New file.
36662         * doc/posix-functions/getrusage.texi: Mention the new module.
36664 2012-04-12  Bruno Haible  <bruno@clisp.org>
36666         Tests for module 'sys_resource'.
36667         * modules/sys_resource-tests: New file.
36668         * tests/test-sys_resource.c: New file.
36670         New module 'sys_resource'.
36671         * lib/sys_resource.in.h: New file.
36672         * m4/sys_resource_h.m4: New file.
36673         * modules/sys_resource: New file.
36674         * doc/posix-headers/sys_resource.texi: Mention the new module.
36676 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36678         ioctl: Fix compilation error on mingw.
36679         * lib/ioctl.c: Include <windows.h>.
36680         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36682 2012-04-04  Jim Meyering  <meyering@redhat.com>
36684         regex: correct #pragma guard expression
36685         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36686         not 4.3.  Correct its cpp guard expression.
36688 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36690         regex: remove unnecessary type punning
36691         Problem reported by Vladimir Serbinenko in
36692         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36693         * lib/regex.h (struct re_pattern_buffer): Change the type of
36694         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36695         Fix comment to match code.
36696         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36697         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36698         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36699         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36700         (set_regs):
36701         Omit no-longer-necessary casts.
36703 2012-04-03  Bruno Haible  <bruno@clisp.org>
36705         Tests for module 'ilogbl'.
36706         * modules/ilogbl-tests: New file.
36707         * tests/test-ilogbl.c: New file.
36709         New module 'ilogbl'.
36710         * lib/math.in.h (ilogbl): New declaration.
36711         * lib/ilogbl.c: New file.
36712         * m4/ilogbl.m4: New file.
36713         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36715         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36716         Split sed invocation, to avoid the limit of 100 substitutions of
36717         HP-UX 'sed'.
36718         * modules/ilogbl: New file.
36719         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36720         * doc/posix-functions/ilogbl.texi: Mention the new module.
36722 2012-04-03  Bruno Haible  <bruno@clisp.org>
36724         Tests for module 'ilogbf'.
36725         * modules/ilogbf-tests: New file.
36726         * tests/test-ilogbf.c: New file.
36728         New module 'ilogbf'.
36729         * lib/math.in.h (ilogbf): New declaration.
36730         * lib/ilogbf.c: New file.
36731         * m4/ilogbf.m4: New file.
36732         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36734         REPLACE_ILOGBF.
36735         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36736         REPLACE_ILOGBF.
36737         * modules/ilogbf: New file.
36738         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36739         * doc/posix-functions/ilogbf.texi: Mention the new module.
36741 2012-04-03  Bruno Haible  <bruno@clisp.org>
36743         Tests for module 'ilogb'.
36744         * modules/ilogb-tests: New file.
36745         * tests/test-ilogb.c: New file.
36746         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36747         tests/test-logb-ieee.h.
36749         New module 'ilogb'.
36750         * lib/math.in.h (ilogb): New declaration.
36751         * lib/ilogb.c: New file.
36752         * m4/ilogb.m4: New file.
36753         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36755         REPLACE_ILOGB.
36756         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36757         REPLACE_ILOGB.
36758         * modules/ilogb: New file.
36759         * tests/test-math-c++.cc: Check the declaration of ilogb.
36760         * doc/posix-functions/ilogb.texi: Mention the new module.
36762 2012-04-03  Bruno Haible  <bruno@clisp.org>
36764         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36765         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36766         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36767         (main): Check their values.
36768         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36769         problem.
36771 2012-04-03  Bruno Haible  <bruno@clisp.org>
36773         Tests for module 'logbl-ieee'.
36774         * modules/logbl-ieee-tests: New file.
36775         * tests/test-logbl-ieee.c: New file.
36777         New module 'logbl-ieee'.
36778         * modules/logbl-ieee: New file.
36780         Tests for module 'logb-ieee'.
36781         * modules/logb-ieee-tests: New file.
36782         * tests/test-logb-ieee.c: New file.
36784         New module 'logb-ieee'.
36785         * modules/logb-ieee: New file.
36787         Tests for module 'logbf-ieee'.
36788         * modules/logbf-ieee-tests: New file.
36789         * tests/test-logbf-ieee.c: New file.
36790         * tests/test-logb-ieee.h: New file.
36792         New module 'logbf-ieee'.
36793         * modules/logbf-ieee: New file.
36795 2012-04-03  Bruno Haible  <bruno@clisp.org>
36797         Tests for module 'logbl'.
36798         * modules/logbl-tests: New file.
36799         * tests/test-logbl.c: New file.
36801         New module 'logbl'.
36802         * lib/math.in.h (logbl): New declaration.
36803         * lib/logbl.c: New file.
36804         * m4/logbl.m4: New file.
36805         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
36806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
36807         REPLACE_LOGBL.
36808         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
36809         REPLACE_LOGBL.
36810         * modules/logbl: New file.
36811         * tests/test-math-c++.cc: Check the declaration of logbl.
36812         * doc/posix-functions/logbl.texi: Mention the new module.
36814 2012-04-02  Bruno Haible  <bruno@clisp.org>
36816         Tests for module 'logbf'.
36817         * modules/logbf-tests: New file.
36818         * tests/test-logbf.c: New file.
36820         New module 'logbf'.
36821         * lib/math.in.h (logbf): New declaration.
36822         * lib/logbf.c: New file.
36823         * m4/logbf.m4: New file.
36824         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36826         REPLACE_LOGBF.
36827         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36828         REPLACE_LOGBF.
36829         * modules/logbf: New file.
36830         * tests/test-math-c++.cc: Check the declaration of logbf.
36831         * doc/posix-functions/logbf.texi: Mention the new module.
36833 2012-04-02  Bruno Haible  <bruno@clisp.org>
36835         logb tests: More tests.
36836         * tests/test-logb.h: New file, based on tests/test-logb.c and
36837         tests/test-frexp.h.
36838         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36839         (main): Just invoke test_function.
36840         * modules/logb-tests (Files): Add tests/test-logb.h,
36841         tests/minus-zero.h, tests/randomd.c.
36842         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36844         logb: Provide replacement and workarounds.
36845         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36846         is 1.
36847         * lib/logb.c: New file.
36848         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36849         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36851         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36852         * modules/logb (Files): Add lib/logb.c.
36853         (Depends-on): Add isfinite, frexp, isnand.
36854         (configure.ac): Compile the replacement code logb.c if needed.
36855         * tests/test-math-c++.cc: Check the declaration of logb.
36856         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36857         with subnormal numbers.
36859 2012-04-02  Bruno Haible  <bruno@clisp.org>
36861         log10* tests: Speed up.
36862         * tests/test-log10.h (test_function): Reduce amount of random numbers
36863         to test.
36865 2012-04-01  Bruno Haible  <bruno@clisp.org>
36867         logf-ieee: Fix test whether logf works.
36868         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36870 2012-04-01  Bruno Haible  <bruno@clisp.org>
36872         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36873         * lib/log10l.c: Include <float.h>
36874         (log10l): On IRIX, normalize the +Infinity value.
36875         * modules/log10l (Depends-on): Add 'float'.
36876         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36877         +Infinity.
36879         log10f-ieee: Work around test failure on NetBSD 5.1.
36880         * m4/log10f-ieee.m4: New file.
36881         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36882         test whether log10f works with a negative argument. Replace it if not.
36883         * lib/log10f.c (log10f): For negative arguments, return NaN.
36884         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36885         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36886         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36888         log10f-ieee: Work around test failure on Solaris 9.
36889         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36890         (configure.ac): Require gl_FUNC_LOG10F.
36892         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36893         * m4/log10-ieee.m4: New file.
36894         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36895         whether log10 works with a negative argument. Replace it if not.
36896         * lib/log10.c (log10): For negative arguments, return NaN.
36897         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36898         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36899         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36901         Tests for module 'log10l-ieee'.
36902         * modules/log10l-ieee-tests: New file.
36903         * tests/test-log10l-ieee.c: New file.
36905         New module 'log10l-ieee'.
36906         * modules/log10l-ieee: New file.
36908         Tests for module 'log10-ieee'.
36909         * modules/log10-ieee-tests: New file.
36910         * tests/test-log10-ieee.c: New file.
36912         New module 'log10-ieee'.
36913         * modules/log10-ieee: New file.
36915         Tests for module 'log10f-ieee'.
36916         * modules/log10f-ieee-tests: New file.
36917         * tests/test-log10f-ieee.c: New file.
36918         * tests/test-log10-ieee.h: New file.
36920         New module 'log10f-ieee'.
36921         * modules/log10f-ieee: New file.
36923 2012-04-01  Bruno Haible  <bruno@clisp.org>
36925         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36926         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36927         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36928         workaround.
36929         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36930         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36932         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36933         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36934         (Depends-on): Update conditions.
36935         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36936         IRIX 6.5, OSF/1 5.1 problems.
36938 2012-04-01  Bruno Haible  <bruno@clisp.org>
36940         log10f: Work around OSF/1 5.1 bug.
36941         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36942         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36943         workaround.
36944         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36945         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36947         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36948         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36949         (Depends-on): Update conditions.
36950         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36952 2012-04-01  Bruno Haible  <bruno@clisp.org>
36954         log10: Work around OSF/1 5.1 bug.
36955         * lib/math.in.h (log10): New declaration.
36956         * lib/log10.c: New file.
36957         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36958         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36959         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36961         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36962         * modules/log10 (Files): Add lib/log10.c.
36963         (Depends-on): Add math.
36964         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36965         * tests/test-math-c++.cc: Check the declaration of log10.
36966         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36968 2012-03-31  Bruno Haible  <bruno@clisp.org>
36970         log10l tests: More tests.
36971         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36972         tests/minus-zero.h, tests/randoml.c.
36973         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36974         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36975         (main): Invoke test_function.
36977         log10f tests: More tests.
36978         * modules/log10f-tests (Files): Add tests/test-log10.h,
36979         tests/minus-zero.h, tests/randomf.c.
36980         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36981         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36982         (main): Invoke test_function.
36984         log10 tests: More tests.
36985         * tests/test-log10.h: New file.
36986         * modules/log10-tests (Files): Add tests/test-log10.h,
36987         tests/minus-zero.h, tests/randomd.c.
36988         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36989         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36990         (main): Invoke test_function.
36992 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36994         fflush: Fix syntax error.
36995         * lib/fflush.c: Include unused-parameter.h, needed for
36996         _GL_UNUSED_PARAMETER.
36997         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36999 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37001         regex: pacify GCC when compiling GRUB
37002         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
37003         a diagnostic.  Reported by Vladimir Serbinenko in
37004         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
37006 2012-03-29  Eric Blake  <eblake@redhat.com>
37008         stdio: don't assume gets any more
37009         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
37010         support.
37011         * modules/stdio (Makefile.am): Likewise.
37012         * lib/stdio-read.c (gets): Likewise.
37013         * tests/test-stdio-c++.cc: Likewise.
37014         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
37015         * lib/stdio.in.h (gets): Make warning occur in more places.
37016         * doc/posix-functions/gets.texi (gets): Update documentation.
37017         Reported by Christer Solskogen.
37019         maint.mk: fix syntax checks without exclusions
37020         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
37021         Reported by Daniel P. Berrange.
37023         strerror_r: avoid compiler warning
37024         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
37025         level.
37027         fflush: avoid compiler warning
37028         * lib/fflush.c (update_fpos_cache): Mark variables that are
37029         potentially unused.
37031 2012-03-25  Bruno Haible  <bruno@clisp.org>
37033         Tests for module 'localeconv'.
37034         * modules/localeconv-tests: New file.
37035         * tests/test-localeconv.c: New file.
37037         New module 'localeconv'.
37038         * lib/locale.in.h (localeconv): New declaration.
37039         * lib/localeconv.c: New file.
37040         * m4/localeconv.m4: New file.
37041         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
37042         REPLACE_LOCALECONV.
37043         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
37044         REPLACE_LOCALECONV.
37045         * modules/localeconv: New file.
37046         * modules/nl_langinfo (Depends-on): Add localeconv.
37047         * modules/human (Depends-on): Likewise.
37048         * doc/posix-functions/localeconv.texi: Mention the new module.
37050 2012-03-25  Bruno Haible  <bruno@clisp.org>
37052         locale: Provide a complete 'struct lconv'.
37053         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37054         'struct lconv' does not contain int_p_cs_precedes.
37055         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37056         * doc/posix-headers/locale.texi: Update.
37058         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
37059         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
37060         * doc/posix-headers/locale.texi: Update.
37062         locale: Provide a working 'struct lconv'.
37063         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
37064         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37065         'struct lconv' does not even contain decimal_point.
37066         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
37067         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
37068         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37069         * doc/posix-headers/locale.texi: Mention the problems with
37070         'struct lconv'.
37071         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
37073 2012-03-24  Bruno Haible  <bruno@clisp.org>
37075         Enable common subexpression optimization in GCC.
37076         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
37077         macros.
37078         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
37079         GCC attribute 'const'.
37080         (uc_locale_language): Declare with GCC attribute 'pure'.
37081         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
37082         with GCC attribute 'const'.
37083         * lib/unictype.in.h (uc_is_general_category_withtable,
37084         uc_combining_class, uc_combining_class_name,
37085         uc_combining_class_long_name, uc_bidi_class_name,
37086         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
37087         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
37088         uc_decimal_value, uc_digit_value, uc_numeric_value,
37089         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
37090         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
37091         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
37092         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
37093         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
37094         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
37095         Declare with GCC attribute 'const'.
37096         (uc_general_category_name, uc_general_category_long_name,
37097         uc_general_category_byname, uc_general_category,
37098         uc_is_general_category, uc_combining_class_byname,
37099         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
37100         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
37101         Declare with GCC attribute 'pure'.
37102         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
37103         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
37104         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
37105         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
37106         with GCC attribute 'pure'.
37107         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
37108         'const'.
37109         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
37110         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
37111         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
37112         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
37113         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
37114         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
37115         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
37116         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
37117         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
37118         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
37119         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
37120         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
37121         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
37122         GCC attribute 'pure'.
37123         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
37124         'const'.
37125         * lib/uniwidth.in.h (uc_width): Simplify declaration.
37126         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
37127         u32_strwidth): Declare with GCC attribute 'pure'.
37129         Enable common subexpression optimization in GCC.
37130         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37131         (alphasort): Declare with GCC attribute 'pure'.
37132         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37133         (atoll): Declare with GCC attribute 'pure'.
37134         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37135         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37136         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
37137         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37138         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
37139         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
37140         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
37142 2012-03-24  Bruno Haible  <bruno@clisp.org>
37144         gnulib-tool: Avoid unintended error output from 'cmp'.
37145         * gnulib-tool (func_add_file, func_update_file, func_import): Use
37146         "cmp -s", not "cmp > /dev/null".
37148 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
37150         gnulib-tool: fix imprecise comments w.r.t. an automake bug
37152         It's not just Automake versions < 1.9b that creates an empty
37153         pkgdatadir at installation time if pkgdata_DATA is specified
37154         to empty; modern automake versions do this as well, at least
37155         until automake 1.11.4 (not yet released at the moment of writing,
37156         but soon to appear).  That behaviour was generally considered a
37157         feature rather than a bug, at least until this discussion:
37158         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
37160         See also automake bugs #10997 and #11030.
37162         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
37163         reference to relevant automake bug numbers.
37164         (func_emit_tests_Makefile_am): Likewise.
37166 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37168         announce-gen: use Digest::SHA when possible
37169         * build-aux/announce-gen: Use Digest::SHA when possible, falling
37170         back to Digest::SHA1 if necessary.
37172 2012-03-20  Jim Meyering  <meyering@redhat.com>
37174         tests: avoid gcc warnings about argv vs. const initializers
37175         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
37176         warnings about discarding 'const' qualifier from pointer target type.
37177         * tests/test-posix_spawn2.c (main): Likewise.
37179 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37181         README-release: simplify slightly
37182         * top/README-release: Run "git checkout master" only once.
37184 2012-03-15  Mark Wielaard  <mark@klomp.org>
37186         git-merge-changelog: add specific example on how to use with hg.
37187         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
37189 2012-03-18  Mark Wielaard  <mark@klomp.org>
37191         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
37193 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
37195         git-version-gen: don't let "prefix" envvar cause trouble
37196         * build-aux/git-version-gen (prefix): Initialize properly,
37197         so as not to use a value specified via the environment.
37198         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
37200 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37202         regex: diagnose too-large repeat counts in EREs
37203         Previously, the code did not diagnose the too-large repeat count
37204         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
37205         as if it were 'b\{1000000000}', which is unexpected.
37206         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
37207         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
37208         is a reasonable one for this problem.  Another option would be to
37209         create a new REG_OVERFLOW error for repeat counts that are too large.
37210         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
37211         count is too large, so that the caller can distinguish the two cases.
37212         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
37213         "Too large" return code, and that repeat counts are one example of this.
37215 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37217         doc: some glibc x32 integer width issues
37218         * doc/posix-headers/sys_types.texi (sys/types.h):
37219         * doc/posix-headers/time.texi (time.h):
37220         Mention that glibc x32 does not conform to POSIX in a couple of
37221         areas related to integer widths.
37223 2012-03-15  Bruno Haible  <bruno@clisp.org>
37225         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
37226         * lib/fma.c (VOLATILE): New macro.
37227         (FUNC): Use it to work around a GCC compiler bug.
37229 2012-03-13  Bruno Haible  <bruno@clisp.org>
37231         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37232         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
37233         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
37234         REPLACE_HYPOTL to 1.
37235         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
37237 2012-03-13  Bruno Haible  <bruno@clisp.org>
37239         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37240         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
37241         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
37242         REPLACE_REMAINDERL to 1.
37243         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
37244         bug.
37246 2012-03-13  Bruno Haible  <bruno@clisp.org>
37248         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37249         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
37250         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
37251         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
37252         too big rounding errors.
37253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
37254         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
37255         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
37256         (Depends-on): Update conditions.
37257         * tests/test-sqrtl.c (my_ldexpl): New function.
37258         (main): Add test of a particular value.
37259         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37261 2012-03-13  Pádraig Brady  <P@draigBrady.com>
37263         doc: Update timer_* platform portability notes.
37264         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
37265         that always return ENOSYS.
37266         * doc/posix-functions/timer_delete.texi: Likewise.
37267         * doc/posix-functions/timer_gettime.texi: Likewise.
37268         * doc/posix-functions/timer_settime.texi: Likewise.
37270 2012-03-13  Bruno Haible  <bruno@clisp.org>
37272         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37273         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
37274         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
37275         REPLACE_CBRTL to 1.
37276         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37278 2012-03-13  Bruno Haible  <bruno@clisp.org>
37280         remainderl: Avoid compilation error on AIX >= 5.2.
37281         * lib/math.in.h (remainderl): Undefine macro from the system header.
37283 2012-03-13  Bruno Haible  <bruno@clisp.org>
37285         Avoid compilation errors with MSVC option -fp:strict.
37286         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
37287         * lib/cbrtf.c: Likewise.
37288         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37290 2012-03-12  Bruno Haible  <bruno@clisp.org>
37292         uninorm: Don't crash in out-of-memory conditions.
37293         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
37294         gracefully.
37295         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
37296         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
37298 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
37300         quote: fix syntax-check
37301         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
37302         also exports quote_quoting_options.
37304 2012-03-12  Simon Josefsson  <simon@josefsson.org>
37306         Collapse list of copyright years to ranges.  See
37307         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
37308         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
37309         build-aux/csharpexec.sh.in, build-aux/gnupload,
37310         build-aux/install-reloc, build-aux/javacomp.sh.in,
37311         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
37312         build-aux/move-if-change, build-aux/reloc-ldflags,
37313         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
37315 2012-03-11  Bruno Haible  <bruno@clisp.org>
37317         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37318         * m4/log2f-ieee.m4: New file.
37319         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
37320         whether log2f works with a minus zero argument. Replace it if not.
37321         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
37322         (Depends-on): Add log2-ieee.
37323         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
37324         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
37326         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37327         * m4/log2-ieee.m4: New file.
37328         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
37329         whether log2 works with a minus zero argument. Replace it if not.
37330         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
37331         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
37332         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
37334         Tests for module 'log2l-ieee'.
37335         * modules/log2l-ieee-tests: New file.
37336         * tests/test-log2l-ieee.c: New file.
37338         New module 'log2l-ieee'.
37339         * modules/log2l-ieee: New file.
37341         Tests for module 'log2-ieee'.
37342         * modules/log2-ieee-tests: New file.
37343         * tests/test-log2-ieee.c: New file.
37345         New module 'log2-ieee'.
37346         * modules/log2-ieee: New file.
37348         Tests for module 'log2f-ieee'.
37349         * modules/log2f-ieee-tests: New file.
37350         * tests/test-log2f-ieee.c: New file.
37351         * tests/test-log2-ieee.h: New file.
37353         New module 'log2f-ieee'.
37354         * modules/log2f-ieee: New file.
37356 2012-03-11  Bruno Haible  <bruno@clisp.org>
37358         Tests for module 'log2l'.
37359         * modules/log2l-tests: New file.
37360         * tests/test-log2l.c: New file.
37362         New module 'log2l'.
37363         * lib/math.in.h (log2l): New declaration.
37364         * lib/log2l.c: New file.
37365         * m4/log2l.m4: New file.
37366         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
37367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
37368         REPLACE_LOG2L.
37369         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
37370         REPLACE_LOG2L.
37371         * modules/log2l: New file.
37372         * tests/test-math-c++.cc: Check the declaration of log2l.
37373         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
37374         and OSF/1 problems.
37376 2012-03-11  Bruno Haible  <bruno@clisp.org>
37378         Tests for module 'log2f'.
37379         * modules/log2f-tests: New file.
37380         * tests/test-log2f.c: New file.
37382         New module 'log2f'.
37383         * lib/math.in.h (log2f): New declaration.
37384         * lib/log2f.c: New file.
37385         * m4/log2f.m4: New file.
37386         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37388         REPLACE_LOG2F.
37389         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37390         REPLACE_LOG2F.
37391         * modules/log2f: New file.
37392         * tests/test-math-c++.cc: Check the declaration of log2f.
37393         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37394         and OSF/1 and Cygwin problems.
37396 2012-03-11  Bruno Haible  <bruno@clisp.org>
37398         Tests for module 'log2'.
37399         * modules/log2-tests: New file.
37400         * tests/test-log2.c: New file.
37401         * tests/test-log2.h: New file.
37403         New module 'log2'.
37404         * lib/math.in.h (log2): New declaration.
37405         * lib/log2.c: New file.
37406         * m4/log2.m4: New file.
37407         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37409         REPLACE_LOG2.
37410         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37411         REPLACE_LOG2.
37412         * modules/log2: New file.
37413         * tests/test-math-c++.cc: Check the declaration of log2.
37414         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37415         and OSF/1 and Cygwin problems.
37417 2012-03-11  Bruno Haible  <bruno@clisp.org>
37419         exp2* tests: More tests.
37420         * tests/test-exp2.h (test_function): Test all integral arguments that
37421         don't need to overflow or denormalized numbers.
37422         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37423         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37424         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37426 2012-03-10  Bruno Haible  <bruno@clisp.org>
37428         log1pl-ieee: Work around test failure on AIX 7.1.
37429         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37431         log1pl-ieee: Work around test failure on IRIX 6.5.
37432         * m4/log1pl-ieee.m4: New file.
37433         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37434         test whether log1pl works with a minus zero argument. Replace it if
37435         not.
37436         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37438         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37439         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37440         (Depends-on): Update conditions.
37441         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37442         m4/signbit.m4.
37443         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37444         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37446         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37447         * m4/log1pf-ieee.m4: New file.
37448         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37449         test whether log1pf works with a minus zero argument. Replace it if
37450         not.
37451         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37452         m4/signbit.m4.
37453         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37454         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37456         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37457         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37458         (configure.ac): Require gl_FUNC_LOG1PF.
37460         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37461         * m4/log1p-ieee.m4: New file.
37462         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37463         whether log1p works with a minus zero argument. Replace it if not.
37464         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37466         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37467         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37468         (Depends-on): Update conditions.
37469         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37470         m4/signbit.m4.
37471         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37472         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37474         Tests for module 'log1pl-ieee'.
37475         * modules/log1pl-ieee-tests: New file.
37476         * tests/test-log1pl-ieee.c: New file.
37478         New module 'log1pl-ieee'.
37479         * modules/log1pl-ieee: New file.
37481         Tests for module 'log1p-ieee'.
37482         * modules/log1p-ieee-tests: New file.
37483         * tests/test-log1p-ieee.c: New file.
37485         New module 'log1p-ieee'.
37486         * modules/log1p-ieee: New file.
37488         Tests for module 'log1pf-ieee'.
37489         * modules/log1pf-ieee-tests: New file.
37490         * tests/test-log1pf-ieee.c: New file.
37491         * tests/test-log1p-ieee.h: New file.
37493         New module 'log1pf-ieee'.
37494         * modules/log1pf-ieee: New file.
37496 2012-03-10  Bruno Haible  <bruno@clisp.org>
37498         Tests for module 'log1pl'.
37499         * modules/log1pl-tests: New file.
37500         * tests/test-log1pl.c: New file.
37502         New module 'log1pl'.
37503         * lib/math.in.h (log1pl): New declaration.
37504         * lib/log1pl.c: New file.
37505         * m4/log1pl.m4: New file.
37506         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37508         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37509         * modules/log1pl: New file.
37510         * tests/test-math-c++.cc: Check the declaration of log1pl.
37511         * doc/posix-functions/log1pl.texi: Mention the new module.
37513 2012-03-10  Bruno Haible  <bruno@clisp.org>
37515         Tests for module 'log1pf'.
37516         * modules/log1pf-tests: New file.
37517         * tests/test-log1pf.c: New file.
37519         New module 'log1pf'.
37520         * lib/math.in.h (log1pf): New declaration.
37521         * lib/log1pf.c: New file.
37522         * m4/log1pf.m4: New file.
37523         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37525         REPLACE_LOG1PF.
37526         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37527         REPLACE_LOG1PF.
37528         * modules/log1pf: New file.
37529         * tests/test-math-c++.cc: Check the declaration of log1pf.
37530         * doc/posix-functions/log1pf.texi: Mention the new module.
37532 2012-03-10  Bruno Haible  <bruno@clisp.org>
37534         log1p tests: More tests.
37535         * tests/test-log1p.h: New file.
37536         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37537         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37538         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37539         (main): Invoke test_function.
37541         log1p: Provide replacement for Minix and MSVC.
37542         * lib/math.in.h (log1p): New declaration.
37543         * lib/log1p.c: New file.
37544         * m4/log1p.m4: New file.
37545         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37547         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37548         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37549         (Depends-on): Add math, isnand, log, round.
37550         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37551         HAVE_LOG1P is 0.
37552         * tests/test-math-c++.cc: Check the declaration of log1p.
37553         * doc/posix-functions/log1p.texi: Mention the replacement.
37555 2012-03-10  Bruno Haible  <bruno@clisp.org>
37557         math tests: Small simplification.
37558         * tests/test-exp.h (test_function): Use the same err_bound for
37559         'double' on platforms with sizeof (long double) == sizeof (double)
37560         than on platforms with sizeof (long double) > sizeof (double).
37561         * tests/test-exp2.h (test_function): Likewise.
37562         * tests/test-expm1.h (test_function): Likewise.
37563         * tests/test-log.h (test_function): Likewise.
37565 2012-03-10  Bruno Haible  <bruno@clisp.org>
37567         Fix some comments.
37568         * lib/expl.c: Fix an ambiguous comment.
37569         * lib/expm1.c: Likewise.
37570         * lib/expm1l.c: Likewise.
37571         * lib/exp2.c: Likewise.
37572         * lib/exp2l.c: Likewise.
37574 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37576         regex: allow inclusion of <regex.h> before <limits.h>
37577         Without this patch, portable programs had to include <limits.h> before
37578         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37579         I ran into this problem with a test version of GNU grep on Solaris 8.
37580         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37581         This is done conditionally so that this change can be merged
37582         back to glibc.
37583         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37584         using the included regex.
37586         fts: depend on fdopendir
37587         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37588         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37589         problem was introduced when fdopendir was split out.
37591 2012-03-10  Bruno Haible  <bruno@clisp.org>
37593         Remove unused variables.
37594         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37595         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37597 2012-03-10  Bruno Haible  <bruno@clisp.org>
37599         isnanf-nolibm: Fix last commit.
37600         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37602         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37603         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37605 2012-03-10  Bruno Haible  <bruno@clisp.org>
37607         logf-ieee: Work around test failure on NetBSD 5.1.
37608         * m4/logf-ieee.m4: New file.
37609         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37610         whether logf works with a negative argument. Replace it if not.
37611         * lib/logf.c (logf): For negative arguments, return NaN.
37612         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37613         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37614         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37616         logf-ieee: Work around test failure on Solaris 9.
37617         * modules/logf-ieee (Depends-on): Add log-ieee.
37618         (configure.ac): Require gl_FUNC_LOGF.
37620         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37621         * m4/log-ieee.m4: New file.
37622         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37623         log works with a negative argument. Replace it if not.
37624         * lib/log.c (log): For negative arguments, return NaN.
37625         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37626         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37627         * doc/posix-functions/log.texi: Mention the log-ieee module.
37629         Tests for module 'logl-ieee'.
37630         * modules/logl-ieee-tests: New file.
37631         * tests/test-logl-ieee.c: New file.
37633         New module 'logl-ieee'.
37634         * modules/logl-ieee: New file.
37636         Tests for module 'log-ieee'.
37637         * modules/log-ieee-tests: New file.
37638         * tests/test-log-ieee.c: New file.
37640         New module 'log-ieee'.
37641         * modules/log-ieee: New file.
37643         Tests for module 'logf-ieee'.
37644         * modules/logf-ieee-tests: New file.
37645         * tests/test-logf-ieee.c: New file.
37646         * tests/test-log-ieee.h: New file.
37648         New module 'logf-ieee'.
37649         * modules/logf-ieee: New file.
37651 2012-03-10  Bruno Haible  <bruno@clisp.org>
37653         log: Fix bug introduced on 2012-03-09.
37654         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37656 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37658         timer-time: link explicitly with pthreads on glibc
37659         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37660         to support static linking, when newer glibc is
37661         detected, as that contains pthread emulation of
37662         POSIX timer functions where required.
37663         * modules/timer-time: Depend on threadlib to
37664         pull in the appropriate library to link.
37666 2012-03-10  Bruno Haible  <bruno@clisp.org>
37668         log* tests: More tests.
37669         * tests/test-log.h: New file.
37670         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37671         (main): Invoke test_function.
37672         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37673         (main): Invoke test_function.
37674         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37675         (main): Invoke test_function.
37676         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37677         tests/randomd.c.
37678         (Makefile.am): Add randomd.c to test_log_SOURCES.
37679         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37680         tests/randomf.c.
37681         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37682         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37683         tests/randoml.c.
37684         (Depends-on): Add 'float'.
37685         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37687 2012-03-09  Bruno Haible  <bruno@clisp.org>
37689         logl: Work around OSF/1 5.1 bug.
37690         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37691         * lib/logl.c (logl): If logl exists, use it and provide just the
37692         workaround.
37693         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37694         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37696         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37697         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37698         (Depends-on): Update conditions.
37699         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37701 2012-03-09  Bruno Haible  <bruno@clisp.org>
37703         logf: Work around OSF/1 5.1 bug.
37704         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37705         * lib/logf.c (logf): If logf exists, use it and provide just the
37706         workaround.
37707         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37708         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37710         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37711         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37712         (Depends-on): Update conditions.
37713         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37715 2012-03-09  Bruno Haible  <bruno@clisp.org>
37717         log: Work around OSF/1 5.1 bug.
37718         * lib/math.in.h (log): New declaration.
37719         * lib/log.c: New file.
37720         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37721         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37722         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37724         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37725         * modules/log (Files): Add lib/log.c.
37726         (Depends-on): Add math.
37727         (configure.ac): If REPLACE_LOG is 1, compile an override.
37728         * tests/test-math-c++.cc: Check the declaration of log.
37729         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37731 2012-03-09  Jim Meyering  <meyering@redhat.com>
37733         readtokens.c: adjust wording in a comment
37734         * lib/readtokens.c: Insert omitted "that" in a comment.
37736 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37738         modechange: add notations +40, 00440, etc.
37739         * lib/modechange.c (mode_compile): Support new notations
37740         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37742 2012-03-08  Bruno Haible  <bruno@clisp.org>
37744         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37745         * m4/exp2l-ieee.m4: New file.
37746         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37747         test whether exp2l works with a NaN argument and with a negative
37748         infinity argument. Replace it if not.
37749         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37751         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37752         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37753         (Depends-on): Update conditions.
37754         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37755         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37756         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37758         Tests for module 'exp2l-ieee'.
37759         * modules/exp2l-ieee-tests: New file.
37760         * tests/test-exp2l-ieee.c: New file.
37762         New module 'exp2l-ieee'.
37763         * modules/exp2l-ieee: New file.
37765         Tests for module 'exp2-ieee'.
37766         * modules/exp2-ieee-tests: New file.
37767         * tests/test-exp2-ieee.c: New file.
37769         New module 'exp2-ieee'.
37770         * modules/exp2-ieee: New file.
37772         Tests for module 'exp2f-ieee'.
37773         * modules/exp2f-ieee-tests: New file.
37774         * tests/test-exp2f-ieee.c: New file.
37775         * tests/test-exp2-ieee.h: New file.
37777         New module 'exp2f-ieee'.
37778         * modules/exp2f-ieee: New file.
37780 2012-03-08  Bruno Haible  <bruno@clisp.org>
37782         Tests for module 'exp2l'.
37783         * modules/exp2l-tests: New file.
37784         * tests/test-exp2l.c: New file.
37786         New module 'exp2l'.
37787         * lib/math.in.h (exp2l): New declaration.
37788         * lib/exp2l.c: New file.
37789         * lib/expl-table.c: New file, extracted from lib/expl.c.
37790         * lib/expl.c (gl_expl_table): New declaration.
37791         (expl): Remove expl_table. Update reference.
37792         * m4/exp2l.m4: New file.
37793         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
37794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
37795         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
37796         * modules/exp2l: New file.
37797         * modules/expl (Files): Add lib/expl-table.c.
37798         (configure.ac): Compile also expl-table.c.
37799         * tests/test-math-c++.cc: Check the declaration of exp2l.
37800         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
37801         problem.
37803 2012-03-08  Bruno Haible  <bruno@clisp.org>
37805         Tests for module 'exp2f'.
37806         * modules/exp2f-tests: New file.
37807         * tests/test-exp2f.c: New file.
37809         New module 'exp2f'.
37810         * lib/math.in.h (exp2f): New declaration.
37811         * lib/exp2f.c: New file.
37812         * m4/exp2f.m4: New file.
37813         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
37814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
37815         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
37816         * modules/exp2f: New file.
37817         * tests/test-math-c++.cc: Check the declaration of exp2f.
37818         * doc/posix-functions/exp2f.texi: Mention the new module and the
37819         IRIX problem.
37821 2012-03-08  Bruno Haible  <bruno@clisp.org>
37823         Tests for module 'exp2'.
37824         * modules/exp2-tests: New file.
37825         * tests/test-exp2.c: New file.
37826         * tests/test-exp2.h: New file.
37828         New module 'exp2'.
37829         * lib/math.in.h (exp2): New declaration.
37830         * lib/exp2.c: New file.
37831         * m4/exp2.m4: New file.
37832         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37834         REPLACE_EXP2.
37835         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37836         REPLACE_EXP2.
37837         * modules/exp2: New file.
37838         * tests/test-math-c++.cc: Check the declaration of exp2.
37839         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37840         and OpenBSD problems.
37842 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37844         savedir: fix comment typo
37845         * lib/savedir.c (savedirstream): Fix typo in comment.
37847 2012-03-08  Bruno Haible  <bruno@clisp.org>
37849         test-readtokens.c: use const; remove unwarranted cast
37850         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37852 2012-03-08  Bruno Haible  <bruno@clisp.org>
37854         fmal: Avoid compilation error on AIX.
37855         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37856         AIX 5.2..7.1.
37858 2012-03-08  Bruno Haible  <bruno@clisp.org>
37860         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37861         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37862         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37863         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37864         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37865         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37866         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37868 2012-03-08  Bruno Haible  <bruno@clisp.org>
37870         remainderf: Override buggy system function on IRIX 6.5.
37871         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37872         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37873         when it exists.
37874         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37876 2012-03-08  Jim Meyering  <meyering@redhat.com>
37878         test-readtokens.c: avoid const-related compilation warnings
37879         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37881 2012-03-07  Jim Meyering  <meyering@redhat.com>
37882             Bruno Haible  <bruno@clisp.org>
37884         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37885         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37886         tests/randomd.c.
37887         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37888         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37889         tests/randoml.c.
37890         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37892 2012-03-07  Bruno Haible  <bruno@clisp.org>
37894         expm1l: Avoid compilation error on AIX.
37895         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37896         AIX 5.2..7.1.
37898 2012-03-07  Bruno Haible  <bruno@clisp.org>
37900         expm1l: Don't override undeclared system function on IRIX 6.5.
37901         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37902         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37903         it exists. Set HAVE_DECL_EXPM1L.
37904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37905         HAVE_EXPM1L.
37906         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37907         HAVE_EXPM1L.
37908         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37910 2012-03-07  Bruno Haible  <bruno@clisp.org>
37912         remainderl: Don't override undeclared system function on IRIX 6.5.
37913         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37914         HAVE_REMAINDERL.
37915         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37916         declared when it exists. Set HAVE_DECL_REMAINDERL.
37917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37918         not HAVE_REMAINDERL.
37919         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37920         HAVE_REMAINDERL.
37921         * doc/posix-functions/remainderl.texi: Mention missing declaration
37922         problem.
37924 2012-03-07  Bruno Haible  <bruno@clisp.org>
37926         rintf: Don't override undeclared system function on IRIX 6.5.
37927         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37928         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37929         exists. Set HAVE_DECL_RINTF.
37930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37931         HAVE_RINTF.
37932         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37933         HAVE_RINTF.
37934         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37936 2012-03-07  Bruno Haible  <bruno@clisp.org>
37938         roundl: Avoid compilation error on AIX.
37939         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37940         AIX 5.2..7.1.
37942 2012-03-07  Bruno Haible  <bruno@clisp.org>
37944         roundl: Don't override undeclared system function on IRIX 6.5.
37945         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37946         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37947         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37948         * modules/roundl (configure.ac): For replacement code, test
37949         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37950         (Depends-on): Update conditions.
37951         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37953 2012-03-07  Bruno Haible  <bruno@clisp.org>
37955         roundf: Don't override undeclared system function on IRIX 6.5.
37956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37957         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37958         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37959         * modules/roundf (configure.ac): For replacement code, test
37960         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37961         (Depends-on): Update conditions.
37962         * modules/roundf-ieee (Depends-on): Update conditions.
37963         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37965 2012-03-07  Bruno Haible  <bruno@clisp.org>
37967         round: Don't override undeclared system function on IRIX 6.5.
37968         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37969         argument.
37970         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37971         also when it is not declared. Set HAVE_ROUND. For replacement code,
37972         test HAVE_ROUND, not HAVE_DECL_ROUND.
37973         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37974         not HAVE_DECL_ROUND.
37975         (Depends-on): Update conditions.
37976         * modules/round-ieee (Depends-on): Update conditions.
37977         * doc/posix-functions/round.texi: Mention the IRIX problem.
37979 2012-03-07  Bruno Haible  <bruno@clisp.org>
37981         copysignf: Don't override undeclared system function on IRIX 6.5.
37982         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37983         HAVE_COPYSIGNF.
37984         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37985         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37987         not HAVE_COPYSIGNF.
37988         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37989         HAVE_COPYSIGNF.
37990         * doc/posix-functions/copysignf.texi: Mention missing declaration
37991         problem.
37993 2012-03-07  Jim Meyering  <meyering@redhat.com>
37995         readtokens: add tests
37996         * modules/readtokens-tests: New file.
37997         * tests/test-readtokens.c: New file.
37999 2012-03-07  Jim Meyering  <meyering@redhat.com>
38001         quotearg: the module must now include quote.h
38002         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
38003         So must the module.
38004         * modules/quotearg (Files): Add quote.h.
38006 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
38008         readtokens: avoid core dumps with unusual calling patterns
38009         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
38010         * lib/readtokens.c: Include limits.h.
38011         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
38012         (readtoken): Don't cache the delimiters; the cache code was buggy
38013         if !delim && saved_delim, or if the new n_delim differs from the old.
38014         Also, it wasn't thread-safe.
38016 2012-03-07  Bruno Haible  <bruno@clisp.org>
38018         quote: Adhere to common module description layout.
38019         * modules/quote (Makefile.am): Add back empty section.
38021 2012-03-06  Akim Demaille  <demaille@gostai.com>
38023         quote: fuse into quotearg
38024         This patch is made for the benefit of Bison.
38025         quote does not leave the choice of the quoting style to the user.
38026         quoting_style provides poor customizability, yet quoting_options,
38027         which is very rich, is hidden inside quotearg.c.  So in order to
38028         allow quote customization, move its implementation to quotearg.c.
38029         * lib/quote.c: Remove.
38030         * modules/quote: Adjust.
38031         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
38032         warning: provide all the members of literal structs.
38033         (quote_quoting_options): New.
38034         (quote, quote_n): Import implementation from quote.c.
38035         * lib/quote.h: Import the comments from quote.c.
38036         (quote_quoting_options): New.
38038 2012-03-06  Bruno Haible  <bruno@clisp.org>
38040         Tests for module 'expm1l-ieee'.
38041         * modules/expm1l-ieee-tests: New file.
38042         * tests/test-expm1l-ieee.c: New file.
38044         New module 'expm1l-ieee'.
38045         * modules/expm1l-ieee: New file.
38047         Tests for module 'expm1f-ieee'.
38048         * modules/expm1f-ieee-tests: New file.
38049         * tests/test-expm1f-ieee.c: New file.
38051         New module 'expm1f-ieee'.
38052         * modules/expm1f-ieee: New file.
38054         Tests for module 'expm1-ieee'.
38055         * modules/expm1-ieee-tests: New file.
38056         * tests/test-expm1-ieee.c: New file.
38057         * tests/test-expm1-ieee.h: New file.
38059         New module 'expm1-ieee'.
38060         * modules/expm1-ieee: New file.
38061         * m4/expm1-ieee.m4: New file.
38062         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
38063         whether expm1 works with a minus zero argument. Replace it if not.
38064         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
38065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
38066         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
38067         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
38068         (Depends-on): Update conditions.
38069         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
38070         AIX problem.
38072 2012-03-06  Bruno Haible  <bruno@clisp.org>
38074         Work around expm1f bug on IRIX 6.5.
38075         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
38076         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
38077         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
38078         not work.
38079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
38080         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
38081         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
38082         (Depends-on): Update conditions.
38083         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
38085 2012-03-06  Bruno Haible  <bruno@clisp.org>
38087         Tests for module 'expm1l'.
38088         * modules/expm1l-tests: New file.
38089         * tests/test-expm1l.c: New file.
38091         New module 'expm1l'.
38092         * lib/math.in.h (expm1l): New declaration.
38093         * lib/expm1l.c: New file.
38094         * m4/expm1l.m4: New file.
38095         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
38096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
38097         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
38098         * modules/expm1l: New file.
38099         * tests/test-math-c++.cc: Check the declaration of expm1l.
38100         * doc/posix-functions/expm1l.texi: Mention the new module.
38102 2012-03-06  Bruno Haible  <bruno@clisp.org>
38104         Tests for module 'expm1f'.
38105         * modules/expm1f-tests: New file.
38106         * tests/test-expm1f.c: New file.
38108         New module 'expm1f'.
38109         * lib/math.in.h (expm1f): New declaration.
38110         * lib/expm1f.c: New file.
38111         * m4/expm1f.m4: New file.
38112         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
38113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
38114         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
38115         * modules/expm1f: New file.
38116         * tests/test-math-c++.cc: Check the declaration of expm1f.
38117         * doc/posix-functions/expm1f.texi: Mention the new module.
38119 2012-03-06  Bruno Haible  <bruno@clisp.org>
38121         Tests for module 'expm1'.
38122         * modules/expm1-tests: New file.
38123         * tests/test-expm1.c: New file.
38124         * tests/test-expm1.h: New file.
38126         New module 'expm1'.
38127         * lib/math.in.h (expm1): New declaration.
38128         * lib/expm1.c: New file.
38129         * m4/expm1.m4: New file.
38130         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
38131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
38132         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
38133         * modules/expm1: New file.
38134         * tests/test-math-c++.cc: Check the declaration of expm1.
38135         * doc/posix-functions/expm1.texi: Mention the new module.
38137 2012-03-06  Bruno Haible  <bruno@clisp.org>
38139         math: Ensure declarations of math functions.
38140         * modules/acosf (Depends-on): Add 'extensions'.
38141         * modules/asinf (Depends-on): Likewise.
38142         * modules/atan2f (Depends-on): Likewise.
38143         * modules/atanf (Depends-on): Likewise.
38144         * modules/cbrt (Depends-on): Likewise.
38145         * modules/cbrtf (Depends-on): Likewise.
38146         * modules/cbrtl (Depends-on): Likewise.
38147         * modules/copysignf (Depends-on): Likewise.
38148         * modules/copysignl (Depends-on): Likewise.
38149         * modules/cosf (Depends-on): Likewise.
38150         * modules/coshf (Depends-on): Likewise.
38151         * modules/expf (Depends-on): Likewise.
38152         * modules/fabsf (Depends-on): Likewise.
38153         * modules/fabsl (Depends-on): Likewise.
38154         * modules/fmaf (Depends-on): Likewise.
38155         * modules/fmal (Depends-on): Likewise.
38156         * modules/fmodf (Depends-on): Likewise.
38157         * modules/fmodl (Depends-on): Likewise.
38158         * modules/frexpf (Depends-on): Likewise.
38159         * modules/frexpl (Depends-on): Likewise.
38160         * modules/hypot (Depends-on): Likewise.
38161         * modules/hypotf (Depends-on): Likewise.
38162         * modules/hypotl (Depends-on): Likewise.
38163         * modules/ldexpf (Depends-on): Likewise.
38164         * modules/ldexpl (Depends-on): Likewise.
38165         * modules/log10f (Depends-on): Likewise.
38166         * modules/log10l (Depends-on): Likewise.
38167         * modules/log1p (Depends-on): Likewise.
38168         * modules/logb (Depends-on): Likewise.
38169         * modules/logf (Depends-on): Likewise.
38170         * modules/modff (Depends-on): Likewise.
38171         * modules/modfl (Depends-on): Likewise.
38172         * modules/powf (Depends-on): Likewise.
38173         * modules/remainderf (Depends-on): Likewise.
38174         * modules/remainderl (Depends-on): Likewise.
38175         * modules/rintf (Depends-on): Likewise.
38176         * modules/rintl (Depends-on): Likewise.
38177         * modules/sinf (Depends-on): Likewise.
38178         * modules/sinhf (Depends-on): Likewise.
38179         * modules/sqrtf (Depends-on): Likewise.
38180         * modules/tanf (Depends-on): Likewise.
38181         * modules/tanhf (Depends-on): Likewise.
38182         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
38183         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
38184         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
38185         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
38186         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
38187         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
38188         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
38189         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
38190         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
38191         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
38192         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
38193         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
38194         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
38195         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
38196         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
38197         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
38198         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
38199         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38200         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
38201         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
38202         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
38203         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
38204         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
38205         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
38206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38207         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
38208         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
38209         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38210         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
38211         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
38212         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38213         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
38214         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38215         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38216         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38217         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38218         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
38219         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
38220         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
38221         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
38222         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
38224 2012-03-06  Bruno Haible  <bruno@clisp.org>
38226         math: Update module names in warnings.
38227         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38228         tanl): Use specific module name in warn-on-use warning.
38230 2012-03-06  Bruno Haible  <bruno@clisp.org>
38232         expl: Simplify computation.
38233         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
38235 2012-03-05  Bruno Haible  <bruno@clisp.org>
38237         exp* tests: More tests.
38238         * tests/test-exp.h: New file.
38239         * tests/test-exp.c: Include <float.h> and test-exp.h.
38240         (main): Invoke test_function.
38241         * tests/test-expf.c: Include <float.h> and test-exp.h.
38242         (main): Invoke test_function.
38243         * tests/test-expl.c: Include <float.h> and test-exp.h.
38244         (main): Invoke test_function.
38245         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
38246         (Makefile.am): Add randomd.c to test_exp_SOURCES.
38247         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
38248         (Makefile.am): Add randomf.c to test_expf_SOURCES.
38249         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
38250         (Depends-on): Add 'float'.
38251         (Makefile.am): Add randoml.c to test_expl_SOURCES.
38253         expl: Fix precision of computed result.
38254         * lib/expl.c: Completely rewritten.
38255         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
38256         (Maintainer): Add me.
38257         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
38259 2012-03-05  Bruno Haible  <bruno@clisp.org>
38261         cbrt* tests: More tests.
38262         * tests/test-cbrt.h: New file.
38263         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
38264         (main): Invoke test_function.
38265         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
38266         (main): Invoke test_function.
38267         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
38268         (main): Invoke test_function.
38269         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
38270         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
38271         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
38272         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
38273         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
38274         (Depends-on): Add 'float'.
38275         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
38277 2012-03-05  Bruno Haible  <bruno@clisp.org>
38279         hypot* tests: More tests.
38280         * tests/test-hypot.h: New file, partially extracted from
38281         tests/test-hypotl.c.
38282         * tests/test-hypot.c: Include test-hypot.h.
38283         (main): Invoke test_function.
38284         * tests/test-hypotf.c: Include test-hypot.h.
38285         (main): Invoke test_function.
38286         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
38287         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
38288         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
38289         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
38290         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
38291         tests/randomf.c.
38292         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
38293         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
38294         tests/randoml.c.
38295         (Depends-on): Add 'fpucw', 'float'.
38296         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
38298 2012-03-05  Bruno Haible  <bruno@clisp.org>
38300         fpucw: Doc about FreeBSD.
38301         * lib/fpucw.h: Mention FreeBSD in comments.
38303 2012-03-04  Bruno Haible  <bruno@clisp.org>
38305         sqrt* tests: More tests.
38306         * tests/test-sqrt.h: New file.
38307         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
38308         (main): Invoke test_function.
38309         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
38310         (main): Invoke test_function.
38311         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
38312         (main): Invoke test_function.
38313         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38314         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
38315         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
38316         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
38317         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
38318         (Depends-on): Add 'float'.
38319         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
38321 2012-03-04  Bruno Haible  <bruno@clisp.org>
38323         remainder* tests: More tests.
38324         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
38325         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
38326         (main): Invoke test_function.
38327         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
38328         (main): Invoke test_function.
38329         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
38330         (main): Invoke test_function.
38331         * modules/remainder-tests (Files): Add tests/test-remainder.h,
38332         tests/randomd.c.
38333         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
38334         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
38335         tests/randomf.c.
38336         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
38337         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
38338         tests/randoml.c.
38339         (Depends-on): Add 'float'.
38340         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
38342 2012-03-04  Bruno Haible  <bruno@clisp.org>
38344         remainder, remainderf, remainderl: Fix computation for large quotients.
38345         * lib/remainder.c: Completely rewritten.
38346         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
38347         USE_FLOAT.
38348         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
38349         USE_LONG_DOUBLE.
38350         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
38351         isnand, isinf. Remove round, fma.
38352         * modules/remainderf (Files): Add lib/remainder.c.
38353         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
38354         Remove roundf, fmaf.
38355         * modules/remainderl (Files): Add lib/remainder.c.
38356         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
38357         isinf. Remove roundl, fmal.
38358         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
38359         REMAINDER_LIBM.
38360         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
38361         REMAINDERF_LIBM.
38362         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
38363         REMAINDERL_LIBM.
38365 2012-03-04  Bruno Haible  <bruno@clisp.org>
38367         fmod* tests: More tests.
38368         * tests/test-fmod.h (my_ldexp): New function.
38369         (test_function): Reduce amount of random numbers to test. Add tests
38370         of very large quotients x / y.
38371         * tests/test-fmod.c (MAX_EXP): New macro.
38372         * tests/test-fmodf.c (MAX_EXP): Likewise.
38373         * tests/test-fmodl.c (MAX_EXP): Likewise.
38375 2012-03-04  Bruno Haible  <bruno@clisp.org>
38377         fmod, fmodl: Fix computation for large quotients x / y.
38378         * lib/fmod.c: Completely rewritten.
38379         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38380         USE_LONG_DOUBLE.
38381         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38382         isnand. Remove fma.
38383         * modules/fmodl (Files): Add lib/fmod.c.
38384         (Depends-on): Add float, isfinite, signbit, fabsl,
38385         frexpl, ldexpl, isnanl. Remove fma.
38386         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38387         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38389 2012-03-03  Bruno Haible  <bruno@clisp.org>
38391         fmod* tests: More tests.
38392         * tests/test-fmod.h: New file.
38393         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38394         (main): Invoke test_function.
38395         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38396         (main): Invoke test_function.
38397         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38398         (main): Invoke test_function.
38399         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38400         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38401         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38402         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38403         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38404         (Depends-on): Add 'float'.
38405         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38407 2012-03-03  Bruno Haible  <bruno@clisp.org>
38409         rint* tests: More tests.
38410         * tests/test-rint.h: New file, partially extracted from
38411         tests/test-rintl.c.
38412         * tests/test-rint.c: Include test-rint.h.
38413         (main): Invoke test_function.
38414         * tests/test-rintf.c: Include test-rint.h.
38415         (main): Invoke test_function.
38416         * tests/test-rintl.c: Include test-rint.h.
38417         (main): Invoke test_function.
38418         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38419         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38420         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38421         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38422         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38423         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38425 2012-03-03  Bruno Haible  <bruno@clisp.org>
38427         modf* tests: More tests.
38428         * tests/test-modf.h: New file.
38429         * tests/test-modf.c: Include <float.h> and test-modf.h.
38430         (main): Invoke test_function.
38431         * tests/test-modff.c: Include <float.h> and test-modf.h.
38432         (main): Invoke test_function.
38433         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38434         (main): Invoke test_function.
38435         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38436         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38437         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38438         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38439         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38440         (Depends-on): Add 'float'.
38441         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38443 2012-03-03  Bruno Haible  <bruno@clisp.org>
38445         fabs* tests: More tests.
38446         * tests/test-fabs.h: New file, partially extracted from
38447         tests/test-fabsl.c.
38448         * tests/test-fabs.c (RANDOM): New macro.
38449         * tests/test-fabsf.c (RANDOM): New macro.
38450         * tests/test-fabsl.c (RANDOM): New macro.
38451         * modules/fabs-tests (Files): Add tests/randomd.c.
38452         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38453         * modules/fabsf-tests (Files): Add tests/randomf.c.
38454         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38455         * modules/fabsl-tests (Files): Add tests/randoml.c.
38456         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38458 2012-03-03  Bruno Haible  <bruno@clisp.org>
38460         ldexp* tests: More tests.
38461         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38462         * tests/test-ldexp.c (RANDOM): New macro.
38463         * tests/test-ldexpf.c (RANDOM): New macro.
38464         * tests/test-ldexpl.c (RANDOM): New macro.
38465         * modules/ldexp-tests (Files): Add tests/randomd.c.
38466         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38467         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38468         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38469         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38470         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38472 2012-03-03  Bruno Haible  <bruno@clisp.org>
38474         frexp* tests: More tests.
38475         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38476         * tests/test-frexp.c (RANDOM): New macro.
38477         * tests/test-frexpf.c (RANDOM): New macro.
38478         * tests/test-frexpl.c (RANDOM): New macro.
38479         * modules/frexp-tests (Files): Add tests/randomd.c.
38480         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38481         * modules/frexpf-tests (Files): Add tests/randomf.c.
38482         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38483         * modules/frexpl-tests (Files): Add tests/randoml.c.
38484         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38486 2012-03-03  Bruno Haible  <bruno@clisp.org>
38488         Support for pseudo-random numbers in tests.
38489         * tests/randomf.c: New file.
38490         * tests/randomd.c: New file.
38491         * tests/randoml.c: New file.
38492         * tests/macros.h (randomf, randomd, randoml): New declarations.
38494 2012-03-03  Bruno Haible  <bruno@clisp.org>
38496         frexp* tests: Refactor.
38497         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38498         * tests/test-frexp.c: Include and use it.
38499         * tests/test-frexpf.c: Likewise.
38500         * tests/test-frexpl.c: Likewise.
38501         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38502         * modules/frexpf-tests (Files): Likewise.
38503         * modules/frexpl-tests (Files): Likewise.
38505 2012-03-02  Jim Meyering  <meyering@redhat.com>
38507         maint: don't specify XZ_OPT=-9ev in dist-related rule
38508         Using xz's -9 option is warranted only if you have a very large
38509         tarball (see xz's documentation for the sizes vs. presets), and
38510         requires 64MiB of memory at decompression time.
38511         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38512         Automake's default of just "-e" is fine.  Override on a
38513         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38515 2012-03-01  Eric Blake  <eblake@redhat.com>
38517         maint.mk: allow announcement for non-gnulib project
38518         * maint.mk (announcement): Skip gnulib version if not used.
38520 2012-03-01  Jim Meyering  <meyering@redhat.com>
38522         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38523         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38524         envvar settings cannot interfere.  Otherwise, setting envvars like
38525         prohibit=foo require=bar, etc. would cause spurious test failures.
38527 2012-03-01  Eric Blake  <eblake@redhat.com>
38529         maint.mk: add per-line exclusions to prohibitions
38530         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38531         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38532         (sc_const_long_option): Use it.
38534 2012-03-01  Bruno Haible  <bruno@clisp.org>
38536         Tests for module 'expl-ieee'.
38537         * modules/expl-ieee-tests: New file.
38538         * tests/test-expl-ieee.c: New file.
38540         New module 'expl-ieee'.
38541         * modules/expl-ieee: New file.
38543         Tests for module 'exp-ieee'.
38544         * modules/exp-ieee-tests: New file.
38545         * tests/test-exp-ieee.c: New file.
38547         New module 'exp-ieee'.
38548         * modules/exp-ieee: New file.
38550         Tests for module 'expf-ieee'.
38551         * modules/expf-ieee-tests: New file.
38552         * tests/test-expf-ieee.c: New file.
38553         * tests/test-exp-ieee.h: New file.
38555         New module 'expf-ieee'.
38556         * modules/expf-ieee: New file.
38558 2012-02-29  Bruno Haible  <bruno@clisp.org>
38560         cbrtl-ieee: Work around test failure on IRIX 6.5.
38561         * m4/cbrtl-ieee.m4: New file.
38562         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38563         test whether cbrtl works with a minus zero argument. Replace it if not.
38564         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38566         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38567         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38568         (Depends-on): Update conditions.
38569         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38570         m4/signbit.m4.
38571         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38572         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38573         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38575         Tests for module 'cbrtl-ieee'.
38576         * modules/cbrtl-ieee-tests: New file.
38577         * tests/test-cbrtl-ieee.c: New file.
38579         New module 'cbrtl-ieee'.
38580         * modules/cbrtl-ieee: New file.
38582         Tests for module 'cbrt-ieee'.
38583         * modules/cbrt-ieee-tests: New file.
38584         * tests/test-cbrt-ieee.c: New file.
38586         New module 'cbrt-ieee'.
38587         * modules/cbrt-ieee: New file.
38589         Tests for module 'cbrtf-ieee'.
38590         * modules/cbrtf-ieee-tests: New file.
38591         * tests/test-cbrtf-ieee.c: New file.
38592         * tests/test-cbrt-ieee.h: New file.
38594         New module 'cbrtf-ieee'.
38595         * modules/cbrtf-ieee: New file.
38597 2012-02-29  Bruno Haible  <bruno@clisp.org>
38599         cbrtf: Work around bug in IRIX 6.5 system function.
38600         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38601         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38602         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38603         work.
38604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38605         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38606         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38607         (Depends-on): Update conditions.
38608         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38610 2012-02-29  Bruno Haible  <bruno@clisp.org>
38612         Tests for module 'cbrtl'.
38613         * modules/cbrtl-tests: New file.
38614         * tests/test-cbrtl.c: New file.
38616         New module 'cbrtl'.
38617         * lib/math.in.h (cbrtl): New declaration.
38618         * lib/cbrtl.c: New file.
38619         * m4/cbrtl.m4: New file.
38620         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38622         HAVE_DECL_CBRTL.
38623         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38624         HAVE_DECL_CBRTL.
38625         * modules/cbrtl: New file.
38626         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38627         * doc/posix-functions/cbrtl.texi: Mention the new module.
38629 2012-02-29  Bruno Haible  <bruno@clisp.org>
38631         Tests for module 'cbrtf'.
38632         * modules/cbrtf-tests: New file.
38633         * tests/test-cbrtf.c: New file.
38635         New module 'cbrtf'.
38636         * lib/math.in.h (cbrtf): New declaration.
38637         * lib/cbrtf.c: New file.
38638         * m4/cbrtf.m4: New file.
38639         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38641         HAVE_DECL_CBRTF.
38642         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38643         HAVE_DECL_CBRTF.
38644         * modules/cbrtf: New file.
38645         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38646         * doc/posix-functions/cbrtf.texi: Mention the new module.
38648 2012-02-29  Bruno Haible  <bruno@clisp.org>
38650         cbrt: Provide replacement on MSVC and Minix.
38651         * lib/math.in.h (cbrt): New declaration.
38652         * lib/cbrt.c: New file.
38653         * m4/cbrt.m4: New file.
38654         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38656         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38657         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38658         (Depends-on): Add dependencies.
38659         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38660         * tests/test-math-c++.cc: Check the declaration of cbrt.
38661         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38662         replacement.
38664 2012-02-29  Bruno Haible  <bruno@clisp.org>
38666         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38667         * m4/hypotl-ieee.m4: New file.
38668         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38669         test whether hypotl works with mixed NaN and Infinity arguments.
38670         Replace it if not.
38671         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38673         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38674         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38675         (Depends-on): Update conditions.
38676         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38677         (Depends-on): Add hypot-ieee.
38678         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38679         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38681         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38682         * m4/hypotf-ieee.m4: New file.
38683         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38684         test whether hypotf works with mixed NaN and Infinity arguments.
38685         Replace it if not.
38686         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38687         (Depends-on): Add hypot-ieee.
38688         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38689         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38691         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38692         * lib/math.in.h (hypot): New declaration.
38693         * lib/hypot.c: New file.
38694         * m4/hypot-ieee.m4: New file.
38695         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38696         whether hypot works with mixed NaN and Infinity arguments. Replace it
38697         if not.
38698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38699         REPLACE_HYPOT.
38700         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38701         * modules/hypot (Files): Add lib/hypot.c.
38702         (Depends-on): Add dependencies.
38703         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38704         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38705         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38706         * tests/test-math-c++.cc: Check the declaration of hypot.
38707         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38709         Tests for module 'hypotl-ieee'.
38710         * modules/hypotl-ieee-tests: New file.
38711         * tests/test-hypotl-ieee.c: New file.
38713         New module 'hypotl-ieee'.
38714         * modules/hypotl-ieee: New file.
38716         Tests for module 'hypot-ieee'.
38717         * modules/hypot-ieee-tests: New file.
38718         * tests/test-hypot-ieee.c: New file.
38720         New module 'hypot-ieee'.
38721         * modules/hypot-ieee: New file.
38723         Tests for module 'hypotf-ieee'.
38724         * modules/hypotf-ieee-tests: New file.
38725         * tests/test-hypotf-ieee.c: New file.
38726         * tests/test-hypot-ieee.h: New file.
38728         New module 'hypotf-ieee'.
38729         * modules/hypotf-ieee: New file.
38731 2012-02-29  Bruno Haible  <bruno@clisp.org>
38733         Remove unused variables.
38734         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38735         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38736         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38737         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38739 2012-02-29  Eric Blake  <eblake@redhat.com>
38741         termios: fix pid_t always, not just for tcgetsid
38742         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38743         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38744         just when building tcgetsid.
38746 2012-02-29  Bruno Haible  <bruno@clisp.org>
38748         Tests for module 'hypotl'.
38749         * modules/hypotl-tests: New file.
38750         * tests/test-hypotl.c: New file.
38752         New module 'hypotl'.
38753         * lib/math.in.h (hypotl): New declaration.
38754         * lib/hypotl.c: New file.
38755         * m4/hypotl.m4: New file.
38756         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38758         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38759         * modules/hypotl: New file.
38760         * tests/test-math-c++.cc: Check the hypotl declaration.
38761         * doc/posix-functions/hypotl.texi: Mention the new module.
38763 2012-02-29  Eric Blake  <eblake@redhat.com>
38765         tcgetsid: fix cygwin header bug
38766         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38768         docs: update cygwin progress
38769         * doc/posix-functions/llround.texi (llround): Added in cygwin
38770         1.7.8.
38771         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38772         * doc/glibc-functions/program_invocation_name.texi
38773         (program_invocation_name): Likewise.
38774         * doc/glibc-functions/program_invocation_short_name.texi
38775         (program_invocation_short_name): Likewise.
38776         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38777         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38778         Likewise.
38779         * doc/posix-functions/pthread_spin_destroy.texi
38780         (pthread_spin_destroy): Added in cygwin 1.7.10.
38781         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38782         Likewise.
38783         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38784         Likewise.
38785         * doc/posix-functions/pthread_spin_trylock.texi
38786         (pthread_spin_trylock): Likewise.
38787         * doc/posix-functions/pthread_spin_unlock.texi
38788         (pthread_spin_unlock): Likewise.
38789         * doc/posix-functions/pthread_setschedprio.texi
38790         (pthread_setschedprio): Likewise.
38791         * doc/posix-functions/pthread_attr_getstack.texi
38792         (pthread_attr_getstack): Likewise.
38793         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
38794         (pthread_attr_getstackaddr): Likewise.
38795         * doc/glibc-functions/pthread_getattr_np.texi
38796         (pthread_getattr_np): Likewise.
38797         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
38798         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
38799         * doc/posix-functions/clock_settime.texi (clock_settime):
38800         Likewise.
38801         * doc/posix-functions/pthread_attr_getguardsize.texi
38802         (pthread_attr_getguardsize): Likewise.
38803         * doc/posix-functions/pthread_attr_setguardsize.texi
38804         (pthread_attr_setguardsize): Likewise.
38805         * doc/posix-functions/pthread_attr_setstack.texi
38806         (pthread_attr_setstack): Likewise.
38807         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
38808         (pthread_attr_setstackaddr): Likewise.
38809         * doc/posix-functions/clock_getcpuclockid.texi
38810         (clock_getcpuclockid): Likewise.
38811         * doc/posix-functions/pthread_getcpuclockid.texi
38812         (pthread_getcpuclockid): Likewise.
38813         * doc/glibc-functions/error.texi (error): Likewise.
38814         * doc/glibc-functions/error_at_line.texi (error_at_line):
38815         Likewise.
38816         * doc/glibc-functions/error_message_count.texi
38817         (error_message_count): Likewise.
38818         * doc/glibc-functions/error_one_per_line.texi
38819         (error_one_per_line): Likewise.
38820         * doc/glibc-functions/error_print_progname.texi
38821         (error_print_progname): Likewise.
38822         * doc/posix-functions/pthread_condattr_getclock.texi
38823         (pthread_condattr_getclock): Likewise.
38824         * doc/posix-functions/pthread_condattr_setclock.texi
38825         (pthread_condattr_setclock): Likewise.
38826         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38827         Likewise.
38828         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38829         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38830         * doc/glibc-functions/get_current_dir_name.texi
38831         (get_current_dir_name): Likewise.
38832         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38833         Likewise.
38834         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38835         wrong return type.
38836         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38837         1.7.11.
38839 2012-02-29  Bruno Haible  <bruno@clisp.org>
38841         Tests for module 'hypotf'.
38842         * modules/hypotf-tests: New file.
38843         * tests/test-hypotf.c: New file.
38845         New module 'hypotf'.
38846         * lib/math.in.h (hypotf): New declaration.
38847         * lib/hypotf.c: New file.
38848         * m4/hypotf.m4: New file.
38849         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38851         REPLACE_HYPOTF.
38852         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38853         REPLACE_HYPOTF.
38854         * modules/hypotf: New file.
38855         * tests/test-math-c++.cc: Check the hypotf declaration.
38856         * doc/posix-functions/hypotf.texi: Mention the new module.
38858         hypot: Prepare for hypotf module.
38859         * m4/hypot.m4: New file.
38860         * modules/hypot (Files): Add m4/hypot.m4.
38861         (configure.ac): Invoke gl_FUNC_HYPOT.
38863 2012-02-29  Bruno Haible  <bruno@clisp.org>
38865         hypot tests: More tests.
38866         * tests/test-hypot.c: Include <float.h>.
38867         (main): Add tests about overflow and underflow.
38869 2012-02-29  Bruno Haible  <bruno@clisp.org>
38871         math code: Add comments.
38872         * lib/acosl.c: Add comment about related glibc source files.
38873         * lib/asinl.c: Likewise.
38874         * lib/atanl.c: Likewise.
38875         * lib/expl.c: Likewise.
38876         * lib/logl.c: Likewise.
38877         * lib/sincosl.c: Likewise.
38878         * lib/sinl.c: Likewise.
38879         * lib/tanl.c: Likewise.
38880         * lib/trigl.c: Likewise.
38881         * lib/cosl.c: Likewise. Fix comments.
38883 2012-02-28  Bruno Haible  <bruno@clisp.org>
38885         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38886         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38887         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38888         HUGE_VALL are defined.
38889         (numeric_equald): Renamed from numeric_equal.
38890         (numeric_equalf, numeric_equall): New functions.
38891         (main): Check also HUGE_VALF, HUGE_VALL.
38892         * modules/math-tests (Files): Add tests/macros.h.
38893         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38894         HUGE_VALL.
38896 2012-02-28  Bruno Haible  <bruno@clisp.org>
38898         doc: Move ISO C11 feature notes into POSIX chapters.
38899         * doc/posix-functions/aligned_alloc.texi: Renamed from
38900         doc/glibc-functions/aligned_alloc.texi.
38901         * doc/posix-functions/quick_exit.texi: Renamed from
38902         doc/glibc-functions/quick_exit.texi.
38903         * doc/posix-headers/uchar.texi: Renamed from
38904         doc/glibc-headers/uchar.texi.
38905         * doc/posix-functions/c16rtomb.texi: Renamed from
38906         doc/glibc-functions/c16rtomb.texi.
38907         * doc/posix-functions/c32rtomb.texi: Renamed from
38908         doc/glibc-functions/c32rtomb.texi.
38909         * doc/posix-functions/mbrtoc16.texi: Renamed from
38910         doc/glibc-functions/mbrtoc16.texi.
38911         * doc/posix-functions/mbrtoc32.texi: Renamed from
38912         doc/glibc-functions/mbrtoc32.texi.
38913         * doc/gnulib.texi: Update.
38914         (Glibc uchar.h): Remove section.
38915         Suggested by Eric Blake.
38917 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38919         stdnoreturn: port to MSVC better
38920         MSVC standard headers use __declspec(noreturn), so #define noreturn
38921         to empty on that platform.  Reported by Bruno Haible in
38922         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38923         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38924         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38926 2012-02-28  Bruno Haible  <bruno@clisp.org>
38928         doc: Mention new glibc headers and functions.
38929         * doc/glibc-headers/uchar.texi: New file.
38930         * doc/glibc-functions/aligned_alloc.texi: New file.
38931         * doc/glibc-functions/c16rtomb.texi: New file.
38932         * doc/glibc-functions/c32rtomb.texi: New file.
38933         * doc/glibc-functions/clock_adjtime.texi: New file.
38934         * doc/glibc-functions/fanotify_init.texi: New file.
38935         * doc/glibc-functions/fanotify_mark.texi: New file.
38936         * doc/glibc-functions/inet6_opt_append.texi: New file.
38937         * doc/glibc-functions/inet6_opt_find.texi: New file.
38938         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38939         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38940         * doc/glibc-functions/inet6_opt_init.texi: New file.
38941         * doc/glibc-functions/inet6_opt_next.texi: New file.
38942         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38943         * doc/glibc-functions/inet6_rth_add.texi: New file.
38944         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38945         * doc/glibc-functions/inet6_rth_init.texi: New file.
38946         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38947         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38948         * doc/glibc-functions/inet6_rth_space.texi: New file.
38949         * doc/glibc-functions/login.texi: New file.
38950         * doc/glibc-functions/mbrtoc16.texi: New file.
38951         * doc/glibc-functions/mbrtoc32.texi: New file.
38952         * doc/glibc-functions/name_to_handle_at.texi: New file.
38953         * doc/glibc-functions/ntp_gettimex.texi: New file.
38954         * doc/glibc-functions/open_by_handle_at.texi: New file.
38955         * doc/glibc-functions/prlimit.texi: New file.
38956         * doc/glibc-functions/process_vm_readv.texi: New file.
38957         * doc/glibc-functions/process_vm_writev.texi: New file.
38958         * doc/glibc-functions/recvmmsg.texi: New file.
38959         * doc/glibc-functions/scandirat.texi: New file.
38960         * doc/glibc-functions/sendmmsg.texi: New file.
38961         * doc/glibc-functions/setns.texi: New file.
38962         * doc/glibc-functions/timespec_get.texi: New file.
38963         * doc/gnulib.texi: Include them.
38964         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38965         sections.
38966         Reported by Eric Blake.
38968 2012-02-28  Bruno Haible  <bruno@clisp.org>
38970         Avoid compilation errors with MSVC option -fp:strict.
38971         * lib/floor.c: Use MSVC specific pragma fenv_access.
38972         * lib/ceil.c: Likewise.
38973         * lib/trunc.c: Likewise.
38974         * lib/round.c: Likewise.
38975         * lib/rint.c: Likewise.
38976         * lib/fma.c: Likewise.
38977         * lib/integer_length.c: Likewise.
38978         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38980         * tests/test-floor2.c: Likewise.
38981         * tests/test-floorf2.c: Likewise.
38982         * tests/test-ceil2.c: Likewise.
38983         * tests/test-ceilf2.c: Likewise.
38984         * tests/test-trunc2.c: Likewise.
38985         * tests/test-truncf2.c: Likewise.
38986         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38988 2012-02-27  Bruno Haible  <bruno@clisp.org>
38990         Tests for module 'sqrtl-ieee'.
38991         * modules/sqrtl-ieee-tests: New file.
38992         * tests/test-sqrtl-ieee.c: New file.
38994         New module 'sqrtl-ieee'.
38995         * modules/sqrtl-ieee: New file.
38997         Tests for module 'sqrt-ieee'.
38998         * modules/sqrt-ieee-tests: New file.
38999         * tests/test-sqrt-ieee.c: New file.
39001         New module 'sqrt-ieee'.
39002         * modules/sqrt-ieee: New file.
39004         Tests for module 'sqrtf-ieee'.
39005         * modules/sqrtf-ieee-tests: New file.
39006         * tests/test-sqrtf-ieee.c: New file.
39007         * tests/test-sqrt-ieee.h: New file.
39009         New module 'sqrtf-ieee'.
39010         * modules/sqrtf-ieee: New file.
39012 2012-02-27  Bruno Haible  <bruno@clisp.org>
39014         remainderl-ieee: Work around test failure on OSF/1.
39015         * m4/remainderl-ieee.m4: New file.
39016         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
39017         present, test whether remainderl works with a zero second argument.
39018         Replace it if not.
39019         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
39020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
39021         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
39022         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
39023         (Depends-on): Update conditions.
39024         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
39025         (Depends-on): Add remainder-ieee.
39026         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
39027         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
39028         module.
39030         remainderf-ieee: Work around test failure on OSF/1.
39031         * m4/remainderf-ieee.m4: New file.
39032         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
39033         present, test whether remainderf works with a zero second argument.
39034         Replace it if not.
39035         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
39036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
39037         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
39038         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
39039         (Depends-on): Update conditions.
39040         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
39041         (Depends-on): Add remainder-ieee.
39042         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
39043         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
39044         module.
39046         remainder-ieee: Work around test failure on OSF/1.
39047         * m4/remainder-ieee.m4: New file.
39048         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
39049         present, test whether remainder works with a zero second argument.
39050         Replace it if not.
39051         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
39052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
39053         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
39054         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
39055         (Depends-on): Update dependencies.
39056         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
39057         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
39058         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
39060         Tests for module 'remainderl-ieee'.
39061         * modules/remainderl-ieee-tests: New file.
39062         * tests/test-remainderl-ieee.c: New file.
39064         New module 'remainderl-ieee'.
39065         * modules/remainderl-ieee: New file.
39067         Tests for module 'remainder-ieee'.
39068         * modules/remainder-ieee-tests: New file.
39069         * tests/test-remainder-ieee.c: New file.
39071         New module 'remainder-ieee'.
39072         * modules/remainder-ieee: New file.
39074         Tests for module 'remainderf-ieee'.
39075         * modules/remainderf-ieee-tests: New file.
39076         * tests/test-remainderf-ieee.c: New file.
39077         * tests/test-remainder-ieee.h: New file.
39079         New module 'remainderf-ieee'.
39080         * modules/remainderf-ieee: New file.
39082 2012-02-27  Bruno Haible  <bruno@clisp.org>
39084         modff, modfl: Fix configure syntax error.
39085         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
39086         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39088 2012-02-27  Bruno Haible  <bruno@clisp.org>
39090         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
39091         * m4/fmodl-ieee.m4: New file.
39092         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
39093         whether fmodl works with zero arguments. Replace it if not.
39094         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
39095         (Depends-on): Add fmod-ieee.
39096         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
39097         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
39099         fmodf-ieee: Work around test failure on OSF/1.
39100         * m4/fmodf-ieee.m4: New file.
39101         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
39102         whether fmodf works with zero arguments. Replace it if not.
39103         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
39104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
39105         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
39106         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
39107         (Depends-on): Update dependencies.
39108         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
39109         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
39110         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
39112         fmodf-ieee: Work around test failure on MSVC 9.
39113         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
39114         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
39116         fmod-ieee: Work around test failures on OSF/1, mingw.
39117         * m4/fmod-ieee.m4: New file.
39118         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
39119         whether fmod works with zero arguments. Replace it if not.
39120         * lib/math.in.h (fmod): New declaration.
39121         * lib/fmod.c: New file.
39122         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
39123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
39124         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
39125         * modules/fmod (Files): Add lib/fmod.c.
39126         (Depends-on): Add math, isinf, trunc, fma.
39127         (configure.ac): Arrange to compile lib/fmod.c if needed.
39128         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
39129         m4/signbit.m4.
39130         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
39131         * tests/test-math-c++.cc: Check the declaration of fmod.
39132         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
39134         fmodl-ieee: Fix test failures.
39135         * lib/fmodl.c (fmodl): Treat Inf specially.
39136         * modules/fmodl (Depends-on): Add isinf.
39138         Tests for module 'fmodl-ieee'.
39139         * modules/fmodl-ieee-tests: New file.
39140         * tests/test-fmodl-ieee.c: New file.
39142         New module 'fmodl-ieee'.
39143         * modules/fmodl-ieee: New file.
39145         Tests for module 'fmod-ieee'.
39146         * modules/fmod-ieee-tests: New file.
39147         * tests/test-fmod-ieee.c: New file.
39149         New module 'fmod-ieee'.
39150         * modules/fmod-ieee: New file.
39152         Tests for module 'fmodf-ieee'.
39153         * modules/fmodf-ieee-tests: New file.
39154         * tests/test-fmodf-ieee.c: New file.
39155         * tests/test-fmod-ieee.h: New file.
39157         New module 'fmodf-ieee'.
39158         * modules/fmodf-ieee: New file.
39160 2012-02-27  Bruno Haible  <bruno@clisp.org>
39162         Tests for module 'rintl-ieee'.
39163         * modules/rintl-ieee-tests: New file.
39164         * tests/test-rintl-ieee.c: New file.
39166         New module 'rintl-ieee'.
39167         * modules/rintl-ieee: New file.
39169         Tests for module 'rint-ieee'.
39170         * modules/rint-ieee-tests: New file.
39171         * tests/test-rint-ieee.c: New file.
39173         New module 'rint-ieee'.
39174         * modules/rint-ieee: New file.
39176         Tests for module 'rintf-ieee'.
39177         * modules/rintf-ieee-tests: New file.
39178         * tests/test-rintf-ieee.c: New file.
39179         * tests/test-rint-ieee.h: New file.
39181         New module 'rintf-ieee'.
39182         * modules/rintf-ieee: New file.
39184 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39186         regex: re_search etc. should return -2 when memory exhausted
39187         This bug was uncovered when testing 'grep'.  Without the fix,
39188         re_search and friends return -1 when memory is exhausted, but -1
39189         means no match, and this causes grep to falsely report no-match
39190         instead of memory-exhaustion.  See
39191         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
39192         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
39193         trouble; this can occur if re_search_internal ran out of memory.
39195 2012-02-26  Bruno Haible  <bruno@clisp.org>
39197         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
39198         * m4/modfl-ieee.m4: New file.
39199         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
39200         whether modfl works with Inf. Replace it if not.
39201         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
39202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
39203         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
39204         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
39205         (Depends-on): Update dependencies.
39206         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
39207         m4/signbit.m4.
39208         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
39209         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
39211         modfl-ieee: Fix dependencies.
39212         * modules/modfl-ieee (Depends-on): Add modf-ieee.
39214         modfl-ieee: Fix test failures.
39215         * lib/modfl.c (modfl): Treat NaN and Inf specially.
39216         * modules/modfl (Depends-on): Add isfinite, isinf.
39218         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
39219         * m4/modff-ieee.m4: New file.
39220         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
39221         whether modff works with NaN and Inf. Replace it if not.
39222         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
39223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
39224         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
39225         * modules/modff (configure.ac): Consider REPLACE_MODFF.
39226         (Depends-on): Update dependencies.
39227         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
39228         m4/signbit.m4.
39229         (Depends-on): Add modf-ieee.
39230         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
39231         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
39233         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
39234         * m4/modf-ieee.m4: New file.
39235         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
39236         whether modf works with NaN and Inf. Replace it if not.
39237         * lib/math.in.h (modf): New declaration.
39238         * lib/modf.c: New file.
39239         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
39240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
39241         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
39242         * modules/modf (Files): Add lib/modf.c.
39243         (Depends-on): Add math, isfinite, trunc, isinf.
39244         (configure.ac): Addrange to compile lib/modf.c if needed.
39245         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
39246         m4/signbit.m4.
39247         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
39248         * tests/test-math-c++.cc: Check the declaration of modf.
39249         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
39251         Tests for module 'modfl-ieee'.
39252         * modules/modfl-ieee-tests: New file.
39253         * tests/test-modfl-ieee.c: New file.
39255         New module 'modfl-ieee'.
39256         * modules/modfl-ieee: New file.
39258         Tests for module 'modf-ieee'.
39259         * modules/modf-ieee-tests: New file.
39260         * tests/test-modf-ieee.c: New file.
39262         New module 'modf-ieee'.
39263         * modules/modf-ieee: New file.
39265         Tests for module 'modff-ieee'.
39266         * modules/modff-ieee-tests: New file.
39267         * tests/test-modff-ieee.c: New file.
39268         * tests/test-modf-ieee.h: New file.
39270         New module 'modff-ieee'.
39271         * modules/modff-ieee: New file.
39273 2012-02-26  Bruno Haible  <bruno@clisp.org>
39275         Tests for module 'fabsl-ieee'.
39276         * modules/fabsl-ieee-tests: New file.
39277         * tests/test-fabsl-ieee.c: New file.
39279         New module 'fabsl-ieee'.
39280         * modules/fabsl-ieee: New file.
39282         Tests for module 'fabs-ieee'.
39283         * modules/fabs-ieee-tests: New file.
39284         * tests/test-fabs-ieee.c: New file.
39286         New module 'fabs-ieee'.
39287         * modules/fabs-ieee: New file.
39289         Tests for module 'fabsf-ieee'.
39290         * modules/fabsf-ieee-tests: New file.
39291         * tests/test-fabsf-ieee.c: New file.
39292         * tests/test-fabs-ieee.h: New file.
39294         New module 'fabsf-ieee'.
39295         * modules/fabsf-ieee: New file.
39297 2012-02-26  Bruno Haible  <bruno@clisp.org>
39299         Tests for module 'fmal-ieee'.
39300         * modules/fmal-ieee-tests: New file.
39301         * tests/test-fmal-ieee.c: New file.
39303         New module 'fmal-ieee'.
39304         * modules/fmal-ieee: New file.
39306         Tests for module 'fma-ieee'.
39307         * modules/fma-ieee-tests: New file.
39308         * tests/test-fma-ieee.c: New file.
39310         New module 'fma-ieee'.
39311         * modules/fma-ieee: New file.
39313         Tests for module 'fmaf-ieee'.
39314         * modules/fmaf-ieee-tests: New file.
39315         * tests/test-fmaf-ieee.c: New file.
39316         * tests/test-fma-ieee.h: New file.
39318         New module 'fmaf-ieee'.
39319         * modules/fmaf-ieee: New file.
39321 2012-02-26  Bruno Haible  <bruno@clisp.org>
39323         Tests for module 'ldexpl-ieee'.
39324         * modules/ldexpl-ieee-tests: New file.
39325         * tests/test-ldexpl-ieee.c: New file.
39327         New module 'ldexpl-ieee'.
39328         * modules/ldexpl-ieee: New file.
39330         Tests for module 'ldexp-ieee'.
39331         * modules/ldexp-ieee-tests: New file.
39332         * tests/test-ldexp-ieee.c: New file.
39334         New module 'ldexp-ieee'.
39335         * modules/ldexp-ieee: New file.
39337         Tests for module 'ldexpf-ieee'.
39338         * modules/ldexpf-ieee-tests: New file.
39339         * tests/test-ldexpf-ieee.c: New file.
39340         * tests/test-ldexp-ieee.h: New file.
39342         New module 'ldexpf-ieee'.
39343         * modules/ldexpf-ieee: New file.
39345 2012-02-26  Bruno Haible  <bruno@clisp.org>
39347         Refactor frexp*-ieee tests.
39348         * tests/test-frexp-ieee.h: New file.
39349         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
39350         (main): Just call test_function.
39351         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
39352         (main): Just call test_function.
39353         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
39354         (main): Just call test_function.
39355         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
39356         * modules/frexp-ieee-tests (Files): Likewise.
39357         * modules/frexpl-ieee-tests (Files): Likewise.
39359         Tests for module 'frexpl-ieee'.
39360         * modules/frexpl-ieee-tests: New file.
39361         * tests/test-frexpl-ieee.c: New file.
39363         New module 'frexpl-ieee'.
39364         * modules/frexpl-ieee: New file.
39366         Tests for module 'frexp-ieee'.
39367         * modules/frexp-ieee-tests: New file.
39368         * tests/test-frexp-ieee.c: New file.
39370         New module 'frexp-ieee'.
39371         * modules/frexp-ieee: New file.
39373         Tests for module 'frexpf-ieee'.
39374         * modules/frexpf-ieee-tests: New file.
39375         * tests/test-frexpf-ieee.c: New file.
39377         New module 'frexpf-ieee'.
39378         * modules/frexpf-ieee: New file.
39380 2012-02-26  Bruno Haible  <bruno@clisp.org>
39382         roundl-ieee tests: More tests.
39383         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39384         (main): Add tests for [MX] shaded specification in POSIX.
39385         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39386         (Depends-on): Add isnanl-nolibm.
39388         round-ieee tests: More tests.
39389         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39390         (main): Add tests for [MX] shaded specification in POSIX.
39391         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39392         (Depends-on): Add isnand-nolibm.
39394         roundf-ieee tests: More tests.
39395         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39396         (main): Add tests for [MX] shaded specification in POSIX.
39397         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39398         (Depends-on): Add isnanf-nolibm.
39400         truncl-ieee tests: More tests.
39401         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39402         (main): Add tests for [MX] shaded specification in POSIX.
39403         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39404         (Depends-on): Add isnanl-nolibm.
39406         trunc-ieee tests: More tests.
39407         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39408         (main): Add tests for [MX] shaded specification in POSIX.
39409         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39410         (Depends-on): Add isnand-nolibm.
39412         truncf-ieee tests: More tests.
39413         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39414         (main): Add tests for [MX] shaded specification in POSIX.
39415         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39416         (Depends-on): Add isnanf-nolibm.
39418         ceill-ieee tests: More tests.
39419         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39420         (main): Add tests for [MX] shaded specification in POSIX.
39421         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39422         (Depends-on): Add isnanl-nolibm.
39424         ceil-ieee tests: More tests.
39425         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39426         (main): Add tests for [MX] shaded specification in POSIX.
39427         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39428         (Depends-on): Add isnand-nolibm.
39430         ceilf-ieee tests: More tests.
39431         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39432         (main): Add tests for [MX] shaded specification in POSIX.
39433         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39434         (Depends-on): Add isnanf-nolibm.
39436         floorl-ieee tests: More tests.
39437         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39438         (main): Add tests for [MX] shaded specification in POSIX.
39439         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39440         (Depends-on): Add isnanl-nolibm.
39442         floor-ieee tests: More tests.
39443         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39444         (main): Add tests for [MX] shaded specification in POSIX.
39445         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39446         (Depends-on): Add isnand-nolibm.
39448         floorf-ieee tests: More tests.
39449         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39450         (main): Add tests for [MX] shaded specification in POSIX.
39451         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39452         (Depends-on): Add isnanf-nolibm.
39454 2012-02-26  Bruno Haible  <bruno@clisp.org>
39456         fpieee: More comments.
39457         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39459 2012-02-25  Bruno Haible  <bruno@clisp.org>
39461         Tests for module 'log10l'.
39462         * modules/log10l-tests: New file.
39463         * tests/test-log10l.c: New file.
39464         * tests/test-math-c++.cc: Check the declaration of log10l.
39466         New module 'log10l'.
39467         * lib/math.in.h (log10l): New declaration.
39468         * lib/log10l.c: New file.
39469         * m4/log10l.m4: New file.
39470         * modules/log10l: New file.
39471         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39473         HAVE_DECL_LOG10L.
39474         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39475         HAVE_DECL_LOG10L.
39476         * doc/posix-functions/log10l.texi: Mention the new module.
39478 2012-02-25  Bruno Haible  <bruno@clisp.org>
39480         fmodl, remainder*: Avoid wrong results due to rounding errors.
39481         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39482         expected bounds.
39483         * lib/remainderf.c (remainderf): Likewise.
39484         * lib/remainder.c (remainder): Likewise.
39485         * lib/remainderl.c (remainderl): Likewise.
39487 2012-02-25  Bruno Haible  <bruno@clisp.org>
39489         Tests for module 'remainderl'.
39490         * modules/remainderl-tests: New file.
39491         * tests/test-remainderl.c: New file.
39492         * tests/test-math-c++.cc: Check the declaration of remainderl.
39494         New module 'remainderl'.
39495         * lib/math.in.h (remainderl): New declaration.
39496         * lib/remainderl.c: New file.
39497         * m4/remainderl.m4: New file.
39498         * modules/remainderl: New file.
39499         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39501         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39502         HAVE_REMAINDERL.
39503         * doc/posix-functions/remainderl.texi: Mention the new module.
39505 2012-02-25  Bruno Haible  <bruno@clisp.org>
39507         Tests for module 'remainderf'.
39508         * modules/remainderf-tests: New file.
39509         * tests/test-remainderf.c: New file.
39510         * tests/test-math-c++.cc: Check the declaration of remainderf.
39512         New module 'remainderf'.
39513         * lib/math.in.h (remainderf): New declaration.
39514         * lib/remainderf.c: New file.
39515         * m4/remainderf.m4: New file.
39516         * modules/remainderf: New file.
39517         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39519         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39520         HAVE_REMAINDERF.
39521         * doc/posix-functions/remainderf.texi: Mention the new module.
39523 2012-02-25  Bruno Haible  <bruno@clisp.org>
39525         remainder: Support for MSVC.
39526         * lib/math.in.h (remainder): New declaration.
39527         * lib/remainder.c: New file.
39528         * m4/remainder.m4: New file.
39529         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39530         (Depends-on): Add math, round, fma.
39531         (configure.ac): Use results of gl_FUNC_REMAINDER.
39532         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39534         HAVE_DECL_REMAINDER.
39535         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39536         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39537         * tests/test-math-c++.cc: Check the declaration of remainder.
39538         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39539         problems are fixed.
39541 2012-02-25  Bruno Haible  <bruno@clisp.org>
39543         Tests for module 'fmodl'.
39544         * modules/fmodl-tests: New file.
39545         * tests/test-fmodl.c: New file.
39546         * tests/test-math-c++.cc: Check the declaration of fmodl.
39548         New module 'fmodl'.
39549         * lib/math.in.h (fmodl): New declaration.
39550         * lib/fmodl.c: New file.
39551         * m4/fmodl.m4: New file.
39552         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39554         REPLACE_FMODL.
39555         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39556         REPLACE_FMODL.
39557         * modules/fmodl: New file.
39558         * doc/posix-functions/fmodl.texi: Mention the new module.
39560 2012-02-25  Bruno Haible  <bruno@clisp.org>
39562         Tests for module 'modfl'.
39563         * modules/modfl-tests: New file.
39564         * tests/test-modfl.c: New file.
39565         * tests/test-math-c++.cc: Check the declaration of modfl.
39567         New module 'modfl'.
39568         * lib/math.in.h (modfl): New declaration.
39569         * lib/modfl.c: New file.
39570         * m4/modfl.m4: New file.
39571         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39573         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39574         * modules/modfl: New file.
39575         * doc/posix-functions/modfl.texi: Mention the new module.
39577 2012-02-25  Bruno Haible  <bruno@clisp.org>
39579         Tests for module 'fabsl'.
39580         * modules/fabsl-tests: New file.
39581         * tests/test-fabsl.c: New file.
39582         * tests/test-math-c++.cc: Check the declaration of fabsl.
39584         New module 'fabsl'.
39585         * lib/math.in.h (fabsl): New declaration.
39586         * lib/fabsl.c: New file.
39587         * m4/fabsl.m4: New file.
39588         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39590         REPLACE_FABSL.
39591         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39592         REPLACE_FABSL.
39593         * modules/fabsl: New file.
39594         * doc/posix-functions/fabsl.texi: Mention the new module.
39596 2012-02-25  Bruno Haible  <bruno@clisp.org>
39598         fabs tests: More tests.
39599         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39600         (zero): New variable.
39601         (main): Add tests for signed zero.
39602         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39604         fabsf tests: More tests.
39605         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39606         (zero): New variable.
39607         (main): Add tests for signed zero.
39608         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39610 2012-02-24  Bruno Haible  <bruno@clisp.org>
39612         atanl: Provide function definition on MSVC.
39613         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39614         function pointer.
39615         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39617 2012-02-24  Bruno Haible  <bruno@clisp.org>
39619         acosl: Provide function definition on MSVC.
39620         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39621         function pointer.
39622         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39624 2012-02-24  Bruno Haible  <bruno@clisp.org>
39626         asinl: Provide function definition on MSVC.
39627         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39628         function pointer.
39629         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39631 2012-02-24  Bruno Haible  <bruno@clisp.org>
39633         tanl: Provide function definition on MSVC.
39634         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39635         function pointer.
39636         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39638 2012-02-24  Bruno Haible  <bruno@clisp.org>
39640         cosl: Provide function definition on MSVC.
39641         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39642         function pointer.
39643         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39645 2012-02-24  Bruno Haible  <bruno@clisp.org>
39647         sinl: Provide function definition on MSVC.
39648         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39649         function pointer.
39650         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39652 2012-02-24  Bruno Haible  <bruno@clisp.org>
39654         logl: Provide function definition on MSVC.
39655         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39656         function pointer.
39657         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39659 2012-02-24  Bruno Haible  <bruno@clisp.org>
39661         expl: Provide function definition on MSVC.
39662         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39663         function pointer.
39664         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39666 2012-02-24  Bruno Haible  <bruno@clisp.org>
39668         sqrtl: Provide function definition on MSVC.
39669         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39670         a function pointer.
39671         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39673 2012-02-24  Bruno Haible  <bruno@clisp.org>
39675         ceill: Provide function definition on MSVC.
39676         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39677         used as a function pointer.
39678         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39680 2012-02-24  Bruno Haible  <bruno@clisp.org>
39682         floorl: Provide function definition on MSVC.
39683         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39684         used as a function pointer.
39685         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39687 2012-02-24  Bruno Haible  <bruno@clisp.org>
39689         ceilf: Provide function definition on MSVC.
39690         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39691         used as a function pointer.
39692         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39694 2012-02-24  Bruno Haible  <bruno@clisp.org>
39696         floorf: Provide function definition on MSVC.
39697         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39698         used as a function pointer.
39699         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39701 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39703         stdnoreturn: new module
39704         This implements a replacement for C11's <stdnoreturn.h>.
39705         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39706         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39707         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39708         * tests/test-stdnoreturn.c: New files.
39710 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39712         regex: fix false multibyte matches in some regular expressions
39713         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39714         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39715         * lib/regex_internal.c (re_string_skip_chars):
39716         Fix miscomputation of remain_len that may cause incomplete
39717         multi-byte character and false match.
39719 2012-02-24  Jim Meyering  <meyering@redhat.com>
39721         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39722         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39723         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39724         Remove now-unnecessary str''cmp obfuscation.
39725         Suggested by Akim Demaille.
39727 2012-02-24  Bruno Haible  <bruno@clisp.org>
39729         streq: Rename macro.
39730         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39731         * NEWS: Mention the change.
39732         * lib/mbrtowc.c (mbrtowc): Update.
39733         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39734         * lib/wcwidth.c (wcwidth): Update.
39735         Suggested by Akim Demaille and Jim Meyering.
39737 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39739         regex: fix typo in definition of MIN
39740         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39741         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39743 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39744             Bruno Haible  <bruno@clisp.org>
39746         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39747         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39748         entries into a stack-allocated buffer directly.
39749         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39751 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39752             Bruno Haible  <bruno@clisp.org>
39754         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39756          - There were several instances of this pattern:
39758              for (;;) {
39759                n = acl (f, GETACLCNT, 0, NULL);
39760                [ allocate an array A of size N ]
39761                if (acl (f, GETACL, n, a) == n)
39762                  break;
39763              }
39765            This loop might never terminate if some other process is constantly
39766            manipulating the file's ACL.  The loop should be rewritten to
39767            terminate.
39769          - The acl (... GETACLNT ...) call is merely an optimization; its value
39770            is merely a hint as to how big to make the array.  A better
39771            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39772            and just guess a reasonably-big size, growing the size and trying
39773            again if it's not large enough.  This guarantees termination, and
39774            saves a system call.
39776         * lib/acl-internal.h: Include <limits.h>.
39777         (MIN, SIZE_MAX): New macros.
39778         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39779         a stack-allocated buffer, and use malloc if it does not fit. Don't
39780         use GETACLCNT.
39781         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39783 2012-02-19  Bruno Haible  <bruno@clisp.org>
39785         acl: Fix endless loop on Solaris with vxfs.
39786         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39787         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39788         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39789         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39790         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39791         Reported by Bill Jones in
39792         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
39794 2012-02-19  Bruno Haible  <bruno@clisp.org>
39796         acl: Fix copy-acl test failure on Solaris 11.0.
39797         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
39798         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
39799         that this function returns 0 in some more cases.
39801 2012-02-19  Bruno Haible  <bruno@clisp.org>
39803         acl: Update doc references.
39804         * doc/acl-resources.txt: Update links to Solaris documentation.
39806 2012-02-19  Bruno Haible  <bruno@clisp.org>
39808         Fix test failure in many locales on Solaris 11.
39809         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
39810         'tr' arguments.
39811         * tests/test-pipe-filter-ii1.c (main): Likewise.
39812         * build-aux/bootstrap (check_versions): Run 'tr' command with range
39813         expressions in the C locale.
39814         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39815         * m4/host-os.m4 (gl_HOST_OS): Likewise.
39817 2012-02-19  Bruno Haible  <bruno@clisp.org>
39819         gnulib-tool: Improve usage message.
39820         * gnulib-tool (func_usage): Move doc of --help and --version to the
39821         section "Operation modes".
39823 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39825         README-release: make it easier to execute commands
39826         * top/README-release: break commands out on to separate lines.
39828 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39830         GNUmakefile: simplify detection of unconfigured trees
39831         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39832         whether the tree make is being run from is already configured or
39833         not.  Related simplifications.
39835 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39837         * gnulib-tool (func_usage): Document --help and --version.
39839 2012-02-11  Jim Meyering  <meyering@redhat.com>
39841         bootstrap: don't exit 0 upon gnulib-tool failure
39842         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39843         its exit status, not 0.
39845 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39847         README-release: various improvements
39848         * top/README-release: Give a command to push changes for the
39849         release.  Add "distcheck" to list of other pre-release checks.
39850         Fix instance of "make stable" which should be "make TYPE".
39852 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39854         maint: replace FSF snail-mail addresses with URLs
39855         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39856         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39857         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39858         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39859         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39860         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39861         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39862         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39863         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39864         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39865         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39866         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39867         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39868         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39869         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39870         * lib/glthread/thread.c, lib/glthread/thread.h:
39871         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39872         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39873         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39874         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39875         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39876         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39877         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39878         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39879         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39880         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39881         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39882         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39883         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39884         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39885         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39886         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39887         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39888         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39889         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39890         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39891         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39892         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39893         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39894         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39895         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39896         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39897         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39898         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39899         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39900         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39901         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39902         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39903         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39904         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39905         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39906         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39907         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39908         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39909         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39910         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39911         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39912         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39913         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39914         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39915         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39916         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39917         * tests/test-poll.c, tests/test-quotearg-simple.c:
39918         * tests/test-quotearg.c, tests/test-quotearg.h:
39919         * tests/test-round-ieee.c, tests/test-round1.c:
39920         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39921         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39922         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39923         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39924         * tests/test-strerror.c, tests/test-strerror_r.c:
39925         * tests/test-strsignal.c, tests/test-strverscmp.c:
39926         * tests/test-xmemdup0.c:
39927         Replace FSF snail mail addresses with URLs, as per GNU coding
39928         standards.  See glibc bug
39929         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39931 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39933         README-release: capitalize a word and split a line
39934         * top/README-release: Fix punctuation and spacing.
39936 2012-02-08  Akim Demaille  <demaille@gostai.com>
39938         fatal-signal: use C prototypes (with explicit void).
39939         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39940         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39942 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39944         regex: spelling fix
39945         * lib/regexec.c: spelling fix
39947         regex: rely on stdint.h for SIZE_MAX
39948         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39950 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39952         regex: merge glibc changes
39954         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39955         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39956         (init_word_char): Work even if bitset words are not exactly 32 or
39957         64 bits wide.  Don't assume there are no padding bits.
39958         * lib/regex.c [_LIBC]: Do not include <config.h>.
39959         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39960         and -Wtype-limits.
39961         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39962         needless disagreement with glibc.  All uses changed.  Define it to
39963         1 only if _GNU_SOURCE, to match glibc.
39964         (_REG_RM_NAME): Remove; no longer needed, since the names in
39965         question are now all protected by __USE_GNU.
39966         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39967         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39968         * lib/regex_internal.h (MIN): New macro.
39970         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39971         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39973         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39974         * lib/regex_internal.c (re_string_fetch_byte_case):
39975         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39976         is miscompiled, and it turns out it is because of an incorrect
39977         attribute on re_string_fetch_byte_case.  Unlike
39978         re_string_peek_byte_case, this one is really not pure, it modifies
39979         memory (increments pstr->cur_idx), and with the pure attribute GCC
39980         assumed it doesn't and it cached the presumed value of
39981         regexp->cur_idx in a variable across the
39982          for (;; ++i)
39983            {
39984              if (i >= BRACKET_NAME_BUF_SIZE)
39985                return REG_EBRACK;
39986              if (token->type == OP_OPEN_CHAR_CLASS)
39987                ch = re_string_fetch_byte_case (regexp);
39988              else
39989                ch = re_string_fetch_byte (regexp);
39990              if (re_string_eoi(regexp))
39991                return REG_EBRACK;
39992              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39993                break;
39994              elem->opr.name[i] = ch;
39995            }
39997         2011-11-29 Andreas Schwab <schwab@redhat.com>
39998         * lib/regcomp.c (build_equiv_class):
39999         Fix access after end of search string in regex matcher.
40001         2011-11-12 Ulrich Drepper <drepper@redhat.com>
40002         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
40004         2011-10-12 Ulrich Drepper <drepper@redhat.com>
40005         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
40007         2011-10-11 Ulrich Drepper <drepper@redhat.com>
40008         * lib/regcomp.c (parse_branch, parse_sub_exp):
40009         More regex memory leak fixes and tests.
40010         (parse_sub_exp, parse_bracket_exp):
40011         Fix memory leak for some invalid regular expressions.
40013         2011-05-28 Ulrich Drepper <drepper@gmail.com>
40014         * lib/regex_internal.c, lib/regexec.c:
40015         Fix unnecessary overallocation due to incomplete character.  When
40016         incomplete characters are found at the end of a string the code
40017         ran amok and allocated lots of memory.  Stricter limits are now in
40018         place.
40020         2011-05-20 Reuben Thomas <rrt@sc3d.org>
40021         * lib/regex.h: Update documentation.
40023         2011-05-16 Aharon Robbins <arnold@skeeve.com>
40024         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
40026         2010-05-05 Andreas Schwab <schwab@redhat.com>
40027         * lib/regexec.c (find_collation_sequence_value):
40028         Fix lookup of collation sequence value during regexp matching.
40030         2010-01-22 Ulrich Drepper <drepper@redhat.com>
40031         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
40033         2008-01-16 Ulrich Drepper <drepper@redhat.com>
40034         * lib/regex.h: Cleanup namespace.
40036         2007-11-26 Ulrich Drepper <drepper@redhat.com>
40037         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
40039         2007-08-26 Ulrich Drepper <drepper@redhat.com>
40040         * lib/regex_internal.h: Prevent some declarations and definitions
40041         to be seen when used in tests.
40043         2005-05-06 Ulrich Drepper <drepper@redhat.com>
40044         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
40045         __libc_lock_* macros if not _LIBC.
40046         (struct re_dfa_t): Add lock.
40048 2012-02-07  Eric Blake  <eblake@redhat.com>
40050         maint.mk: also prohibit lower-case @var@
40051         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
40052         lower case, like @top_srcdir@.
40054 2012-02-04  Eric Blake  <eblake@redhat.com>
40056         canonicalize: avoid uninitialized memory use
40057         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
40058         random '/' left in dest.
40059         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
40061 2012-02-04  Bruno Haible  <bruno@clisp.org>
40063         isatty: Fix test failure of ptsname_r on native Windows.
40064         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
40065         and don't set errno.
40066         (isatty): Test first whether fd is valid. Set errno when returning 0.
40068 2012-02-04  Bruno Haible  <bruno@clisp.org>
40070         spawn-pipe tests: Fix a NULL program name in a diagnostic.
40071         * tests/test-spawn-pipe-main.c: Include progname.h.
40072         (main): Invoke set_program_name.
40073         * modules/spawn-pipe-tests (Depends-on): Add progname.
40075         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
40076         * tests/test-nonblocking-socket-main.c: Include progname.h.
40077         (main): Invoke set_program_name.
40078         * modules/nonblocking-socket-tests (Depends-on): Add progname.
40080         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
40081         * tests/test-nonblocking-pipe-main.c: Include progname.h.
40082         (main): Invoke set_program_name.
40083         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
40085 2012-02-04  Eric Blake  <eblake@redhat.com>
40087         canonicalize-lgpl: fix // handling
40088         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
40090         canonicalize: fix // handling
40091         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
40092         /// to //, since only // is special.
40094 2012-02-04  Bruno Haible  <bruno@clisp.org>
40096         ioctl: Fix test failure on native Windows.
40097         * lib/ioctl.c: Include msvc-nothrow.h.
40098         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
40100 2012-02-04  Bruno Haible  <bruno@clisp.org>
40102         fsync: Avoid test failure on native Windows.
40103         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
40104         read-only.
40106 2012-02-04  Bruno Haible  <bruno@clisp.org>
40108         sys_select: Avoid syntax error on OpenBSD 5.0.
40109         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
40110         currently being included, just include the system's <sys/select.h>.
40112 2012-02-04  Bruno Haible  <bruno@clisp.org>
40114         sys_select: Avoid syntax error on OpenBSD 5.0.
40115         * lib/sys_select.in.h: Include <signal.h> only after the include_next
40116         <sys/select.h>, not before.
40117         Reported by Jiri B <jirib@devio.us>.
40119 2012-02-04  Bruno Haible  <bruno@clisp.org>
40121         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
40122         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
40123         global variables.
40124         * tests/test-get-rusage-data.c (main): Likewise.
40125         Reported by Jim Meyering.
40127 2012-02-04  Bruno Haible  <bruno@clisp.org>
40129         stdioext: Fix last commit.
40130         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
40132 2012-02-03  Bruno Haible  <bruno@clisp.org>
40134         stdioext: Add tentative support for Plan9.
40135         * lib/stdio-impl.h: Include <errno.h>.
40136         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
40137         * lib/freadable.c (freadable): Likewise.
40138         * lib/fwritable.c (fwritable): Likewise.
40139         * lib/fbufmode.c (fbufmode): Likewise.
40140         * lib/freading.c (freading): Likewise.
40141         * lib/fwriting.c (fwriting): Likewise.
40142         * lib/freadptr.c (freadptr): Likewise.
40143         * lib/freadseek.c (freadptrinc): Likewise.
40144         * lib/freadahead.c (freadahead): Likewise.
40145         * lib/fpurge.c (fpurge): Likewise.
40146         * lib/fseeko.c (rpl_fseeko): Likewise.
40147         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
40148         Reported by Jens Staal <staal1978@gmail.com>.
40150 2012-02-02  Jim Meyering  <meyering@redhat.com>
40152         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
40153         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
40154         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
40155         not even to try to add the attribute.  Instead, add a pragma to suppress
40156         the suggestion/warning.
40158 2012-01-31  Karl Berry  <karl@gnu.org>
40160         setstate doc: typo.
40161         * doc/posix-functions/setstate.texi (setstate): { not (.
40163 2012-01-31  Bruno Haible  <bruno@clisp.org>
40165         popen: Make more robust on Windows.
40166         * lib/popen.c: On native Windows, use the _popen based code even if
40167         HAVE_POPEN is set.
40168         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
40169         environment variable on native Windows.
40171 2012-01-30  Bruno Haible  <bruno@clisp.org>
40173         pclose: Fix typo.
40174         * lib/stdio.in.h (pclose): Fix typo in warning message.
40176 2012-01-30  Bruno Haible  <bruno@clisp.org>
40178         doc about getlogin_r, setstate.
40179         * doc/posix-functions/getlogin_r.texi: List the incompatible
40180         declaration problem under "not fixed by gnulib".
40181         * doc/posix-functions/setstate.texi: Mention incompatible declaration
40182         problem on Solaris 11 and other platforms.
40184 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
40185             Bruno Haible  <bruno@clisp.org>
40187         poll tests: Make test more robust.
40188         * tests/test-poll.c: Include macros.h.
40189         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
40190         return value of various I/O operations.
40191         * modules/poll-tests (Files): Add tests/macros.h.
40193 2012-01-30  Bruno Haible  <bruno@clisp.org>
40195         sys_stat: Fix support for mingw64 and MSVC.
40196         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
40197         header files already do it.
40198         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
40199         stat itself.
40200         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40202 2012-01-30  Bruno Haible  <bruno@clisp.org>
40204         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
40205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
40206         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
40208 2012-01-29  Bruno Haible  <bruno@clisp.org>
40210         quotearg: Fix test failure on MacOS X 10.5.
40211         * tests/test-quotearg-simple.c: Include localcharset.h.
40212         (main): If the locale encoding is not ASCII, bypass the tests of
40213         locale_quoting_style and clocale_quoting_style.
40214         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
40216 2012-01-29  Jim Meyering  <meyering@redhat.com>
40218         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
40219         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
40220         detect uses of canonicalize_file_name.
40222 2012-01-28  Bruno Haible  <bruno@clisp.org>
40224         test-framework-sh: Fix test failure with AIX 7.1 diff.
40225         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
40226         in column 1, like 'diff -c' does.
40227         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
40228         whether 'diff -u' is used. Instead, test whether the output contains
40229         some '@' character.
40231 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40233         strtoimax: eliminate need for stdint.h, inttypes.h checks
40234         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
40235         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
40236         the prerequisites for a recently-introduced strtoimax test.
40237         I guess this might cause strtoimax to be replaced when not
40238         strictly necessary on older hosts, but this shouldn't introduce
40239         any bugs and it should make Emacs 'configure' faster on typical
40240         modern hosts.  Problem discovered when importing the latest gnulib
40241         to an Emacs test version.
40242         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
40244 2012-01-28  Bruno Haible  <bruno@clisp.org>
40246         sys_time: Override 'struct timeval' on some native Windows platforms.
40247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
40248         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
40249         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
40250         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
40251         needs to be overridden.
40252         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
40253         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
40254         * tests/test-sys_select.c: Check that the tv_sec member has the same
40255         size as a 'time_t'.
40256         * tests/test-sys_time.c: Likewise.
40257         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
40258         is set, set also REPLACE_GETTIMEOFDAY.
40259         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
40260         convert the resulting 'struct timeval' before returning.
40261         * lib/select.c: Include <sys/time.h>.
40262         (select, timeval): Undefine at the right place.
40263         * modules/select (Depends-on): Add sys_time.
40264         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
40265         some Windows platforms.
40266         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40268 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40270         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
40271         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
40272         an integer.
40273         * lib/fcntl.c (dupfd): Likewise.
40274         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
40276 2012-01-28  Bruno Haible  <bruno@clisp.org>
40278         fcntl: Avoid compilation error on native Windows.
40279         * modules/fcntl (Depends-on): Add 'close'.
40281 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40283         select, poll, isatty: Avoid warnings on x86_64 mingw64.
40284         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
40285         pointer to an integer.
40286         * lib/poll.c (IsConsoleHandle): Likewise.
40287         * lib/isatty.c (IsConsoleHandle): Likewise.
40289 2012-01-28  Jim Meyering  <meyering@redhat.com>
40291         doc: clarify README-release
40292         * top/README-release: Clarify: you should make a point to have
40293         the latest stable versions of build tools in your PATH, and the
40294         reference to buildreq is solely for its list of tool names, not
40295         for its minimal-functional version numbers.
40296         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
40298         maint.mk: use more readable (yet functionally equivalent) quoting
40299         It is common to quote a single quote in a single quoted string like
40300         this:  '...'\''...'.  Unless you know the idiom, that looks like
40301         gibberish, so prefer to double-quote the string when possible.
40302         Then you can use a more readable, lone single quote: "...'..."
40303         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
40304         "don't" is more readable than the equivalent 'don'\''t'.
40305         (sc_cast_of_x_alloc_return_value): Likewise.
40306         (sc_cast_of_alloca_return_value): Likewise.
40307         (sc_makefile_path_separator_check): Similar: use ":" in '...',
40308         rather than '\'':'\''.
40310 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40312         stdalign: relax _Alignof and tighten _Alignas test
40313         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
40314         as it was too strict: alignof must divide offsetof, but it need
40315         not equal offsetof.  Inspired by Joseph S. Myers's comment
40316         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
40317         Conversely, tighten the _Alignas test a bit, as the resulting
40318         alignment must be exactly 8.
40320 2012-01-27  Bruno Haible  <bruno@clisp.org>
40322         stdalign: Document the last change.
40323         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
40325 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40327         stdalign: check that alignof and offsetof are consistent
40328         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
40329         Problem reported for gnulib by Richard W.M. Jones in
40330         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
40332 2012-01-27  Jim Meyering  <meyering@redhat.com>
40334         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
40335         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
40336         convert a sequence with gaps to the minimal containing range.
40337         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
40338         * tests/test-update-copyright.sh: Test for this.
40339         The FSF confirmed it is ok to do this, assuming there is at
40340         least one significant change per year in the affected range:
40341         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
40343 2012-01-26  Bruno Haible  <bruno@clisp.org>
40345         pipe2: refine doc about thread-safety
40346         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
40347         multithread-safety problem.
40348         * doc/glibc-functions/accept4.texi: Likewise.
40350 2012-01-26  Bruno Haible  <bruno@clisp.org>
40352         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
40353         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
40354         In the test program, include <fcntl.h>, for O_RDONLY.
40356 2012-01-26  Eric Blake  <eblake@redhat.com>
40358         pipe2: document lack of thread-safety in replacement
40359         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
40360         issue in replacement.
40361         * doc/glibc-functions/accept4.texi (accept4): Likewise.
40362         Based on a report by Eric Wong.
40364 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40365             Bruno Haible  <bruno@clisp.org>
40367         malloca: Avoid warnings on x86_64 mingw64.
40368         * lib/malloca.c: Include <stdint.h>.
40369         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
40370         * modules/malloca (Depends-on): Add stdint.
40371         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
40373 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40375         obstack: remove __STDC__ conditionals
40376         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
40377         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
40378         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
40379         m4/include_next.m4 as the only gnulib-maintained places that still
40380         refer to __STDC__.
40382 2012-01-24  Bruno Haible  <bruno@clisp.org>
40384         havelib: Modern quoting.
40385         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40386         the recent change to the GNU coding standards.
40388 2012-01-24  Bruno Haible  <bruno@clisp.org>
40390         stdint: Improve support for Android.
40391         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40392         Reported by Simon Josefsson <simon@josefsson.org>.
40394 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40396         doc: omit trailing empty lines from INSTALL etc.
40397         * doc/Makefile (INSTALL): Omit trailing empty lines.
40398         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40399         omit trailing empty lines.  This simplifies the build procedure.
40401 2012-01-23  Jim Meyering  <meyering@redhat.com>
40403         tests: avoid spurious warnings about gl_sockets_startup
40404         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40405         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40406         reporting a "statement with no effect".
40407         * tests/test-accept.c (main): Mark as "(void)".
40408         * tests/test-accept4.c (main): Likewise.
40409         * tests/test-bind.c (main): Likewise.
40410         * tests/test-connect.c (main): Likewise.
40411         * tests/test-getpeername.c (main): Likewise.
40412         * tests/test-getsockname.c (main): Likewise.
40413         * tests/test-getsockopt.c (main): Likewise.
40414         * tests/test-listen.c (main): Likewise.
40415         * tests/test-recv.c (main): Likewise.
40416         * tests/test-recvfrom.c (main): Likewise.
40417         * tests/test-send.c (main): Likewise.
40418         * tests/test-sendto.c (main): Likewise.
40419         * tests/test-setsockopt.c (main): Likewise.
40420         * tests/test-shutdown.c (main): Likewise.
40422 2012-01-21  Bruno Haible  <bruno@clisp.org>
40424         locale-fr.m4: Fix for Android.
40425         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40426         failure of the test program on Bionic libc.
40428 2012-01-21  Jim Meyering  <meyering@redhat.com>
40430         bootstrap: fail when bootstrap_post_import_hook fails
40431         Otherwise, it's far too easy to miss diagnostics emitted
40432         between gnulib-tool's output and that of running configure.
40433         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40435 2012-01-17  Jim Meyering  <meyering@redhat.com>
40437         maint: enable sc_trailing_blank
40438         * build-aux/pmccabe.css: Remove trailing blanks.
40439         * doc/acl-cygwin.txt: Likewise.
40440         * doc/gnu-oids.texi: Likewise
40441         * cfg.mk: Enable sc_trailing_blank.
40442         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40444 2012-01-17  Jim Meyering  <meyering@redhat.com>
40446         maint: enable sc_prohibit_openat_without_use
40447         * cfg.mk: Enable sc_prohibit_openat_without_use.
40448         Exempt lib/selinux-at.c.
40450 2012-01-17  Jim Meyering  <meyering@redhat.com>
40452         maint: enable sc_prohibit_cloexec_without_use
40453         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40454         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40456 2012-01-17  Jim Meyering  <meyering@redhat.com>
40458         maint: enable sc_prohibit_intprops_without_use
40459         * cfg.mk: Enable sc_prohibit_intprops_without_use
40460         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40462 2012-01-17  Jim Meyering  <meyering@redhat.com>
40464         maint: enable sc_prohibit_hash_pjw_without_use
40465         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40466         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40467         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40468         following " (".
40470 2012-01-17  Jim Meyering  <meyering@redhat.com>
40472         maint: enable double-word-prohibiting rule
40473         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40474         Exempt three files.
40476 2012-01-17  Jim Meyering  <meyering@redhat.com>
40478         maint: remove empty lines at EOF, but excluding modules/*
40479         Apply syntax rules at home as well as abroad.  Most changes
40480         were induced by running this:
40481           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40482             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40483             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40484         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40485         Exempt modules/* and two binary files.
40486         Also exempt doc/INSTALL*, per request from Bruno Haible.
40487         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40488         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40489         * doc/Copyright/request-assign.future: Likewise.
40490         * doc/Copyright/request-disclaim.changes: Likewise.
40491         * doc/INSTALL: Likewise.
40492         * doc/INSTALL.ISO: Likewise.
40493         * doc/INSTALL.UTF-8: Likewise.
40494         * doc/acl-cygwin.txt: Likewise.
40495         * doc/acl-resources.txt: Likewise.
40496         * doc/fdl-1.2.texi: Likewise.
40497         * doc/fdl-1.3.texi: Likewise.
40498         * doc/fdl.texi: Likewise.
40499         * lib/argp-pin.c: Likewise.
40500         * lib/round.c: Likewise.
40501         * lib/unicase/u16-totitle.c: Likewise.
40502         * lib/unictype/block_test.c: Likewise.
40503         * lib/uninorm/canonical-decomposition.c: Likewise.
40504         * m4/README: Likewise.
40505         * m4/relocatable-lib.m4: Likewise.
40506         * tests/test-isnand-nolibm.c: Likewise.
40507         * tests/test-isnand.c: Likewise.
40508         * tests/uninorm/NormalizationTest.txt: Likewise.
40510 2012-01-17  Jim Meyering  <meyering@redhat.com>
40512         maint: add framework to run syntax-check rules against gnulib sources
40513         * cfg.mk: New file, to disable all currently-failing tests.
40514         We'll enable them one by one, as they are made to pass.
40515         * Makefile (sc_maint): New rule.
40517 2012-01-21  Bruno Haible  <bruno@clisp.org>
40519         stdint: Add support for Android.
40520         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40521         include the system's <stdint.h>.
40522         Reported by Simon Josefsson <simon@josefsson.org>.
40524 2012-01-19  Jim Meyering  <meyering@redhat.com>
40526         bootstrap: add bootstrap_post_import_hook
40527         Bison does still need something like the gnulib_mk_hook whose
40528         invocation I had to remove along with slurp in commit 767ccd40.
40529         Technically, we could get along without it, but doing so would
40530         have required living with a warning and a mandatory post-bootstrap
40531         automake rerun.
40532         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40533         (bootstrap_post_import_hook): New function.
40534         Invoke it after gnulib-tool --import and before autoreconf.
40536 2012-01-18  Jim Meyering  <meyering@redhat.com>
40538         gitlog-to-changelog: don't use "no_"-prefixed variable name
40539         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40540         to enable both --cluster and --no-cluster.  Change variable name,
40541         s/\$no_cluster/$cluster/, and reverse usage to match.
40543         gitlog-to-changelog: use "||", not "or" in expressions
40544         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40545         expressions.
40547 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40549         gitlog-to-changelog: new option --no-cluster
40550         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40551         clustering of adjacent commit messages.
40553 2012-01-17  Jim Meyering  <meyering@redhat.com>
40555         maint: spell file systems with two words, not one
40556         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40557         two words, not one.
40559 2012-01-16  Jim Meyering  <meyering@redhat.com>
40561         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40562         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40564 2012-01-16  Eric Blake  <eblake@redhat.com>
40566         bootstrap: cater to autoconf 2.59
40567         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40568         is not available.
40570         bootstrap: properly check for libtool
40571         * build-aux/bootstrap (libtoolize): Also run libtool when older
40572         usage is detected.
40574 2012-01-15  Bruno Haible  <bruno@clisp.org>
40576         Improve support for MSVC 9.
40577         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40578         clashes on MSVC.
40579         * lib/fcntl.in.h: Likewise.
40580         * lib/stdlib.in.h: Likewise.
40581         * lib/sys_stat.in.h: Likewise.
40583 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40585         gnupload: we hold the master copy of this script now
40586         For motivation and more information, see:
40587         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40588         * build-aux/gnupload: Make it clear in the heading comments that the
40589         master copy of this file is maintained by gnulib.  Since we are at
40590         it, bump its copyright year and ...
40591         ($scriptversion): ... the date in its version.
40592         ($usage): Patches and bug reports should be sent to the gnulib list,
40593         not the automake one.
40594         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40595         anymore.
40597 2012-01-15  Bruno Haible  <bruno@clisp.org>
40599         Fix module 'random'.
40600         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40601         initstate, setstate are declared.
40603 2012-01-14  Bruno Haible  <bruno@clisp.org>
40605         Tests for module 'random'.
40606         * modules/random-tests: New file.
40607         * tests/test-random.c: New file, based on tests/test-random_r.c.
40609         New module 'random'.
40610         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40611         declarations.
40612         * lib/random.c: New file, based on glibc/stdlib/random.c.
40613         * m4/random.m4: New file.
40614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40615         HAVE_RANDOM.
40616         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40617         * modules/random: New file.
40618         * config/srclist.txt: Add an entry for random.c.
40619         * doc/posix-functions/random.texi: Mention the 'random' module.
40620         * doc/posix-functions/initstate.texi: Likewise.
40621         * doc/posix-functions/setstate.texi: Likewise.
40622         * doc/posix-functions/srandom.texi: Likewise.
40624 2012-01-12  Bruno Haible  <bruno@clisp.org>
40626         random_r: Use common idioms.
40627         * lib/random_r.c: Include <stdlib.h> first.
40629         random_r: Override incompatible API on AIX, OSF/1.
40630         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40631         Override the system function if REPLACE_RANDOM_R is 1.
40632         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40633         and OSF/1, set REPLACE_RANDOM_R.
40634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40635         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40636         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40637         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40638         * doc/glibc-functions/random_r.texi: Likewise.
40639         * doc/glibc-functions/setstate_r.texi: Likewise.
40641         random_r: Support for MSVC 9.
40642         * lib/random_r.c: Include stdint.h, not inttypes.h.
40644 2012-01-12  Eric Blake  <eblake@redhat.com>
40646         inet_ntop: guard extra work by IF_LINT
40647         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40648         better code generation when not checking for warnings.
40649         Suggested by Paul Eggert and Jim Meyering.
40651         strptime: fix regression on mingw
40652         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40653         Fix regression.  Reported by Bruno Haible.
40655 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40656             Bruno Haible  <bruno@clisp.org>
40658         copy-file: add error-code-returning variant.
40659         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40660         (qcopy_file_preserving): New declaration.
40661         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40662         copy_file_preserving. Change return type to 'int'. Don't emit an error
40663         message here.
40664         (copy_file_preserving): New function.
40665         * tests/test-copy-file.c: Include <stdlib.h>.
40666         (main): Test qcopy_file_preserving if the environment variable
40667         NO_STDERR_OUTPUT is set.
40668         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40669         with NO_STDERR_OUTPUT
40670         * tests/test-copy-file-2.sh: Likewise.
40672 2012-01-10  Bruno Haible  <bruno@clisp.org>
40674         copy-file: Use 'quote' module consistently.
40675         * lib/copy-file.c (copy_file_preserving): Use quote().
40677         copy-file: Refactor.
40678         * lib/copy-file.c: Include quote.h.
40679         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40680         message here.
40681         * modules/copy-file (Depends-on): Add quote.
40683         acl: Export qcopy_acl.
40684         * lib/acl.h (qcopy_acl): New declaration.
40685         * lib/copy-acl.c (qcopy_acl): Make non-static.
40687         acl: Rename a local variable.
40688         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40690         acl: Align return values of copy_acl and qcopy_acl.
40691         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40692         maybe < -1.
40694 2012-01-11  Eric Blake  <eblake@redhat.com>
40696         strptime: silence gcc warnings
40697         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40698         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40699         Reported by Daniel P. Berrange.
40701         inet_ntop: silence gcc warning
40702         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40703         Reported by Daniel P. Berrange.
40705 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40707         getloadavg test: skip the test on GNU/Linux without /proc mounted
40708         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40709         file.  When /proc is not mounted, it always fails with ENOENT.
40710         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40711         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40713 2012-01-10  Bruno Haible  <bruno@clisp.org>
40715         regex: Avoid link error on MSVC 9.
40716         * modules/regex (Depends-on): Add wctype.
40718 2012-01-10  Bruno Haible  <bruno@clisp.org>
40720         doc: Mention --with-tests option.
40721         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40722         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40723         --with-tests.
40724         Reported by Reuben Thomas.
40726 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40728         users.txt: order package names lexicographically.
40729         * users.txt: Order package names lexicographically.
40731 2012-01-10  Jim Meyering  <meyering@redhat.com>
40733         maint.mk: fix description in comment
40734         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40736         ignore-value: remove deprecated ignore_ptr function
40737         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40738         * NEWS: Note this.
40740 2012-01-09  Jim Meyering  <meyering@redhat.com>
40742         test-init.sh: avoid a subshell
40743         * tests/test-init.sh: Remove protective subshell.
40744         Suggested by Bernhard Voelker.  While a subshell is normally
40745         required to protect against older shells (Solaris, FreeBSD) that
40746         warn about a missing program before performing redirection, the
40747         shell-selection tests performed by init.sh probably exclude any
40748         offending shell.
40750 2012-01-08  Bruno Haible  <bruno@clisp.org>
40752         setlocale tests: Avoid test failure on Solaris 11.0.
40753         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40754         variable.
40756 2012-01-08  Bruno Haible  <bruno@clisp.org>
40758         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40759         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40760         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40761         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40762         macro.
40763         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40764         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40765         * lib/spawn_faction_addopen.c: Add workaround implementation if
40766         HAVE_WORKING_POSIX_SPAWN.
40767         * modules/spawn (Makefile): Substitute
40768         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40769         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40770         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40771         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40772         (Depends-on): Update conditions.
40773         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40774         the Solaris 11 bug.
40776 2012-01-08  Bruno Haible  <bruno@clisp.org>
40778         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40779         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40781         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40782         macro.
40783         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40784         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40785         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40786         HAVE_WORKING_POSIX_SPAWN.
40787         * modules/spawn (Makefile): Substitute
40788         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40789         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40790         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40791         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40792         (Depends-on): Update conditions.
40793         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40794         the Solaris 11 bug.
40796 2012-01-08  Bruno Haible  <bruno@clisp.org>
40798         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
40799         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40801         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
40802         HAVE_WORKING_POSIX_SPAWN.
40803         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
40804         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
40805         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40806         * lib/spawn_faction_addclose.c: Add workaround implementation if
40807         HAVE_WORKING_POSIX_SPAWN.
40808         * modules/spawn (Makefile): Substitute
40809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40810         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
40811         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
40812         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40813         (Depends-on): Update conditions.
40814         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40815         the Solaris 11 bug.
40817 2012-01-08  Bruno Haible  <bruno@clisp.org>
40819         doc: Update for Solaris 11.0.
40820         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40821         * m4/printf.m4: Update comments.
40823 2012-01-08  Bruno Haible  <bruno@clisp.org>
40825         mktime: Avoid compilation error on Solaris 11.
40826         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40828 2012-01-08  Bruno Haible  <bruno@clisp.org>
40830         doc: Small fix.
40831         * doc/posix-headers/nl_types.texi: Correct platforms list.
40833 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40835         Add lgpl-3.0 module.
40836         * MODULES.html.sh (Support for building documentation): Add
40837         lgpl-3.0.
40838         * modules/lgpl-3.0: New file.
40840 2012-01-08  Jim Meyering  <meyering@redhat.com>
40842         select.c: indent with spaces, not TABs
40843         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40845 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40847         quotearg: do not use grave accent for left quote
40848         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40849         locale_quoting_style.
40850         (quotearg_buffer_restyled): Fix example.
40851         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40853 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40855         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40856         Most programs do not have translation catalogs for English and much
40857         less separate catalogs for British and American English.  Drop the
40858         suggestion to translators about these two, and provide it
40859         automatically for Unicode locales.  Like most programs, even those
40860         using American English, we use single quotation marks.  This conflicts
40861         with the American typographic convention, but works better when you
40862         cite the entire error message within double quotes.  It also tries not
40863         to clash with established practice and with what non-gnulib programs
40864         will usually do.
40865         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40866         using an UTF-8 or GB-18030 locale.  The list of other locales with
40867         quotes was provided by Bruno Haible.
40868         (quotearg_buffer_restyled): Adjust instructions to translators.
40869         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40870         text, since this would be wrong when using Unicode.
40871         * modules/quotearg: Depend on c-strcaseeq.
40873 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40875         quotearg: fix Wikipedia link
40876         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40878 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40880         Fix for mingw with MSVC9.
40881         * m4/ld-version-script.m4: Check that compiler rejects version
40882         scripts with syntax errors.  Reported by Bruno Haible
40883         <bruno@clisp.org>.
40885 2012-01-06  Bruno Haible  <bruno@clisp.org>
40887         Talk about "native Windows API", not "Woe32".
40888         * lib/accept4.c: Update comments to mention native Windows.
40889         * lib/execute.c: Likewise.
40890         * lib/fatal-signal.c: Likewise.
40891         * lib/localcharset.c: Likewise.
40892         * lib/nanosleep.c: Likewise.
40893         * lib/nl_langinfo.c: Likewise.
40894         * lib/pclose.c: Likewise.
40895         * lib/pipe-filter-gi.c: Likewise.
40896         * lib/pipe-filter-ii.c: Likewise.
40897         * lib/pipe.c: Likewise.
40898         * lib/pipe2.c: Likewise.
40899         * lib/popen.c: Likewise.
40900         * lib/progreloc.c: Likewise.
40901         * lib/relocatable.c: Likewise.
40902         * lib/sigaction.c: Likewise.
40903         * lib/sigprocmask.c: Likewise.
40904         * lib/spawn-pipe.h: Likewise.
40905         * lib/spawn-pipe.c: Likewise.
40906         * lib/spawni.c: Likewise.
40907         * lib/stat-time.h: Likewise.
40908         * lib/w32spawn.h: Likewise.
40909         * tests/test-isatty.c: Likewise.
40910         * lib/config.charset: More comments.
40911         * doc/gnulib-intro.texi: Mention native Windows.
40912         * doc/posix-functions/_Exit_C99.texi: Likewise.
40913         * doc/posix-headers/fcntl.texi: Likewise.
40915 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40917         argp: Avoid crash if translator uses % characters in a translation.
40918         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40919         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40921 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40923         doc: C11 and C++11 are now official
40924         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40925         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40926         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40927         * modules/stdalign:
40928         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40930 2012-01-06  Bruno Haible  <bruno@clisp.org>
40932         uc-is-grapheme-break tests: Tweak.
40933         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40934         message.
40936 2012-01-06  Bruno Haible  <bruno@clisp.org>
40938         test-init.sh: correct the test for diff -u
40939         * tests/test-init.sh: Also redirect stdout to /dev/null.
40941 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40943         Use ', not `, for quoting output.
40944         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40945         (print_changelog_deltas, get_tool_versions, main program):
40946         * build-aux/git-version-gen:
40947         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40948         * build-aux/move-if-change (help):
40949         * build-aux/useless-if-before-free (usage, main program):
40950         * check-module (parse_module_file, usage)
40951         (find_included_lib_files, check_module):
40952         * lib/argmatch.c (main) [TEST]:
40953         * lib/argp-help.c (_help):
40954         * lib/getopt1.c (main) [TEST]:
40955         * lib/git-merge-changelog.c (usage):
40956         * lib/xstrtol-error.c (xstrtol_error):
40957         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40958         * m4/argz.m4 (gl_FUNC_ARGZ):
40959         * m4/bison.m4 (gl_BISON):
40960         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40961         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40962         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40963         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40964         * m4/gc-random.m4 (gl_GC_RANDOM):
40965         * m4/intl.m4 (gt_CHECK_DECL):
40966         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40968         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40970         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40971         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40972         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40973         * tests/test-dirname.c (main):
40974         * tests/test-getpass.c (main):
40975         * tests/test-iconvme.c (main):
40976         * tests/test-parse-datetime.c (LOG):
40977         * tests/test-xstrtoimax.sh:
40978         * tests/test-xstrtol.sh:
40979         * tests/test-xstrtoll.sh:
40980         * tests/test-xstrtoumax.sh:
40981         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40982         * top/GNUmakefile (abort-due-to-no-makefile):
40983         Quote 'like this', not `like this', as per the recent change to
40984         the GNU coding standards.
40986 2012-01-05  Bruno Haible  <bruno@clisp.org>
40988         strtoimax: Don't force a replacement on systems where intmax_t is int.
40989         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40990         'intmax_t' is not larger than 'int'.
40991         Reported by Pádraig Brady <P@draigBrady.com>.
40993 2012-01-05  Bruno Haible  <bruno@clisp.org>
40995         doc: Mention NetBSD bugs.
40996         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40997         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40999 2012-01-05  Bruno Haible  <bruno@clisp.org>
41001         strtoumax tests: Enhance tests.
41002         * tests/test-strtoumax.c (main): Add tests for large values.
41004 2012-01-05  Bruno Haible  <bruno@clisp.org>
41006         strtoimax: Work around AIX 5.1 bug.
41007         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
41008         definition.
41009         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
41010         Set HAVE_STRTOIMAX.
41011         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
41012         REPLACE_STRTOIMAX.
41013         * modules/inttypes-incomplete (Makefile.am): Substitute
41014         REPLACE_STRTOIMAX.
41015         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
41016         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
41017         (Depends-on): Update conditions.
41018         * tests/test-strtoimax.c (main): Add tests for large values.
41019         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
41021 2012-01-05  Bruno Haible  <bruno@clisp.org>
41023         inttypes: Modernize.
41024         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
41025         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
41026         (Makefile.am): Update inttypes.h rule.
41028 2012-01-05  Jim Meyering  <meyering@redhat.com>
41030         init.sh: don't waste a subshell just to redirect stderr
41031         * tests/init.sh: In testing for diff -u and diff -c, use a
41032         stderr-redirecting exec inside `...` rather than a subshell.
41034         test-init.sh: avoid failure on HP-UX 11.00
41035         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
41036         resolves to diff -c or cmp.  Reported by Bruno Haible.
41038 2012-01-05  Bruno Haible  <bruno@clisp.org>
41040         Tests for module 'strtoull'.
41041         * modules/strtoull-tests: New file.
41042         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
41044 2012-01-05  Bruno Haible  <bruno@clisp.org>
41046         Tests for module 'strtoll'.
41047         * modules/strtoll-tests: New file.
41048         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
41050 2012-01-05  Bruno Haible  <bruno@clisp.org>
41052         Tests for module 'strtoul'.
41053         * modules/strtoul-tests: New file.
41054         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
41056 2012-01-05  Bruno Haible  <bruno@clisp.org>
41058         Tests for module 'strtol'.
41059         * modules/strtol-tests: New file.
41060         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
41062 2012-01-04  Jim Meyering  <meyering@redhat.com>
41064         test-init.sh: accommodate Solaris 5.10's different diff -u output
41065         * tests/test-init.sh: Also exempt @@ lines from the comparison
41066         of diff output, since Solaris 5.10 and GNU diff formats differ.
41067         Reported by Stefano Lattarini.
41069 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41071         test-posixtm: don't assume signed integer wraparound
41072         * tests/test-posixtm.c (main): Don't assume wraparound semantics
41073         after signed integer overflow.  Inspired by (though it may not
41074         fix) Bruno Haible's bug report in
41075         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
41077         Spell out "Windows 9x" and "Windows XP".
41078         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
41079         "Windows 9x" and "WinXP" with "Windows XP".
41081 2012-01-04  Jim Meyering  <meyering@redhat.com>
41083         test-vc-list-files-cvs.sh: remove obsolete comment
41084         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
41085         double exit.  Now that's all encapsulated via skip_ and Exit.
41087 2012-01-04  Bruno Haible  <bruno@clisp.org>
41089         Talk about "native Windows API", not "Win32".
41090         * lib/classpath.c: Update comments to mention native Windows.
41091         * lib/csharpexec.c: Likewise.
41092         * lib/dup2.c: Likewise.
41093         * lib/error.c: Likewise.
41094         * lib/fcntl.c: Likewise.
41095         * lib/filename.h: Likewise.
41096         * lib/findprog.c: Likewise.
41097         * lib/get-rusage-as.c: Likewise.
41098         * lib/get-rusage-data.c: Likewise.
41099         * lib/getpagesize.c: Likewise.
41100         * lib/javaexec.c: Likewise.
41101         * lib/msvc-inval.c: Likewise.
41102         * lib/msvc-nothrow.c: Likewise.
41103         * lib/nanosleep.c: Likewise.
41104         * lib/nonblocking.c: Likewise.
41105         * lib/printf-parse.c: Likewise.
41106         * lib/setlocale.c: Likewise.
41107         * lib/sigaction.c: Likewise.
41108         * lib/strerror_r.c: Likewise.
41109         * lib/tmpdir.c: Likewise.
41110         * lib/vasnprintf.c: Likewise.
41111         * lib/w32spawn.h: Likewise.
41112         * lib/waitpid.c: Likewise.
41113         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
41114         * m4/locale-ar.m4: Likewise.
41115         * m4/locale-fr.m4: Likewise.
41116         * m4/locale-ja.m4: Likewise.
41117         * m4/locale-tr.m4: Likewise.
41118         * m4/locale-zh.m4: Likewise.
41119         * m4/printf.m4: Likewise.
41120         * tests/test-cloexec.c: Likewise.
41121         * tests/test-copy-acl.sh: Likewise.
41122         * tests/test-copy-file.sh: Likewise.
41123         * tests/test-file-has-acl.sh: Likewise.
41124         * tests/test-set-mode-acl.sh: Likewise.
41125         * tests/test-dup-safer.c: Likewise.
41126         * tests/test-dup2.c: Likewise.
41127         * tests/test-dup3.c: Likewise.
41128         * tests/test-fcntl.c: Likewise.
41129         * tests/test-nonblocking-pipe.h: Likewise.
41130         * tests/test-nonblocking-socket.h: Likewise.
41131         * tests/test-pipe.c: Likewise.
41132         * tests/test-pipe2.c: Likewise.
41133         * tests/test-spawn-pipe-child.c: Likewise.
41134         * doc/acl-resources.txt: Likewise.
41135         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41136         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
41137         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
41138         * lib/localcharset.c: Update comments to mention native Windows.
41139         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41140         * lib/localename.c: Likewise.
41141         * lib/progreloc.c: Likewise.
41142         * lib/relocatable.c: Likewise.
41143         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41144         (windows_compute_revents): Renamed from win32_compute_revents.
41145         (windows_compute_revents_socket): Renamed from
41146         win32_compute_revents_socket.
41147         * lib/select.c: Update comments to mention native Windows.
41148         (windows_poll_handle): Renamed from win32_poll_handle.
41149         * m4/threadlib.m4: Update comments to mention native Windows.
41150         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
41151         --enable-threads=windows instead of --enable-threads=win32. Set
41152         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
41153         * lib/glthread/lock.h: Update comments to mention native Windows.
41154         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
41155         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
41156         USE_WIN32_THREADS.
41157         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
41158         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
41159         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
41160         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
41161         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
41162         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
41163         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
41164         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
41165         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
41166         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
41167         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
41168         * tests/test-tls.c: Likewise.
41169         Rationale:
41170         Microsoft renamed the "Win32 API" to "Windows API", as it is available
41171         on both 32-bit and 64-bit Windows systems.
41172         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
41173         line of distinction is between "native Windows" on one side and Unix/
41174         POSIX systems on the other side. More details in
41175         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
41176         Suggested by Paul Eggert.
41178 2012-01-03  Bruno Haible  <bruno@clisp.org>
41180         isatty: Support for MSVC 9.
41181         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
41182         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
41183         (_isatty_nothrow): New function.
41184         (isatty): Use it instead of _isatty.
41185         (IsConsoleHandle): Add comment, from Paolo Bonzini.
41186         * lib/poll.c (IsConsoleHandle): Likewise.
41187         * lib/select.c (IsConsoleHandle): Likewise.
41188         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
41189         (gl_PREREQ_ISATTY): New macro.
41190         * modules/isatty (Depends-on): Add msvc-inval.
41191         (configure.ac): Invoke gl_PREREQ_ISATTY.
41193 2012-01-03  Jim Meyering  <meyering@redhat.com>
41195         maint.mk: remove temporary transition aid from over 1.5 years ago
41196         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
41197         purpose was to aid in the transition (avoiding silent malfunction)
41198         from that old name to the new _sc_search_regexp.  This shim was
41199         added by commit 219c504b.
41201         init.sh: do not try to accommodate compare arguments starting with "-"
41202         * tests/init.sh (compare_dev_null_): Do not try to accommodate
41203         compare arguments that start with "-".  Besides, we do not worry
41204         about this when invoking diff or cmp; why start now with sed?
41205         Using "--" to separate options from argument would trigger sed
41206         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
41207         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
41209 2012-01-02  Bruno Haible  <bruno@clisp.org>
41211         Enhance tests for module 'isatty'.
41212         * modules/isatty-tests (Depends-on): Add pipe-posix.
41213         * tests/test-isatty.c: Include <fcntl.h>.
41214         (DEV_NULL): New macro.
41215         (main): Test the resut of isatty() also on regular files, pipes, and
41216         /dev/null.
41218         New module 'isatty'.
41219         * lib/unistd.in.h (isatty): New declaration.
41220         * lib/isatty.c: New file, based on an idea of
41221         Bastien Roucariès <roucaries.bastien@gmail.com>.
41222         * m4/isatty.m4: New file.
41223         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
41224         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
41225         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
41226         REPLACE_ISATTY.
41227         * modules/isatty: New file.
41228         * doc/posix-functions/isatty.texi: Mention the new module.
41229         Suggested by Paolo Bonzini.
41231 2012-01-02  Bruno Haible  <bruno@clisp.org>
41233         canonicalize: Tweak 2011-12-29 commit.
41234         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
41235         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
41237 2012-01-02  Jim Meyering  <meyering@redhat.com>
41239         gitlog-to-changelog: describe input syntax in --help output
41240         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
41242         gitlog-to-changelog: fix typo in --help: show backslash before email @
41243         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
41244         in sources, but not in actual output.
41246 2011-12-30  Jim Meyering  <meyering@redhat.com>
41248         gitlog-to-changelog: don't malfunction when name contains %-directive
41249         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
41250         in a name string cause trouble.  E.g., with a user name of "%s",
41251         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
41253 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
41255         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
41256         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
41257         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
41258         the "  (tiny change)" notation that is appended to the standard
41259         ChangeLog "date  name  email" header line.
41261 2012-01-01  Jim Meyering  <meyering@redhat.com>
41263         test-framework-sh: init.sh: fix "make dist" failure
41264         When using gnulib-tool's --with-tests option and any module that
41265         depends on test-framework-sh, "make dist" would fail due to the
41266         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
41267         in the gltests directory, and not in the gllib/ directory.
41268         One way to work around that is to move the EXTRA_DIST += init.sh
41269         from the primary module to the -tests one:
41270         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
41271         * modules/test-framework-sh (Makefile.am): ...not here.
41272         Reported by Tom G. Christensen in
41273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
41275         version-etc: update copyright year reported by --version
41276         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
41278 2011-12-31  Pádraig Brady  <P@draigBrady.com>
41280         canonicalize: only stat() if required
41281         * lib/canonicalize.c (canonicalize_filename_mode):
41282         Avoid calling l?stat() when both CAN_MISSING,
41283         and CAN_NOLINKS are set, as we neither need
41284         to resolve symlinks or test component existence.
41286 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
41288         doc: cover st_ino issues once; add OpenVMS etc.
41289         * doc/posix-functions/stat.texi (stat):
41290         * doc/posix-functions/lstat.texi (lstat):
41291         * doc/posix-functions/fstatat.texi (fstatat):
41292         * doc/posix-functions/fstat.texi (fstat):
41293         Move general 'struct stat' stuff to sys_stat.texi,
41294         leaving behind a pointer.
41295         * doc/posix-headers/sys_stat.texi (sys/stat.h):
41296         Merge duplicate info about 'struct stat' problems into here.
41297         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
41298         and suggest partial workarounds.
41300         same-inode: port to OpenVMS
41301         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
41302         three st_ino values.
41304 2011-12-30  Pádraig Brady  <P@draigBrady.com>
41306         canonicalize: fix references to stat() and lstat()
41307         * lib/canonicalize.c (canonicalize_filename_mode):
41308         Ensure references always resolve to a replacement
41309         function if required (even via a macro).
41311 2011-12-30  Jim Meyering  <meyering@redhat.com>
41313         gitlog-to-changelog: remove a little duplication
41314         * build-aux/gitlog-to-changelog (main): Grep @lines once,
41315         rather than twice.
41317 2011-12-29  Pádraig Brady  <P@draigBrady.com>
41319         canonicalize: add support for not resolving symlinks
41320         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
41321         indicate we don't want to follow symlinks.  Also
41322         provide CAN_MODE_MASK to aid setting these existing
41323         mutually exclusive values.
41324         * lib/canonicalize.c (canonicalize_filename_mode):
41325         Extract the flags from can_mode parameter, which
41326         are currently just used to select between stat()
41327         and lstat().  Also ensure that mutually exclusive
41328         values are flagged immediately as invalid.
41329         * tests/test-canonicalize.c: Verify symlinks are
41330         not followed, and that invalid flag combinations
41331         are diagnosed.
41333 2011-12-25  Jim Meyering  <meyering@redhat.com>
41335         gitlog-to-changelog: do not clump multi-paragraph entries
41336         Identical header lines (date,name,email+coauthors) are suppressed,
41337         thus putting all entries with those same characteristics under
41338         a single header.  However, when a log entry consists of two or
41339         more paragraphs, it may not be clear where it starts and ends.
41340         This change makes it so that such an entry is always separated
41341         from others by a header line, even when that header would
41342         otherwise be suppressed.
41343         * build-aux/gitlog-to-changelog: Implement the above.
41344         Inspired by a related request from Stefano Lattarini in
41345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
41347 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41349         announce-gen: fix `cmd' typo in diagnostic
41350         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
41351         diagnostic: a missing '$' meant that the command was not output.
41353 2011-12-23  Jim Meyering  <meyering@redhat.com>
41355         test-framework-sh: distribute init.sh
41356         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41357         Otherwise, "make -C gnulib-tests check" (at least in grep) would
41358         fail due to the lack of init.sh.
41360         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
41361         * modules/atexit-tests: Rather than listing tests/init.sh,
41362         now that there's a module for it, simply depend on that new module.
41363         * modules/closein-tests: Likewise.
41364         * modules/exclude-tests: Likewise.
41365         * modules/getcwd-tests: Likewise.
41366         * modules/perror-tests: Likewise.
41367         * modules/pread-tests: Likewise.
41368         * modules/pwrite-tests: Likewise.
41369         * modules/vc-list-files-tests: Likewise.
41370         * modules/verify-tests: Likewise.
41371         * modules/xalloc-die-tests: Likewise.
41372         * modules/xstrtoimax-tests: Likewise.
41373         * modules/xstrtol-tests: Likewise.
41374         * modules/xstrtoll-tests: Likewise.
41375         * modules/xstrtoumax-tests: Likewise.
41376         * modules/yesno-tests: Likewise.
41378 2011-12-22  Jim Meyering  <meyering@redhat.com>
41380         test-framework-sh: add minimal tests of init.sh's compare function
41381         * modules/test-framework-sh-tests: New file.
41382         * tests/test-init.sh: New file.
41384         test-framework-sh: new module
41385         * modules/test-framework-sh: New file.
41386         * MODULES.html.sh (Support for maintaining and releasing projects):
41387         List it.
41389         init.sh: do not emit simulated diff output to stderr
41390         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41392 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41394         .gitignore: ignore gnulib.dvi and regex.info
41395         * doc/.gitignore:add gnulib.dvi and regex.info
41397 2011-12-22  Jim Meyering  <meyering@redhat.com>
41399         init.sh: correct previous change
41400         * tests/init.sh (compare): My previous change was wrong.
41401         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41403         init.sh: avoid unwarranted test failure when using "set -e"
41404         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41405         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41406         a use like "compare exp out" would get evoke an unconditional failure.
41408 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41410         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41411         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41412         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41413         autoreconf that did not.
41414         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41415         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41417 2011-12-17  Jim Meyering  <meyering@redhat.com>
41419         bootstrap: remove some now-unneeded code
41420         This script arose back when gnulib-tool was young.
41421         Since then, it has seen improvements that render much of this
41422         script unnecessary.  In particular, it can now make symlinks
41423         to the files it uses.  Also, I no longer see as much value in
41424         marking files as read-only via comments.
41425         If you relied on the symlink-creation feature of the preceding
41426         version of this script, you can get most of that functionality
41427         by adding the --symlink option to the definition of
41428         gnulib_tool_option_extras in your bootstrap.conf file.
41429         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41430         Run autopoint and libtoolize *before* gnulib-tool.
41431         After it, run an abbreviated autoreconf, rather than a loop around
41432         all tools.
41433         (slirp, bt_mark_as_generated): Remove functions.
41435 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41437         ftoastr: fix typo
41438         * lib/ftoastr.h: Fix misspelling in comment.
41440 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41442         * top/README-release: fix punctuation.
41444 2011-12-17  Jim Meyering  <meyering@redhat.com>
41446         bootstrap: correct the recent buildreq change
41447         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41448         had no effect.
41449         * build-aux/bootstrap (buildreq): Bracket each search term with
41450         "*...*", so that the shell "case" statement works as intended.
41451         Add comments.
41453 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41455         build: let bootstrap resort to wget when downloading .po files
41456         * build-aux/bootstrap (download_po_files): Fallback to wget when
41457         downloading the .po files via rsync fails.  This is necessary to
41458         bootstrap from behind a strict firewall.
41460 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41462         stdint: don't assume C++11 when compiling with g++
41463         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41464         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41465         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41466         work also in C++ before C++11, as that improperly inhibits
41467         generating a substitute stdint.h for that case.
41469 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41471         alloca: protect comment from gnulib-tool
41472         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41473         that gnulib-tool doesn't think it's a license, and munge it to
41474         say "GCC version 3".
41476 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41478         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41479         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41480         $(abs_top_builddir) instead of $(top_builddir).
41482 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41484         strftime-tests: also test nanoseconds
41485         * tests/test-strftime.c (T): Add a test of %N.
41487 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41489         inttypes, stdint: add C++11 support
41490         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41491         when including inttypes.h and stdint.h.  Support this change to
41492         the standard.
41493         * doc/posix-headers/inttypes.texi (inttypes.h):
41494         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41495         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41496         Define if not defined already, for the benefit of pre-C++11 hosts.
41497         Define the standard format macros (e.g., PRId8) always.
41498         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41499         Likewise, if __cpluspus.  Define the standard constant and limit
41500         macros (e.g., INT8_C, INT8_MAX) always.
41501         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41502         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41503         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41504         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41505         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41506         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41507         Likewise.
41509 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41511         nonblocking tests: Fix test failure on Linux/PPC.
41512         Suggested by Prerna Saxena in
41513         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41514         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41515         Set to 1100000.
41517 2011-12-12  Jim Meyering  <meyering@redhat.com>
41519         argmatch: don't hard-code `' when listing valid option arguments
41520         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41521         use the quote function to add quotes.  Use fputs rather than
41522         fprintf for the format string with no format directive.
41524 2011-12-07  Eric Blake  <eblake@redhat.com>
41526         bootstrap: detect tools required by gnulib-tool
41527         * build-aux/bootstrap (buildreq): Provide minimum implicit
41528         dependencies.
41529         * DEPENDENCIES: Mention patch as a prereq.
41531 2011-12-04  Bruno Haible  <bruno@clisp.org>
41533         sethostname: Port to Windows platforms.
41534         * lib/sethostname.c: Provide an alternate implementation for Windows
41535         platforms.
41536         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41537         (main): Skip the test if sethostname() fails with EPERM. On Windows
41538         platforms, don't check the result of gethostname().
41540 2011-12-04  Bruno Haible  <bruno@clisp.org>
41541             Jim Meyering  <meyering@redhat.com>
41543         tests: Avoid spurious error message on platforms without mktemp program.
41544         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41546 2011-12-04  Bruno Haible  <bruno@clisp.org>
41548         sethostname: Fix documentation.
41549         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41550         "not fixed" section.
41552 2011-12-03  Bruno Haible  <bruno@clisp.org>
41554         gnulib-tool: Verify that the License field is present and non-empty.
41555         * gnulib-tool (func_get_license_raw): New function, extracted from
41556         func_get_license.
41557         (func_get_license): Use it. Warn if the module is not a test module and
41558         has no license.
41559         Suggested by Jim Meyering.
41561 2011-12-03  Bruno Haible  <bruno@clisp.org>
41563         sethostname tests: Fix link error on mingw.
41564         * tests/test-sethostname1.c: New file, extracted from
41565         tests/test-sethostname.c.
41566         * tests/test-sethostname2.c: New file, extracted from
41567         tests/test-sethostname.c.
41568         * tests/test-sethostname.c: Remove file.
41569         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41570         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41571         (Depends-on): Add gethostname.
41572         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41573         Link the latter with $(GETHOSTNAME_LIB).
41575         sethostname tests: Fix compilation error on mingw.
41576         * tests/test-sethostname.c: Don't include <sys/types.h>.
41577         (geteuid): Use a dummy value without uid_t.
41578         * modules/sethostname-tests (Depends-on): Remove sys_types.
41580         sethostname tests: Avoid a gcc warning.
41581         * tests/test-sethostname.c (main): Remove an unused variable.
41583         Tweak last commit.
41584         * modules/sethostname-tests (Files): Sort by decreasing importance.
41585         (configure.ac): Check for geteuid.
41586         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41587         the test when there's nothing to test. Drop an unnecessary cast.
41588         Improve an error message. Verify that the final sethostname() call
41589         succeeds.
41591 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41593         Add a test suite for the sethostname module.
41594         * modules/sethostname-tests: New file.  A test program
41595         for the sethostname module.
41596         * tests/test-sethostname.c: Likewise.
41598 2011-12-03  Bruno Haible  <bruno@clisp.org>
41600         Tweak last commit.
41601         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41602         Fix preprocessor directives indentation. Fix typos.
41603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41604         * modules/unistd (Makefile): Likewise.
41606 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41608         Integrate the sethostname module into unistd.
41609         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41610         into the unistd.h header.
41611         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41612         preprocessor directives.
41613         * modules/unistd: Setup the Makefile substitutions of the
41614         SETHOSTNAME preprocessor directives.
41616 2011-12-03  Bruno Haible  <bruno@clisp.org>
41618         Tweak last commit.
41619         * lib/sethostname.c: Don't include <string.h>.
41620         (sethostname): No need to copy the argument string to the stack. Don't
41621         call clearerr. Preserve errno when fprintf failed.
41622         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41623         Don't invoke AC_REPLACE_FUNCS.
41624         * modules/sethostname (Link): Remove empty section.
41625         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41626         failure problem.
41628 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41630         New module 'sethostname'.
41631         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41632         for systems that lack it.
41633         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41634         sethostname declaration and function.
41635         * modules/sethostname: New file.  Define the sethostname module.
41637 2011-12-03  Bruno Haible  <bruno@clisp.org>
41639         Tweak last commit.
41640         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41642 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41644         Split the HOST_NAME_MAX detection into a separate m4 macro.
41645         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41646         macro so it can be used by the pending sethostname module.
41648 2011-12-03  Bruno Haible  <bruno@clisp.org>
41650         Fix module descriptions syntax.
41651         * modules/argv-iter (License): Fix syntax.
41652         * modules/di-set (License): Likewise.
41653         * modules/ino-map (License): Likewise.
41654         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41656 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41658         stdalign: port to Clang 3.0
41659         Problem reported by Simon Josefsson in
41660         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41661         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41662         which has <stdalign.h> but which does not define alignof.
41663         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41665 2011-12-01  Eric Blake  <eblake@redhat.com>
41667         mktempd: silence dd usage
41668         * build-aux/mktempd (rand_bytes): Silence dd.
41670 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41672         manywarnings: Don't mention gcc version in docstring.
41673         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41674         Jim Meyering <meyering@redhat.com>.
41676 2011-11-30  Jim Meyering  <meyering@redhat.com>
41678         hash: mark a few floating point constants with "f" suffix
41679         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41680         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41681         floating point constants with "f", since they're destined to be
41682         saved/used as "float"s.
41684 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41686         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41687         * tests/test-float.c (test_long_double): Correct and re-enable the
41688         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41690 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41692         Avoid subtracting two pointers that don't point into the same block.
41693         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41694         only pointers into the same memory block are subtracted. We cannot
41695         assume that sizeof (ptrdiff_t) == sizeof (void *).
41697 2011-11-29  Eric Blake  <eblake@redhat.com>
41699         maint.mk: add syntax check for use of compare from init.sh
41700         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41701         moved here from coreutils.
41703         manywarnings: drop -Wunsuffixed-float-constants
41704         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41705         '1.0D', which is the only way to silence this warning for 'double'.
41707 2011-11-29  Jim Meyering  <meyering@redhat.com>
41709         hash: mark compute_bucket_size with the pure attribute
41710         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41712         quotearg, propername: correct pragma guard expression
41713         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41714         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41716 2011-11-28  Jim Meyering  <meyering@redhat.com>
41718         propername: do not mark proper_name with the const attribute
41719         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41720         since it examines data pointed to by its parameter.
41721         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41722         the suggestion from -Wsuggest-attribute=const.
41724         propername: mark one more function as const
41725         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41727 2011-11-27  Jim Meyering  <meyering@redhat.com>
41729         mark functions with const and pure attributes
41731         Mark functions per suggestions from gcc-4.6 when using these options:
41732         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41733         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41734         Follow these guidelines: when possible, apply the attribute to
41735         an extern declaration, not to its definition.  Apply it to the
41736         definition only when the definition is static.
41737         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41738         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41739         * lib/base64.h (isbase64): Likewise.
41740         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41741         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41742         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41743         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41744         (c_tolower, c_toupper): Likewise.
41745         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41746         * lib/chdir-long.c (find_non_slash): Likewise.
41747         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41748         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41749         * lib/file-type.h (file_type): Likewise.
41750         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41751         * lib/filevercmp.c (verrevcmp): Likewise.
41752         * lib/freadahead.h (freadahead): Likewise.
41753         * lib/fts.c (fts_maxarglen): Likewise.
41754         * lib/hash-pjw.h (hash_pjw): Likewise.
41755         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41756         * lib/hash.c (is_prime, next_prime): Likewise.
41757         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41758         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41759         (hash_table_ok, hash_get_first, hash_string): Likewise.
41760         (compute_bucket_size): Likewise.
41761         * lib/i-ring.h (i_ring_empty): Likewise.
41762         * lib/isnan.c (isnanl): Likewise.
41763         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41764         * lib/memcasecmp.h (memcasecmp): Likewise.
41765         * lib/memchr2.h (memchr2): Likewise.
41766         * lib/memcmp2.h (memcmp2): Likewise.
41767         * lib/parse-datetime.y (lookup_zone): Likewise.
41768         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41769         [!WINDOWS_SOCKETS]: Likewise.
41770         * lib/strnlen1.h (strnlen1): Likewise.
41771         * lib/uniwidth.in.h (uc_width): Likewise.
41772         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41773         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41774         (quoting_options_from_style): Add a comment.
41775         * lib/propername.h (proper_name): Add a comment.
41777 2011-11-27  Bruno Haible  <bruno@clisp.org>
41779         Remove unused macros from !_LIBC code in glibc-borrowed files.
41780         * lib/fnmatch.c (STRCOLL): Remove macro.
41781         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41782         * lib/glob.c (__stat, __readdir64): Remove macros.
41783         * lib/tempname.c (__open64, __xstat64): Remove macros.
41784         Suggested by Paul Eggert.
41786 2011-11-27  Bruno Haible  <bruno@clisp.org>
41788         getcwd: Fix link error on MSVC 9.
41789         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41791 2011-11-27  Bruno Haible  <bruno@clisp.org>
41793         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
41794         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
41795         HAVE_OPENDIR is 0.
41796         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
41797         HAVE_CLOSEDIR is 0.
41798         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
41799         is 0.
41800         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
41802 2011-11-27  Bruno Haible  <bruno@clisp.org>
41804         getcwd: Fix bug from 2011-08-17.
41805         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
41806         platforms that need it.
41807         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
41808         code of 4 to be a failure, not a success. This ensures that
41809         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
41811 2011-11-27  Bruno Haible  <bruno@clisp.org>
41813         binary-io tests: Avoid test failure on mingw when libtool is used.
41814         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
41815         Don't verify the size of t-bin-out1.tmp here.
41816         * tests/test-binary-io.sh: Verify it here.
41817         Reported by Simon Josefsson.
41819 2011-11-26  Bruno Haible  <bruno@clisp.org>
41821         Fix conflict between two instantiations of module 'unistd'.
41822         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41823         ${include_guard_prefix} also in the autoconf snippet.
41824         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41826         GNULIB_UNISTD_H_GETOPT.
41827         * modules/getopt-posix (configure.ac): Set the
41828         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41829         * modules/getopt-gnu (configure.ac): Likewise.
41830         * modules/unistd (Makefile.am): Change the substitution value of
41831         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41832         Reported by Simon Josefsson.
41834 2011-11-25  Bruno Haible  <bruno@clisp.org>
41836         pagealign_alloc: Doc and comments.
41837         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41838         module.
41839         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41841 2011-11-25  Jim Meyering  <meyering@redhat.com>
41843         test-update-copyright.sh: avoid false-positive failure
41844         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41845         around false positive failure on Cygwin/Windows.  The latter was
41846         matching erroneously-created files with names like
41847         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41849 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41851         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41852         * m4/valgrind-tests.m4: Check that the parameters that will be
41853         used works, not just a subset of them.  Reported by Bruno Haible
41854         <bruno@clisp.org>.
41856 2011-11-24  Jim Meyering  <meyering@redhat.com>
41858         test-stdalign.c: comment out long double tests
41859         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41860         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41861         error: '_Alignas' specifiers cannot reduce alignment of \
41862         'static_longdouble_alignas'.
41864 2011-11-22  Jim Meyering  <meyering@redhat.com>
41866         init.sh: make "compare /dev/null FILE" output more readable
41867         * tests/init.sh (compare_): Document the preferred order of arguments.
41868         (emit_diff_u_header_): New function.
41869         (compare_dev_null_): Emit a simulated diff, rather than just the
41870         contents of the unexpected file.  Suggestion from Bruno Haible.
41872 2011-11-21  Jim Meyering  <meyering@redhat.com>
41873             Eric Blake  <eblake@redhat.com>
41875         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41876         * tests/init.sh: Make our compare function slightly more portable.
41877         Reported by Bruno Haible in
41878         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41880 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41882         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41883         before using it, in code that ends up in config.h.
41885 2011-11-20  Bruno Haible  <bruno@clisp.org>
41887         getcwd: Work around getcwd bug on AIX 5..7.
41888         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41889         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41890         Use a different value for gl_cv_func_getcwd_path_max. Move the
41891         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41892         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41893         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41894         Define HAVE_MINIMALLY_WORKING_GETCWD.
41895         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41896         where it is not even minimally working, that is, on AIX.
41897         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41898         m4/getcwd-path-max.m4.
41899         (main): Update exit code computation.
41900         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41901         getcwd does not handle long file names.
41903 2011-11-20  Bruno Haible  <bruno@clisp.org>
41905         getcwd: Fix bug from 2009-09-10.
41906         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41907         like "no".
41909 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41911         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41913 2011-11-20  Bruno Haible  <bruno@clisp.org>
41915         fma tests: Avoid shadowing local variables.
41916         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41917         expected.
41919 2011-11-20  Bruno Haible  <bruno@clisp.org>
41921         copysignf tests: Fix.
41922         * tests/test-copysignf.c: Fix signature check.
41924 2011-11-20  Bruno Haible  <bruno@clisp.org>
41926         fma: Remove unused code.
41927         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41928         unused macros.
41930 2011-11-20  Bruno Haible  <bruno@clisp.org>
41932         sethostname: Fix doc about AIX.
41933         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41934         sethostname; it has it.
41936         sethostname: Mention more portability problems.
41937         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41938         problem.
41939         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41941 2011-11-19  Bruno Haible  <bruno@clisp.org>
41943         Depend on module fcntl-h when AT_FDCWD is used.
41944         * modules/utimens (Depends-on): Add fcntl-h.
41945         * modules/areadlinkat (Depends-on): Likewise.
41946         * modules/areadlinkat-with-size (Depends-on): Likewise.
41947         * modules/faccessat (Depends-on): Likewise.
41948         * modules/fchmodat (Depends-on): Likewise.
41949         * modules/fchownat (Depends-on): Likewise.
41950         * modules/getcwd (Depends-on): Likewise.
41951         * modules/mkdirat (Depends-on): Likewise.
41952         * modules/mkfifoat (Depends-on): Likewise.
41953         * modules/readlinkat (Depends-on): Likewise.
41954         * modules/symlinkat (Depends-on): Likewise.
41955         * modules/dup2-tests (Depends-on): Likewise.
41956         * modules/fdutimensat-tests (Depends-on): Likewise.
41957         * modules/futimens-tests (Depends-on): Likewise.
41959 2011-11-19  Bruno Haible  <bruno@clisp.org>
41961         euidaccess: Update a comment.
41962         * lib/euidaccess.c: Update comment about platforms with faccessat.
41964 2011-11-19  Bruno Haible  <bruno@clisp.org>
41966         openat: Fix file list.
41967         * modules/openat (Files): Remove lib/at-func.c.
41969 2011-11-19  Bruno Haible  <bruno@clisp.org>
41971         fstatat: Simplify.
41972         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41973         gnulib should define rpl_fstatat, there is a
41974         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41976 2011-11-19  Bruno Haible  <bruno@clisp.org>
41978         Ensure 'inline' can be used in tests/test-utimens-common.h.
41979         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41980         * modules/futimens-tests (configure.ac): Likewise.
41981         * modules/utimens-tests (configure.ac): Likewise.
41982         * modules/utimensat-tests (configure.ac): Likewise.
41984 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41986         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41987         not hash_insert0.
41988         (hash_insert_if_absent): Doc fix.
41990 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41992         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41994 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41996         test-getcwd: disambiguate exit status
41997         * tests/test-getcwd.c (test_long_name): Return 0..7.
41998         (main): Exit with an unambiguous exit status.  The old
41999         code yielded a mysterious mixture of two failure codes.
42001         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
42002         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
42003         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
42004         rpl_fstatat or fstatat.  This should fix the other problem
42005         reported by Kai Habel in
42006         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42007         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
42008         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
42009         and I reproduced it on a Solaris 8 host we still have in production.
42011 2011-11-18  Jim Meyering  <meyering@redhat.com>
42013         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
42014         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
42015         Add a sentence to the comment.
42016         (hash_insert0): New function that simply calls hash_insert_if_absent.
42017         * lib/hash.h (hash_insert_if_absent): Declare it.
42018         (hash_insert0): Add deprecation attribute.
42019         (_GL_ATTRIBUTE_DEPRECATED): Define.
42020         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
42021         not hash_insert0.
42022         * NEWS: Mention it, even though it's not really an incompatible change.
42024 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
42026         openat: avoid compilation failure due to lack of <errno.h> inclusion
42027         * lib/openat.c: Include <errno.h>.
42029 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42031         * modules/getcwd (Depends-on): Add fdopendir.
42032         This fixes one of the two problems reported by Kai Habel in
42033         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42035         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
42036         stdalign problem reported by Ian Beckwith in
42037         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
42038         * modules/crypto/gc-arcfour (Depends-on):
42039         Depend conditionally on crypto/arcfour.
42040         * modules/crypto/gc-arctwo (Depends-on):
42041         Depend conditionally on crypto/arctwo.
42042         * modules/crypto/gc-des (Depends-on):
42043         Depend conditionally on crypto/des.
42044         * modules/crypto/gc-hmac-md5 (Depends-on):
42045         Depend conditionally on crypto/hmac-md5.
42046         * modules/crypto/gc-hmac-sha1 (Depends-on):
42047         Depend conditionally on crypto/hmac-sha1.
42048         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
42049         * modules/crypto/gc-md4 (Depends-on):
42050         Depend conditionally on crypto/md4.
42051         * modules/crypto/gc-md5 (Depends-on):
42052         Depend conditionally on crypto/md5.
42053         * modules/crypto/gc-rijndael (Depends-on):
42054         Depend conditionally on crypto/rijndael.
42055         * modules/crypto/gc-sha1 (Depends-on):
42056         Depend conditionally on crypto/sha1.
42057         * modules/crypto/gc-arcfour:
42058         * modules/crypto/gc-arctwo:
42059         * modules/crypto/gc-des:
42060         * modules/crypto/gc-hmac-md5:
42061         * modules/crypto/gc-hmac-sha1:
42062         * modules/crypto/gc-md2:
42063         * modules/crypto/gc-md4:
42064         * modules/crypto/gc-md5:
42065         * modules/crypto/gc-rijndael:
42066         * modules/crypto/gc-sha1:
42067         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
42068         now that the conditional dependencies do the work for us.
42070 2011-11-17  Jim Meyering  <meyering@redhat.com>
42072         tests: factor st_ctime-comparison out of two headers
42073         * tests/test-utimens-common.h (ctime_compare): Define.
42074         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
42075         * tests/test-lutimens.h (test_lutimens): Likewise.
42076         * tests/test-utimens.h (test_utimens): Likewise.
42078         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
42079         Invoke the test program via an init.sh-using wrapper.
42080         * tests/test-getcwd.sh: New file.
42081         * modules/getcwd-tests (Files): Add it.
42082         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
42084 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
42086         gitlog-to-changelog: support multi-author commits.
42087         The FSF cares about keeping track of all authors of patches to its
42088         projects, but Git doesn't provide obvious support for multi-author
42089         changesets. Consensus seems to be forming around the use of extra
42090         Signed-off-by inspired lines in the log message formatted as
42091         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
42092         multi-author commits between version control systems.
42093         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
42094         log message and output in standard ChangeLog multi-author format.
42095         Reported by Peter Rosin <peda@lysator.liu.se>
42097 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
42098             Bruno Haible  <bruno@clisp.org>
42100         Fix some modules' file list.
42101         * modules/fstatat (Files): Add m4/lstat.m4.
42102         * modules/openat (Files): Likewise.
42103         * modules/unlinkat (Files): Likewise.
42105 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
42107         maint.mk: fix tight-scope.mk generation in VPATH builds.
42108         * top/maint.mk (tight-scope.mk): Make sure to prefix file
42109         reference with $(srcdir) so that the file is found correctly even
42110         when running `make syntax-check' in a VPATH build.
42112 2011-11-13  Bruno Haible  <bruno@clisp.org>
42113             Jim Meyering  <meyering@redhat.com>
42115         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
42116         * tests/init.sh (compare): Remove "No differences encountered" or
42117         synonymous output from the 'diff' program.
42119 2011-11-13  Bruno Haible  <bruno@clisp.org>
42121         Makefile: Tweak indentation.
42122         * Makefile: Use tab as first character in every line that contains rule
42123         commands.
42125 2011-11-13  Bruno Haible  <bruno@clisp.org>
42127         Syntax check for copyright statements.
42128         * check-copyright: New file.
42129         * Makefile (sc_check_copyright): New rule.
42131 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42133         * build-aux/git-version-gen: Add --prefix to configure the tag
42134         match string.
42136 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42138         * build-aux/git-version-gen: Add --help and --version.
42140 2011-11-12  Jim Meyering  <meyering@redhat.com>
42142         revamp the other test-exclude?.sh scripts to use init.sh, too
42143         * tests/test-exclude1.sh: Use init.sh.
42144         * tests/test-exclude2.sh: Likewise.
42145         * tests/test-exclude3.sh: Likewise.
42146         * tests/test-exclude4.sh: Likewise.
42147         * tests/test-exclude5.sh: Likewise.
42148         * tests/test-exclude6.sh: Likewise.
42149         * tests/test-exclude7.sh: Likewise.
42150         * tests/test-exclude8.sh: Likewise.
42151         * modules/exclude-tests (Files): List init.sh.
42153         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
42154         These shell scripts ignored failure of the binary test-exclude,
42155         so making the latter return 77 didn't cause them to be skipped.
42156         * tests/test-exclude5.sh: Exit with test-exclude's error status
42157         when that program fails.  Revamp to use init.sh.
42158         * tests/test-exclude2.sh: Likewise.
42160         test-exclude: fix a typo
42161         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
42163 2011-11-11  Bruno Haible  <bruno@clisp.org>
42165         obstack: Fix compilation error on MSVC 9.
42166         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
42168 2011-11-11  Jim Meyering  <meyering@redhat.com>
42170         test-exclude: skip tests rather than failing on deficient systems
42171         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
42172         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
42173         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
42174         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
42176 2011-11-10  Bruno Haible  <bruno@clisp.org>
42178         ptsname_r test: Avoid gcc warning on glibc systems.
42179         * tests/test-ptsname_r.c (null_ptr): New function.
42180         (test_errors): Use it.
42182 2011-11-10  Bruno Haible  <bruno@clisp.org>
42184         ptsname_r: Avoid compilation error on OSF/1 5.1.
42185         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
42186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
42187         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
42188         function is not declared or incompatibly declared.
42189         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
42190         * modules/ptsname_r (Depends-on, configure.ac): Update.
42191         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
42193 2011-11-10  Bruno Haible  <bruno@clisp.org>
42195         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
42196         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
42197         When cross-compiling, guess yes on all platforms except AIX.
42198         Reported by Ludovic Courtès <ludo@gnu.org>.
42200 2011-11-09  Bruno Haible  <bruno@clisp.org>
42202         ptsname_r tests: Fix bugs.
42203         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
42204         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
42206 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42208         fstatat: work with cross-compilation
42209         Problem reported by Ludovic Courtès in
42210         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
42211         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
42212         "cross-compiling" and assume the bug is present.  Replace
42213         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
42214         an inverted sense, to be more conservative about our assumptions.
42215         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
42217 2011-11-09  Bruno Haible  <bruno@clisp.org>
42219         Improve MODULES.html output.
42220         * modules/mkfifoat (Description): Use the word "function".
42221         * modules/readlinkat (Description): Likewise.
42222         * modules/symlinkat (Description): Likewise.
42224 2011-11-09  Eric Blake  <eblake@redhat.com>
42226         ptsname_r-tests: new test module
42227         * modules/ptsname_r-tests: New module.
42228         * tests/test-ptsname_r.c: New file.
42230         ptsname_r: new module
42231         * modules/ptsname_r: New module.
42232         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
42233         * lib/ptsname.c (__ptsname_r): Split...
42234         * lib/ptsname_r.c: ...into new file.
42235         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42236         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
42237         * modules/stdlib (Makefile.am): Substitute witnesses.
42238         * lib/stdlib.in.h (ptsname_r): Declare it.
42239         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
42240         * MODULES.html.sh (Misc): Likewise.
42241         * modules/ptsname (Depends-on): Alter dependency.
42242         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
42244 2011-11-09  Jim Meyering  <meyering@redhat.com>
42246         announce-gen: be more concise when there's only one URL+tarball
42247         * build-aux/announce-gen (get_tool_versions): When you distribute
42248         only one type of tarball, combine the first two "Here are..."
42249         sections and make the key-checking grammar independent of
42250         how many tarballs there are.
42252 2011-11-09  Eric Blake  <eblake@redhat.com>
42254         openpty: provide a stub on mingw
42255         * lib/pty.in.h (includes): Provide forward declarations.
42256         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
42258         raise: fix mingw handling of SIGPIPE
42259         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
42261 2011-11-08  Bruno Haible  <bruno@clisp.org>
42263         More conditional dependencies.
42264         * modules/faccessat (Depends-on): Add conditions.
42265         * modules/fchmodat (Depends-on): Likewise.
42266         * modules/fchownat (Depends-on): Likewise.
42267         * modules/fstatat (Depends-on): Likewise.
42268         * modules/mkfifoat (Depends-on): Likewise.
42269         * modules/readlinkat (Depends-on): Likewise.
42270         * modules/symlinkat (Depends-on): Likewise.
42271         * modules/unlinkat (Depends-on): Likewise.
42272         * modules/utimensat (Depends-on): Likewise.
42273         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
42274         * modules/linkat (Depends-on): Refine the conditions.
42275         * modules/renameat (Depends-on): Likewise.
42277 2011-11-08  Bruno Haible  <bruno@clisp.org>
42279         faccessat: Move AC_LIBOBJ invocation to module description.
42280         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
42281         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
42282         invocation from here...
42283         * modules/faccessat (configure.ac): ... to here. Invoke
42284         gl_PREREQ_FACCESSAT.
42286 2011-11-08  Bruno Haible  <bruno@clisp.org>
42288         faccessat: Simplify autoconf macro.
42289         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
42290         gl_FUNC_EUIDACCESS.
42292 2011-11-08  Bruno Haible  <bruno@clisp.org>
42294         renameat: Fix dependencies.
42295         * modules/renameat (Depends-on): Add stdbool.
42297 2011-11-08  Bruno Haible  <bruno@clisp.org>
42299         mkfifoat: Fix module description.
42300         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
42301         not gl_UNISTD_MODULE_INDICATOR.
42303 2011-11-08  Bruno Haible  <bruno@clisp.org>
42305         fstatat: Remove unused dependency.
42306         * modules/fstatat (Depends-on): Remove fstat.
42308 2011-11-08  Simon Josefsson  <simon@josefsson.org>
42310         GNUmakefile: behave when Makefile is missing.
42311         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
42313 2011-11-08  Bruno Haible  <bruno@clisp.org>
42315         openat: Conditionalize dependencies.
42316         * lib/openat.c: Reduce the scope of some #includes.
42317         * modules/openat (Depends-on): Add conditions.
42319 2011-11-07  Jim Meyering  <meyering@redhat.com>
42321         maint.mk: extract GPG key ID without using a temporary file
42322         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
42323         without using a temporary file.  Based on a suggestion from Werner Koch
42324         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
42326 2011-11-07  Eric Blake  <eblake@redhat.com>
42328         grantpt: fix typo
42329         * lib/stdlib.in.h (grantpt): Check correct function.
42331         maint.mk: silence new syntax check
42332         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42334 2011-11-06  Bruno Haible  <bruno@clisp.org>
42336         Doc about floating-point and math API.
42337         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
42338         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
42340 2011-11-06  Bruno Haible  <bruno@clisp.org>
42342         stdalign tests: Skip the test when compiled by Sun C.
42343         * tests/test-stdalign.c (main): Skip the test on Sun C.
42345 2011-11-06  Bruno Haible  <bruno@clisp.org>
42347         ansi-c++-opt: Complete the 2011-06-05 change.
42348         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
42349         does not support namespaces, set the variable to "no", not to ":".
42351 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42353         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
42355 2011-11-06  Bruno Haible  <bruno@clisp.org>
42357         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
42358         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
42359         (minus_zerol) [HP-UX]: New macro.
42360         (unary_minus) [HP-UX]: New function.
42361         (copysignl) [HP-UX]: Use unary_minus function.
42363 2011-11-06  Bruno Haible  <bruno@clisp.org>
42365         ldexp, ldexpf, ldexpl: Enhance tests.
42366         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
42367         and tests/test-ldexpl.c.
42368         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
42369         LDEXP, MIN_EXP, MAX_EXP): New macros.
42370         Include test-ldexp.h.
42371         (main): Just call test_function.
42372         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
42373         infinity.h, nan.h.
42374         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42375         MAX_EXP): New macros.
42376         Include test-ldexp.h.
42377         (x, y): Remove variables.
42378         (main): Just call test_function.
42379         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42380         infinity.h, nan.h.
42381         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42382         MAX_EXP): New macros.
42383         Include test-ldexp.h.
42384         (x, y): Remove variables.
42385         (main): Just call test_function.
42386         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42387         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42388         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42389         (Depends-on): Add isnand-nolibm, signbit, float.
42390         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42391         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42392         (Depends-on): Add isnanf-nolibm, signbit, float.
42394 2011-11-06  Bruno Haible  <bruno@clisp.org>
42396         math tests: Cosmetics.
42397         * tests/test-math-c++.cc: Reorder declarations.
42399 2011-11-05  Bruno Haible  <bruno@clisp.org>
42401         fma*: Simplify test.
42402         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42403         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42405         Tests for module 'fmal'.
42406         * modules/fmal-tests: New file.
42407         * tests/test-fmal1.c: New file.
42408         * tests/test-fmal2.c: New file.
42410         New module 'fmal'.
42411         * lib/math.in.h (fmal): New declaration.
42412         * lib/fmal.c: New file.
42413         * m4/fmal.m4: New file.
42414         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42416         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42417         REPLACE_FMAL.
42418         * modules/fmal: New file.
42419         * doc/posix-functions/fmal.texi: Mention the new module and the various
42420         bugs.
42422         Tests for module 'fmaf'.
42423         * modules/fmaf-tests: New file.
42424         * tests/test-fmaf1.c: New file.
42425         * tests/test-fmaf2.c: New file.
42427         New module 'fmaf'.
42428         * lib/math.in.h (fmaf): New declaration.
42429         * lib/fmaf.c: New file.
42430         * m4/fmaf.m4: New file.
42431         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42433         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42434         REPLACE_FMAF.
42435         * modules/fmaf: New file.
42436         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42437         bugs.
42439         Tests for module 'fma'.
42440         * modules/fma-tests: New file.
42441         * tests/test-fma1.c: New file.
42442         * tests/test-fma1.h: New file.
42443         * tests/test-fma2.c: New file.
42444         * tests/test-fma2.h: New file.
42446         New module 'fma'.
42447         * lib/math.in.h (fma): New declaration.
42448         * lib/fma.c: New file.
42449         * m4/fma.m4: New file.
42450         * m4/fegetround.m4: New file.
42451         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42453         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42454         REPLACE_FMA.
42455         * modules/fma: New file.
42456         * doc/posix-functions/fma.texi: Mention the new module and the various
42457         bugs.
42459         Extend gl_MATHFUNC.
42460         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42461         Support 'void' as argument type.
42462         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42464 2011-11-05  Jim Meyering  <meyering@redhat.com>
42466         maint.mk: also prohibit inclusion of dirent.h without use
42467         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42469 2011-11-05  Bruno Haible  <bruno@clisp.org>
42471         ldexpl tests: Avoid test failure on MSVC 9.
42472         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42473         value. Needed in order to enforce the conversion from a value greater
42474         than LDBL_MAX to Infinity.
42476 2011-11-05  Bruno Haible  <bruno@clisp.org>
42478         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42479         * modules/at-internal: New file, extracted from modules/openat.
42480         * modules/openat-h: New file.
42481         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42482         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42483         * modules/openat (Description): Add reference to POSIX function.
42484         (Files): Remove lib/openat.h, lib/openat-proc.c.
42485         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42486         intprops, unistd.
42487         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42488         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42489         gl_FCNTL_MODULE_INDICATOR.
42490         (Include): Remove unistd.h, openat.h.
42491         * modules/areadlinkat (Files): Add lib/at-func.c.
42492         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42493         openat-die, openat-h, save-cwd.
42494         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42495         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42496         openat-die, openat-h, save-cwd, unistd.
42497         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42498         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42499         openat-h, save-cwd. Remove fcntl-h, openat.
42500         * modules/fchmodat (Files): Remove lib/openat.h.
42501         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42502         openat, stdbool, unistd.
42503         * modules/fchownat (Files): Remove lib/openat.h.
42504         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42505         openat, stdbool, sys_stat.
42506         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42507         lib/openat-proc.c.
42508         (Depends-on): Add at-internal.
42509         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42510         * modules/fstatat (Files): Remove lib/openat.h.
42511         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42512         stdbool, unistd.
42513         * modules/fts (Depends-on): Add openat-h.
42514         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42515         openat.
42516         * modules/mkdirat (Files): Remove lib/openat.h.
42517         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42518         openat, stdbool, sys_stat.
42519         * modules/mkfifoat (Files): Add lib/at-func.c.
42520         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42521         openat-h, save-cwd. Remove fcntl-h, openat.
42522         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42523         * modules/readlinkat (Files): Add lib/at-func.c.
42524         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42525         openat-h, save-cwd. Remove fcntl-h, openat.
42526         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42527         openat.
42528         * modules/selinux-at (Files): Add lib/at-func.c.
42529         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42530         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42531         * modules/symlinkat (Files): Add lib/at-func.c.
42532         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42533         openat-h, save-cwd. Remove fcntl-h, openat.
42534         * modules/unlinkat (Files): Remove lib/openat.h.
42535         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42536         stdbool.
42537         * modules/utimensat (Files): Add lib/at-func.c.
42538         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42539         openat-die, openat-h, save-cwd.
42540         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42541         * modules/fdutimensat-tests (Depends-on): Add openat.
42542         * modules/fstatat-tests (Depends-on): Add openat-h.
42543         * modules/readlinkat-tests (Depends-on): Add openat.
42544         * modules/symlinkat-tests (Depends-on): Add openat.
42546 2011-11-05  Bruno Haible  <bruno@clisp.org>
42548         openat: Include <stdbool.h>.
42549         * lib/openat.c: Include <stdbool.h>.
42551 2011-11-04  Bruno Haible  <bruno@clisp.org>
42553         fchownat, renameat, unlinkat: Fix dependencies.
42554         * modules/fchownat (Depends-on): Add fstatat.
42555         * modules/renameat (Depends-on): Likewise.
42556         * modules/unlinkat (Depends-on): Likewise.
42558 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42560         openat: remove direct dependency on dirent
42561         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42562         and hasn't been needed ever since fdopendir was split into its own
42563         module on 2009-08-31.
42564         * modules/openat (Depends-on): Remove dirent.
42566 2011-11-04  Bruno Haible  <bruno@clisp.org>
42568         renameat: Optimize code size.
42569         * modules/renameat (configure.ac): Don't compile at-func2.c if
42570         REPLACE_RENAMEAT is 1.
42572 2011-11-04  Bruno Haible  <bruno@clisp.org>
42574         openat tests: Fix file list.
42575         * modules/openat-tests (Files): Add tests/test-open.h.
42577 2011-11-04  Bruno Haible  <bruno@clisp.org>
42579         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42580         * modules/fchmodat (Depends-on): Add openat-die.
42581         * modules/fchownat (Depends-on): Likewise.
42582         * modules/linkat (Depends-on): Likewise.
42583         * modules/renameat (Depends-on): Likewise.
42584         * modules/openat (Depends-on): Add dirent.
42586 2011-11-04  Jim Meyering  <meyering@redhat.com>
42588         at-func*.c: fix comments
42589         * lib/at-func2.c: Correct/improve first-line comment.
42590         * lib/at-func.c: Correct grammar in first-line comment.
42592 2011-11-04  Bruno Haible  <bruno@clisp.org>
42594         New module 'mkdirat', split off from module 'openat'.
42595         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42596         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42597         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42598         * modules/mkdirat: New file, extracted from modules/openat.
42599         * modules/openat (Files): Remove lib/mkdirat.c.
42600         (Depends-on): Remove mkdir.
42601         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42602         (Include): Remove <sys/stat.h>.
42603         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42604         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42605         tests/test-mkdir.h.
42606         (Depends-on): Remove ignore-value.
42607         (Makefile.am): Remove rules for test-mkdirat.
42608         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42609         of module 'openat'.
42610         * NEWS: Mention the change.
42612 2011-11-04  Bruno Haible  <bruno@clisp.org>
42614         closedir: Avoid warning on mingw.
42615         * lib/closedir.c: Include <unistd.h>.
42617 2011-11-04  Bruno Haible  <bruno@clisp.org>
42619         New module 'fstatat', split off from module 'openat'.
42620         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42621         defined.
42622         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42623         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42624         gl_FUNC_FSTATAT.
42625         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42626         * modules/fstatat: New file, extracted from modules/openat.
42627         * modules/openat (Files): Remove lib/fstatat.c.
42628         (Depends-on): Remove lstat.
42629         (configure.ac): Remove AC_LIBOBJ of fstatat.
42630         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42631         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42632         tests/test-lstat.h, tests/test-stat.h.
42633         (Depends-on): Remove getcwd-lgpl.
42634         (Makefile.am): Remove rules for test-fstatat.
42635         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42636         of module 'openat'.
42637         * NEWS: Mention the change.
42638         * modules/getcwd (Depends-on): Add fstatat.
42639         * modules/linkat (Depends-on): Likewise.
42640         * modules/mkfifoat-tests (Depends-on): Likewise.
42641         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42643 2011-11-03  Bruno Haible  <bruno@clisp.org>
42645         New module 'unlinkat', split off from module 'openat'.
42646         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42647         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42648         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42649         * modules/unlinkat: New file, extracted from modules/openat. Correct
42650         the dependency conditions.
42651         * modules/openat (Files): Remove lib/unlinkat.c.
42652         (Depends-on): Remove rmdir, unlink.
42653         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42654         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42655         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42656         tests/test-rmdir.h, tests/test-unlink.h.
42657         (Depends-on): Remove unlinkdir.
42658         (Makefile.am): Remove rules for test-unlinkat.
42659         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42660         of module 'openat'.
42661         * NEWS: Mention the change.
42662         * modules/linkat-tests (Depends-on): Add unlinkat.
42663         * modules/mkfifoat-tests (Depends-on): Likewise.
42664         * modules/readlinkat-tests (Depends-on): Likewise.
42666 2011-11-02  Bruno Haible  <bruno@clisp.org>
42668         New module 'fchmodat', split off from module 'openat'.
42669         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42670         defined.
42671         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42672         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42673         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42674         * modules/fchmodat: New file, extracted from modules/openat.
42675         * modules/openat (Files): Remove lib/fchmodat.c.
42676         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42677         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42678         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42679         (Makefile.am): Remove rules for test-fchmodat.
42680         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42681         of module 'openat'.
42682         * NEWS: Mention the change.
42684 2011-11-02  Jim Meyering  <meyering@redhat.com>
42686         putenv: indent #definition of "environ" to placate cppi
42687         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42689         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42690         Git logs are often treated as immutable, because editing them
42691         changes the SHA1 checksums of all descendants.  Thus, errors in
42692         git logs tend to stay there forever.  However, when we generate
42693         a ChangeLog file -- typically for distribution -- from that git log,
42694         we can actually make corrections in the generated file.  The key
42695         lies in recording in machine-readable/applicable form the desired
42696         corrections.  See --help for description and an example.
42697         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42698         (usage): Describe it; alphabetize option descriptions.
42699         (main): Honor the new option, carefully.
42701 2011-11-01  Jim Meyering  <meyering@redhat.com>
42703         gitlog-to-changelog: avoid an infloop
42704         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42705         that ends up being empty.
42707 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42709         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42710         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42711         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42712         contains (possibly-quoted) backslashes.  This should avoid
42713         all-too-common shell bugs if COMPLICATED contains backslashes in
42714         the "wrong" places.  Reported by David Evans in
42715         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42716         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42717         because we want ASCII ranges.  Is there some reason we don't use
42718         the C locale everywhere in this script?
42719         (func_module, top level): Avoid unwanted pathname expansion when
42720         $repo_url_prefix or $repo_url_suffix_repl contain shell
42721         metacharacters like '?' and '*'.
42723 2011-11-01  Bruno Haible  <bruno@clisp.org>
42725         fchownat: Improve description.
42726         * modules/fchownat (Description): Add link to function.
42728 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42730         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42731         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42732         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42733         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42735 2011-11-01  Bruno Haible  <bruno@clisp.org>
42737         alignof: Avoid collision with stdalign module.
42738         * lib/alignof.h (alignof): Remove macro.
42739         * NEWS: Mention the change.
42740         Reported by Paul Eggert.
42742 2011-11-01  Bruno Haible  <bruno@clisp.org>
42744         New module 'fchownat', split off from module 'openat'.
42745         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42746         defined.
42747         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42748         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42749         invoke gl_FUNC_FCHOWNAT.
42750         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42751         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42752         * modules/fchownat: New file, extracted from modules/openat.
42753         * modules/openat (Files): Remove lib/fchownat.c.
42754         (Depends-on): Remove lchown.
42755         (configure.ac): Remove AC_LIBOBJ of fchownat.
42756         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42757         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42758         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42759         (Depends-on): Remove mgetgroups, usleep, stat-time.
42760         (configure.ac): Remove test for getegid.
42761         (Makefile.am): Remove rules for test-fchownat.
42762         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42763         of module 'openat'.
42764         * NEWS: Mention the change.
42766 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42768         stdalign: port better to MSVC and to Sun C 5.11
42769         This fixes some of the problems reported by Bruno Haible in
42770         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42771         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42772         shortcomings of MSVC and of Sun C 5.11.
42773         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42774         around __declspec arg.
42775         * modules/stdalign-tests (Files): Add tests/macros.h.
42776         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42777         Include macros.h, for ASSERT.
42778         (DECLARE_ALIGNED): Remove.
42779         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42780         to catch bug), and to 1 if not (simplifies the rest of the code).
42781         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42782         (CHECK_AUTO): Remove.
42783         (CHECK_ALIGNED): Check only the alignment of the static vars,
42784         since auto var alignment isn't supported by Sun C 5.11.
42785         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42786         ASSERT failures are easier to diagnose.
42788 2011-10-31  Bruno Haible  <bruno@clisp.org>
42790         doc about some IRIX 5.3 problems.
42791         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42792         on IRIX 5.3.
42793         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
42794         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
42795         5.3.
42796         * doc/posix-functions/grantpt.texi: Likewise.
42797         * doc/posix-functions/unlockpt.texi: Likewise.
42798         * doc/posix-functions/lgamma.texi: Likewise.
42799         * doc/posix-functions/nextafter.texi: Likewise.
42800         * doc/posix-functions/remainder.texi: Likewise.
42801         * doc/posix-functions/select.texi: Mention misplaced declaration on
42802         IRIX 5.3.
42803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42805 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
42807         gitlog-to-changelog: fix git-log invocation.
42808         git-log mishandles date strings before 1970-01-01 UTC, and there is
42809         no use to specify --since=1970-01-01 by default anyway.
42810         * build-aux/gitlog-to-changelog: By default, when no --since option
42811         was given, do not specify explicit --since option to git-log.
42813 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
42815         gitlog-to-changelog: new option --append-dot.
42816         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
42817         first non-blank line of each commit message terminated with a dot.
42819 2011-10-30  Bruno Haible  <bruno@clisp.org>
42821         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42822         * lib/ffsl.h: Include <config.h>.
42823         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42825 2011-10-30  Jim Meyering  <meyering@redhat.com>
42827         GNUmakefile: reenable "make syntax-check" for most projects
42828         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42829         build-aux variable", "syntax-check" would do nothing but succeed with
42830         the "No version control files detected..." diagnostic (unless you
42831         happened to override _build-aux via cfg.mk).
42832         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42833         to precede inclusion of maint.mk.  Otherwise, these variables would
42834         be used undefined in any project that does not override the default.
42836 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42838         gitlog-to-changelog: treat a message with only blank lines as empty.
42839         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42840         trailing blank lines before the code that issues a warning about an
42841         empty commit message.
42843 2011-10-30  Jim Meyering  <meyering@redhat.com>
42845         test-parse-datetime.c: avoid new DST-related false positive test failure
42846         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42847         based on the time/date we'll convert, not the current time.
42848         Otherwise, the moment we cross a DST boundary like today's in
42849         Europe, (CEST to CET), that offset ends up being one hour off.
42851 2011-10-27  Bruno Haible  <bruno@clisp.org>
42853         fstat: Tweak documentation.
42854         * modules/fstat (Description): More precise description.
42856 2011-10-27  Bruno Haible  <bruno@clisp.org>
42858         Update documentation regarding 'largefile' module.
42859         * doc/posix-functions/fstat.texi: Tweak wording.
42860         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42861         problems with huge directories and/or small ino_t types.
42862         * doc/posix-functions/readdir.texi: Likewise.
42863         * doc/posix-functions/rewinddir.texi: Likewise.
42865 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42867         maint.mk: don't maintain a second build-aux variable.
42868         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42869         depends on GNUmakefile, which already maintains a cfg.mk
42870         overridable $(_build-aux) for projects with a non-standard
42871         build-aux directory location, although without the $(srcdir)
42872         prefix.  Use that variable consistently instead of introducing a
42873         second one.  Adjust all call sites.
42875 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42877         Add stdalign module and use it in other modules.
42878         This is based on a previous proposal by Bruno Haible
42879         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42881         stdalign: new module
42882         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42883         * modules/stdalign: New files.
42884         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42885         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42887         stdalign-tests: new module
42888         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42890         argp: use stdalign
42891         * lib/argp-parse.c: Include <stdalign.h>.
42892         (alignof): Remove.
42893         * modules/argp (Depends-on): Add stdalign.
42895         crypto libraries: use stdalign
42896         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42897         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42898         Do not include <stdlib.h> twice, in md4.c.
42899         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42900         because we are accessing a pointer's bit-pattern, not a size.
42901         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42902         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42903         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42904         * modules/crypto/sha512: Likewise.
42906         sys_socket: use stdalign, not alignof
42907         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42908         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42910 2011-10-27  Bruno Haible  <bruno@clisp.org>
42912         raise test: Avoid a test failure on Linux/MIPS.
42913         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42914         because 99 is a valid signal on Linux/MIPS.
42916 2011-10-27  Bruno Haible  <bruno@clisp.org>
42918         nonblocking tests: Fix test failure on Linux/MIPS.
42919         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42920         Set to 270000.
42922 2011-10-27  Bruno Haible  <bruno@clisp.org>
42924         utimensat: Work around problem on Linux/hppa.
42925         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42926         values.
42927         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42929 2011-10-25  Jim Meyering  <meyering@redhat.com>
42931         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42932         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42933         after symbols like NULL, size_t, etc.
42934         Reported by Alfred M. Szmidt.
42936         maint.mk: exempt ENODATA from a syntax-check rule
42937         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42938         from the sc_prohibit_always-defined_macros syntax-check rule.
42939         Add a comment.  See this for more details:
42940         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42942 2011-10-23  Jim Meyering  <meyering@redhat.com>
42944         fts: close parent dir FD before returning from post-traversal fts_read
42945         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42946         unlink A, even though an FD open on A remained.  This is suboptimal
42947         (holding a file descriptor open longer than needed), but otherwise not
42948         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42949         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42950         that represents a real problem: it causes the removal of A to fail
42951         with e.g., "rm: cannot remove `A': Device or resource busy"
42953         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42954         directory file descriptors.  After completing the final, FTS_DP,
42955         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42956         cache, but then proceeded to add a new FD to it via the subsequent
42957         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42958         final file descriptor would be closed only via fts_close's call to
42959         fd_ring_clear.  Now, it is usually closed earlier, via the final
42960         FTS_DP-returning fts_read call.
42961         * lib/fts.c (restore_initial_cwd): New function, converted from
42962         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42963         Update callers.
42964         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42965         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42967 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42968             Bruno Haible  <bruno@clisp.org>
42969             Jim Meyering  <jim@meyering.net>
42971         readme-release: improve safety of release prep instructions.
42972         * README-release: Don't git pull all branches when only master
42973         is needed for the release process.
42974         Run make maintainer-clean before changing trees and merging.
42975         Don't try to run ./configure right after git pull in case files
42976         that influence the bootstrap process have changed, move the
42977         ./configure step to after running ./bootstrap.
42978         Don't bootstrap "one last time"... it's the first time!
42980 2011-10-22  Bruno Haible  <bruno@clisp.org>
42982         errno, strerror-override: Support for MSVC 10.
42983         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42984         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42985         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42986         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42987         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42988         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42989         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42990         Assign values compatible with MSVC 10.
42991         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42992         New macros.
42993         (GNULIB_defined_EWINSOCK): New macro.
42994         * lib/strerror-override.c (strerror_override): Update accordingly.
42995         * lib/strerror-override.h: Likewise.
42996         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42997         longer equal to the corresponding errno value.
42998         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43000 2011-10-22  Bruno Haible  <bruno@clisp.org>
43002         perror: Recognize when test program crashes.
43003         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
43004         strerror, set gl_cv_func_perror_works to no.
43005         Reported by Daniel Richard G. <skunk@iskunk.org>.
43007         perror: Fix indentation.
43008         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
43010 2011-10-22  Bruno Haible  <bruno@clisp.org>
43012         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
43013         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
43014         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
43015         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
43016         functions, not as a macro.
43017         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
43018         macros.
43019         (isfinite, isinf, isnan, signbit): Check overloaded functions and
43020         absence of macro.
43021         Suggested by Eric Blake.
43022         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43024 2011-10-21  Bruno Haible  <bruno@clisp.org>
43026         relocatable-prog-wrapper: Don't leave object files behind.
43027         * build-aux/install-reloc: Re-synchronize list of .o files to be
43028         removed with list of compilation units.
43030 2011-10-20  Bruno Haible  <bruno@clisp.org>
43032         openpty, posix_openpt: Remove code duplication.
43033         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
43034         * lib/openpty.c: Include <stdlib.h>.
43035         (openpty): Use posix_openpt on all platforms except IRIX.
43036         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
43038 2011-10-20  Bruno Haible  <bruno@clisp.org>
43040         unlockpt: Detect invalid argument.
43041         * lib/unlockpt.c: Include <fcntl.h>.
43042         (unlockpt): Check whether fd is valid, using fcntl().
43043         * modules/unlockpt (Depends-on): Add fcntl-h.
43045 2011-10-20  Bruno Haible  <bruno@clisp.org>
43047         openpty: Avoid compilation error on AIX 6.1.
43048         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
43050 2011-10-20  Bruno Haible  <bruno@clisp.org>
43052         posix_openpt: Support for OpenBSD.
43053         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
43054         (posix_openpt) [OpenBSD]: New code.
43055         * lib/grantpt.c: Include <fcntl.h>.
43056         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
43057         * modules/grantpt (Depends-on): Add fcntl-h.
43059 2011-10-20  Bruno Haible  <bruno@clisp.org>
43061         posix_openpt test: Coding style.
43062         * tests/test-posix_openpt.c: Use GNU coding style.
43064 2011-10-20  Bruno Haible  <bruno@clisp.org>
43066         grantpt: Support --avoid=pt_chown.
43067         * modules/grantpt (Files): Add lib/pty-private.h.
43069 2011-10-20  Bruno Haible  <bruno@clisp.org>
43071         posix_openpt: Fix autoconf macro.
43072         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
43073         unneeded check for _getpty.
43075 2011-10-20  Bruno Haible  <bruno@clisp.org>
43077         openpty: Update comments.
43078         * lib/openpty.c: Add comments about Minix.
43080 2011-10-19  Eric Blake  <eblake@redhat.com>
43082         openpty: relax license
43083         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
43085         pt_chown: use configmake to simplify build
43086         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
43088         ptsname and others: relax license
43089         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
43090         * modules/unlockpt (License): Likewise.
43091         * modules/pt_chown (License): Likewise.
43092         * modules/ptsname (License): Likewise.
43093         * modules/ttyname_r (License): Likewise.
43095 2011-10-19  Jim Meyering  <meyering@redhat.com>
43097         posix_openpt: remove spurious #endif
43098         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
43100 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
43102         maint.mk: Respect $(build_aux) in web-manual rule.
43103         * top/maint.mk (web-manual): Find gen-announce script in user's
43104         $(build_aux) directory instead of hard-coding 'build-aux'.
43106 2011-10-19  Bruno Haible  <bruno@clisp.org>
43108         posix_openpt: Fix compilation error.
43109         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
43110         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
43111         Mention the openpty module as an alternative.
43113 2011-10-19  Bruno Haible  <bruno@clisp.org>
43115         Support for old NeXTstep 3.3 frexp().
43116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
43117         execution time of the test to 5 seconds.
43118         Reported by Daniel Richard G. <skunk@iskunk.org>.
43120 2011-10-19  Bruno Haible  <bruno@clisp.org>
43122         Support for old NeXTstep 3.3 sed.
43123         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
43124         part, use /.../, not \|...|. Escape periods in the header file name.
43125         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
43126         Reported by Daniel Richard G. <skunk@iskunk.org>.
43128 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43130         Support for old NeXTstep 3.3 gcc.
43131         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
43132         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
43133         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
43134         * lib/spawn.in.h (_Restrict_arr_): Likewise.
43135         * lib/regex.h (_Restrict_arr_): Likewise.
43136         * lib/regex_internal.h (re_token_t): Likewise.
43137         * lib/regexec.c (check_node_accept_bytes): Likewise.
43138         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
43140 2011-10-18  Eric Blake  <eblake@redhat.com>
43142         posix_openpt: new module
43143         * modules/posix_openpt: New module.
43144         * m4/posix_openpt.m4: New file.
43145         * lib/posix_openpt.c: Likewise.
43146         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43147         (gl_STDLIB_H_DEFAULTS): Set defaults.
43148         * modules/stdlib (Makefile.am): Substitute macros.
43149         * lib/stdlib.in.h (posix_openpt): Declare.
43150         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
43151         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
43152         * modules/posix_openpt-tests: New test module.
43153         * tests/test-posix_openpt.c: New test.
43155 2011-10-15  Bruno Haible  <bruno@clisp.org>
43157         xstrtoll: Fix compilation failure.
43158         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
43159         from lib/strtol.c.
43160         * doc/posix-headers/limits.texi: Mention missing numerical limits on
43161         some platforms.
43162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43164 2011-10-15  Bruno Haible  <bruno@clisp.org>
43166         vasnprintf: Optimize bit search operation.
43167         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
43168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
43169         gl_DOUBLE_EXPONENT_LOCATION.
43170         * modules/vasnprintf (Files): Add m4/exponentd.m4.
43171         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43172         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43173         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43174         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43175         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43176         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43177         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43178         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
43180 2011-10-15  Bruno Haible  <bruno@clisp.org>
43182         vasnprintf: Fix comments.
43183         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
43185 2011-10-14  Bruno Haible  <bruno@clisp.org>
43187         Tests for module 'integer_length_ll'.
43188         * modules/integer_length_ll-tests: New file.
43189         * tests/test-integer_length_ll.c: New file.
43191         New module 'integer_length_ll'.
43192         * lib/integer_length_ll.c: New file.
43193         * modules/integer_length_ll: New file.
43195 2011-10-14  Bruno Haible  <bruno@clisp.org>
43197         Tests for module 'integer_length_l'.
43198         * modules/integer_length_l-tests: New file.
43199         * tests/test-integer_length_l.c: New file.
43201         New module 'integer_length_l'.
43202         * lib/integer_length_l.c: New file.
43203         * modules/integer_length_l: New file.
43205 2011-10-14  Bruno Haible  <bruno@clisp.org>
43207         Tests for module 'integer_length'.
43208         * modules/integer_length-tests: New file.
43209         * tests/test-integer_length.c: New file.
43211         New module 'integer_length'.
43212         * lib/integer_length.h: New file.
43213         * lib/integer_length.c: New file.
43214         * modules/integer_length: New file.
43216 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43218         popen: Fix dependency conditions.
43219         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
43221 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43223         perror: Fix autoconf test.
43224         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
43225         <stdlib.h> and <string.h>.
43227 2011-10-14  Bruno Haible  <bruno@clisp.org>
43229         ffsl: Optimize on 64-bit platforms.
43230         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
43231         unrolling.
43233 2011-10-13  Bruno Haible  <bruno@clisp.org>
43235         ffsl: Optimize on 32-bit platforms.
43236         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
43237         use ffs() without a loop.
43239         ffsl, ffsll: Optimize for GCC.
43240         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
43241         * lib/ffsl.c (GCC_BUILTIN): New macro.
43242         * lib/ffsll.c (GCC_BUILTIN): Likewise.
43244 2011-10-13  Bruno Haible  <bruno@clisp.org>
43246         ffs, bcopy, memset: Support symbol renaming via config.h.
43247         * lib/ffs.c: Include <config.h>.
43248         * lib/bcopy.c: Likewise.
43249         * lib/memset.c: Likewise.
43251 2011-10-10  Bruno Haible  <bruno@clisp.org>
43253         atanl: Simplify for platforms where 'long double' == 'double'.
43254         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43255         alternative implementation.
43256         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43257         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43258         * modules/atanl (Depends-on): Add atan. Update conditions.
43260 2011-10-10  Bruno Haible  <bruno@clisp.org>
43262         acosl: Simplify for platforms where 'long double' == 'double'.
43263         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43264         alternative implementation.
43265         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43266         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43267         * modules/acosl (Depends-on): Add acos. Update conditions.
43269 2011-10-10  Bruno Haible  <bruno@clisp.org>
43271         asinl: Simplify for platforms where 'long double' == 'double'.
43272         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43273         alternative implementation.
43274         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43275         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43276         * modules/asinl (Depends-on): Add asin. Update conditions.
43278 2011-10-10  Bruno Haible  <bruno@clisp.org>
43280         tanl: Simplify for platforms where 'long double' == 'double'.
43281         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43282         implementation.
43283         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43284         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43285         * modules/tanl (Depends-on): Add tan. Update conditions.
43286         (configure.ac): Don't compile trigl.c if
43287         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43289 2011-10-10  Bruno Haible  <bruno@clisp.org>
43291         cosl: Simplify for platforms where 'long double' == 'double'.
43292         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43293         implementation.
43294         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43295         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43296         * modules/cosl (Depends-on): Add cos. Update conditions.
43297         (configure.ac): Don't compile sincosl.c and trigl.c if
43298         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43300 2011-10-10  Bruno Haible  <bruno@clisp.org>
43302         sinl: Simplify for platforms where 'long double' == 'double'.
43303         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43304         implementation.
43305         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43306         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43307         * modules/sinl (Depends-on): Add sin. Update conditions.
43308         (configure.ac): Don't compile sincosl.c and trigl.c if
43309         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43311 2011-10-10  Bruno Haible  <bruno@clisp.org>
43313         logl: Simplify for platforms where 'long double' == 'double'.
43314         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43315         implementation.
43316         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43317         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43318         * modules/logl (Depends-on): Add log. Update conditions.
43320 2011-10-10  Bruno Haible  <bruno@clisp.org>
43322         expl: Simplify for platforms where 'long double' == 'double'.
43323         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43324         implementation.
43325         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43326         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43327         * modules/expl (Depends-on): Add exp. Update conditions.
43329 2011-10-10  Bruno Haible  <bruno@clisp.org>
43331         sqrtl: Simplify for platforms where 'long double' == 'double'.
43332         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43333         alternative implementation.
43334         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43335         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43336         * modules/sqrtl (Depends-on): Update conditions.
43338 2011-10-10  Bruno Haible  <bruno@clisp.org>
43340         ldexpl: Simplify for platforms where 'long double' == 'double'.
43341         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43342         alternative implementation.
43343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43344         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43345         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
43347 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
43349         ffsll: set correct witness
43350         * modules/ffsll (configure.ac): Fix typo.
43352 2011-10-10  Bruno Haible  <bruno@clisp.org>
43354         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
43355         * lib/printf-frexpl.c: Include <config.h>.
43356         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43357         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
43358         second time.
43359         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
43360         gl_LONG_DOUBLE_VS_DOUBLE.
43361         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
43362         conditions.
43364 2011-10-10  Bruno Haible  <bruno@clisp.org>
43366         frexpl: Simplify for platforms where 'long double' == 'double'.
43367         * lib/frexpl.c: Include <config.h>.
43368         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43369         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43370         time.
43371         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43372         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43373         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
43374         * modules/frexpl (Depends-on): Add frexp. Update conditions.
43375         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
43376         conditions.
43378 2011-10-10  Jim Meyering  <meyering@redhat.com>
43380         test-renameat: don't leave behind a temporary file
43381         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43382           ERROR: files left in build directory after distclean:
43383           ./gltests/test-renameat.too
43384           make[1]: *** [distcleancheck] Error 1
43385         Reported by Tom G. Christensen.
43387 2011-10-09  Bruno Haible  <bruno@clisp.org>
43389         rint: Determine RINT_LIBM correctly on AIX 7.
43390         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43391         directly, not only through a function pointer. Also accept an optional
43392         4th argument with extra code.
43393         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43394         rintf() call by gcc when optimizing.
43396         mathfunc.m4: Refactor.
43397         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43398         m4 variable.
43400 2011-10-09  Bruno Haible  <bruno@clisp.org>
43402         rintl: Simplify for platforms where 'long double' == 'double'.
43403         * lib/rintl.c: Include <config.h>.
43404         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43405         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43406         time.
43407         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43408         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43409         * modules/rintl (Depends-on): Add rint. Update conditions.
43411 2011-10-09  Bruno Haible  <bruno@clisp.org>
43413         roundl: Simplify for platforms where 'long double' == 'double'.
43414         * lib/roundl.c: Include <config.h>.
43415         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43416         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43417         time.
43418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43419         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43420         * modules/roundl (Depends-on): Add round. Update conditions.
43422 2011-10-09  Bruno Haible  <bruno@clisp.org>
43424         truncl: Simplify for platforms where 'long double' == 'double'.
43425         * lib/truncl.c: Include <config.h>.
43426         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43427         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43428         time.
43429         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43430         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43431         * modules/truncl (Depends-on): Add trunc. Update conditions.
43433 2011-10-09  Bruno Haible  <bruno@clisp.org>
43435         ceill: Simplify for platforms where 'long double' == 'double'.
43436         * lib/ceill.c: Include <config.h>.
43437         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43438         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43439         time.
43440         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43441         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43442         * modules/ceill (Depends-on): Add ceil. Update conditions.
43444 2011-10-09  Bruno Haible  <bruno@clisp.org>
43446         floorl: Simplify for platforms where 'long double' == 'double'.
43447         * lib/floorl.c: Include <config.h>.
43448         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43449         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43450         time.
43451         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43452         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43453         * modules/floorl (Depends-on): Add floor. Update conditions.
43455 2011-10-09  Bruno Haible  <bruno@clisp.org>
43457         rint: Fix ordering constraints.
43458         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43459         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43460         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43462 2011-10-09  Bruno Haible  <bruno@clisp.org>
43464         copysignl: Simplify for platforms where 'long double' == 'double'.
43465         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43466         alternative.
43467         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43468         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43469         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43471 2011-10-09  Bruno Haible  <bruno@clisp.org>
43473         Tests for module 'rintl'.
43474         * modules/rintl-tests: New file.
43475         * tests/test-rintl.c: New file.
43477         New module 'rintl'.
43478         * lib/math.in.h (rintl): New declaration.
43479         * lib/rintl.c: New file.
43480         * m4/rintl.m4: New file.
43481         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43483         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43484         * modules/rintl: New file.
43485         * tests/test-math-c++.cc: Check the declaration of rintl.
43486         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43487         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43488         * doc/posix-functions/rintl.texi: Mention the new module.
43490 2011-10-09  Bruno Haible  <bruno@clisp.org>
43492         Tests for module 'rintf'.
43493         * modules/rintf-tests: New file.
43494         * tests/test-rintf.c: New file.
43496         New module 'rintf'.
43497         * lib/math.in.h (rintf): New declaration.
43498         * lib/rintf.c: New file.
43499         * m4/rintf.m4: New file.
43500         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43502         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43503         * modules/rintf: New file.
43504         * tests/test-math-c++.cc: Check the declaration of rintf.
43505         * doc/posix-functions/rintf.texi: Mention the new module.
43507 2011-10-09  Bruno Haible  <bruno@clisp.org>
43509         rint: Support for MSVC.
43510         * lib/math.in.h (rint): New declaration.
43511         * lib/rint.c: New file.
43512         * m4/rint.m4: New file.
43513         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43515         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43516         * modules/rint (Description): Fix.
43517         (Files): Add lib/rint.c, m4/rint.m4.
43518         (Depends-on): Add math.
43519         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43520         gl_MATH_MODULE_INDICATOR.
43521         * tests/test-math-c++.cc: Check the declaration of rint.
43522         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43523         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43524         * doc/posix-functions/rint.texi: Mention the replacement provided by
43525         the module.
43527         rint tests: More tests.
43528         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43529         minus-zero.h, infinity.h, nan.h.
43530         (main): Skip the test if the current rounding mode is not standard. Add
43531         tests for negative numbers, minus zero, infinity, NaN.
43532         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43533         tests/nan.h.
43534         (Depends-on): Add isnand-nolibm.
43536 2011-10-09  Bruno Haible  <bruno@clisp.org>
43538         Tests for module 'copysignl'.
43539         * modules/copysignl-tests: New file.
43540         * tests/test-copysignl.c: New file.
43542         New module 'copysignl'.
43543         * lib/math.in.h (copysignl): New declaration.
43544         * lib/copysignl.c: New file.
43545         * m4/copysignl.m4: New file.
43546         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43548         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43549         HAVE_COPYSIGNL.
43550         * modules/copysignl: New file.
43551         * tests/test-math-c++.cc: Check the declaration of copysignl.
43552         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43553         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43554         * doc/posix-functions/copysignl.texi: Mention the new module.
43556 2011-10-09  Bruno Haible  <bruno@clisp.org>
43558         Tests for module 'copysignf'.
43559         * modules/copysignf-tests: New file.
43560         * tests/test-copysignf.c: New file.
43562         New module 'copysignf'.
43563         * lib/math.in.h (copysignf): New declaration.
43564         * lib/copysignf.c: New file.
43565         * m4/copysignf.m4: New file.
43566         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43568         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43569         HAVE_COPYSIGNF.
43570         * modules/copysignf: New file.
43571         * tests/test-math-c++.cc: Check the declaration of copysignf.
43572         * doc/posix-functions/copysignf.texi: Mention the new module.
43574 2011-10-09  Bruno Haible  <bruno@clisp.org>
43576         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43577         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43578         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43579         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43580         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43581         gl_SIGNAL_H_DEFAULTS.
43583 2011-10-09  Bruno Haible  <bruno@clisp.org>
43585         poll: Make macro safer.
43586         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43587         ac_cv_header_poll_h is not set.
43589 2011-10-09  Bruno Haible  <bruno@clisp.org>
43591         copysign: Provide replacement.
43592         * lib/math.in.h (copysign): New declaration.
43593         * lib/copysign.c: New file.
43594         * m4/copysign.m4: New file.
43595         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43597         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43598         HAVE_COPYSIGN.
43599         * modules/copysign (Description): Clarify.
43600         (Files): Add lib/copysign.c, m4/copysign.m4.
43601         (Depends-on): Add math, signbit.
43602         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43603         gl_MATH_MODULE_INDICATOR.
43604         * tests/test-math-c++.cc: Check the declaration of copysign.
43605         * doc/posix-functions/copysign.texi: Mention the effects of the module
43606         on Minix and MSVC.
43608 2011-10-09  Bruno Haible  <bruno@clisp.org>
43610         isinf: Ensure macro on AIX 5.1.
43611         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43612         macro.
43613         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43615 2011-10-09  Bruno Haible  <bruno@clisp.org>
43617         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43618         * modules/snprintf-posix-tests (configure.ac): Require
43619         gl_LONG_DOUBLE_VS_DOUBLE.
43620         * modules/sprintf-posix-tests (configure.ac): Likewise.
43621         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43622         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43623         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43624         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43625         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43626         tests on platforms where 'long double' is the same as 'double'.
43627         * tests/test-sprintf-posix.h (test_function): Likewise.
43628         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43629         * tests/test-vasprintf-posix.c (test_function): Likewise.
43631         *printf: Fix for platforms where 'long double' == 'double'.
43632         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43633         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43634         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43635         * modules/fprintf-posix (Files): Likewise.
43636         * modules/obstack-printf-posix (Files): Likewise.
43637         * modules/snprintf-posix (Files): Likewise.
43638         * modules/sprintf-posix (Files): Likewise.
43639         * modules/vasnprintf (Files): Likewise.
43640         * modules/vasnprintf-posix (Files): Likewise.
43641         * modules/vasprintf-posix (Files): Likewise.
43642         * modules/vdprintf-posix (Files): Likewise.
43643         * modules/vfprintf-posix (Files): Likewise.
43644         * modules/vsnprintf-posix (Files): Likewise.
43645         * modules/vsprintf-posix (Files): Likewise.
43646         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43647         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43648         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43649         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43650         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43651         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43652         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43654         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43655         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43656         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43657         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43658         'long double'.
43659         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43661         isinf: Fix for platforms where 'long double' == 'double'.
43662         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43663         Don't blindly assume 80-bit 'long double'.
43665         isfinite: Fix for platforms where 'long double' == 'double'.
43666         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43667         Don't blindly assume 80-bit 'long double'.
43669         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43670         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43671         * modules/isfinite-tests (configure.ac): Require
43672         gl_LONG_DOUBLE_VS_DOUBLE.
43673         * modules/isinf-tests (configure.ac): Likewise.
43674         * modules/isnan-tests (configure.ac): Likewise.
43675         * modules/isnanl-tests (configure.ac): Likewise.
43676         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43677         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43678         tests on platforms where 'long double' is the same as 'double'.
43679         * tests/test-isinf.c (test_isinfl): Likewise.
43680         * tests/test-isnan.c (test_long_double): Likewise.
43681         * tests/test-isnanl.h (main): Likewise.
43683 2011-10-08  Bruno Haible  <bruno@clisp.org>
43685         Tests for module 'tanhf'.
43686         * modules/tanhf-tests: New file.
43687         * tests/test-tanhf.c: New file.
43689         New module 'tanhf'.
43690         * lib/math.in.h (tanhf): New declaration.
43691         * lib/tanhf.c: New file.
43692         * m4/tanhf.m4: New file.
43693         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43695         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43696         * modules/tanhf: New file.
43697         * tests/test-math-c++.cc: Check the declaration of tanhf.
43698         * doc/posix-functions/tanhf.texi: Mention the new module.
43700         tanh: Use a .m4 file.
43701         * m4/tanh.m4: New file.
43702         * modules/tanh (Files): Add it.
43703         (configure.ac): Just invoke gl_FUNC_TANH.
43705 2011-10-08  Bruno Haible  <bruno@clisp.org>
43707         Tests for module 'coshf'.
43708         * modules/coshf-tests: New file.
43709         * tests/test-coshf.c: New file.
43711         New module 'coshf'.
43712         * lib/math.in.h (coshf): New declaration.
43713         * lib/coshf.c: New file.
43714         * m4/coshf.m4: New file.
43715         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43717         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43718         * modules/coshf: New file.
43719         * tests/test-math-c++.cc: Check the declaration of coshf.
43720         * doc/posix-functions/coshf.texi: Mention the new module.
43722         cosh: Use a .m4 file.
43723         * m4/cosh.m4: New file.
43724         * modules/cosh (Files): Add it.
43725         (configure.ac): Just invoke gl_FUNC_COSH.
43727 2011-10-08  Bruno Haible  <bruno@clisp.org>
43729         Tests for module 'sinhf'.
43730         * modules/sinhf-tests: New file.
43731         * tests/test-sinhf.c: New file.
43733         New module 'sinhf'.
43734         * lib/math.in.h (sinhf): New declaration.
43735         * lib/sinhf.c: New file.
43736         * m4/sinhf.m4: New file.
43737         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43739         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43740         * modules/sinhf: New file.
43741         * tests/test-math-c++.cc: Check the declaration of sinhf.
43742         * doc/posix-functions/sinhf.texi: Mention the new module.
43744         sinh: Use a .m4 file.
43745         * m4/sinh.m4: New file.
43746         * modules/sinh (Files): Add it.
43747         (configure.ac): Just invoke gl_FUNC_SINH.
43749 2011-10-08  Bruno Haible  <bruno@clisp.org>
43751         Tests for module 'atan2f'.
43752         * modules/atan2f-tests: New file.
43753         * tests/test-atan2f.c: New file.
43755         New module 'atan2f'.
43756         * lib/math.in.h (atan2f): New declaration.
43757         * lib/atan2f.c: New file.
43758         * m4/atan2f.m4: New file.
43759         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43761         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43762         * modules/atan2f: New file.
43763         * tests/test-math-c++.cc: Check the declaration of atan2f.
43764         * doc/posix-functions/atan2f.texi: Mention the new module.
43766         atan2: Use a .m4 file.
43767         * m4/atan2.m4: New file.
43768         * modules/atan2 (Files): Add it.
43769         (configure.ac): Just invoke gl_FUNC_ATAN2.
43771 2011-10-08  Bruno Haible  <bruno@clisp.org>
43773         Tests for module 'atanf'.
43774         * modules/atanf-tests: New file.
43775         * tests/test-atanf.c: New file.
43777         New module 'atanf'.
43778         * lib/math.in.h (atanf): New declaration.
43779         * lib/atanf.c: New file.
43780         * m4/atanf.m4: New file.
43781         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43783         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43784         * modules/atanf: New file.
43785         * tests/test-math-c++.cc: Check the declaration of atanf.
43786         * doc/posix-functions/atanf.texi: Mention the new module.
43788         atan: Use a .m4 file.
43789         * m4/atan.m4: New file.
43790         * modules/atan (Files): Add it.
43791         (configure.ac): Just invoke gl_FUNC_ATAN.
43793 2011-10-08  Bruno Haible  <bruno@clisp.org>
43795         Tests for module 'acosf'.
43796         * modules/acosf-tests: New file.
43797         * tests/test-acosf.c: New file.
43799         New module 'acosf'.
43800         * lib/math.in.h (acosf): New declaration.
43801         * lib/acosf.c: New file.
43802         * m4/acosf.m4: New file.
43803         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
43804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
43805         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43806         * modules/acosf: New file.
43807         * tests/test-math-c++.cc: Check the declaration of acosf.
43808         * doc/posix-functions/acosf.texi: Mention the new module.
43810         acos: Use a .m4 file.
43811         * m4/acos.m4: New file.
43812         * modules/acos (Files): Add it.
43813         (configure.ac): Just invoke gl_FUNC_ACOS.
43815 2011-10-08  Bruno Haible  <bruno@clisp.org>
43817         Tests for module 'asinf'.
43818         * modules/asinf-tests: New file.
43819         * tests/test-asinf.c: New file.
43821         New module 'asinf'.
43822         * lib/math.in.h (asinf): New declaration.
43823         * lib/asinf.c: New file.
43824         * m4/asinf.m4: New file.
43825         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43827         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43828         * modules/asinf: New file.
43829         * tests/test-math-c++.cc: Check the declaration of asinf.
43830         * doc/posix-functions/asinf.texi: Mention the new module.
43832         asin: Use a .m4 file.
43833         * m4/asin.m4: New file.
43834         * modules/asin (Files): Add it.
43835         (configure.ac): Just invoke gl_FUNC_ASIN.
43837 2011-10-08  Bruno Haible  <bruno@clisp.org>
43839         Tests for module 'tanf'.
43840         * modules/tanf-tests: New file.
43841         * tests/test-tanf.c: New file.
43843         New module 'tanf'.
43844         * lib/math.in.h (tanf): New declaration.
43845         * lib/tanf.c: New file.
43846         * m4/tanf.m4: New file.
43847         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43849         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43850         * modules/tanf: New file.
43851         * tests/test-math-c++.cc: Check the declaration of tanf.
43852         * doc/posix-functions/tanf.texi: Mention the new module.
43854         tan: Use a .m4 file.
43855         * m4/tan.m4: New file.
43856         * modules/tan (Files): Add it.
43857         (configure.ac): Just invoke gl_FUNC_TAN.
43859 2011-10-08  Bruno Haible  <bruno@clisp.org>
43861         Tests for module 'cosf'.
43862         * modules/cosf-tests: New file.
43863         * tests/test-cosf.c: New file.
43865         New module 'cosf'.
43866         * lib/math.in.h (cosf): New declaration.
43867         * lib/cosf.c: New file.
43868         * m4/cosf.m4: New file.
43869         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43871         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43872         * modules/cosf: New file.
43873         * tests/test-math-c++.cc: Check the declaration of cosf.
43874         * doc/posix-functions/cosf.texi: Mention the new module.
43876         cos: Use a .m4 file.
43877         * m4/cos.m4: New file.
43878         * modules/cos (Files): Add it.
43879         (configure.ac): Just invoke gl_FUNC_COS.
43881 2011-10-08  Bruno Haible  <bruno@clisp.org>
43883         Tests for module 'sinf'.
43884         * modules/sinf-tests: New file.
43885         * tests/test-sinf.c: New file.
43887         New module 'sinf'.
43888         * lib/math.in.h (sinf): New declaration.
43889         * lib/sinf.c: New file.
43890         * m4/sinf.m4: New file.
43891         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43893         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43894         * modules/sinf: New file.
43895         * tests/test-math-c++.cc: Check the declaration of sinf.
43896         * doc/posix-functions/sinf.texi: Mention the new module.
43898         sin: Use a .m4 file.
43899         * m4/sin.m4: New file.
43900         * modules/sin (Files): Add it.
43901         (configure.ac): Just invoke gl_FUNC_SIN.
43903 2011-10-08  Bruno Haible  <bruno@clisp.org>
43905         Tests for module 'powf'.
43906         * modules/powf-tests: New file.
43907         * tests/test-powf.c: New file.
43909         New module 'powf'.
43910         * lib/math.in.h (powf): New declaration.
43911         * lib/powf.c: New file.
43912         * m4/powf.m4: New file.
43913         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43915         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43916         * modules/powf: New file.
43917         * tests/test-math-c++.cc: Check the declaration of powf.
43918         * doc/posix-functions/powf.texi: Mention the new module.
43920         pow: Use a .m4 file.
43921         * m4/pow.m4: New file.
43922         * modules/pow (Files): Add it.
43923         (configure.ac): Just invoke gl_FUNC_POW.
43925 2011-10-08  Bruno Haible  <bruno@clisp.org>
43927         Tests for module 'log10f'.
43928         * modules/log10f-tests: New file.
43929         * tests/test-log10f.c: New file.
43931         New module 'log10f'.
43932         * lib/math.in.h (log10f): New declaration.
43933         * lib/log10f.c: New file.
43934         * m4/log10f.m4: New file.
43935         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43937         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43938         * modules/log10f: New file.
43939         * tests/test-math-c++.cc: Check the declaration of log10f.
43940         * doc/posix-functions/log10f.texi: Mention the new module.
43942         log10: Use a .m4 file.
43943         * m4/log10.m4: New file.
43944         * modules/log10 (Files): Add it.
43945         (configure.ac): Just invoke gl_FUNC_LOG10.
43947 2011-10-08  Bruno Haible  <bruno@clisp.org>
43949         Tests for module 'logf'.
43950         * modules/logf-tests: New file.
43951         * tests/test-logf.c: New file.
43953         New module 'logf'.
43954         * lib/math.in.h (logf): New declaration.
43955         * lib/logf.c: New file.
43956         * m4/logf.m4: New file.
43957         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43959         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43960         * modules/logf: New file.
43961         * tests/test-math-c++.cc: Check the declaration of logf.
43962         * doc/posix-functions/logf.texi: Mention the new module.
43964         log: Use a .m4 file.
43965         * m4/log.m4: New file.
43966         * modules/log (Files): Add it.
43967         (configure.ac): Just invoke gl_FUNC_LOG.
43969 2011-10-08  Bruno Haible  <bruno@clisp.org>
43971         Tests for module 'expf'.
43972         * modules/expf-tests: New file.
43973         * tests/test-expf.c: New file.
43975         New module 'expf'.
43976         * lib/math.in.h (expf): New declaration.
43977         * lib/expf.c: New file.
43978         * m4/expf.m4: New file.
43979         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43981         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43982         * modules/expf: New file.
43983         * tests/test-math-c++.cc: Check the declaration of expf.
43984         * doc/posix-functions/expf.texi: Mention the new module.
43986         exp: Use a .m4 file.
43987         * m4/exp.m4: New file.
43988         * modules/exp (Files): Add it.
43989         (configure.ac): Just invoke gl_FUNC_EXP.
43991 2011-10-08  Bruno Haible  <bruno@clisp.org>
43993         Tests for module 'sqrtf'.
43994         * modules/sqrtf-tests: New file.
43995         * tests/test-sqrtf.c: New file.
43997         New module 'sqrtf'.
43998         * lib/math.in.h (sqrtf): New declaration.
43999         * lib/sqrtf.c: New file.
44000         * m4/sqrtf.m4: New file.
44001         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
44002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
44003         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
44004         * modules/sqrtf: New file.
44005         * tests/test-math-c++.cc: Check the declaration of sqrtf.
44006         * doc/posix-functions/sqrtf.texi: Mention the new module.
44008 2011-10-08  Bruno Haible  <bruno@clisp.org>
44010         Tests: Avoid link failures w.r.t. libintl.
44011         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
44012         $(LIBINTL).
44013         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
44014         $(LIBINTL).
44015         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
44016         against $(LIBINTL).
44017         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
44018         $(LIBINTL).
44019         * modules/openat-tests (Makefile.am): Link test-fchmodat against
44020         $(LIBINTL).
44021         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
44023 2011-10-08  Bruno Haible  <bruno@clisp.org>
44025         pow tests: Defeat compiler optimizations.
44026         * tests/test-pow.c (main): Assign arguments to x and y before use.
44028 2011-10-08  Bruno Haible  <bruno@clisp.org>
44030         gnulib-tool: Improve last commit.
44031         * gnulib-tool (func_modules_transitive_closure): Simplify code.
44032         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
44033         ignore dependencies that are not among the modules list.
44035 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
44037         gnulib-tool: don't follow dependencies to avoided modules
44038         This fixes a bug that is related to the previous one.
44039         * gnulib-tool (func_modules_transitive_closure)
44040         (func_emit_autoconf_snippets):
44041         Check whether a dependency is acceptable before using it.
44042         (--extract-dependencies): Report an error if --avoid is also used,
44043         since this combination of options is not yet supported.
44045         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
44046         Problem reported by Peter Dyballa in
44047         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
44048         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
44049         when echoing "$condition".
44051 2011-10-07  Bruno Haible  <bruno@clisp.org>
44053         Fix documentation about math functions on MacOS X.
44054         * doc/posix-functions/exp2.texi: Don't say the function is missing on
44055         MacOS X 10.5.
44056         * doc/posix-functions/fdim.texi: Likewise.
44057         * doc/posix-functions/feclearexcept.texi: Likewise.
44058         * doc/posix-functions/fegetenv.texi: Likewise.
44059         * doc/posix-functions/fegetround.texi: Likewise.
44060         * doc/posix-functions/feholdexcept.texi: Likewise.
44061         * doc/posix-functions/feraiseexcept.texi: Likewise.
44062         * doc/posix-functions/fesetenv.texi: Likewise.
44063         * doc/posix-functions/fesetround.texi: Likewise.
44064         * doc/posix-functions/fetestexcept.texi: Likewise.
44065         * doc/posix-functions/feupdateenv.texi: Likewise.
44066         * doc/posix-functions/fmax.texi: Likewise.
44067         * doc/posix-functions/fmin.texi: Likewise.
44068         * doc/posix-functions/log2.texi: Likewise.
44069         * doc/posix-functions/modff.texi: Likewise.
44070         * doc/posix-functions/nan.texi: Likewise.
44071         * doc/posix-functions/nanf.texi: Likewise.
44072         * doc/posix-functions/nextafterf.texi: Likewise.
44073         * doc/posix-functions/remquo.texi: Likewise.
44075 2011-10-07  Bruno Haible  <bruno@clisp.org>
44077         modff: Drop assumption about library that defines modff.
44078         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
44079         AC_CHECK_FUNCS.
44080         * modules/modff (Files): Add m4/mathfunc.m4.
44082 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
44084         raise tests: Avoid a GCC warning.
44085         * tests/test-raise.c (handler): Use _Noreturn.
44087 2011-10-07  Bruno Haible  <bruno@clisp.org>
44089         Tests for module 'ldexpf'.
44090         * modules/ldexpf-tests: New file.
44091         * tests/test-ldexpf.c: New file.
44093         New module 'ldexpf'.
44094         * lib/math.in.h (ldexpf): New declaration.
44095         * lib/ldexpf.c: New file.
44096         * m4/ldexpf.m4: New file.
44097         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
44098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
44099         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
44100         * modules/ldexpf: New file.
44101         * tests/test-math-c++.cc: Check the declaration of ldexpf.
44102         * doc/posix-functions/ldexpf.texi: Mention the new module.
44104 2011-10-06  Bruno Haible  <bruno@clisp.org>
44106         frexpf: Work around problems on IRIX and mingw.
44107         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
44108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
44109         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
44110         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
44111         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
44112         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
44113         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
44115 2011-10-06  Bruno Haible  <bruno@clisp.org>
44117         fabsf: Drop assumption about library that defines fabsf.
44118         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
44119         AC_CHECK_FUNCS.
44120         * modules/fabsf (Files): Add m4/mathfunc.m4.
44122 2011-10-06  Bruno Haible  <bruno@clisp.org>
44124         frexpf: Drop assumption about library that defines frexpf.
44125         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
44126         'int *', 'float *', 'long double *', 'float', 'long double'.
44127         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
44128         AC_CHECK_FUNCS.
44129         * modules/frexpf (Files): Add m4/mathfunc.m4.
44131         Tests for module 'frexpf'.
44132         * modules/frexpf-tests: New file.
44133         * tests/test-frexpf.c: New file.
44135         New module 'frexpf'.
44136         * lib/math.in.h (frexpf): New declaration.
44137         * lib/frexpf.c: New file.
44138         * m4/frexpf.m4: New file.
44139         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
44140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
44141         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
44142         * modules/frexpf: New file.
44143         * tests/test-math-c++.cc: Check the declaration of frexpf.
44144         * doc/posix-functions/frexpf.texi: Mention the new module.
44146 2011-10-06  Bruno Haible  <bruno@clisp.org>
44148         math: Sort function declarations of math.in.h.
44149         * lib/math.in.h (frexp, logb): Move declarations.
44151 2011-10-05  Bruno Haible  <bruno@clisp.org>
44153         Tests for module 'modff'.
44154         * modules/modff-tests: New file.
44155         * tests/test-modff.c: New file.
44157         New module 'modff'.
44158         * lib/math.in.h (modff): New declaration.
44159         * lib/modff.c: New file.
44160         * m4/modff.m4: New file.
44161         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
44162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
44163         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
44164         * modules/modff: New file.
44165         * tests/test-math-c++.cc: Check the declaration of modff.
44166         * doc/posix-functions/modff.texi: Mention the new module.
44168         modf tests: Make test sharper.
44169         * tests/test-modf.c (main): Strengthen upper bound.
44171         modf: Use a .m4 file.
44172         * m4/modf.m4: New file.
44173         * modules/modf (Files): Add it.
44174         (configure.ac): Just invoke gl_FUNC_MODF.
44176 2011-10-05  Bruno Haible  <bruno@clisp.org>
44178         Tests for module 'fmodf'.
44179         * modules/fmodf-tests: New file.
44180         * tests/test-fmodf.c: New file.
44182         New module 'fmodf'.
44183         * lib/math.in.h (fmodf): New declaration.
44184         * lib/fmodf.c: New file.
44185         * m4/fmodf.m4: New file.
44186         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
44187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
44188         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
44189         * modules/fmodf: New file.
44190         * tests/test-math-c++.cc: Check the declaration of fmodf.
44191         * doc/posix-functions/fmodf.texi: Mention the new module.
44193         fmod: Use a .m4 file.
44194         * m4/fmod.m4: New file.
44195         * modules/fmod (Files): Add it.
44196         (configure.ac): Just invoke gl_FUNC_FMOD.
44198 2011-10-05  Bruno Haible  <bruno@clisp.org>
44200         Tests for module 'fabsf'.
44201         * modules/fabsf-tests: New file.
44202         * tests/test-fabsf.c: New file.
44204         New module 'fabsf'.
44205         * lib/math.in.h (fabsf): New declaration.
44206         * lib/fabsf.c: New file.
44207         * m4/fabsf.m4: New file.
44208         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
44209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
44210         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
44211         * modules/fabsf: New file.
44212         * tests/test-math-c++.cc: Check the declaration of fabsf.
44213         * doc/posix-functions/fabsf.texi: Mention the new module.
44215         fabs: Use a .m4 file.
44216         * m4/fabs.m4: New file.
44217         * modules/fabs (Files): Add it.
44218         (configure.ac): Just invoke gl_FUNC_FABS.
44220 2011-10-05  Jim Meyering  <meyering@redhat.com>
44222         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
44223         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
44224         ls -lL regression introduced in coreutils-8.12, it does so at the
44225         cost of an additional stat call in the common case.  Besides, now
44226         that the kernel change that prompted commit 95f7c57f has been reverted
44227         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
44228         we have no use for commit 95f7c57f, "file-has-acl: use
44229         acl_extended_file_nofollow if available".
44231 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
44233         file-has-acl: revert unintended change in behavior of ls -L
44234         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
44235         derived from...
44236         (file_has_acl): ...code here.  Call it.
44237         This problem was introduced with 2011-07-22 commit 95f7c57f,
44238         "file-has-acl: use acl_extended_file_nofollow if available".
44239         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
44241 2011-10-03  Bruno Haible  <bruno@clisp.org>
44243         poll: Avoid link errors on MSVC.
44244         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
44245         * modules/poll (Depends-on): Add sockets.
44246         (Link): New section.
44247         * NEWS: Mention the change.
44248         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
44249         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
44250         $(LIB_POLL) instead of $(LIBSOCKET).
44252 2011-10-03  Bruno Haible  <bruno@clisp.org>
44254         sys_select tests: Fix link error on MSVC 9.
44255         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
44256         with $(LIB_SELECT) instead of $(LIBSOCKET).
44258 2011-10-03  Bruno Haible  <bruno@clisp.org>
44260         sys_select: Fix compilation error on mingw.
44261         * lib/sys_select.in.h: On native Windows, include <io.h>.
44263 2011-10-03  Bruno Haible  <bruno@clisp.org>
44265         wmemset: Support for MSVC.
44266         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
44267         whether wmemset() exists.
44269 2011-10-03  Bruno Haible  <bruno@clisp.org>
44271         wmemmove: Support for MSVC.
44272         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
44273         whether wmemmove() exists.
44275 2011-10-03  Bruno Haible  <bruno@clisp.org>
44277         wmemcpy: Support for MSVC.
44278         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
44279         whether wmemcpy() exists.
44281 2011-10-03  Bruno Haible  <bruno@clisp.org>
44283         wmemcmp: Support for MSVC.
44284         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
44285         whether wmemcmp() exists.
44287 2011-10-03  Bruno Haible  <bruno@clisp.org>
44289         wmemchr: Support for MSVC.
44290         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
44291         whether wmemchr() exists.
44293 2011-10-03  Bruno Haible  <bruno@clisp.org>
44295         glthread/*, strsignal: Support for MSVC.
44296         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
44297         including <winsock.h> on MSVC 9.
44298         * lib/glthread/lock.h: Likewise.
44299         * lib/glthread/thread.h: Likewise.
44300         * lib/glthread/tls.h: Likewise.
44301         * lib/glthread/yield.h: Likewise.
44302         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
44303         if HAVE_UNISTD_H is false.
44304         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
44306 2011-10-03  Bruno Haible  <bruno@clisp.org>
44308         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
44309         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
44310         Set to 100000.
44312 2011-10-03  Bruno Haible  <bruno@clisp.org>
44314         acl: Fix specification.
44315         * lib/file-has-acl.c (file_has_acl): Fix specification.
44317 2011-10-03  Bruno Haible  <bruno@clisp.org>
44319         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
44320         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
44321         (compute_curr_prefix, shared_library_fullname,
44322         find_shared_library_fullname, get_shared_library_fullname, relocate):
44323         Use it together with PIC && INSTALLDIR.
44324         Reported by <jojelino@gmail.com>
44325         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
44327 2011-10-01  Jim Meyering  <meyering@redhat.com>
44329         maint.mk: adjust a release-related rule not to require use of gzip
44330         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
44331         Instead, check each file in $(DIST_ARCHIVES).  This is better for
44332         projects that build only .tar.xz files.  Also fix an erroneous test.
44334         test-linkat: don't leave behind a temporary file
44335         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
44336         Otherwise, coreutils' "make distcheck" would fail with this:
44337           Only in /c/cu/tests/torture/coreutils/test/\
44338             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
44339           make[2]: *** [my-distcheck] Error 1
44341         float, math: add omitted file
44342         * lib/itold.c: Add file, required for yesterday's float change.
44344 2011-10-01  Bruno Haible  <bruno@clisp.org>
44346         isinf: Fix for OpenBSD/x86.
44347         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
44348         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
44349         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
44351 2011-10-01  Bruno Haible  <bruno@clisp.org>
44353         isfinite: Fix syntax error in configure test.
44354         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44356         isfinite: Fix typo.
44357         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
44358         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
44360 2011-10-01  Bruno Haible  <bruno@clisp.org>
44362         nonblocking tests: Fix test failure on Linux/IA-64.
44363         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
44364         Set to 270000.
44366 2011-10-01  Bruno Haible  <bruno@clisp.org>
44368         mkfifoat tests: Fix a test failure on mingw.
44369         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
44370         with error ENOSYS.
44372 2011-09-30  Bruno Haible  <bruno@clisp.org>
44374         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
44375         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
44376         'long double'. Set REPLACE_ITOLD.
44377         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
44378         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
44379         * lib/itold.c: New file.
44380         * modules/float (Files): Add lib/itold.c.
44381         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44382         (Makefile.am): Substitute REPLACE_ITOLD.
44383         * modules/math (Depends-on): Add float.
44384         (Makefile.am): Substitute REPLACE_ITOLD.
44385         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44386         * doc/posix-headers/math.texi: Likewise.
44387         * doc/posix-functions/logl.texi: Likewise.
44389 2011-09-30  Bruno Haible  <bruno@clisp.org>
44391         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44392         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44393         Set to 140000.
44395 2011-09-30  Bruno Haible  <bruno@clisp.org>
44397         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44398         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44399         invocation, say "right after AC_PROG_CC_STDC", not "right after
44400         AC_PROG_CC".
44401         Reported by Gary V. Vaughan <gary@gnu.org>.
44403 2011-09-30  Bruno Haible  <bruno@clisp.org>
44405         Centralize C99 requirement.
44406         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44407         * modules/stdarg (configure.ac-early): Invoke it instead of
44408         AC_PROG_CC_STDC.
44409         Reported by Gary V. Vaughan and Paul Eggert.
44411 2011-09-29  Bruno Haible  <bruno@clisp.org>
44413         float: Fix LDBL_MAX value on Linux/PowerPC.
44414         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44415         on Linux/PowerPC.
44416         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44417         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44418         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44419         platform.
44420         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44422 2011-09-29  Bruno Haible  <bruno@clisp.org>
44424         doc: Improve doc about gl_EARLY.
44425         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44426         AC_PROG_CC_STDC invocation.
44427         Reported by Gary V. Vaughan <gary@gnu.org>.
44429 2011-09-28  Bruno Haible  <bruno@clisp.org>
44431         fgetc, fputc, fread, fwrite tests: Fix link error.
44432         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44433         on non-MSVC platforms.
44434         * tests/test-fputc.c (main): Likewise.
44435         * tests/test-fread.c (main): Likewise.
44436         * tests/test-fwrite.c (main): Likewise.
44437         Reported by Jim Meyering.
44439 2011-09-27  Bruno Haible  <bruno@clisp.org>
44441         fputc, fwrite tests: Avoid test failure on MSVC.
44442         * tests/test-fgetc.c: Include msvc-inval.h.
44443         (main): Invoke gl_msvc_inval_ensure_handler.
44444         * tests/test-fputc.c: Include msvc-inval.h.
44445         (main): Invoke gl_msvc_inval_ensure_handler.
44446         * tests/test-fread.c: Include msvc-inval.h.
44447         (main): Invoke gl_msvc_inval_ensure_handler.
44448         * tests/test-fwrite.c: Include msvc-inval.h.
44449         (main): Invoke gl_msvc_inval_ensure_handler.
44450         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44451         * modules/fputc-tests (Depends-on): Likewise.
44452         * modules/fread-tests (Depends-on): Likewise.
44453         * modules/fwrite-tests (Depends-on): Likewise.
44455 2011-09-27  Bruno Haible  <bruno@clisp.org>
44457         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44458         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44459         (raise): Remove older, duplicated declaration.
44460         (_gl_raise_SIGPIPE): New declaration.
44461         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44462         (rpl_raise): Remove function.
44463         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44464         a gnulib-defined SIGPIPE here.
44465         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44466         'sigprocmask' has detected missing signal-blocking and the module
44467         'sigpipe' is enabled.
44468         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44470 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44472         base64-tests: avoid memory leak
44473         * tests/test-base64.c (main): Plug memory leak.
44475         base32: new module
44476         * modules/base32: New module.
44477         * lib/base32.c: New file.
44478         * lib/base32.h: Likewise.
44479         * m4/base32.m4: Likewise.
44480         * modules/base32-tests: New test.
44481         * tests/test-base32.c: Likewise.
44482         * MODULES.html.sh (Misc): Mention it.
44484 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44486         gnulib: use more-standard license notice wording
44487         * gnulib-tool (func_emit_copyright_notice): When emitting a
44488         license notice into a file, use the standard wording as suggested
44489         by the current information for GNU maintainers, except say "file"
44490         rather than "program".  The new wording gives a license version
44491         number, which addresses an issue raised by Glenn Morris in
44492         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44493         * m4/onceonly.m4: Use that same wording here, too.
44495         dup2: minor simplification
44496         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44497         as lib/dup2.c no longer uses 'inline'.
44499 2011-09-25  Bruno Haible  <bruno@clisp.org>
44501         strings: Fix compilation error on MSVC.
44502         * lib/strings.in.h: Include <stddef.h> for size_t.
44504 2011-09-25  Bruno Haible  <bruno@clisp.org>
44506         fflush et al.: Document limitation on MSVC.
44507         * doc/posix-functions/fflush.texi: Document possible crash in handling
44508         mode other than DEFAULT_HANDLING.
44509         * doc/posix-functions/fgetc.texi: Likewise.
44510         * doc/posix-functions/fputc.texi: Likewise.
44511         * doc/posix-functions/fread.texi: Likewise.
44512         * doc/posix-functions/fwrite.texi: Likewise.
44514 2011-09-25  Bruno Haible  <bruno@clisp.org>
44516         msvc-inval: Allow three invalid parameter handling modes.
44517         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44518         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44519         macros.
44520         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44521         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44522         SANE_LIBRARY_HANDLING as a no-op.
44523         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44524         <stdlib.h>.
44525         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44527 2011-09-25  Bruno Haible  <bruno@clisp.org>
44529         msvc-inval: Make handler multithread-safe.
44530         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44531         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44532         declarations.
44533         (gl_msvc_inval_current): New declaration.
44534         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44535         Operate on the structure returned by gl_msvc_inval_current().
44536         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44537         Remove varaiables.
44538         (tls_index, tls_initialized): New variables.
44539         (not_per_thread): New variable.
44540         (gl_msvc_inval_current): New function.
44541         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44542         returned by gl_msvc_inval_current().
44544 2011-09-25  Bruno Haible  <bruno@clisp.org>
44546         msvc-inval: Install handler globally.
44547         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44548         !_MSC_VER.
44549         (gl_msvc_invalid_parameter_handler): Remove declaration.
44550         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44551         declarations.
44552         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44553         Install the handler globally, don't uninstall it.
44554         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44555         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44556         currently valid, call RaiseException instead.
44557         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44558         for !_MSC_VER.
44560 2011-09-25  Bruno Haible  <bruno@clisp.org>
44562         strerror_r-posix: Fix for MSVC 9.
44563         * lib/strerror_r.c (local_snprintf): New function.
44564         (snprintf): Define to local_snprintf, not to _snprintf.
44566 2011-09-25  Bruno Haible  <bruno@clisp.org>
44568         ftruncate: Support for MSVC 9.
44569         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44570         (chsize_nothrow): New function.
44571         (chsize): Redefine as a macro.
44572         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44573         * modules/ftruncate (Depends-on): Add msvc-inval.
44575 2011-09-25  Bruno Haible  <bruno@clisp.org>
44577         New module 'fstat'.
44578         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44579         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44580         * lib/fchdir.c (rpl_fstat): Remove function.
44581         * m4/fstat.m4: New file.
44582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44584         declared.
44585         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44586         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44587         * modules/fstat: New file.
44588         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44589         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44590         is set.
44591         * doc/posix-functions/fstat.texi: Mention the new module and the
44592         problem on MSVC.
44593         * NEWS: Mention the change.
44594         * modules/acl (Depends-on): Add fstat.
44595         * modules/chdir-safer (Depends-on): Likewise.
44596         * modules/chown (Depends-on): Likewise.
44597         * modules/copy-file (Depends-on): Likewise.
44598         * modules/fchdir (Depends-on): Likewise.
44599         * modules/fdopendir (Depends-on): Likewise.
44600         * modules/fopen (Depends-on): Likewise.
44601         * modules/fts (Depends-on): Likewise.
44602         * modules/getcwd (Depends-on): Likewise.
44603         * modules/isapipe (Depends-on): Likewise.
44604         * modules/linkat (Depends-on): Likewise.
44605         * modules/lseek (Depends-on): Likewise.
44606         * modules/mkdir-p (Depends-on): Likewise.
44607         * modules/open (Depends-on): Likewise.
44608         * modules/openat (Depends-on): Likewise.
44609         * modules/read-file (Depends-on): Likewise.
44610         * modules/renameat (Depends-on): Likewise.
44611         * modules/utimens (Depends-on): Likewise.
44613 2011-09-25  Bruno Haible  <bruno@clisp.org>
44615         linkat: Fix compilation on MSVC 9.
44616         * lib/linkat.c: Don't include <stdint.h>.
44618 2011-09-25  Bruno Haible  <bruno@clisp.org>
44620         fclose: Support for MSVC 9.
44621         * lib/fclose.c: Include msvc-inval.h.
44622         (fclose_nothrow): New function.
44623         (rpl_fclose): Use it.
44624         * modules/fclose (Depends-on): Add msvc-inval.
44625         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44627 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44629         dup2: minor simplifications
44630         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44631         that it's a performance win.
44632         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44633         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44635 2011-09-24  Jim Meyering  <meyering@redhat.com>
44637         test-futimens: avoid a warning from gcc -Wshadow
44638         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44639         to avoid a shadowing warning.
44641 2011-09-24  Bruno Haible  <bruno@clisp.org>
44643         fdopen: Support for MSVC 9.
44644         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44645         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44646         * lib/fdopen.c: Include msvc-inval.h.
44647         (fdopen_nothrow): New function.
44648         (rpl_fdopen): Use it.
44649         * modules/fdopen (Depends-on): Add msvc-inval.
44650         * modules/fclose-tests (Depends-on): Add fdopen.
44651         * modules/fflush-tests (Depends-on): Likewise.
44652         * modules/fgetc-tests (Depends-on): Likewise.
44653         * modules/fputc-tests (Depends-on): Likewise.
44654         * modules/fread-tests (Depends-on): Likewise.
44655         * modules/freopen-tests (Depends-on): Likewise.
44656         * modules/fseeko-tests (Depends-on): Likewise.
44657         * modules/ftello-tests (Depends-on): Likewise.
44658         * modules/fwrite-tests  (Depends-on): Likewise.
44659         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44661 2011-09-24  Bruno Haible  <bruno@clisp.org>
44663         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44664         * modules/fgetc-tests (Depends-on): Add unistd.
44665         * modules/fputc-tests (Depends-on): Likewise.
44666         * modules/fread-tests (Depends-on): Likewise.
44667         * modules/fwrite-tests (Depends-on): Likewise.
44669 2011-09-24  Bruno Haible  <bruno@clisp.org>
44671         dup: Simplify autoconf test.
44672         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44673         on gl_MSVC_INVAL's result.
44675 2011-09-24  Bruno Haible  <bruno@clisp.org>
44677         Tests for function fwrite().
44678         * modules/fwrite-tests: New file.
44679         * tests/test-fwrite.c: New file.
44680         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44682         Tests for function fread().
44683         * modules/fread-tests: New file.
44684         * tests/test-fread.c: New file.
44685         * modules/stdio-tests (Depends-on): Add fread-tests.
44687         Activate fputc tests.
44688         * modules/stdio-tests (Depends-on): Add fputc-tests.
44690         Enhance fgetc, fputc tests.
44691         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44692         * tests/test-fputc.c (main): Likewise.
44694 2011-09-24  Bruno Haible  <bruno@clisp.org>
44696         write: Support for MSVC 9.
44697         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44698         is not 1.
44699         * lib/write.c (write_nothrow): New function.
44700         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44701         not 1. Use write_nothrow.
44702         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44703         invalid parameter handler.
44704         (gl_PREREQ_WRITE): New macro.
44705         * modules/write (Depends-on): Add msvc-inval.
44706         (configure.ac): Invoke gl_PREREQ_WRITE.
44707         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44709 2011-09-24  Bruno Haible  <bruno@clisp.org>
44711         read: Fix last commit.
44712         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44714 2011-09-24  Bruno Haible  <bruno@clisp.org>
44716         dup2: Fix last commit.
44717         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44718         (rpl_dup2): Disable fcntl workaround on native Windows.
44720         sigprocmask: Make code safer.
44721         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44722         section that changes macro definitions for this compilation unit.
44724 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44726         dup2: clarify by coalescing Windows-specific material
44727         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44728         "msvc-nothrow.h"' to the Windows-specific section, so that the
44729         Emacs source need not contain these include files.
44730         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44731         Windows-specific fixes into this function rather than just the
44732         nothrow fix, as this shortens and clarifies the code.  Always
44733         define as a function, as that's a bit cleaner than having it be
44734         sometimes a function and sometimes a macro.
44735         (rpl_dup2): Move the Windows-specific stuff out of here and into
44736         ms_windows_dup2.  Don't protect the Haiku-related fix with
44737         "#if !defined __linux__", as the same code also works around
44738         a Linux kernel bug, and it doesn't add any system calls on any
44739         platform.  Add comment about FreeBSD 6.1.
44741         sigprocmask: move #include directive
44742         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44743         Windows-specific section, so that the Emacs source need not
44744         contain msvc-inval.h.
44746 2011-09-23  Bruno Haible  <bruno@clisp.org>
44748         read: Support for MSVC 9.
44749         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44750         is not 1.
44751         * lib/read.c (read_nothrow): New function.
44752         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44753         read_nothrow.
44754         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44755         invalid parameter handler.
44756         (gl_PREREQ_READ): New macro.
44757         * modules/read (Depends-on): Add msvc-inval.
44758         (configure.ac): Invoke gl_PREREQ_READ.
44759         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44761 2011-09-23  Bruno Haible  <bruno@clisp.org>
44763         close: Support for MSVC 9.
44764         * lib/close.c: Include <errno.h>, msvc-inval.h.
44765         (close_nothrow): New function.
44766         (rpl_close): Use it.
44767         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44768         invalid parameter handler.
44769         * modules/close (Depends-on): Add msvc-inval.
44770         * modules/dup2-tests (Depends-on): Add close.
44771         * modules/dup3-tests (Depends-on): Likewise.
44772         * modules/fcntl-tests (Depends-on): Likewise.
44773         * modules/spawn-pipe-tests (Depends-on): Likewise.
44774         * modules/unistd-safer-tests (Depends-on): Likewise.
44775         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44777 2011-09-23  Bruno Haible  <bruno@clisp.org>
44779         New module 'dup'.
44780         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44781         Allow replacement.
44782         * lib/dup.c: New file.
44783         * lib/fchdir.c (rpl_dup): Remove function.
44784         * m4/dup.m4: New file.
44785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44786         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44787         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44788         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44789         * modules/dup: New file.
44790         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44791         'dup' module is in use.
44792         * modules/fdopendir (Depends-on): Add dup.
44793         * modules/fdutimensat-tests (Depends-on): Likewise.
44794         * modules/fts (Depends-on): Likewise.
44795         * modules/futimens-tests (Depends-on): Likewise.
44796         * modules/posix_spawnp-tests (Depends-on): Likewise.
44797         * modules/unistd-safer-tests (Depends-on): Likewise.
44798         * modules/utimens-tests (Depends-on): Likewise.
44799         * doc/posix-functions/dup.texi: Mention the new module and the problem
44800         on MSVC.
44802 2011-09-23  Bruno Haible  <bruno@clisp.org>
44804         getdtablesize: Support for MSVC 9.
44805         * lib/getdtablesize.c: Include msvc-inval.h.
44806         (_setmaxstdio_nothrow): New function.
44807         (_setmaxstdio): Redefine it.
44808         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
44809         * modules/getdtablesize (Depends-on): Add msvc-inval.
44810         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
44812 2011-09-23  Bruno Haible  <bruno@clisp.org>
44814         signal-h: Rename from signal.
44815         * modules/signal-h: Renamed from modules/signal.
44816         * modules/pthread_sigmask (Depends-on): Update.
44817         * modules/raise (Depends-on): Likewise.
44818         * modules/sigaction (Depends-on): Likewise.
44819         * modules/sigpipe (Depends-on): Likewise.
44820         * modules/sigprocmask (Depends-on): Likewise.
44821         * modules/sys_select (Depends-on): Likewise.
44822         * modules/signal-h-tests: Renamed from modules/signal-tests.
44823         (Files, Depends-on, Makefile.am): Update.
44824         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44825         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44826         (Files, Makefile.am): Update.
44827         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44828         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44829         * modules/signal: New placeholder file.
44830         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44831         * doc/posix-headers/signal.texi: Update.
44832         * NEWS: Mention the change.
44834 2011-09-23  Bruno Haible  <bruno@clisp.org>
44836         sigprocmask: Avoid crashes through signal() on MSVC 9.
44837         * lib/sigprocmask.c: Include msvc-inval.h.
44838         (signal_nothrow): New function.
44839         (signal): Redefine it.
44840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44841         * modules/sigprocmask (Depends-on): Add msvc-inval.
44842         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44844 2011-09-23  Bruno Haible  <bruno@clisp.org>
44846         Tests for module 'raise'.
44847         * modules/raise-tests: New file.
44848         * tests/test-raise.c: New file.
44850         raise: Support for MSVC.
44851         * lib/signal.in.h (raise): New declaration.
44852         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44853         for native Windows platforms.
44854         * m4/raise.m4: New file.
44855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44856         HAVE_RAISE, REPLACE_RAISE.
44857         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44858         REPLACE_RAISE.
44859         * modules/raise (Status, Notice): Remove fields.
44860         (Files): Add m4/raise.m4.
44861         (Depends-on): Add signal, msvc-inval.
44862         (configure.ac): Use the common idioms.
44863         (Maintainer): Add me.
44864         * tests/test-signal-c++.cc: Check the signature of raise.
44865         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44867 2011-09-23  Bruno Haible  <bruno@clisp.org>
44869         pipe2: Fix compilation on pre-C99 compilers.
44870         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44872 2011-09-23  Bruno Haible  <bruno@clisp.org>
44874         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44875         * lib/msvc-nothrow.h: New file.
44876         * lib/msvc-nothrow.c: New file.
44877         * m4/msvc-nothrow.m4: New file.
44878         * modules/msvc-nothrow: New file.
44879         * lib/dup2.c: Include msvc-nothrow.h.
44880         (rpl_dup2): No need to protect _get_osfhandle call here.
44881         * lib/accept4.c: Include msvc-nothrow.h.
44882         * lib/error.c: Likewise.
44883         * lib/fcntl.c: Likewise.
44884         * lib/lseek.c: Likewise.
44885         * lib/nonblocking.c: Likewise.
44886         * lib/poll.c: Likewise.
44887         * lib/read.c: Likewise.
44888         * lib/select.c: Likewise.
44889         * lib/sockets.h: Likewise.
44890         * lib/sockets.c: Likewise.
44891         * lib/stdio-read.c: Likewise.
44892         * lib/stdio-write.c: Likewise.
44893         * lib/write.c: Likewise.
44894         * lib/w32sock.h: Likewise.
44895         * lib/w32spawn.h: Likewise.
44896         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44897         * lib/fsync.c: Likewise.
44898         * lib/isapipe.c: Likewise.
44899         * modules/dup2 (Depends-on): Add msvc-nothrow.
44900         * modules/accept4 (Depends-on): Likewise.
44901         * modules/error (Depends-on): Likewise.
44902         * modules/fcntl (Depends-on): Likewise.
44903         * modules/lseek (Depends-on): Likewise.
44904         * modules/nonblocking (Depends-on): Likewise.
44905         * modules/poll (Depends-on): Likewise.
44906         * modules/read (Depends-on): Likewise.
44907         * modules/select (Depends-on): Likewise.
44908         * modules/sockets (Depends-on): Likewise.
44909         * modules/sigpipe (Depends-on): Likewise.
44910         * modules/write (Depends-on): Likewise.
44911         * modules/accept (Depends-on): Likewise.
44912         * modules/bind (Depends-on): Likewise.
44913         * modules/connect (Depends-on): Likewise.
44914         * modules/gethostname (Depends-on): Likewise.
44915         * modules/getpeername (Depends-on): Likewise.
44916         * modules/getsockname (Depends-on): Likewise.
44917         * modules/getsockopt (Depends-on): Likewise.
44918         * modules/ioctl (Depends-on): Likewise.
44919         * modules/listen (Depends-on): Likewise.
44920         * modules/recv (Depends-on): Likewise.
44921         * modules/recvfrom (Depends-on): Likewise.
44922         * modules/send (Depends-on): Likewise.
44923         * modules/sendto (Depends-on): Likewise.
44924         * modules/setsockopt (Depends-on): Likewise.
44925         * modules/shutdown (Depends-on): Likewise.
44926         * modules/socket (Depends-on): Likewise.
44927         * modules/execute (Depends-on): Likewise.
44928         * modules/spawn-pipe (Depends-on): Likewise.
44929         * modules/flock (Depends-on): Likewise.
44930         * modules/fsync (Depends-on): Likewise.
44931         * modules/isapipe (Depends-on): Likewise.
44932         * tests/test-cloexec.c: Include msvc-nothrow.h.
44933         * tests/test-dup-safer.c: Likewise.
44934         * tests/test-dup2.c: Likewise.
44935         * tests/test-dup3.c: Likewise.
44936         * tests/test-fcntl.c: Likewise.
44937         * tests/test-pipe.c: Likewise.
44938         * tests/test-pipe2.c: Likewise.
44939         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44940         * modules/unistd-safer-tests (Depends-on): Likewise.
44941         * modules/dup2-tests (Depends-on): Likewise.
44942         * modules/dup3-tests (Depends-on): Likewise.
44943         * modules/fcntl-tests (Depends-on): Likewise.
44944         * modules/pipe-posix-tests (Depends-on): Likewise.
44945         * modules/pipe2-tests (Depends-on): Likewise.
44947 2011-09-23  Bruno Haible  <bruno@clisp.org>
44949         dup2: Make code more maintainable.
44950         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44951         (rpl_dup2): Use it.
44952         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44953         * modules/dup2 (configure.ac): Invoke it.
44954         Reported by Paul Eggert.
44956 2011-09-23  Bruno Haible  <bruno@clisp.org>
44958         msvc-inval: Fix compilation error.
44959         * lib/msvc-inval.h: Include <excpt.h>.
44961 2011-09-23  Bruno Haible  <bruno@clisp.org>
44963         mkdir: Tweak for MSVC 9.
44964         * lib/sys_stat.in.h: Update comments.
44965         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44967         Tests for module 'chdir'.
44968         * modules/chdir-tests: New file.
44969         * tests/test-chdir.c: New file.
44971         New module 'chdir'.
44972         * modules/chdir: New file.
44973         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44974         (chdir): New declaration.
44975         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44976         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44977         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44978         * tests/test-unistd-c++.cc: Check signature of chdir.
44979         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44980         * modules/chdir-long (Depends-on): Add chdir.
44981         * modules/fchdir (Depends-on): Likewise.
44982         * modules/rename (Depends-on): Likewise.
44983         * modules/savewd (Depends-on): Likewise.
44985         rmdir: Support for mingw, MSVC 9.
44986         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44987         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44989         getcwd: Tweak for MSVC 9.
44990         * lib/unistd.in.h: Update comments.
44991         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44993 2011-09-22  Bruno Haible  <bruno@clisp.org>
44995         strerror_r-posix: Avoid a link error on MSVC.
44996         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44997         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44999 2011-09-22  Bruno Haible  <bruno@clisp.org>
45001         select: Avoid link errors on MSVC.
45002         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
45003         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
45004         * modules/pselect (Link): Likewise.
45005         * NEWS: Mention the change.
45006         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
45007         test-select-stdin against $(LIB_SELECT).
45008         * modules/pselect-tests (Makefile.am): Link test-pselect against
45009         $(LIB_SELECT).
45011 2011-09-22  Bruno Haible  <bruno@clisp.org>
45013         select: Avoid compilation error on MSVC.
45014         * lib/select.c: Don't include <stdbool.h>.
45016 2011-09-21  Bruno Haible  <bruno@clisp.org>
45018         Consolidate all uses of PATH_MAX in *.m4 files.
45019         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
45020         macros.
45021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
45022         and gl_PATHMAX_SNIPPET.
45023         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45025         * modules/chdir-long (Files): Add m4/pathmax.m4.
45026         * modules/getcwd (Files): Likewise.
45028 2011-09-21  Bruno Haible  <bruno@clisp.org>
45030         ftruncate: Un-deprecate, concentrate on Win32 support.
45031         * modules/ftruncate (Status, Notice): Remove sections.
45032         (Depends-on): Add largefile.
45033         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
45034         non-mingw platforms.
45035         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
45036         include <io.h>.
45037         * modules/perror-tests (Depends-on): Add ftruncate.
45038         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
45039         'ftruncate' module.
45041 2011-09-21  Bruno Haible  <bruno@clisp.org>
45043         Add dependencies to new dirent related modules.
45044         * modules/opendir (Depends-on): Add closedir.
45045         * modules/getcwd (Depends-on): Add opendir, closedir.
45046         * modules/dirent-safer-tests (Depends-on): Likewise.
45047         * modules/fdopendir-tests (Depends-on): Likewise.
45048         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
45049         * modules/renameat-tests (Depends-on): Likewise.
45051 2011-09-21  Bruno Haible  <bruno@clisp.org>
45053         opendir: Avoid compilation error on mingw.
45054         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
45055         * modules/opendir (Depends-on): Add unistd.
45057 2011-09-21  Bruno Haible  <bruno@clisp.org>
45059         ftruncate tests: Avoid a test failure on mingw.
45060         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
45062 2011-09-21  Bruno Haible  <bruno@clisp.org>
45064         select tests: Avoid test failures on OSF/1 5.1 and mingw.
45065         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
45066         native Windows.
45068 2011-09-21  Bruno Haible  <bruno@clisp.org>
45070         New module 'fdopen'.
45071         * lib/stdio.in.h (fdopen): New declaration.
45072         * lib/fdopen.c: New file.
45073         * m4/fdopen.m4: New file.
45074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
45075         REPLACE_FDOPEN.
45076         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
45077         REPLACE_FDOPEN.
45078         * modules/fdopen: New file.
45079         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
45080         * tests/test-stdio-c++.cc: Check signature of fdopen.
45081         * doc/posix-functions/fdopen.texi: Mention the new module.
45083 2011-09-21  Bruno Haible  <bruno@clisp.org>
45085         unlockpt tests: Avoid test failure on NetBSD 5.1.
45086         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
45087         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
45089 2011-09-21  Bruno Haible  <bruno@clisp.org>
45091         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
45092         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
45093         * tests/test-getlogin_r.c (main): Likewise.
45095 2011-09-20  Bruno Haible  <bruno@clisp.org>
45097         time tests: Don't require pid_t.
45098         * doc/posix-headers/time.texi: Revert last change.
45099         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
45100         * tests/test-time.c: Comment out the check for pid_t.
45102 2011-09-20  Bruno Haible  <bruno@clisp.org>
45104         fsync tests: Avoid a test failure on mingw.
45105         * tests/test-fsync.c (main): Allow a failure with EIO.
45107 2011-09-20  Bruno Haible  <bruno@clisp.org>
45109         euidaccess: Update comments.
45110         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
45112 2011-09-20  Bruno Haible  <bruno@clisp.org>
45114         Ensure EBADF returns for socket functions on mingw.
45115         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
45116         descriptor is invalid.
45117         * lib/bind.c (rpl_bind): Likewise.
45118         * lib/connect.c (rpl_connect): Likewise.
45119         * lib/getpeername.c (rpl_getpeername): Likewise.
45120         * lib/getsockname.c (rpl_getsockname): Likewise.
45121         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45122         * lib/listen.c (rpl_listen): Likewise.
45123         * lib/recv.c (rpl_recv): Likewise.
45124         * lib/recvfrom.c (rpl_recvfrom): Likewise.
45125         * lib/send.c (rpl_send): Likewise.
45126         * lib/sendto.c (rpl_sendto): Likewise.
45127         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45128         * lib/shutdown.c (rpl_shutdown): Likewise.
45130 2011-09-20  Bruno Haible  <bruno@clisp.org>
45132         select tests: EBADF tests.
45133         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
45134         test_bad_fd): New functions.
45135         (test_function): Invoke also test_bad_fd.
45137 2011-09-20  Bruno Haible  <bruno@clisp.org>
45139         Tests for module 'posix_spawn_file_actions_addopen.
45140         * modules/posix_spawn_file_actions_addopen-tests: New file.
45141         * tests/test-posix_spawn_file_actions_addopen.c: New file.
45143         Tests for module 'posix_spawn_file_actions_adddup2'.
45144         * modules/posix_spawn_file_actions_adddup2-tests: New file.
45145         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
45147         Tests for module 'posix_spawn_file_actions_addclose'.
45148         * modules/posix_spawn_file_actions_addclose-tests: New file.
45149         * tests/test-posix_spawn_file_actions_addclose.c: New file.
45151 2011-09-20  Bruno Haible  <bruno@clisp.org>
45153         Tests for module 'unlockpt'.
45154         * modules/unlockpt-tests: New file.
45155         * tests/test-unlockpt.c: New file.
45156         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
45158         Tests for module 'grantpt'.
45159         * modules/grantpt-tests: New file.
45160         * tests/test-grantpt.c: New file.
45161         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
45163 2011-09-20  Bruno Haible  <bruno@clisp.org>
45165         freopen tests: EBADF tests.
45166         * tests/test-freopen.c: Include errno.h, unistd.h.
45167         (main): Add tests for EBADF, commented out for the moment.
45169         fclose tests: EBADF tests.
45170         * tests/test-fclose.c (main): Add tests for EBADF.
45172         fflush tests: EBADF tests.
45173         * tests/test-fflush.c: Include errno.h, macros.h.
45174         (main): Add tests for EBADF.
45176         ftello tests: EBADF tests.
45177         * tests/test-ftello4.sh: New file.
45178         * tests/test-ftello4.c: New file.
45179         * modules/ftello-tests (Files): Add them.
45180         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
45182         fseeko tests: EBADF tests.
45183         * tests/test-fseeko4.sh: New file.
45184         * tests/test-fseeko4.c: New file.
45185         * modules/fseeko-tests (Files): Add them.
45186         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
45188         Tests for function fputc().
45189         * modules/fputc-tests: New file.
45190         * tests/test-fputc.c: New file.
45191         * modules/stdio-tests (Depends-on): Add fputc-tests.
45193         Tests for function fgetc().
45194         * modules/fgetc-tests: New file.
45195         * tests/test-fgetc.c: New file.
45196         * modules/stdio-tests (Depends-on): Add fgetc-tests.
45198         Tests for function fdopen().
45199         * modules/fdopen-tests: New file.
45200         * tests/test-fdopen.c: New file.
45201         * modules/stdio-tests (Depends-on): Add fdopen-tests.
45203         Tests for module 'vdprintf'.
45204         * modules/vdprintf-tests: New file.
45205         * tests/test-vdprintf.c: New file.
45207         Tests for module 'dprintf'.
45208         * modules/dprintf-tests: New file.
45209         * tests/test-dprintf.c: New file.
45211 2011-09-20  Bruno Haible  <bruno@clisp.org>
45213         Tests for module 'ioctl'.
45214         * modules/ioctl-tests: New file.
45215         * tests/test-ioctl.c: New file.
45217 2011-09-20  Bruno Haible  <bruno@clisp.org>
45219         fcntl tests: EBADF tests.
45220         * tests/test-fcntl.c (main): Add more tests for EBADF.
45222 2011-09-20  Bruno Haible  <bruno@clisp.org>
45224         utimensat tests: EBADF tests.
45225         * tests/test-utimensat.c (main): Add tests for EBADF.
45227         renameat tests: EBADF tests.
45228         * tests/test-renameat.c (main): Add tests for EBADF.
45230         mkfifoat tests: EBADF tests.
45231         * tests/test-mkfifoat.c (main): Add tests for EBADF.
45233         readlinkat tests: EBADF tests.
45234         * tests/test-readlinkat.c (main): Add tests for EBADF.
45236         symlinkat tests: EBADF tests.
45237         * tests/test-symlinkat.c (main): Add tests for EBADF.
45239         linkat tests: EBADF tests.
45240         * tests/test-linkat.c (main): Add tests for EBADF.
45242         Tests for module 'faccessat'.
45243         * modules/faccessat-tests: New file.
45244         * tests/test-faccessat.c: New file.
45246         fdopendir tests: EBADF tests.
45247         * tests/test-fdopendir.c (main): Add more tests for EBADF.
45249         openat tests: EBADF tests.
45250         * tests/test-fchownat.c (main): Add tests for EBADF.
45251         * tests/test-fstatat.c (main): Likewise.
45252         * tests/test-mkdirat.c (main): Likewise.
45253         * tests/test-openat.c (main): Likewise.
45254         * tests/test-unlinkat.c (main): Likewise.
45255         * tests/test-fchmodat.c: New file.
45256         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
45257         (Makefile.am): Also run 'test-fchmodat'.
45259 2011-09-20  Bruno Haible  <bruno@clisp.org>
45261         utimens, futimens, fdutimensat tests: EBADF tests.
45262         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
45264         Tests for function fstat().
45265         * modules/fstat-tests: New file.
45266         * tests/test-fstat.c: New file.
45267         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
45269 2011-09-20  Bruno Haible  <bruno@clisp.org>
45271         test-ttyname_r tests: EBADF tests.
45272         * tests/test-ttyname_r.c (main): Add tests for EBADF.
45274         Tests for module 'isatty'.
45275         * modules/isatty-tests: New file.
45276         * tests/test-isatty.c: New file.
45278         Tests for module 'write'.
45279         * modules/write-tests: New file.
45280         * tests/test-write.c: New file.
45282         Tests for module 'read'.
45283         * modules/read-tests: New file.
45284         * tests/test-read.c: New file.
45286         pwrite tests: EBADF tests.
45287         * tests/test-pwrite.c (main): Add tests for EBADF.
45289         pread tests: EBADF tests.
45290         * tests/test-pread.c (main): Add tests for EBADF.
45292         lseek tests: EBADF tests.
45293         * tests/test-lseek.c (main): Add more tests for EBADF.
45295         Tests for module 'ftruncate'.
45296         * modules/ftruncate-tests: New file.
45297         * tests/test-ftruncate.sh: New file.
45298         * tests/test-ftruncate.c: New file.
45300         fsync tests: EBADF tests.
45301         * tests/test-fsync.c (main): Add more tests for EBADF.
45303         fdatasync tests: EBADF tests.
45304         * tests/test-fdatasync.c (main): Add more tests for EBADF.
45306         Tests for module 'fchown'.
45307         * modules/fchown-tests: New file.
45308         * tests/test-fchown.c: New file.
45310         Tests for module 'fchmod'.
45311         * modules/fchmod-tests: New file.
45312         * tests/test-fchmod.c: New file.
45314         fchdir tests: EBADF tests.
45315         * tests/test-fchdir.c (main): Add more tests for EBADF.
45317         dup2 tests: EBADF tests.
45318         * tests/test-dup2.c (main): Add more tests for EBADF.
45320         Tests for module 'dup'.
45321         * modules/dup-tests: New file.
45322         * tests/test-dup.c: New file.
45324         Tests for module 'close'.
45325         * modules/close-tests: New file.
45326         * tests/test-close.c: New file.
45328 2011-09-20  Bruno Haible  <bruno@clisp.org>
45330         Tests for module 'shutdown'.
45331         * modules/shutdown-tests: New file.
45332         * tests/test-shutdown.c: New file.
45334         Tests for module 'setsockopt'.
45335         * modules/setsockopt-tests: New file.
45336         * tests/test-setsockopt.c: New file.
45338         Tests for module 'sendto'.
45339         * modules/sendto-tests: New file.
45340         * tests/test-sendto.c: New file.
45342         Tests for module 'send'.
45343         * modules/send-tests: New file.
45344         * tests/test-send.c: New file.
45346         Tests for module 'recvfrom'.
45347         * modules/recvfrom-tests: New file.
45348         * tests/test-recvfrom.c: New file.
45350         Tests for module 'recv'.
45351         * modules/recv-tests: New file.
45352         * tests/test-recv.c: New file.
45354         Tests for module 'listen'.
45355         * modules/listen-tests: New file.
45356         * tests/test-listen.c: New file.
45358         Tests for module 'getsockopt'.
45359         * modules/getsockopt-tests: New file.
45360         * tests/test-getsockopt.c: New file.
45362         Tests for module 'getsockname'.
45363         * modules/getsockname-tests: New file.
45364         * tests/test-getsockname.c: New file.
45366         Tests for module 'getpeername'.
45367         * modules/getpeername-tests: New file.
45368         * tests/test-getpeername.c: New file.
45370         Tests for module 'connect'.
45371         * modules/connect-tests: New file.
45372         * tests/test-connect.c: New file.
45374         Tests for module 'bind'.
45375         * modules/bind-tests: New file.
45376         * tests/test-bind.c: New file.
45378         accept4 tests: Fix for native Windows.
45379         * tests/test-accept4.c: Include sockets.h.
45380         (main): Invoke gl_sockets_startup.
45381         * modules/accept4-tests (Depends-on): Add sockets.
45383         accept tests: Fix for native Windows.
45384         * tests/test-accept.c: Include sockets.h.
45385         (main): Invoke gl_sockets_startup.
45386         * modules/accept-tests (Depends-on): Add sockets.
45388 2011-09-19  Bruno Haible  <bruno@clisp.org>
45390         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45391         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45392         do...while(0).
45393         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45394         Suggested by Paul Eggert.
45396 2011-09-19  Bruno Haible  <bruno@clisp.org>
45398         sched: Ensure pid_t is defined.
45399         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45400         not define pid_t.
45401         * lib/sched.in.h: Include <sys/types.h>.
45402         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45405 2011-09-19  Bruno Haible  <bruno@clisp.org>
45407         msvc-inval: Ensure the entire expansion is a single statement.
45408         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45409         of braces.
45411 2011-09-19  Jim Meyering  <meyering@redhat.com>
45413         tests: use printf, not echo in init.sh's warn_ function
45414         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45415         misbehave when given strings containing a backslash or starting
45416         with e.g., -n.  James Youngman suggested setting IFS.
45418 2011-09-19  Eric Blake  <eblake@redhat.com>
45420         futimens: enhance test
45421         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45422         closed non-negative fd.
45424         date: accept 'hence' as opposite of 'ago'
45425         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45426         * tests/test-parse-datetime.c (main): Enhance test.
45427         Suggested by Jesse Wilson.
45429 2011-09-19  Jim Meyering  <meyering@redhat.com>
45431         getcwd: don't fail in a deep directory on a system without openat
45432         Before this change, getcwd would fail when called from a directory
45433         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45434         the non-openat implementation used "..", "../..", "../../..", etc.
45435         to access ancestor directories.  With too many, that string would
45436         be longer than PATH_MAX.
45437         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45438         using gnulib's openat replacement.
45439         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45440         we're using the replacement function.
45442 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45444         maint.mk: avoid warnings from perl about missing files
45445         * top/maint.mk (def_sym_regex): Ignore files listed in
45446         $(gl_other_headers_) that do not exist, say because a project
45447         does not use a corresponding module.
45449 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45451         stat: use pathmax.h only if needed
45452         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45453         This is better for Emacs, which does not have a mingw port and
45454         therefore can avoid the pathmax module.
45456         utimens: remove dependency on dup2
45457         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45458         to work around the Linux kernel bug.
45459         * modules/utimens (Depends-on): Remove dup2.
45461 2011-09-18  Bruno Haible  <bruno@clisp.org>
45463         inet_ntop, inet_pton: Look for it also in libresolv.
45464         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45465         libnsl, search for it in libresolv.
45466         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45467         Needed on Solaris 7.
45469 2011-09-18  Bruno Haible  <bruno@clisp.org>
45471         accept, accept4 tests: Avoid link error on Solaris.
45472         * modules/accept-tests (Makefile.am): Link test-accept against
45473         $(LIBSOCKET).
45474         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45475         $(LIBSOCKET).
45477         accept4: Avoid link error on Solaris.
45478         * modules/accept4 (Link): New section.
45480         socket functions: Avoid link errors on Solaris.
45481         * modules/accept (Depends-on): Add socketlib.
45482         (Link): New section.
45483         * modules/bind (Depends-on): Add socketlib.
45484         (Link): New section.
45485         * modules/connect (Depends-on): Add socketlib.
45486         (Link): New section.
45487         * modules/getpeername (Depends-on): Add socketlib.
45488         (Link): New section.
45489         * modules/getsockname (Depends-on): Add socketlib.
45490         (Link): New section.
45491         * modules/getsockopt (Depends-on): Add socketlib.
45492         (Link): New section.
45493         * modules/listen (Depends-on): Add socketlib.
45494         (Link): New section.
45495         * modules/recv (Depends-on): Add socketlib.
45496         (Link): New section.
45497         * modules/recvfrom (Depends-on): Add socketlib.
45498         (Link): New section.
45499         * modules/send (Depends-on): Add socketlib.
45500         (Link): New section.
45501         * modules/sendto (Depends-on): Add socketlib.
45502         (Link): New section.
45503         * modules/setsockopt (Depends-on): Add socketlib.
45504         (Link): New section.
45505         * modules/shutdown (Depends-on): Add socketlib.
45506         (Link): New section.
45507         * modules/socket (Depends-on): Add socketlib.
45508         (Link): New section.
45510 2011-09-18  Bruno Haible  <bruno@clisp.org>
45512         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45513         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45514         than 5 seconds.
45515         * modules/ptsname-tests (configure.ac): Test for alarm.
45517 2011-09-18  Bruno Haible  <bruno@clisp.org>
45519         posix_spawn_file_actions_add*: Fix module dependencies.
45520         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45521         posix_spawn_file_actions_init.
45522         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45523         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45525 2011-09-18  Bruno Haible  <bruno@clisp.org>
45527         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45528         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45529         * tests/test-renameat.c (main): Likewise.
45531 2011-09-18  Bruno Haible  <bruno@clisp.org>
45533         Tests for module 'accept4'.
45534         * modules/accept4-tests: New file.
45535         * tests/test-accept4.c: New file.
45537 2011-09-18  Bruno Haible  <bruno@clisp.org>
45539         Tests for module 'accept'.
45540         * modules/accept-tests: New file.
45541         * tests/test-accept.c: New file.
45543 2011-09-18  Bruno Haible  <bruno@clisp.org>
45545         dup2: Support for MSVC.
45546         * lib/dup2.c: Include msvc-inval.h.
45547         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45548         _get_osfhandle calls.
45549         * modules/dup2 (Depends-on): Add msvc-inval.
45550         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45552         New module 'msvc-inval'.
45553         * lib/msvc-inval.h: New file.
45554         * lib/msvc-inval.c: New file.
45555         * m4/msvc-inval.m4: New file.
45556         * modules/msvc-inval: New file.
45558 2011-09-17  Bruno Haible  <bruno@clisp.org>
45560         Tests for module 'pclose'.
45561         * modules/pclose-tests: New file.
45563         New module 'pclose'.
45564         * lib/stdio.in.h (pclose): New declaration.
45565         * lib/pclose.c: New file.
45566         * m4/pclose.m4: New file.
45567         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45568         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45569         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45570         * modules/pclose: New file.
45571         * modules/popen-tests (Depends-on): Add pclose.
45572         * modules/popen-safer-tests (Depends-on): Likewise.
45573         * doc/posix-functions/pclose.texi: Mention the new module.
45575 2011-09-17  Bruno Haible  <bruno@clisp.org>
45577         popen: Support for MSVC.
45578         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45579         * lib/popen.c (popen): Provide alternate definition for native Windows.
45580         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45582         * modules/popen (Depends-on, configure.ac): Update condition.
45583         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45584         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45585         fixed.
45587 2011-09-17  Bruno Haible  <bruno@clisp.org>
45589         isnanl, isnand, isnanf: Work around MSVC bug.
45590         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45592 2011-09-17  Bruno Haible  <bruno@clisp.org>
45594         sys_socket tests: Fix recent mistake.
45595         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45597 2011-09-17  Bruno Haible  <bruno@clisp.org>
45599         putenv: Support for MSVC.
45600         * modules/putenv (Depends-on): Add environ.
45601         * lib/putenv.c (environ): Disable declaration.
45602         * lib/unistd.in.h: Update comment.
45604 2011-09-17  Bruno Haible  <bruno@clisp.org>
45606         math: Avoid macro redefinition warnings on MSVC.
45607         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45608         Undefine before redefining.
45610 2011-09-17  Bruno Haible  <bruno@clisp.org>
45612         doc: Mention functions which are declared as macros.
45613         * doc/posix-functions/*[fl].texi: Mention that some functions are
45614         defined as macros with arguments only.
45616 2011-09-17  Bruno Haible  <bruno@clisp.org>
45618         Add dependencies to new dirent related modules.
45619         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45620         * modules/fts (Depends-on): Likewise.
45621         * modules/glob (Depends-on): Likewise.
45622         * modules/savedir (Depends-on): Likewise.
45623         * modules/scandir (Depends-on): Likewise.
45624         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45625         * modules/fdopendir (Depends-on): Add opendir.
45627 2011-09-17  Bruno Haible  <bruno@clisp.org>
45629         inet_pton: Support for MSVC on Windows Vista or newer.
45630         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45631         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45632         HAVE_DECL_INET_PTON is defined.
45633         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45634         On platforms with <winsock2.h>, test whether inet_pton is declared in
45635         <ws2tcpip.h>. If so, arrange to replace it.
45636         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45637         REPLACE_INET_PTON.
45638         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45639         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45640         (Depends-on, configure.ac): Update condition.
45641         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45643 2011-09-17  Bruno Haible  <bruno@clisp.org>
45645         inet_ntop: Support for MSVC on Windows Vista or newer.
45646         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45647         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45648         HAVE_DECL_INET_NTOP is defined.
45649         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45650         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45651         <ws2tcpip.h>. If so, arrange to replace it.
45652         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45653         REPLACE_INET_NTOP.
45654         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45655         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45656         (Depends-on, configure.ac): Update condition.
45657         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45659 2011-09-16  Eric Blake  <eblake@redhat.com>
45661         test-fsync: yet another enhancement
45662         * tests/test-fsync.c (main): Also test behavior on read-only text
45663         file.
45665 2011-09-16  Bruno Haible  <bruno@clisp.org>
45667         Enhance fsync, fdatasync tests.
45668         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45669         * tests/test-fdatasync.c (main): Likewise.
45671 2011-09-16  Bruno Haible  <bruno@clisp.org>
45673         Support for MSVC compiler: Ensure mode_t gets defined.
45674         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45675         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45677         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45678         * tests/test-fcntl-h.c: Check that mode_t is defined.
45679         * tests/test-sys_stat.c: Likewise.
45680         * tests/test-sys_types.c: Likewise.
45681         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45682         * doc/posix-headers/sys_stat.texi: Likewise.
45683         * doc/posix-headers/sys_types.texi: Likewise.
45685 2011-09-16  Bruno Haible  <bruno@clisp.org>
45687         sys_stat: Support for MSVC.
45688         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45689         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45690         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45691         MSVC.
45693 2011-09-16  Bruno Haible  <bruno@clisp.org>
45695         Support for MSVC compiler: Ensure off_t gets defined.
45696         * lib/unistd.in.h: Include <sys/types.h>.
45697         * tests/test-fcntl-h.c: Check that off_t is defined.
45698         * tests/test-sys_stat.c: Likewise.
45699         * tests/test-sys_types.c: Likewise.
45701 2011-09-16  Eric Blake  <eblake@redhat.com>
45703         fdatasync: port to Solaris
45704         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45705         * modules/fdatasync (Link): Document it.
45706         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45708         fdatasync: port to MacOS X 10.7
45709         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45710         declared.
45711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45712         * modules/unistd (Makefile.am): Substitute it.
45713         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45714         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45716         fdatasync: minor improvements
45717         * modules/fdatasync (Depends-on): Add condition for fsync.
45718         * lib/fdatasync.c (fdatasync): Add comment.
45719         * tests/test-unistd-c++.cc: Test fdatasync.
45721         unistd: update refs to newer POSIX
45722         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45723         Suggested by Bruno Haible.
45725         fdatasync: new module
45726         * modules/fsync (Description): Document difference to fdatasync.
45727         * modules/fdatasync: New module.
45728         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45729         * lib/fdatasync.c (fdatasync): Likewise.
45730         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45731         defaults.
45732         * modules/unistd (Makefile.am): Set witnesses.
45733         * lib/unistd.in.h (fdatasync): Declare.
45734         * MODULES.html.sh: Document it.
45735         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45736         * modules/fdatasync-tests: New test.
45737         * tests/test-fdatasync.c: Likewise.
45739 2011-09-16  Eric Blake  <eblake@redhat.com>
45741         test-fsync: enhance tests
45742         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45743         * tests/test-fsync.c (main): Enhance test.
45745 2011-09-15  Bruno Haible  <bruno@clisp.org>
45747         Support for MSVC compiler: Ensure ssize_t gets defined.
45748         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45749         * doc/posix-headers/stdio.texi: Likewise.
45750         * modules/stdio (Depends-on): Add ssize_t.
45751         * modules/sys_socket (Depends-on): Likewise.
45752         * modules/sys_types (Depends-on): Likewise.
45753         * modules/sys_uio (Depends-on): Likewise.
45754         * modules/unistd (Depends-on): Likewise.
45755         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45756         * tests/test-sys_types.c: Check that ssize_t is defined.
45758 2011-09-14  Bruno Haible  <bruno@clisp.org>
45760         Avoid using #, the m4 comment starter character, near brackets.
45761         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45762         delimiter character in sed expressions.
45763         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45764         Suggested by Eric Blake.
45766         Properly quote AC_CHECK_DECLS' 4th argument.
45767         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45768         argument.
45769         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45770         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45771         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45772         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45773         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45774         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45776         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45777         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45778         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45779         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45780         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45781         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45782         * m4/isinf.m4 (gl_ISINF): Likewise.
45783         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45784         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45785         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45789         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45790         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45791         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45792         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45793         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
45796         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45798         Reported by Eric Blake.
45800         Properly quote AC_CHECK_DECL's 4th argument.
45801         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
45802         argument.
45803         * m4/argp.m4 (gl_ARGP): Likewise.
45804         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45805         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45806         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45807         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45808         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
45809         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
45810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
45811         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45812         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45813         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45814         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45815         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45816         Reported by Eric Blake.
45818 2011-09-14  Eric Blake  <eblake@redhat.com>
45820         opendir: avoid compile warning
45821         * lib/opendir.c (includes): Always include errno.h.
45822         Reported by Tatsuro MATSUOKA.
45824 2011-09-14  Jim Meyering  <meyering@redhat.com>
45826         maint.mk: sc_tight_scope: propagate failure from sub-make
45827         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45828         Reported by Martin von Gagern.
45830 2011-09-13  Bruno Haible  <bruno@clisp.org>
45832         tempname: Support for MSVC.
45833         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45834         MSVC.
45835         * modules/tempname (Depends-on): Add fcntl-h.
45837 2011-09-13  Bruno Haible  <bruno@clisp.org>
45839         sys_time: Support for MSVC.
45840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45841         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45842         include <winsock2.h>.
45843         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45844         function declarations that collide with POSIX.
45845         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45846         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45848 2011-09-13  Bruno Haible  <bruno@clisp.org>
45850         stat: Support for MSVC.
45851         * lib/stat.c: Include pathmax.h.
45852         * modules/stat (Depends-on): Add pathmax.
45854         pathmax: Support for native Windows.
45855         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45857 2011-09-12  Bruno Haible  <bruno@clisp.org>
45859         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45860         * lib/dirent.in.h (struct dirent): New type.
45861         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45862         DT_WHT): New macros.
45863         (DIR): New type.
45864         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45865         (readdir, rewinddir): New declarations.
45866         * lib/dirent-private.h: New file.
45867         * lib/opendir.c: New file.
45868         * lib/readdir.c: New file.
45869         * lib/rewinddir.c: New file.
45870         * lib/closedir.c: New file.
45871         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45872         * m4/opendir.m4: New file.
45873         * m4/readdir.m4: New file.
45874         * m4/rewinddir.m4: New file.
45875         * m4/closedir.m4: New file.
45876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45877         REPLACE_CLOSEDIR here.
45878         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45879         readdir, rewinddir are declared.
45880         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45881         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45882         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45883         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45884         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45885         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45886         * modules/opendir: New file.
45887         * modules/readdir: New file.
45888         * modules/rewinddir: New file.
45889         * modules/closedir: New file.
45890         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45891         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45892         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45893         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45894         * NEWS: Mention the 'fchdir' change.
45896 2011-09-11  Bruno Haible  <bruno@clisp.org>
45898         asm-underscore.m4: Support for MSVC.
45899         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45900         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45902 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45904         Doc about crypt functions.
45905         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45906         needing for _GNU_SOURCE to get crypt.
45907         * doc/posix-functions/encrypt.texi: Likewise.
45908         * doc/posix-functions/setkey.texi: Likewise.
45910 2011-09-11  Bruno Haible  <bruno@clisp.org>
45912         doc: Update regarding MSVC 9.
45913         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45914         tested".
45915         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45916         * doc/posix-headers/*.texi: Likewise.
45917         * doc/pastposix-functions/*.texi: Likewise.
45918         * doc/glibc-functions/*.texi: Likewise.
45919         * doc/glibc-headers/*.texi: Likewise.
45921 2011-09-11  Bruno Haible  <bruno@clisp.org>
45923         unistd et al.: Don't assume <unistd.h> exists.
45924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45925         does not exist.
45926         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45927         exist. But include <stdlib.h>.
45928         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45929         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45930         symlink() does not exist.
45931         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45932         include <io.h> instead.
45933         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45935         include <direct.h> instead.
45936         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45938         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45939         <io.h> instead.
45940         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45941         correctly if the system does not have hard links.
45942         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45943         <direct.h> instead.
45944         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45945         it when looking for function declarations.
45946         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45947         <direct.h> and <io.h> instead.
45948         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45950 2011-09-11  Bruno Haible  <bruno@clisp.org>
45952         strcase: Support for MSVC.
45953         * modules/strcase (Status, Notice): Remove obsoletion mark.
45954         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45955         * doc/posix-functions/strncasecmp.texi: Likewise.
45957         strings: Don't assume <strings.h> exists.
45958         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45959         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45960         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45961         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45963 2011-09-11  Bruno Haible  <bruno@clisp.org>
45965         dirent: Don't assume <dirent.h> exists.
45966         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45967         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45968         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45969         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45971 2011-09-11  Bruno Haible  <bruno@clisp.org>
45973         Fix wint_t on MSVC.
45974         * lib/wchar.in.h (wint_t): On MSVC, override it.
45975         * lib/wctype.in.h (wint_t): Likewise.
45976         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45977         MSVC.
45978         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45979         * doc/posix-headers/wctype.texi: Likewise.
45981 2011-09-11  Bruno Haible  <bruno@clisp.org>
45983         sys_types: Fix typo.
45984         * lib/sys_types.in.h: Fix typo in comment.
45985         Reported by Paul Eggert.
45987         Support for MSVC compiler: Ensure size_t gets defined.
45988         * modules/strings (Depends-on): Add 'sys_types'.
45989         * modules/sys_uio (Depends-on): Likewise.
45990         * lib/sys_uio.in.h: Update comment.
45992         C++ tests for module 'sys_types'.
45993         * modules/sys_types-c++-tests: New file.
45994         * tests/test-sys_types-c++.cc: New file.
45996         Tests for module 'sys_types'.
45997         * modules/sys_types-tests: New file.
45998         * tests/test-sys_types.c: New file.
46000         New module 'sys_types'.
46001         * lib/sys_types.in.h: New file.
46002         * m4/sys_types_h.m4: New file.
46003         * modules/sys_types: New file.
46004         * doc/posix-headers/sys_types.texi: Mention the new module and the
46005         size_t problem on MSVC 9.
46007 2011-09-11  Bruno Haible  <bruno@clisp.org>
46009         Support for MSVC compiler: Avoid division by a literal 0.
46010         * lib/math.in.h (NAN): Define through a function call also on MSVC.
46011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
46012         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
46013         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
46014         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
46015         * tests/infinity.h: New file.
46016         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
46017         on MSVC.
46018         * tests/test-ceilf1.c: Include infinity.h.
46019         (main): Use Infinityf.
46020         * tests/test-ceil1.c: Include infinity.h.
46021         (main): Use Infinityd.
46022         * tests/test-ceill.c: Include infinity.h.
46023         (main): Use Infinityl.
46024         * tests/test-dprintf-posix.c: Include infinity.h.
46025         (test_function): Use Infinityd.
46026         * tests/test-floorf1.c: Include infinity.h.
46027         (main): Use Infinityf.
46028         * tests/test-floor1.c: Include infinity.h.
46029         (main): Use Infinityd.
46030         * tests/test-floorl.c: Include infinity.h.
46031         (main): Use Infinityl.
46032         * tests/test-fprintf-posix.c: Include infinity.h.
46033         (test_function): Use Infinityd.
46034         * tests/test-frexp.c: Include infinity.h.
46035         (main): Use Infinityd.
46036         * tests/test-frexpl.c: Include infinity.h.
46037         (main): Use Infinityl.
46038         * tests/test-isfinite.c: Include infinity.h.
46039         (test_isfinitef): Use Infinityf.
46040         (test_isfinited): Use Infinityd.
46041         (test_isfinitel): Use Infinityl.
46042         * tests/test-isinf.c: Include infinity.h.
46043         (test_isinff): Use Infinityf.
46044         (test_isinfd): Use Infinityd.
46045         (test_isinfl): Use Infinityl.
46046         * tests/test-isnan.c: Include infinity.h.
46047         (test_float): Use Infinityf.
46048         (test_double): Use Infinityd.
46049         (test_long_double): Use Infinityl.
46050         * tests/test-isnanf.h: Include infinity.h.
46051         (main): Use Infinityf.
46052         * tests/test-isnand.h: Include infinity.h.
46053         (main): Use Infinityd.
46054         * tests/test-isnanl.h: Include infinity.h.
46055         (main): Use Infinityl.
46056         * tests/test-ldexpl.c: Include infinity.h.
46057         (main): Use Infinityl.
46058         * tests/test-printf-posix.h: Include infinity.h.
46059         (test_function): Use Infinityd.
46060         * tests/test-roundf1.c: Include infinity.h.
46061         (main): Use Infinityf.
46062         * tests/test-round1.c: Include infinity.h.
46063         (main): Use Infinityd.
46064         * tests/test-roundl.c: Include infinity.h.
46065         (main): Use Infinityl.
46066         * tests/test-signbit.c: Include infinity.h.
46067         (test_signbitf): Use Infinityf.
46068         (test_signbitd): Use Infinityd.
46069         (test_signbitl): Use Infinityl.
46070         * tests/test-snprintf-posix.h: Include infinity.h.
46071         (test_function): Use Infinityd, Infinityl.
46072         * tests/test-sprintf-posix.h: Include infinity.h.
46073         (test_function): Use Infinityd, Infinityl.
46074         * tests/test-truncf1.c: Include infinity.h.
46075         (main): Use Infinityf.
46076         * tests/test-trunc1.c: Include infinity.h.
46077         (main): Use Infinityd.
46078         * tests/test-truncl.c: Include infinity.h.
46079         (main): Use Infinityl.
46080         * tests/test-vasnprintf-posix.c: Include infinity.h.
46081         (test_function): Use Infinityd, Infinityl.
46082         * tests/test-vasprintf-posix.c: Include infinity.h.
46083         (test_function): Use Infinityd, Infinityl.
46084         * modules/ceilf-tests (Files): Add tests/infinity.h.
46085         * modules/ceil-tests (Files): Likewise.
46086         * modules/ceill-tests (Files): Likewise.
46087         * modules/dprintf-posix-tests (Files): Likewise.
46088         * modules/floorf-tests (Files): Likewise.
46089         * modules/floor-tests (Files): Likewise.
46090         * modules/floorl-tests (Files): Likewise.
46091         * modules/fprintf-posix-tests (Files): Likewise.
46092         * modules/frexp-tests (Files): Likewise.
46093         * modules/frexp-nolibm-tests (Files): Likewise.
46094         * modules/frexpl-tests (Files): Likewise.
46095         * modules/frexpl-nolibm-tests (Files): Likewise.
46096         * modules/isfinite-tests (Files): Likewise.
46097         * modules/isinf-tests (Files): Likewise.
46098         * modules/isnan-tests (Files): Likewise.
46099         * modules/isnanf-tests (Files): Likewise.
46100         * modules/isnanf-nolibm-tests (Files): Likewise.
46101         * modules/isnand-tests (Files): Likewise.
46102         * modules/isnand-nolibm-tests (Files): Likewise.
46103         * modules/isnanl-tests (Files): Likewise.
46104         * modules/isnanl-nolibm-tests (Files): Likewise.
46105         * modules/ldexpl-tests (Files): Likewise.
46106         * modules/printf-posix-tests (Files): Likewise.
46107         * modules/roundf-tests (Files): Likewise.
46108         * modules/round-tests (Files): Likewise.
46109         * modules/roundl-tests (Files): Likewise.
46110         * modules/signbit-tests (Files): Likewise.
46111         * modules/snprintf-posix-tests (Files): Likewise.
46112         * modules/sprintf-posix-tests (Files): Likewise.
46113         * modules/truncf-tests (Files): Likewise.
46114         * modules/trunc-tests (Files): Likewise.
46115         * modules/truncl-tests (Files): Likewise.
46116         * modules/vasnprintf-posix-tests (Files): Likewise.
46117         * modules/vasprintf-posix-tests (Files): Likewise.
46118         * modules/vdprintf-posix-tests (Files): Likewise.
46119         * modules/vfprintf-posix-tests (Files): Likewise.
46120         * modules/vprintf-posix-tests (Files): Likewise.
46121         * modules/vsnprintf-posix-tests (Files): Likewise.
46122         * modules/vsprintf-posix-tests (Files): Likewise.
46123         * modules/xprintf-posix-tests (Files): Likewise.
46125 2011-09-11  Bruno Haible  <bruno@clisp.org>
46127         Ensure pid_t gets defined.
46128         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
46129         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
46130         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46131         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
46132         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
46133         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
46134         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46135         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46136         * tests/test-fcntl-h.c: Check that pid_t is defined.
46137         * tests/test-sched.c: Likewise.
46138         * tests/test-termios.c: Likewise.
46139         * tests/test-time.c: Likewise.
46140         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
46141         * doc/posix-headers/signal.texi: Likewise.
46142         * doc/posix-headers/sys_types.texi: Likewise.
46143         * doc/posix-headers/time.texi: Likewise.
46145 2011-09-11  Bruno Haible  <bruno@clisp.org>
46147         acl: Fix compilation on Solaris 10 (older version).
46148         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
46149         of ACE_EVERYONE.
46150         * lib/set-mode-acl.c (qset_acl): Likewise.
46151         Reported by Christian Jullien <eligis@orange.fr>.
46153 2011-09-10  Bruno Haible  <bruno@clisp.org>
46155         iconv, unsetenv: Add support for MSVC compiler.
46156         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
46157         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
46159 2011-09-10  Bruno Haible  <bruno@clisp.org>
46161         *printf: Add support for MSVC compiler.
46162         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
46163         handles the exception caused by the %n directive. When cross-compiling,
46164         guess no on native Windows.
46165         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46166         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
46167         emulate it through vsnprintf.
46168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
46169         * doc/posix-functions/dprintf.texi: Update documentation regarding
46170         MSVC 9.
46171         * doc/posix-functions/fprintf.texi: Likewise.
46172         * doc/posix-functions/printf.texi: Likewise.
46173         * doc/posix-functions/snprintf.texi: Likewise.
46174         * doc/posix-functions/sprintf.texi: Likewise.
46175         * doc/posix-functions/swprintf.texi: Likewise.
46176         * doc/posix-functions/vdprintf.texi: Likewise.
46177         * doc/posix-functions/vfprintf.texi: Likewise.
46178         * doc/posix-functions/vprintf.texi: Likewise.
46179         * doc/posix-functions/vsnprintf.texi: Likewise.
46180         * doc/posix-functions/vsprintf.texi: Likewise.
46181         * doc/glibc-functions/asprintf.texi: Likewise.
46182         * doc/glibc-functions/obstack_printf.texi: Likewise.
46183         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46184         * doc/glibc-functions/vasprintf.texi: Likewise.
46186 2011-09-10  Bruno Haible  <bruno@clisp.org>
46188         nocrash: Add support for native Windows.
46189         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
46191 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
46192             Bruno Haible  <bruno@clisp.org>
46194         absolute-header, include-next: Add support for MSVC compiler.
46195         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
46196         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
46197         directory separator in #line directives.
46198         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
46199         recognize also backslash as directory separator in #line directives.
46201 2011-09-08  Jim Meyering  <meyering@redhat.com>
46203         maint.mk: mark the post-release commit log with "maint: " prefix
46204         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
46205         one-line commit-log summary.
46207 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
46208             Bruno Haible  <bruno@clisp.org>
46210         Doc about crypt functions.
46211         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
46212         systems.
46213         * doc/posix-functions/encrypt.texi: Likewise.
46214         * doc/posix-functions/setkey.texi: Likewise.
46216 2011-09-08  Simon Josefsson  <simon@josefsson.org>
46218         * lib/gc.h: Fix copyright header.
46220 2011-09-07  Bruno Haible  <bruno@clisp.org>
46222         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
46223         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
46224         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
46226 2011-09-07  Bruno Haible  <bruno@clisp.org>
46228         openat: Work around compilation error with OSF/1 5.1 DTK cc.
46229         * lib/fopen.c: Use different syntax for include of <stdio.h>.
46230         * lib/freopen.c: Likewise.
46231         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
46232         * lib/lstat.c: Likewise.
46233         * lib/stat.c: Likewise.
46234         * lib/open.c: Use different syntax for include of <fcntl.h>.
46235         * lib/openat.c: Include fcntl.h again, explicitly.
46237 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
46239         parse-datetime: document the newly accepted format
46240         * doc/parse-datetime.texi (Combined date and time of day items):
46241         New section.
46243 2011-09-06  Bruno Haible  <bruno@clisp.org>
46245         acl: Fix a test failure on newer Solaris 10 with ZFS.
46246         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
46247         ENOSYS as no ACL.
46248         Reported by Jim Meyering.
46250 2011-09-06  Bruno Haible  <bruno@clisp.org>
46252         acl: Update for AIX >= 5.3 with NFS.
46253         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
46254         ENOSYS as no ACL.
46256         acl: Fix a test failure on AIX >= 5.3 with NFS.
46257         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
46258         as no ACL.
46260 2011-09-06  Bruno Haible  <bruno@clisp.org>
46262         acl: Fix a test failure on IRIX 6.5 with NFS.
46263         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
46264         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
46265         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
46266         * lib/copy-acl.c (qcopy_acl): Likewise.
46268 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46270         openat: port to AIX 7.1 with large files
46271         AIX 7.1 does a "#define openat open64at" if large files are in use,
46272         so we can't simply #undef openat.  Use the orig_openat trick (similar
46273         to orig_open in lib/open.c) to work around the problem.  Problem
46274         reported by Kevin Brott for GNU tar, in the thread containing
46275         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
46276         * lib/openat.c (__need_system_fcntl_h): Define first.
46277         Include <fcntl.h> and <sys/types.h> before undefining.
46278         (orig_openat) [HAVE_OPENAT]: New inline function.
46279         (openat) [HAVE_OPENAT]: Do not undef.
46280         (rpl_openat): Use orig_openat, not openat.
46282 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46283             Bruno Haible  <bruno@clisp.org>
46285         acl: Avoid errors on NonStop Kernel.
46286         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
46287         ENOTSUP errors.
46289 2011-09-05  Bruno Haible  <bruno@clisp.org>
46291         acl: Clean up Solaris code.
46292         * lib/acl-internal.h: Remove no-op #if.
46293         * lib/file-has-acl.c: Likewise.
46294         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
46295         * lib/copy-acl.c (qcopy_acl): Likewise.
46297 2011-09-05  Bruno Haible  <bruno@clisp.org>
46299         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
46300         binaries built on the original Solaris 10.
46301         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
46302         trivial.
46304 2011-09-05  Bruno Haible  <bruno@clisp.org>
46306         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46307         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
46308         10.
46309         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
46310         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
46311         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
46312         instead of acl_get, facl_get, acl_set, facl_set.
46314 2011-09-05  Bruno Haible  <bruno@clisp.org>
46316         copy-file: Try unit tests on more file systems.
46317         * tests/test-copy-file-1.sh: New file.
46318         * tests/test-copy-file-2.sh: New file.
46319         * modules/copy-file-tests (Files): Add them.
46320         (Makefile.am): Add them to TESTS.
46322         acl: Try unit tests on more file systems.
46323         * tests/test-file-has-acl-1.sh: New file.
46324         * tests/test-file-has-acl-2.sh: New file.
46325         * tests/test-set-mode-acl-1.sh: New file.
46326         * tests/test-set-mode-acl-2.sh: New file.
46327         * tests/test-copy-acl-1.sh: New file.
46328         * tests/test-copy-acl-2.sh: New file.
46329         * modules/acl-tests (Files): Add them.
46330         (Makefile.am): Add them to TESTS.
46332 2011-09-04  Bruno Haible  <bruno@clisp.org>
46334         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46335         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
46336         10.
46337         (OLD_ALLOW, OLD_DENY): New macros.
46338         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
46339         ACE_ACCESS_ALLOWED_ACE_TYPE.
46340         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
46341         ACE_ACCESS_DENIED_ACE_TYPE.
46342         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
46343         (NEW_ACE_EXECUTE): Fix value.
46344         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
46345         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
46346         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
46347         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
46348         NEW_ACE_SYNCHRONIZE): New macros.
46349         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
46350         instead of acl_fromtext, acl_set, facl_set.
46351         Fixes a coreutils/tests/cp/perm failure.
46353 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
46355         openat: test for fstatat (..., 0) bug
46356         Further testing with tar suggests that fstatat (..., 0)
46357         does not work in general, on AIX 7.1; see
46358         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
46359         So, give up entirely on AIX 7.1's fstatat, and fall back on our
46360         replacement fstatat (which is what older AIX releases were using
46361         anyway).
46362         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
46363         use is now changed to orig_fstatat.  This was probably the right
46364         thing to do anyway.
46365         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
46366         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
46367         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
46368         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
46369         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
46370         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
46371         if the bug is found.
46373         openat: test for fstatat (AT_FDCWD, ..., 0) bug
46374         This tests for another fstatat bug on AIX 7.1:
46375         fstatat (AT_FDCWD, ..., 0) does not work.  See
46376         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
46377         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
46378         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
46379         (rpl_fstatat): Adjust so that it works around either (or both)
46380         bugs if present.
46381         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46383 2011-09-03  Karl Berry  <karl@gnu.org>
46385         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46386         in index entries.
46388 2011-09-02  Bruno Haible  <bruno@clisp.org>
46390         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46391         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46392         values of AR, ARFLAGS, RANLIB.
46393         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46395 2011-09-02  Bruno Haible  <bruno@clisp.org>
46397         Find 'ar' program that fits with --host argument.
46398         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46400 2011-09-02  Bruno Haible  <bruno@clisp.org>
46402         tests: init.sh: Support any non-GNU diff.
46403         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46404         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46405         Solaris 8.
46407 2011-09-02  Bruno Haible  <bruno@clisp.org>
46409         tests: init.sh: work also with any non-GNU diff that supports -u
46410         * tests/init.sh: Relax check for diff -u support.
46411         Rather than checking for GNU diff via --version, simply check
46412         for support for -u itself.  Useful at least on OpenBSD 4.9,
46413         AIX 7.1, IRIX 6.5, and Solaris 10.
46415 2011-09-01  Bruno Haible  <bruno@clisp.org>
46417         strtoimax, strtoumax: Document problem on HP-UX 11.
46418         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46419         * doc/posix-functions/strtoumax.texi: Likewise.
46421 2011-09-01  Bruno Haible  <bruno@clisp.org>
46423         strtoumax: Avoid link error on OSF/1 with DTK cc.
46424         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46425         defined as a function.
46426         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46427         strtoumax is defined, not whether it is declared.
46429 2011-09-01  Bruno Haible  <bruno@clisp.org>
46431         strtoimax: Avoid link error on OSF/1 with DTK cc.
46432         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46433         defined as a function.
46434         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46435         strtoimax is defined, not whether it is declared.
46437 2011-09-01  Bruno Haible  <bruno@clisp.org>
46439         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46440         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46441         as a function.
46442         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46443         whether it is declared.
46445 2011-09-01  Bruno Haible  <bruno@clisp.org>
46447         imaxabs: Avoid link error on OSF/1 with DTK cc.
46448         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46449         as a function.
46450         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46451         whether it is declared.
46453 2011-09-01  Bruno Haible  <bruno@clisp.org>
46455         Tests for module 'strtoumax'.
46456         * modules/strtoumax-tests: New file.
46457         * tests/test-strtoumax.c: New file.
46459         Tests for module 'strtoimax'.
46460         * modules/strtoimax-tests: New file.
46461         * tests/test-strtoimax.c: New file.
46463         Tests for module 'imaxdiv'.
46464         * modules/imaxdiv-tests: New file.
46465         * tests/test-imaxdiv.c: New file.
46467         Tests for module 'imaxabs'.
46468         * modules/imaxabs-tests: New file.
46469         * tests/test-imaxabs.c: New file.
46471 2011-09-01  Bruno Haible  <bruno@clisp.org>
46473         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46474         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46475         pthread_create.
46477 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46479         openat: work around AIX 7.1 fstatat issue
46480         This should fix the problem that was not properly fixed
46481         in the previous change, dated 2011-08-30.
46482         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46483         __need_system_stat_h defined.
46484         (orig_fstatat) [HAVE_FSTATAT]: New function.
46485         (rpl_fstatat): Go back to the old way of doing things,
46486         except call orig_fstatat instead of fstatat.
46487         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46488         Remove unnecessary check whether fstatat fills in st_size etc.
46490 2011-09-01  Bruno Haible  <bruno@clisp.org>
46492         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46493         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46494         just include the system's header.
46496 2011-08-31  Jim Meyering  <meyering@redhat.com>
46498         tests: avoid spurious assertion failure in test-float.c on ppc64
46499         * tests/test-float.c (test_long_double): Comment out an assertion,
46500         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46501         with gcc-4.4.4.
46503         maint: indent with spaces, not TABs
46504         I need to get in the habit of running gnulib's "make check".
46505         Both of these would have been caught.
46506         * m4/largefile.m4: Indent with spaces, not TABs.
46507         * lib/parse-datetime.y (iso_8601_time): Likewise.
46508         Spotted by Pádraig Brady.
46510         test-parse-datetime.c: accommodate a relatively strict gcc warning
46511         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46512         to avoid a warning from gcc's -Werror=missing-declarations.
46513         Insert a few spaces-before-funcall-parenthesis.
46515 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46517         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46518         The parser now accepts ISO 8601 date-time strings with "T" as the
46519         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46520         with a space between the date and time strings.  Now it also parses
46521         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46522         variants like "2004-02-29T16:21:42.333-07:00"
46523         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46524         of day representation using the 'T' separator character.
46525         * doc/parse-datetime.texi (General date syntax): replace use of
46526         deprecated --iso-8601 option with --rfc-3339 in example of date
46527         command output formats that can be parsed.
46528         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46529         lib/parse-datetime.y.
46530         (gmt_offset): New function.
46531         (main): Add additional test cases to validate ISO8601 extended
46532         date and time of day parsing.
46534 2011-08-31  Bruno Haible  <bruno@clisp.org>
46536         freopen: Documentation.
46537         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46538         name.
46539         Reported by Claudio Bley <claudio.bley@gmail.com>.
46541 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46543         freopen: Don't crash if the filename argument is NULL.
46544         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46545         NULL.
46547 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46549         openat: work around AIX 7.1 fstatat bug
46550         Problem reported by Kevin Brott for GNU tar, in the thread containing
46551         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46552         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46553         FSTATAT_ST_SIZE_ETC_BROKEN.
46554         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46555         rpl_fstatat.
46556         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46557         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46558         AC_CHECK_FUNCS_ONCE for fstatat.
46559         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46560         fchmodat, mkdirat, openat and unlinkat.
46562 2011-08-30  Bruno Haible  <bruno@clisp.org>
46564         Avoid endless recursions if config.h includes some header files.
46565         * lib/fopen.c (__need_FILE): Define already before including config.h.
46566         * lib/freopen.c (__need_FILE): Likewise.
46567         * lib/open.c (__need_system_fcntl_h): Likewise.
46568         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46569         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46570         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46572 2011-08-25  Karl Berry  <karl@gnu.org>
46574         * config/srclist.txt (ylwrap): new try.
46575         * build-aux/ylwrap: new file.
46577 2011-08-23  Bruno Haible  <bruno@clisp.org>
46579         tmpdir: Use a good default directory on native Windows.
46580         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46581         (P_tmpdir): Default to _P_tmpdir on native Windows.
46582         (path_search): On native Windows, try the value returned by GetTempPath
46583         before trying P_tmpdir.
46584         * modules/tmpdir (Depends-on): Add pathmax.
46585         Suggested by John Darrington <john@darrington.wattle.id.au>.
46587 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46589         doc: fix typo in README-release
46590         * top/README-release: Capitalize first word of a sentence.
46592 2011-08-19  Jim Meyering  <meyering@redhat.com>
46594         fts: do not exhaust memory when processing million-entry directories
46595         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46596         directory would require about 256*N bytes of memory.  Thus, it was
46597         easy to construct a directory too large to be processed by any of
46598         those tools.  With this change, fts' maximum memory utilization is
46599         now limited to around 30MB.
46600         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46601         (fts_read): When we've processed the final entry (i.e., when
46602         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46603         using the parent entry to read any remaining entries.  Dispatch
46604         depending on what fts_build returns:
46605         - NULL+stop, aka failure: stop
46606         - NULL otherwise: move up in the dir hierarchy
46607         - non-NULL: handle this new entry
46608         (fts_build): Declare and use new local, continue_readdir.
46609         Prepare to be called from fts_read, when the entries
46610         from a partially-read directory have just been exhausted.
46611         In that case, we'll skip the opendir and instead use the parent's
46612         fts_dirp and derive dir_fd from that.
46613         Finally, in the readdir loop, if we read max_entries entries,
46614         exit the loop ensuring *not* to call closedir.  This is required
46615         so that fts_dirp can be reused on a subsequent call.
46616         Prompted by Ben England's report of memory exhaustion in find
46617         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46619         maint: fts: move decl of `dp' down into while loop; split a long line
46620         * lib/fts.c (fts_build): No semantic change.
46622         fts: add/use new struct member, fts_dirp
46623         We are about to use this to manage any directory with
46624         too many entries to read all of them into memory at once.
46625         To do that, we'll need to save the DIR* pointer in each
46626         affected FTSENT struct.
46627         * lib/fts_.h: Include <dirent.h>.
46628         (struct FTSENT) [fts_dirp]: New member.
46629         * lib/fts.c (closedir_and_clear): Define.
46630         Use it in place of closedir so that we are sure to
46631         clear the new fts_dirp member when done with it.
46632         (fts_alloc): Initialize the new member.
46633         (fts_lfree): Free, if needed.
46635         maint: fts: give __opendir2 a new parameter and rename
46636         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46637         than surreptitiously using sole caller's "dir_fd".
46638         (fts_opendir): Rename from __opendir2.
46640         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46641         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46643         maint: fts.c: correct off-by-one indentation
46644         * lib/fts.c (fts_build): Correct indentation, change style
46645         of a couple of block comments, and bracing style.
46647         maint: fts.c: move __opendir2 #define "up" out of function body
46648         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46650         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46651         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46652         out for a long time and besides was useful only on BSD systems.
46654 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46656         regex: port to Stratus OpenVOS
46657         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46658         define to empty, rather than attempting nonportable optimizations.
46659         Problem reported by Paul Green in:
46660         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46661         and fix suggested by Eric Blake in:
46662         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46664 2011-08-17  Eric Blake  <eblake@redhat.com>
46666         getcwd: fix test failures on mingw
46667         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46668         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46669         test if long directory cannot be created, and allow mingw errno.
46671         getcwd-lgpl: fix m4 to match relaxed test for BSD
46672         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46673         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46674         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46675         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46676         signature problem.
46678         getcwd: fix compilation on mingw64
46679         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46680         getcwd.
46681         Reported by Marc-André Lureau.
46683         pipe2: silence compiler warning
46684         * lib/pipe2.c (pipe2): Hide label if it is not used.
46686 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46688         relocatable-prog: fix link error
46689         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46690         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46691         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46692         into modules/relocatable-lib without noticing that
46693         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46694         also needs to build relocatable.c.
46696 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46698         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46700         shell code: it contained a 'break' that was not in a loop.
46701         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46702         via a shell-language loop; this may have been true in old Autoconf
46703         versions, but it's not true in Autoconf 2.68.  I found this bug
46704         when testing coreutils git on Solaris 8, whose shell complains
46705         about the syntax error.
46707 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46709         * lib/base64.c: Fix comment to reference RFC 4648.
46710         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46711         <gvtulder@gmail.com>.
46713 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46715         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46717         po/Makefile.in.in: fix make -q problem
46718         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46719         rule, since there's no file named 'check-macro-version' and its
46720         use as a file breaks make -q.
46721         (all): Don't depend on check-macro-version.
46722         (CHECK_MACRO_VERSION): New macro.
46723         (stamp-po): Use it.
46725         configmake: fix make -q problem
46726         * modules/configmake (configmake.h): Update configmake.h's time stamp
46727         even if the file does not change.  Otherwise, 'make -q' fails.
46728         Problem reported by Simon Josefsson in
46729         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46731 2011-08-11  Jim Meyering  <meyering@redhat.com>
46733         git-version-gen: correct the advice in a comment
46734         * build-aux/git-version-gen: Correct comment.
46735         Don't recommend to list .tarball-version in .gitignore.
46737 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46739         base64: fix off-by-one buffer size bug
46740         Problem and (trivial) fix reported by Gijs van Tulder in
46741         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46742         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46743         * tests/test-base64.c (main): Catch the bug.
46745 2011-08-10  Eric Blake  <eblake@redhat.com>
46747         closein: correct comments
46748         * lib/closein.c (close_stdin): Improve comments.
46750 2011-08-09  Bruno Haible  <bruno@clisp.org>
46752         More tests for 'fseeko'.
46753         * tests/test-fseeko3.c: New file, from Eric Blake.
46754         * tests/test-fseeko3.sh: New file.
46755         * modules/fseeko-tests (Files): Add them.
46756         (TESTS): Add test-fseeko3.sh.
46757         (check_PROGRAMS): Add test-fseeko3.
46759 2011-08-09  Eric Blake  <eblake@redhat.com>
46761         fseeko: remove unneeded hack
46762         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46764         fseeko: fix bug on glibc
46765         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46766         Reported by John W. Eaton.
46768 2011-08-08  Bruno Haible  <bruno@clisp.org>
46770         unictype/base: Fix interoperability with preinstalled libunistring.
46771         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46772         Reported by Simon Josefsson.
46774 2011-08-08  Bruno Haible  <bruno@clisp.org>
46776         iswblank: Detect declaration correctly.
46777         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46778         AC_CHECK_DECLS invocation.
46780 2011-08-08  Bruno Haible  <bruno@clisp.org>
46782         tcgetsid: Detect declaration correctly.
46783         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46784         AC_CHECK_DECLS invocation.
46785         Reported by Simon Josefsson.
46787 2011-08-08  Eric Blake  <eblake@redhat.com>
46789         largefile: fix typo that regressed large file support
46790         * modules/largefile (configure.ac-early): Fix section name.
46792 2011-08-06  Karl Berry  <karl@gnu.org>
46794         * MODULES.html.sh (func_all_files): _Noreturn is no longer
46795         a separate module.
46797 2011-08-05  Simon Josefsson  <simon@josefsson.org>
46799         openat: Fix warnings and commens when building unlinkat.c on Hurd.
46800         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
46801         get prototype for free.
46803 2011-08-04  Bruno Haible  <bruno@clisp.org>
46805         Tests for module 'pathmax'.
46806         * modules/pathmax-tests: New file.
46807         * tests/test-pathmax.c: New file.
46809         canonicalize-lgpl: Support larger filenames on the Hurd.
46810         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
46811         Reported by Paul Eggert.
46813         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
46814         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
46815         * lib/chdir-long.h: Include pathmax.h.
46816         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
46817         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46818         (PATH_MAX): Remove code that is done by pathmax.h.
46819         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46820         * lib/tmpfile.c: Add a comment.
46821         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46822         * modules/chdir-long (Depends-on): Add pathmax.
46823         * modules/getcwd (Depends-on): Add pathmax.
46824         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46825         is not defined.
46826         * doc/posix-headers/limits.texi: Mention the pathmax module.
46827         * NEWS: Mention the change.
46829 2011-08-02  Bruno Haible  <bruno@clisp.org>
46831         pthread_sigmask: Actually use results of gl_THREADLIB.
46832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46833         gl_THREADLIB, not gl_[]THREADLIB.
46834         Reported by Eric Blake.
46836 2011-08-02  Jim Meyering  <meyering@redhat.com>
46838         maint.mk: relax the default _gl_TS_function_match regexp
46839         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46840         space between function name and "(" in an "extern" declaration.
46841         That would fail to match a decl with no space there: extern void foo();
46843 2011-07-31  Iain Nicol  <iain@thenicols.net>
46845         git-version-gen: document that EXTRA_DIST must include .version
46846         * build-aux/git-version-gen: In the how-to-use comment, document
46847         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46848         will fail when run from an unpacked distribution tarball.
46850 2011-08-01  Bruno Haible  <bruno@clisp.org>
46852         wctype-h: Fix last change.
46853         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46854         REPLACE_TOWLOWER to 0.
46855         Reported by Sam Steingold <sds@gnu.org>.
46857 2011-07-31  Bruno Haible  <bruno@clisp.org>
46859         frexpl: Update autoconf test.
46860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46861         according to changes of 2011-06-20.
46863 2011-07-31  Bruno Haible  <bruno@clisp.org>
46865         sys_utsname: Add support for Minix.
46866         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46867         <sys/utsname.h>.
46868         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46869         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46871 2011-07-31  Bruno Haible  <bruno@clisp.org>
46873         strings: Add support for Minix.
46874         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46875         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46876         * doc/posix-headers/strings.texi: Document the Minix problem.
46878 2011-07-31  Bruno Haible  <bruno@clisp.org>
46880         wctype-h: Add support for Minix.
46881         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46882         REPLACE_TOWLOWER.
46883         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46884         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46885         REPLACE_ISWCNTRL.
46887 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46889         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46890         This is a performance improvement for 64-bit hosts: it causes the
46891         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46893 2011-07-31  Bruno Haible  <bruno@clisp.org>
46895         stdioext: Add support for Minix.
46896         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46897         * lib/fpurge.c (fpurge): Likewise.
46898         * lib/freadahead.c (freadahead): Likewise.
46899         * lib/freadable.c (freadable): Likewise.
46900         * lib/freading.c (freading): Likewise.
46901         * lib/freadptr.c (freadptr): Likewise.
46902         * lib/freadseek.c (freadptrinc): Likewise.
46903         * lib/fseeko.c (rpl_fseeko): Likewise.
46904         * lib/fseterr.c (fseterr): Likewise.
46905         * lib/fwritable.c (fwritable): Likewise.
46906         * lib/fwriting.c (fwriting): Likewise.
46907         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46908         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46910 2011-07-31  Bruno Haible  <bruno@clisp.org>
46912         errno: Port to Minix.
46913         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46914         ECONNABORTED are defined.
46915         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46916         GNULIB_defined_ECONNABORTED): New macros.
46917         * lib/strerror-override.h (strerror_override): Test also
46918         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46919         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46920         ECONNABORTED.
46921         * doc/posix-headers/errno.texi: Mention the Minix problem.
46923 2011-07-31  Bruno Haible  <bruno@clisp.org>
46925         Work around declaration collisions on Minix.
46926         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46927         defined, set REPLACE_MBSINIT.
46928         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46929         defined, set REPLACE_MBRTOWC.
46930         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46931         set REPLACE_MBRLEN.
46932         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46933         defined, set REPLACE_MBSRTOWCS.
46934         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46935         defined, set REPLACE_WCRTOMB.
46936         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46937         defined, set REPLACE_WCSRTOMBS.
46939 2011-07-31  Bruno Haible  <bruno@clisp.org>
46941         Add support for Minix with ACK compiler.
46942         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46943         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46944         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46946 2011-07-31  Bruno Haible  <bruno@clisp.org>
46948         Documentation about Minix.
46949         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46950         * doc/glibc-headers/*.texi: Likewise.
46951         * doc/posix-functions/*.texi: Likewise.
46952         * doc/glibc-functions/*.texi: Likewise.
46954 2011-07-31  Bruno Haible  <bruno@clisp.org>
46956         snippet/warn-on-use: Fix indentation.
46957         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46959 2011-07-25  Jim Meyering  <meyering@redhat.com>
46961         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46962         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46963         commands.
46965 2011-07-27  Jim Meyering  <meyering@redhat.com>
46967         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46968         * top/maint.mk (gl_extract_significant_defines_): Now that
46969         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46970         gnulib/lib/signal.in.h, and now that we recommend to
46971         define-if-undefined those two symbols in application code,
46972         we must filter them out of the "significant" list.
46973         This avoids a "make syntax-check" failure in coreutils.
46975 2011-07-26  Eric Blake  <eblake@redhat.com>
46977         warnings: add comments about previous patch
46978         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46979         * m4/include_next.m4: Likewise.
46980         * m4/warn-on-use.m4: Likewise.
46981         * m4/warnings.m4: Likewise, and simplify use.
46982         Suggested by Stefano Lattarini.
46984         include-next, warnings: support older autoconf
46985         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46986         AS_VAR_PUSHDEF in a way that works with older autoconf.
46987         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46988         Reported by Daniel P. Berrange.
46990 2011-07-25  Bruno Haible  <bruno@clisp.org>
46992         fseek, ftell: Fix doc.
46993         * doc/posix-functions/fseek.texi: Reword statement about
46994         AC_SYS_LARGEFILE.
46995         * doc/posix-functions/ftell.texi: Likewise.
46997 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46998             Bruno Haible  <bruno@clisp.org>
47000         Add dependencies to the 'largefile' module.
47001         * modules/fopen (Depends-on): Add 'largefile'.
47002         * modules/freopen (Depends-on): Likewise.
47003         * modules/fseeko (Depends-on): Likewise.
47004         * modules/ftello (Depends-on): Likewise.
47005         * modules/glob (Depends-on): Likewise.
47006         * modules/lseek (Depends-on): Likewise.
47007         * modules/lstat (Depends-on): Likewise.
47008         * modules/mkostemp (Depends-on): Likewise.
47009         * modules/mkostemps (Depends-on): Likewise.
47010         * modules/mkstemp (Depends-on): Likewise.
47011         * modules/mkstemps (Depends-on): Likewise.
47012         * modules/open (Depends-on): Likewise.
47013         * modules/openat (Depends-on): Likewise.
47014         * modules/pread (Depends-on): Likewise.
47015         * modules/pwrite (Depends-on): Likewise.
47016         * modules/scandir (Depends-on): Likewise.
47017         * modules/stat (Depends-on): Likewise.
47018         * modules/tmpfile (Depends-on): Likewise.
47019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
47020         since the containing module now depends on the largefile module.
47021         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
47022         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
47023         off_t is fixed by gnulib.
47024         * doc/posix-functions/freopen.texi: Likewise.
47025         * doc/posix-functions/fseeko.texi: Likewise.
47026         * doc/posix-functions/fstatat.texi: Likewise.
47027         * doc/posix-functions/ftello.texi: Likewise.
47028         * doc/posix-functions/glob.texi: Likewise.
47029         * doc/posix-functions/lseek.texi: Likewise.
47030         * doc/posix-functions/lstat.texi: Likewise.
47031         * doc/posix-functions/mkstemp.texi: Likewise.
47032         * doc/posix-functions/open.texi: Likewise.
47033         * doc/posix-functions/openat.texi: Likewise.
47034         * doc/posix-functions/pread.texi: Likewise.
47035         * doc/posix-functions/pwrite.texi: Likewise.
47036         * doc/posix-functions/scandir.texi: Likewise.
47037         * doc/posix-functions/stat.texi: Likewise.
47038         * doc/posix-functions/tmpfile.texi: Likewise.
47039         * doc/glibc-functions/mkostemp.texi: Likewise.
47040         * doc/glibc-functions/mkostemps.texi: Likewise.
47041         * doc/glibc-functions/mkstemps.texi: Likewise.
47043 2011-07-25  Bruno Haible  <bruno@clisp.org>
47045         fcntl: Move AC_LIBOBJ invocation to module description.
47046         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
47047         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
47049         fcntl: Remove call-in from fchdir.m4.
47050         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
47051         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
47053         dup3: Remove potential call-in from fchdir.m4.
47054         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
47055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
47057         dup2: Move AC_LIBOBJ invocation to module description.
47058         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
47059         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
47060         Don't invoke AC_LIBOBJ.
47061         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
47063         dup2: Remove call-in from fchdir.m4.
47064         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
47065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
47067         fclose: Move AC_LIBOBJ invocation to module description.
47068         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
47069         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
47070         to 1.
47071         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
47073         fclose: Remove call-in from close.m4.
47074         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
47075         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
47077         close: Move AC_LIBOBJ invocation to module description.
47078         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
47079         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
47080         1.
47081         * modules/close (configure.ac): Invoke AC_LIBOBJ.
47083         close: Remove call-in from fchdir.m4.
47084         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
47085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
47087         open: Move AC_LIBOBJ invocation to module description.
47088         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
47089         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
47090         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
47092         open: Remove call-in from fchdir.m4.
47093         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
47094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
47096         fchdir: Start to remove gl_REPLACE_* idiom.
47097         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
47098         (gl_FUNC_FCHDIR): Invoke it.
47100 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47102         * lib/ftell.c (ftell): Comment out cast.
47104         close: use gl_REPLACE_FCLOSE only if defined
47105         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
47106         is defined.  The close module doesn't depend on the fclose module
47107         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
47108         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
47109         I reproduced the problem with "./gnulib-tool --test close sys_socket".
47111 2011-07-24  Jim Meyering  <meyering@redhat.com>
47113         test-select.h: avoid warning when using gcc's -Wmissing-declarations
47114         * tests/test-select.h (test_function): Declare as "static".
47116 2011-07-24  Bruno Haible  <bruno@clisp.org>
47118         doc: Mention the effects of AC_SYS_LARGEFILE.
47119         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
47120         on this function.
47121         * doc/posix-functions/aio_error.texi: Likewise.
47122         * doc/posix-functions/aio_fsync.texi: Likewise.
47123         * doc/posix-functions/aio_read.texi: Likewise.
47124         * doc/posix-functions/aio_return.texi: Likewise.
47125         * doc/posix-functions/aio_suspend.texi: Likewise.
47126         * doc/posix-functions/aio_write.texi: Likewise.
47127         * doc/posix-functions/fgetpos.texi: Likewise.
47128         * doc/posix-functions/fopen.texi: Likewise.
47129         * doc/posix-functions/freopen.texi: Likewise.
47130         * doc/posix-functions/fsetpos.texi: Likewise.
47131         * doc/posix-functions/fstatvfs.texi: Likewise.
47132         * doc/posix-functions/ftruncate.texi: Likewise.
47133         * doc/posix-functions/ftw.texi: Likewise.
47134         * doc/posix-functions/getrlimit.texi: Likewise.
47135         * doc/posix-functions/glob.texi: Likewise.
47136         * doc/posix-functions/lio_listio.texi: Likewise.
47137         * doc/posix-functions/lockf.texi: Likewise.
47138         * doc/posix-functions/mkstemp.texi: Likewise.
47139         * doc/posix-functions/mmap.texi: Likewise.
47140         * doc/posix-functions/nftw.texi: Likewise.
47141         * doc/posix-functions/openat.texi: Likewise.
47142         * doc/posix-functions/opendir.texi: Likewise.
47143         * doc/posix-functions/posix_fadvise.texi: Likewise.
47144         * doc/posix-functions/posix_fallocate.texi: Likewise.
47145         * doc/posix-functions/pread.texi: Likewise.
47146         * doc/posix-functions/pwrite.texi: Likewise.
47147         * doc/posix-functions/readdir.texi: Likewise.
47148         * doc/posix-functions/readdir_r.texi: Likewise.
47149         * doc/posix-functions/rewinddir.texi: Likewise.
47150         * doc/posix-functions/scandir.texi: Likewise.
47151         * doc/posix-functions/seekdir.texi: Likewise.
47152         * doc/posix-functions/setrlimit.texi: Likewise.
47153         * doc/posix-functions/statvfs.texi: Likewise.
47154         * doc/posix-functions/telldir.texi: Likewise.
47155         * doc/posix-functions/tmpfile.texi: Likewise.
47156         * doc/posix-functions/truncate.texi: Likewise.
47157         * doc/glibc-functions/fallocate.texi: Likewise.
47158         * doc/glibc-functions/fstatfs.texi: Likewise.
47159         * doc/glibc-functions/fts_children.texi: Likewise.
47160         * doc/glibc-functions/fts_read.texi: Likewise.
47161         * doc/glibc-functions/getdirentries.texi: Likewise.
47162         * doc/glibc-functions/mkostemp.texi: Likewise.
47163         * doc/glibc-functions/mkostemps.texi: Likewise.
47164         * doc/glibc-functions/mkstemps.texi: Likewise.
47165         * doc/glibc-functions/preadv.texi: Likewise.
47166         * doc/glibc-functions/pwritev.texi: Likewise.
47167         * doc/glibc-functions/sendfile.texi: Likewise.
47168         * doc/glibc-functions/statfs.texi: Likewise.
47170 2011-07-24  Bruno Haible  <bruno@clisp.org>
47172         doc: Fix typo.
47173         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
47175 2011-07-24  Bruno Haible  <bruno@clisp.org>
47177         doc: Mention fsusage.
47178         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
47180 2011-07-24  Bruno Haible  <bruno@clisp.org>
47182         doc: Mention new glibc headers and functions.
47183         * doc/glibc-headers/gshadow.texi: New file.
47184         * doc/glibc-functions/endsgent.texi: New file.
47185         * doc/glibc-functions/fgetsgent.texi: New file.
47186         * doc/glibc-functions/fgetsgent_r.texi: New file.
47187         * doc/glibc-functions/getsgent.texi: New file.
47188         * doc/glibc-functions/getsgent_r.texi: New file.
47189         * doc/glibc-functions/getsgnam.texi: New file.
47190         * doc/glibc-functions/getsgnam_r.texi: New file.
47191         * doc/glibc-functions/putsgent.texi: New file.
47192         * doc/glibc-functions/setsgent.texi: New file.
47193         * doc/glibc-functions/sgetsgent.texi: New file.
47194         * doc/glibc-functions/sgetsgent_r.texi: New file.
47195         * doc/glibc-functions/malloc_info.texi: New file.
47196         * doc/glibc-functions/preadv.texi: New file.
47197         * doc/glibc-functions/pwritev.texi: New file.
47198         * doc/glibc-functions/register_printf_modifier.texi: New file.
47199         * doc/glibc-functions/register_printf_specifier.texi: New file.
47200         * doc/glibc-functions/register_printf_type.texi: New file.
47201         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
47202         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
47203         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
47204         * doc/glibc-functions/pthread_getname_np.texi: New file.
47205         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
47206         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
47207         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
47208         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
47209         * doc/glibc-functions/pthread_setname_np.texi: New file.
47210         * doc/glibc-functions/pthread_sigqueue.texi: New file.
47211         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
47212         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
47213         * doc/glibc-functions/qsort_r.texi: New file.
47214         * doc/glibc-functions/quick_exit.texi: New file.
47215         * doc/glibc-functions/syncfs.texi: New file.
47216         * doc/gnulib.texi: Include them.
47217         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
47218         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
47219         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
47220         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
47221         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
47222         * doc/glibc-functions/execvpe.texi: Likewise.
47224 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47226         ftell: don't include <unistd.h>
47227         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
47228         guaranteed to define off_t, and the ftell module depends on the
47229         stdio module.
47231         ftell: do not assume wraparound signed arithmetic
47232         * lib/ftell.c: Include <limits.h>.
47233         (ftell): Don't assume wraparound signed arithmetic.
47235 2011-07-24  Bruno Haible  <bruno@clisp.org>
47237         close: No longer depend on module 'fclose'.
47238         * modules/close (Depends-on): Remove fclose.
47239         * NEWS: Mention the change.
47240         Suggested by Sam Steingold <sds@gnu.org>.
47242 2011-07-24  Bruno Haible  <bruno@clisp.org>
47244         fsusage: Enable large volume support on AIX >= 5.2.
47245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
47246         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
47247         instead of STAT_STATVFS.
47248         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
47250         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
47251         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
47252         f_blocks field only on MacOS X.
47254         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
47255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
47256         * modules/fsusage (Depends-on): Add largefile.
47258 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47260         * README: Modernize discussion of signed integers.
47261         Assuming overflow wraparound is no longer safe.
47262         Mention ones' complement and signed magnitude.
47264 2011-07-22  Bruno Haible  <bruno@clisp.org>
47266         select tests, pselect tests: Refactor.
47267         * tests/test-select.h: New file, extracted from tests/test-select.c.
47268         (select_fn): New type.
47269         (test, do_select, do_select_nowait, do_select_wait, test_tty,
47270         test_connect_first, test_accept_first, test_pair, test_socket_pair,
47271         test_pipe): Add my_select argument.
47272         (test_function): Renamed from main. Add my_select argument.
47273         * tests/test-select.c: Move most code to tests/test-select.h. Include
47274         test-select.h.
47275         * modules/select-tests (Files): Add tests/test-select.h.
47276         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
47277         (my_select, main): New functions.
47278         * modules/pselect-tests (Files): Add tests/test-select.h,
47279         tests/macros.h, tests/signature.h.
47280         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
47281         (configure.ac): Check for <sys/wait.h>.
47283 2011-07-22  Bruno Haible  <bruno@clisp.org>
47285         sys_select tests: Check the signature of FD_*.
47286         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
47287         signature tests from here...
47288         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
47289         here.
47290         * modules/sys_select-tests (Files): Add tests/signature.h.
47292 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47294         largefile: new module, replacing large-inode
47295         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
47296         * MODULES.html.sh: Add largefile, remove large-inode.
47297         * modules/largefile, m4/largefile.m4: New files.
47298         * modules/large-inode, m4/large-inode.m4: Remove.
47300         fsusage: port to MacOS X 10.7 with 4 TiB file systems
47301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
47302         implementations that use only 32 bits to count blocks.
47303         On typical hosts with 1024-byte blocks, this fails with file
47304         systems as small as 4 TiB.  Problem reported by Herb Wartens
47305         <http://debbugs.gnu.org/9140> and this should also fix a similar
47306         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
47308         large-inode: New module
47309         * MODULES.html.sh: Add it.
47310         * modules/large-inode, m4/large-inode.m4: New files.
47312         extensions: Enable extensions on MacOS X 10.5 and later.
47313         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
47315 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
47317         file-has-acl: use acl_extended_file_nofollow if available
47318         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
47319         (acl_extended_file): New macro.
47320         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
47321         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
47323 2011-07-21  Bruno Haible  <bruno@clisp.org>
47325         Declare system functions in a way that works with C++.
47326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
47327         declare fdopendir as extern "C".
47328         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47329         declare frexpl as extern "C".
47330         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
47331         declare gai_strerror as extern "C".
47332         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
47333         programs, declare gai_strerror as extern "C".
47334         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
47335         declare getlogin_r as extern "C".
47336         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
47337         as extern "C".
47338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
47339         declare ldexpl as extern "C".
47340         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
47341         as extern "C".
47342         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
47343         program, declare getmntinfo as extern "C".
47344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
47345         stpncpy as extern "C".
47346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
47347         program, declare __xpg_strerror_r as extern "C".
47348         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
47349         strndup as extern "C".
47350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
47351         declare memset and bzero as extern "C".
47352         Reported by Sam Steingold <sds@gnu.org>.
47354 2011-07-12  Jim Meyering  <meyering@redhat.com>
47356         maint.mk: prohibit inclusion of "verify.h" without use
47357         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
47359 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47361         timer-time: A new module to check for timer_settime()
47362         * m4/timer_time.m4: Check for the posix function.
47363         * modules/timer-time: Add the new module.
47364         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
47365         Mention it.
47367 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
47368             Bruno Haible  <bruno@clisp.org>
47370         pthread_sigmask: assume POSIX threads if --avoid=threadlib
47371         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
47372         not defined, assume POSIX threads and look for pthread_sigmask in
47373         $LIBS, without changing $CPPFLAGS.
47375 2011-07-19  Bruno Haible  <bruno@clisp.org>
47377         strstr: Update cross-compilation guess.
47378         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
47379         CPUs, guess no, in view of glibc
47380         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47381         Suggested by Eric Blake. Reported by Reuben Thomas.
47383 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47385         getopt-gnu: suppress core dumps from detection code
47386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47387         to suppress core dumps that may well occur on glibc systems.
47388         * modules/getopt-gnu: Depend on nocrash.
47390 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47392         pthread_sigmask: ensure usleep is declared
47393         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47394         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47396 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47398         doc: Document NonStop portability issues.
47399         * doc/posix-functions/sigaction.texi (sigaction):
47400         * doc/posix-headers/signal.texi (signal.h):
47401         Document NonStop.  See Joachim Schmitz in
47402         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47404 2011-07-15  Bruno Haible  <bruno@clisp.org>
47406         ffsl, ffsll: Avoid unportable behaviour.
47407         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47409 2011-07-15  Bruno Haible  <bruno@clisp.org>
47411         ffs: More tests.
47412         * tests/test-ffs.c (NBITS): New macro.
47413         (main): Add more tests.
47414         * tests/test-ffsl.c (NBITS): New macro.
47415         (main): Add more tests.
47416         * tests/test-ffsll.c (NBITS): New macro.
47417         (main): Add more tests.
47419 2011-07-15  Eric Blake  <eblake@redhat.com>
47421         ffsl, ffsll: new modules
47422         * modules/ffsl: New file.
47423         * modules/ffsll: Likewise.
47424         * m4/ffsl.m4: Likewise.
47425         * m4/ffsll.m4: Likewise.
47426         * lib/ffsl.c: Likewise.
47427         * lib/ffsl.h: Likewise.
47428         * lib/ffsll.c: Likewise.
47429         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47430         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47431         * modules/string (Makefile.am): Substitute witnesses.
47432         * lib/strings.in.h (ffsl, ffsll): Declare.
47433         * modules/ffsl-tests: New test file.
47434         * modules/ffsll-tests: Likewise.
47435         * tests/test-ffsl.c: Likewise.
47436         * tests/test-ffsll.c: Likewise.
47437         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47438         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47439         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47441         ffs: fix m4 prerequisite
47442         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47444         ffs: avoid undefined behavior
47445         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47446         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47447         Reported by Bruno Haible.
47449 2011-07-12  Bruno Haible  <bruno@clisp.org>
47451         pthread_sigmask: Rely on module 'threadlib'.
47452         * modules/pthread_sigmask (Depends-on): Add threadlib.
47453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47454         is defined.
47456 2011-07-12  Bruno Haible  <bruno@clisp.org>
47458         regex: Depend on module 'strcase'.
47459         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47461 2011-07-12  Jim Meyering  <meyering@redhat.com>
47463         warn-on-use: fix typo in file name
47464         * modules/snippet/warn-on-use (Files): Correct file name:
47465         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47467 2011-07-12  Bruno Haible  <bruno@clisp.org>
47469         strings: Document module.
47470         * doc/posix-headers/strings.texi: Mention module 'strings'.
47472 2011-07-12  Bruno Haible  <bruno@clisp.org>
47474         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47475         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47476         (Files, Makefile.am): Update.
47477         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47478         * modules/stdlib (Depends-on): Update.
47480 2011-07-12  Bruno Haible  <bruno@clisp.org>
47482         * NEWS: Mention the changes.
47484         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47485         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47486         (Files, Makefile.am): Update.
47487         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47488         * modules/arpa_inet (Depends-on): Update.
47489         * modules/ctype (Depends-on): Update.
47490         * modules/dirent (Depends-on): Update.
47491         * modules/fcntl-h (Depends-on): Update.
47492         * modules/glob (Depends-on): Update.
47493         * modules/iconv-h (Depends-on): Update.
47494         * modules/inttypes-incomplete (Depends-on): Update.
47495         * modules/langinfo (Depends-on): Update.
47496         * modules/locale (Depends-on): Update.
47497         * modules/math (Depends-on): Update.
47498         * modules/netdb (Depends-on): Update.
47499         * modules/poll-h (Depends-on): Update.
47500         * modules/pty (Depends-on): Update.
47501         * modules/search (Depends-on): Update.
47502         * modules/signal (Depends-on): Update.
47503         * modules/spawn (Depends-on): Update.
47504         * modules/stdio (Depends-on): Update.
47505         * modules/stdlib (Depends-on): Update.
47506         * modules/string (Depends-on): Update.
47507         * modules/strings (Depends-on): Update.
47508         * modules/sys_file (Depends-on): Update.
47509         * modules/sys_ioctl (Depends-on): Update.
47510         * modules/sys_select (Depends-on): Update.
47511         * modules/sys_socket (Depends-on): Update.
47512         * modules/sys_stat (Depends-on): Update.
47513         * modules/sys_time (Depends-on): Update.
47514         * modules/sys_times (Depends-on): Update.
47515         * modules/sys_utsname (Depends-on): Update.
47516         * modules/sys_wait (Depends-on): Update.
47517         * modules/termios (Depends-on): Update.
47518         * modules/time (Depends-on): Update.
47519         * modules/unistd (Depends-on): Update.
47520         * modules/wchar (Depends-on): Update.
47521         * modules/wctype-h (Depends-on): Update.
47522         * MODULES.html.sh (Support for building libraries and executables):
47523         Update.
47525         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47526         * modules/snippet/unused-parameter: Renamed from
47527         modules/unused-parameter.
47528         (Files, Makefile.am): Update.
47529         * build-aux/snippet/unused-parameter.h: Renamed from
47530         build-aux/unused-parameter.h.
47531         * modules/selinux-h (Depends-on): Update.
47532         * modules/unistr/base (Depends-on): Update.
47533         * MODULES.html.sh (Core language properties): Update.
47535         Rename module 'link-warning' to 'snippet/link-warning'.
47536         * modules/snippet/link-warning: Renamed from modules/link-warning.
47537         (Files, Makefile.am): Update.
47538         * build-aux/snippet/link-warning.h: Renamed from
47539         build-aux/link-warning.h.
47540         * MODULES.html.sh (Support for building libraries and executables):
47541         Update.
47543         Rename module 'c++defs' to 'snippet/c++defs'.
47544         * modules/snippet/c++defs: Renamed from modules/c++defs.
47545         (Files, Makefile.am): Update.
47546         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47547         * modules/arpa_inet (Depends-on): Update.
47548         * modules/ctype (Depends-on): Update.
47549         * modules/dirent (Depends-on): Update.
47550         * modules/fcntl-h (Depends-on): Update.
47551         * modules/glob (Depends-on): Update.
47552         * modules/iconv-h (Depends-on): Update.
47553         * modules/langinfo (Depends-on): Update.
47554         * modules/locale (Depends-on): Update.
47555         * modules/math (Depends-on): Update.
47556         * modules/netdb (Depends-on): Update.
47557         * modules/poll-h (Depends-on): Update.
47558         * modules/pty (Depends-on): Update.
47559         * modules/search (Depends-on): Update.
47560         * modules/signal (Depends-on): Update.
47561         * modules/spawn (Depends-on): Update.
47562         * modules/stdio (Depends-on): Update.
47563         * modules/stdlib (Depends-on): Update.
47564         * modules/string (Depends-on): Update.
47565         * modules/strings (Depends-on): Update.
47566         * modules/sys_ioctl (Depends-on): Update.
47567         * modules/sys_select (Depends-on): Update.
47568         * modules/sys_socket (Depends-on): Update.
47569         * modules/sys_stat (Depends-on): Update.
47570         * modules/sys_time (Depends-on): Update.
47571         * modules/sys_wait (Depends-on): Update.
47572         * modules/termios (Depends-on): Update.
47573         * modules/time (Depends-on): Update.
47574         * modules/unistd (Depends-on): Update.
47575         * modules/wchar (Depends-on): Update.
47576         * modules/wctype-h (Depends-on): Update.
47578         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47579         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47580         (Files, Makefile.am): Update.
47581         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47582         * modules/argv-iter (Depends-on): Update.
47583         * modules/arpa_inet (Depends-on): Update.
47584         * modules/dirent (Depends-on): Update.
47585         * modules/fcntl-h (Depends-on): Update.
47586         * modules/fnmatch (Depends-on): Update.
47587         * modules/getopt-posix (Depends-on): Update.
47588         * modules/glob (Depends-on): Update.
47589         * modules/iconv-h (Depends-on): Update.
47590         * modules/inttypes-incomplete (Depends-on): Update.
47591         * modules/locale (Depends-on): Update.
47592         * modules/math (Depends-on): Update.
47593         * modules/netdb (Depends-on): Update.
47594         * modules/search (Depends-on): Update.
47595         * modules/signal (Depends-on): Update.
47596         * modules/spawn (Depends-on): Update.
47597         * modules/stdio (Depends-on): Update.
47598         * modules/stdlib (Depends-on): Update.
47599         * modules/string (Depends-on): Update.
47600         * modules/strings (Depends-on): Update.
47601         * modules/sys_socket (Depends-on): Update.
47602         * modules/sys_stat (Depends-on): Update.
47603         * modules/sys_time (Depends-on): Update.
47604         * modules/sys_times (Depends-on): Update.
47605         * modules/sys_utsname (Depends-on): Update.
47606         * modules/time (Depends-on): Update.
47607         * modules/unistd (Depends-on): Update.
47608         * modules/wchar (Depends-on): Update.
47609         * MODULES.html.sh (Support for building libraries and executables):
47610         Update.
47612 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47614         Improvements on _Noreturn and related modules.
47616         modules/_Exit-tests: test _Noreturn too
47617         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47618         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47619         (main): Use them.
47621         stdnoreturn, stdnoreturn-tests: remove modules
47622         They're not needed here and a bit premature for use elsewhere.  See
47623         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47624         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47625         * tests/test-stdnoreturn.c: Remove files.
47626         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47627         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47628         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47629         and using noreturn.
47630         * modules/openat, modules/sigpipe-die, modules/xalloc:
47631         * modules/xmemdup0, modules/xstrtol:
47632         Remove dependency on stdnoreturn.
47634         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47635         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47636         Reparenthesize to avoid GCC warning.
47637         Support Microsoft's syntax.
47638         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47640         _Noreturn-tests: remove module
47641         * modules/_Noreturn-tests: Remove.
47642         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47643         * tests/test-_Noreturn.c: Remove.
47644         * tests/test-stdnoreturn.c: Merge from the old
47645         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47647 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47649         _Noreturn, stdnoreturn, and related modules.
47651         * top/maint.mk: Adjust to new noreturn support.
47652         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47653         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47655         xalloc: use stdnoreturn.h
47656         * lib/xalloc.h: Include <stdnoreturn.h>.
47657         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47658         * modules/xalloc (Depends-on): Add stdnoreturn.
47660         xstrtol: use stdnoreturn.h
47661         * lib/xstrtol.h: Include <stdnoreturn.h>.
47662         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47663         * modules/xstrtol (Depends-on): Add stdnoreturn.
47665         xmemdup0: use stdnoreturn.h
47666         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47667         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47668         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47670         sigpipe-die: use stdnoreturn.h
47671         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47672         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47673         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47675         openat: use stdnoreturn.h
47676         * lib/openat.h: Include <stdnoreturn.h>.
47677         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47678         * modules/openat (Depends-on): Add stdnoreturn.
47680         * lib/openat-die.c (openat_save_fail): Modernize comment.
47682         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47684         * lib/glthread/thread.h: Modernize comment.
47686         obstack: use _Noreturn
47687         * lib/obstack.c (__attribute__): Remove macro.
47688         (print_and_abort): Use _Noreturn.
47690         c-stack: use _Noreturn
47691         * lib/c-stack.c (die, overflow_handler, segv_handler):
47692         Use _Noreturn rather than __attribute__((noreturn)).
47694         argmatch-tests, exclude_tests: use _Noreturn
47695         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47696         Remove.
47697         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47699         stdlib: use _Noreturn
47700         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47701         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47702         * modules/stdlib (Depends-on): Add _Noreturn.
47703         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47705         stdnoreturn-tests: new module
47706         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47708         stdnoreturn: new module
47709         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47710         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47712         _Noreturn-tests: new module
47713         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47715         _Noreturn: new module
47716         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47717         New section, mentioning it.
47718         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47720         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47722 2011-07-11  Eric Blake  <eblake@redhat.com>
47724         ffs: new module
47725         * modules/ffs: New file.
47726         * m4/ffs.m4: Likewise.
47727         * lib/ffs.c: Likewise.
47728         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47729         * modules/strings (Makefile.am): Substitute witness.
47730         (Depends-on): Add c++defs.
47731         * lib/strings.in.h (ffs): Declare.
47732         * modules/ffs-tests: New test file.
47733         * tests/test-ffs.c: Test new module.
47734         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47735         * doc/posix-functions/ffs.texi (ffs): Likewise.
47737         regex: avoid compiler warning
47738         * lib/regex.c (includes): Include <strings.h>, for use of
47739         strcasecmp in regcomp.c.
47740         Reported by Joachim Schmitz.
47742 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47744         stdint: respect system's intmax_t if INTMAX_MAX
47745         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47746         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47747         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47748         long but int64_t is long long, and where we will clash with the
47749         system intmax_t if we override it.  See
47750         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47751         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47752         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47753         similarly for UINTMAX_C.
47755 2011-07-08  Bruno Haible  <bruno@clisp.org>
47757         pthread_sigmask tests: Avoid a compiler warning.
47758         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47759         non-zero.
47761         sigprocmask tests: A better way to avoid a compiler warning.
47762         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47763         (main): Complain if system() returns non-zero.
47764         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47766 2011-07-08  Bruno Haible  <bruno@clisp.org>
47768         pthread_sigmask: Work around IRIX bug.
47769         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47770         bug.
47771         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47772         there may be unblocked pending signals.
47773         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47775 2011-07-08  Bruno Haible  <bruno@clisp.org>
47777         pthread_sigmask: Work around Cygwin bug.
47778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47779         bug.
47780         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47781         the system's pthread_sigmask function.
47782         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47784 2011-07-08  Bruno Haible  <bruno@clisp.org>
47786         pthread_sigmask: Work around bug in single-threaded implementation.
47787         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47788         FreeBSD, HP-UX, Solaris bug.
47789         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47790         * lib/pthread_sigmask.c: Include <stddef.h>.
47791         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47792         the system's pthread_sigmask function.
47793         * modules/pthread_sigmask (configure.ac): Invoke
47794         gl_PREREQ_PTHREAD_SIGMASK.
47795         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
47796         HP-UX, Solaris.
47798 2011-07-08  Eric Blake  <eblake@redhat.com>
47800         test-sigprocmask: avoid compiler warning
47801         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
47802         * tests/test-sigprocmask.c (main): Use it to silence warning.
47803         Reported by Jim Meyering.
47805         test-snprintf: avoid compiler warning
47806         * tests/test-snprintf.c (main): Avoid shadowed declaration.
47807         * tests/test-vsnprintf.c (main): Likewise.
47808         Reported by Jim Meyering.
47810 2011-07-08  Bruno Haible  <bruno@clisp.org>
47812         Tests for module 'pthread_sigmask'.
47813         * modules/pthread_sigmask-tests: New file.
47814         * tests/test-pthread_sigmask1.c: New file, based on
47815         tests/test-sigprocmask.c.
47816         * tests/test-pthread_sigmask2.c: New file.
47818 2011-07-08  Jim Meyering  <meyering@redhat.com>
47820         test-getopt.h: avoid warning about an unused variable
47821         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47823 2011-07-07  Jim Meyering  <meyering@redhat.com>
47825         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47826         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47827         now that it no longer contains leading TABs.
47828         Remove unused "url=FIXME" statement.
47830 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47832         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47834         When gl_THREADLIB is not in use, assume that the POSIX sematics
47835         are desired.  This is better for Emacs, which uses POSIX semantics
47836         on GNUish and/or POSIXish platforms, and does not use threads at
47837         all otherwise.
47839         pthread_sigmask: fix typo when testing for libraries
47840         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47841         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47843 2011-07-08  Eric Blake  <eblake@redhat.com>
47845         fts: introduce FTS_NOATIME
47846         * lib/fts_.h (FTS_NOATIME): New bit flag.
47847         (FTS_OPTIONMASK): Adjust.
47848         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47849         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47851 2011-07-08  Bruno Haible  <bruno@clisp.org>
47853         Tests for module 'thread'.
47854         * modules/thread-tests: New file.
47855         * tests/test-thread_self.c: New file.
47856         * tests/test-thread_create.cc: New file.
47858 2011-07-08  Bruno Haible  <bruno@clisp.org>
47860         thread: Avoid gcc warnings when using gl_thread_self().
47861         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47862         'void *'.
47863         (gl_thread_self_pointer): Update.
47865 2011-07-07  Bruno Haible  <bruno@clisp.org>
47867         signal-c++-tests: Check declaration of pthread_sigmask.
47868         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47869         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47870         $(LIB_PTHREAD_SIGMASK).
47872 2011-07-07  Bruno Haible  <bruno@clisp.org>
47874         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47875         * lib/signal.in.h (pthread_sigmask): Override if
47876         REPLACE_PTHREAD_SIGMASK is 1.
47877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47878         REPLACE_PTHREAD_SIGMASK.
47879         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47880         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47881         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47882         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47883         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47885 2011-07-07  Bruno Haible  <bruno@clisp.org>
47887         pthread_sigmask: Ensure declaration in <signal.h>.
47888         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47889         include <pthread.h>.
47890         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47891         problem.
47893 2011-07-07  Bruno Haible  <bruno@clisp.org>
47895         pthread_sigmask: Document the module.
47896         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47898 2011-07-07  Bruno Haible  <bruno@clisp.org>
47900         pthread_sigmask: Follow gnulib conventions.
47901         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47902         gl_PTHREAD_SIGMASK.
47903         * modules/pthread_sigmask (configure.ac): Update.
47905 2011-07-07  Bruno Haible  <bruno@clisp.org>
47907         pthread_sigmask: Make declaration C++ safe.
47908         * lib/signal.in.h: In two special conditions, just do an #include_next.
47909         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47910         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47911         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47912         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47913         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47914         not REPLACE_PTHREAD_MASK.
47915         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47916         not REPLACE_PTHREAD_MASK.
47917         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47919 2011-07-07  Bruno Haible  <bruno@clisp.org>
47921         pthread_sigmask: Fix return value.
47922         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47923         * lib/pthread_sigmask.c: New file.
47924         * modules/pthread_sigmask (Files): Add it.
47925         (configure.ac): Invoke AC_LIBOBJ.
47927 2011-07-07  Eric Blake  <eblake@redhat.com>
47929         getopt: more portable argv creation
47930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47931         const, use char arrays rather than strings.
47932         Suggested by Paul Eggert.
47934 2011-07-07  Bruno Haible  <bruno@clisp.org>
47936         Tests for module 'sigprocmask'.
47937         * modules/sigprocmask-tests: New file.
47938         * tests/test-sigprocmask.c: New file.
47940 2011-07-07  Bruno Haible  <bruno@clisp.org>
47942         float tests: Tweak.
47943         * tests/test-float.c (main): Tweak skip message.
47945 2011-07-07  Eric Blake  <eblake@redhat.com>
47947         getopt: avoid compiler warning during configure
47948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47949         assigning string literals to non-const pointer.
47951         getopt-gnu: avoid crash in glibc getopt
47952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47953         * tests/test-getopt.h (test_getopt): Enhance test.
47954         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47955         * doc/posix-functions/getopt.texi (getopt): Document it.
47956         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47957         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47958         Likewise.
47960 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47962         getopt: handle W; without long options in getopt [BZ #12922]
47963         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47964         but no long options are defined, just return 'W'.
47966 2011-07-07  Bruno Haible  <bruno@clisp.org>
47968         Avoid literal tabs.
47969         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47970         variable containing a tab instead of a literal tab.
47971         Reported by Jim Meyering.
47973 2011-07-07  Bruno Haible  <bruno@clisp.org>
47975         Comments.
47976         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47978 2011-07-06  Bruno Haible  <bruno@clisp.org>
47980         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47981         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47982         <winsock2.h>.
47983         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47984         lib/sys_socket.in.h.
47985         (close, gethostname): Hide declarations from <winsock2.h>.
47986         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47987         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47988         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47989         (select): Don't override if gnulib's <sys/select.h> was already
47990         included.
47991         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47992         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47993         setsockopt, shutdown, select): Tweak indentation.
47995 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47997         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47998         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47999         in an application that does not use the sys_select module.
48001 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
48003         poll: do not return 0 on timeout=-1
48004         * lib/poll.c: Loop with yield if no events occurred.
48006 2011-07-06  Eric Blake  <eblake@redhat.com>
48008         pthread_sigmask: always replace when not using pthread
48009         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
48010         replacement when using some threading other than pthread.  Fix
48011         logic bug.
48013 2011-07-06  Bruno Haible  <bruno@clisp.org>
48015         Comments.
48016         * m4/printf.m4: Update comments about mingw.
48018 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48020         sys_select: define sigset_t more portably
48021         * lib/sys_select.in.h: Always include <sys/types.h>, since
48022         we now need sigset_t and mingw defines it there.
48023         Include <signal.h> before split inclusion guard, to avoid
48024         mishaps on Solaris, whose <signal.h> eventually includes us.
48025         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
48026         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
48027         which come from ...
48028         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48029         gl_CHECK_TYPE_SIGSET_T.
48030         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
48031         does the real work.
48032         * modules/sys_select (Depends-on): Add 'signal'.
48034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
48035         Suggested by Bruno Haible.
48037         pselect: Use pthread_sigmask, not sigprocmask.
48038         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
48039         multithreaded apps better than sigprocmask does.
48040         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
48041         sigprocmask directly.
48043 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48045         * lib/pselect.c (pselect): Use plain name, without "rpl_".
48046         Don't #undef,  since we don't need any underlying pselect.
48047         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
48048         (Depends-on): Add select.
48049         (Link): Add $(LIBSOCKET).
48050         These changes suggested by Bruno Haible.
48052         pselect: document better
48053         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48054         * doc/posix-functions/pselect.texi (pselect): Document new module.
48056         pthread_sigmask: new module
48057         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48058         * doc/posix-functions/pthread_sigmask.texi: Document new module.
48059         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
48060         This is done only as a macro; I don't know how well that'll
48061         work for C++.  Move <sys/types.h> include before the include_next,
48062         to avoid mishap on Solaris.
48063         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
48064         * modules/signal (Makefile.am): Substitute the check's results.
48065         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
48067         test-pselect: new module
48068         * modules/pselect-tests, tests/test-pselect.c: New files.
48069         * tests/test-select.c, tests/test-sys_select-c++.cc:
48070         If TEST_PSELECT is defined, test pselect instead of testing select.
48072         * tests/test-sys_select.c (sigset_t): Test for it, too.
48073         Suggested by Bruno Haible.
48075 2011-07-05  Eric Blake  <eblake@redhat.com>
48077         snprintf: guarantee %1$d, for libintl
48078         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
48079         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48080         * doc/posix-functions/snprintf.texi (snprintf): Update.
48081         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48082         * tests/test-snprintf.c (main): Enhance test.
48083         * tests/test-vsnprintf.c (main): Likewise.
48085 2011-07-05  Jim Meyering  <meyering@redhat.com>
48087         maint: exempt stdio-read.c and stdio-write.c from the cppi check
48088         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
48089         per Bruno's request, to accommodate this idiom (no space after "#")
48090         even when the function is inside an #if block:
48091         char *
48092         gets (char *s)
48093         #undef gets
48094         {
48095           ...
48096         }
48098 2011-07-04  Jim Meyering  <meyering@redhat.com>
48100         maint: indent with spaces, not TABs, and add a rule to check this
48101         * tests/test-userspec.c: Indent with spaces, not TABs.
48102         * tests/test-argp.c: Likewise.
48103         * tests/test-c-stack2.sh: Likewise.
48104         * tests/test-parse-duration.sh: Likewise
48105         * m4/strtod.m4: Likewise.
48106         * m4/alloca.m4: Likewise.
48107         * m4/pselect.m4: Likewise.
48108         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
48110 2011-07-03  Jim Meyering  <meyering@redhat.com>
48112         maint.mk: correct omissions in prohibit_argmatch_without_use check
48113         This rule would mistakenly report that argmatch.h is included without
48114         use even when both the argmatch and invalid_arg macro were used.
48115         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
48116         of argmatch and invalid_arg.
48118 2011-07-03  Bruno Haible  <bruno@clisp.org>
48120         Comments about EINTR.
48121         * lib/safe-read.h: Explain the purpose of this module.
48122         * lib/safe-write.h: Likewise.
48123         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
48124         module.
48125         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
48126         module.
48127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48129 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48131         xnanosleep: Rewrite to use new dtotimespec module.
48132         It has the conversion code that used to be in xnanosleep.
48133         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
48134         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
48135         (TIME_T_MAX): Remove.
48136         (xnanosleep): Rewrite in terms of dtotimespec.
48137         * modules/xnanosleep (Depends-on): Add dtotimespec.
48138         Remove intprops, stdbool.
48140         timespec-add, timespec-sub: new modules
48141         * lib/timespec.h (timespec_add, timespec_sub): New decls.
48142         * lib/timespec-add.c, lib/timespec-sub.c:
48143         * modules/timespec-add, modules/timespec-sub: New files.
48145         dtotimespec: new module
48146         * lib/timespec.h (dtotimespec): New decl.
48147         * lib/dtotimespec.c, modules/dtotimespec: New files.
48149         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
48151         pselect: new module
48152         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
48153         (pselect): New decls.
48154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
48155         since the standard pselect decl uses 'restrict'.
48156         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
48157         HAVE_PSELECT, REPLACE_PSELECT.
48158         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
48159         HAVE_PSELECT, REPLACE_PSELECT.
48160         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
48162         sys_select: don't depend on sys_socket
48163         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
48164         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
48165         This fix works on GNU and GNU-like platforms, but has not been tested
48166         on native Windows.
48167         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
48168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
48169         gl_HEADER_SYS_SOCKET.
48170         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
48171         gl_PREREQ_SYS_H_WINSOCK2.
48173 2011-06-29  Eric Blake  <eblake@redhat.com>
48175         pipe2: fix C89 compile problem
48176         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
48177         Reported by Bruno Haible.
48179         pipe, pipe2: don't corrupt fd on error
48180         * lib/pipe.c (pipe): Leave fd unchanged on error.
48181         * lib/pipe2.c (pipe2): Likewise.
48182         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
48183         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48185 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
48187         mmap-anon: do not use regular expressions inadvertently
48188         * m4/mmap-anon.m4: Remove trailing period from strings sought
48189         in the output.
48191 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
48193         nanosleep: fix integer overflow problem
48194         * lib/nanosleep.c (my_usleep): Don't assume signed integer
48195         arithmetic wraps around on overflow.
48197         nanosleep: simplify carrying
48198         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
48199         first call to the underyling nanosleep, not for the last one.
48200         This doesn't fix any bugs, but it simplifies the computation of
48201         the remaining delay.  Found while auditing integer overflow issues.
48203         dup2: remove test for existence of fcntl
48204         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
48205         "#if HAVE_FCNTL", in the configure-time test program.
48206         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
48207         and therefore speeds up "configure" a bit.  Found while
48208         adding the dup2 module to Emacs.
48210 2011-06-24  Eric Blake  <eblake@redhat.com>
48212         maint.mk: enhance useless header checks
48213         * top/maint.mk (_sc_header_without_use): Check both include
48214         styles.
48215         (sc_prohibit_assert_without_use)
48216         (sc_prohibit_close_stream_without_use)
48217         (sc_prohibit_getopt_without_use)
48218         (sc_prohibit_quotearg_without_use)
48219         (sc_prohibit_quote_without_use)
48220         (sc_prohibit_long_options_without_use)
48221         (sc_prohibit_inttostr_without_use)
48222         (sc_prohibit_ignore_value_without_use)
48223         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
48224         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
48225         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
48226         (sc_prohibit_hash_pjw_without_use)
48227         (sc_prohibit_safe_read_without_use)
48228         (sc_prohibit_argmatch_without_use)
48229         (sc_prohibit_canonicalize_without_use)
48230         (sc_prohibit_root_dev_ino_without_use)
48231         (sc_prohibit_openat_without_use)
48232         (sc_prohibit_c_ctype_without_use)
48233         (sc_prohibit_signal_without_use)
48234         (sc_prohibit_stdio--_without_use)
48235         (sc_prohibit_stdio-safer_without_use)
48236         (sc_prohibit_strings_without_use)
48237         (sc_prohibit_intprops_without_use)
48238         (sc_prohibit_stddef_without_use)
48239         (sc_prohibit_xfreopen_without_use): Update clients.
48241 2011-06-24  Jim Meyering  <meyering@redhat.com>
48243         syntax-check: keep one maint.mk rule in sync with its header
48244         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
48245         of the bug Eric has just fixed, with today's commit 25e4c2ec.
48246         I prefer to avoid temporary files here, so use <(...), but that
48247         is not supported by /bin/sh, so...
48248         (SHELL): Define to /bin/bash.
48250 2011-06-24  Eric Blake  <eblake@redhat.com>
48252         maint.mk: update sc_prohibit_intprops_without_use
48253         * top/maint.mk (_intprops_names): Match recent changes.
48255 2011-06-24  Bruno Haible  <bruno@clisp.org>
48257         strerror-override: No-op tweak.
48258         * lib/strerror-override.h (strerror_override): Reorder conditions,
48259         for consistency with lib/strerror-override.c.
48261 2011-06-23  Eric Blake  <eblake@redhat.com>
48263         maint.mk: test further PATH_MAX issues
48264         * top/maint.mk (sc_prohibit_path_max_array): Rename...
48265         (sc_prohibit_path_max_allocation): ...and also test alloca.
48266         Suggested by Jim Meyering.
48268 2011-06-22  Eric Blake  <eblake@redhat.com>
48270         maint.mk: add syntax-check to avoid char[PATH_MAX]
48271         * top/maint.mk (sc_prohibit_path_max_array): New rule.
48273         stat: be robust to PATH_MAX definition
48274         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
48275         * modules/stat (Depends-on): Add verify.
48277         link: work around IRIX bug
48278         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
48279         * lib/link.c (rpl_link): Work around it.
48280         * tests/test-link.h (test_link): Enhance test.
48281         * doc/posix-functions/link.texi (link): Document the bug.
48283         getopt: silence clang warning
48284         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
48285         dereference.
48286         Reported by Gustavo Martin Domato.
48288 2011-06-22  Jim Meyering  <meyering@redhat.com>
48290         bootstrap: do not insert a blank line into each .gitignore file
48291         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
48293 2011-06-21  Eric Blake  <eblake@redhat.com>
48295         perror: test for output mismatch
48296         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
48297         perror on IRIX.
48299         strerror_r: fix OpenBSD behavior on out-of-range
48300         * lib/strerror_r.c (strerror_r): Always use maximal string.
48301         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
48303         strerror_r: fix OpenBSD behavior on 0
48304         * lib/strerror-override.c (strerror_override): Also override 0
48305         when needed.
48306         * lib/strerror-override.h (strerror_override): Likewise.
48307         * lib/strerror.c (strerror): Simplify, now that 0 override is done
48308         earlier.
48309         * lib/strerror_r.c (strerror_r): Likewise.
48310         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
48311         behavior...
48312         (gl_FUNC_STRERROR_0): ...into new macro.
48313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
48314         is overridden.
48315         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
48316         * modules/strerror-override (Files): Add strerror.m4.
48317         (configure.ac): Also provide override for 0 when needed.
48318         * doc/posix-functions/strerror.texi (strerror): Document this.
48319         * doc/posix-functions/perror.texi (perror): Likewise.
48321         perror: adjust array size
48322         * modules/perror (Depends-on): Add strerror-override.
48323         * lib/perror.c (perror): Use it to avoid magic number.
48325         strerror-override: reduce size
48326         * lib/strerror-override.c (strerror_override): Use fewer lines.
48328 2011-06-20  Bruno Haible  <bruno@clisp.org>
48330         pathmax: Ensure correct value for PATH_MAX on HP-UX.
48331         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
48333 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48335         alloca: port to compilers that can optimize like GCC 4.6.0
48336         * lib/alloca.c (find_stack_direction): New signature, taken from
48337         Autoconf git.  This works with GCC 4.6.0.  This code should never
48338         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
48339         be used with other compilers that optimize as well as GCC 4.6.0 does.
48340         (alloca): Adjust to new signature.
48341         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
48342         New macro, which patches Autoconf in a similar way.
48344         c-stack: stop worrying about stack direction
48345         * lib/c-stack.c (find_stack_direction): Remove.
48346         (segv_handler): Don't worry about stack direction growth, as it's
48347         too much of a pain to configure this correctly, given how compilers
48348         are optimizing-away our stack-growth detection code.  Instead, assume
48349         that any access to just before or just after the stack is OK.
48350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48351         Don't require AC_FUNC_ALLOCA; no longer needed.
48353 2011-06-20  Eric Blake  <eblake@redhat.com>
48355         test-stat: don't allocate PATH_MAX bytes
48356         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
48357         PATH_MAX-sized buffer.
48358         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
48359         * modules/stat-tests (Depends-on): Likewise.
48360         * tests/test-fstatat.c (includes): Drop pathmax.h.
48361         * tests/test-stat.c (includes): Likewise.
48362         Reported by Bruno Haible.
48364 2011-06-20  Bruno Haible  <bruno@clisp.org>
48366         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
48367         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
48368         * lib/float.c: New file.
48369         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
48370         REPLACE_FLOAT_LDBL.
48371         * modules/float (Files): Add lib/float.c.
48372         (configure.ac): Invoke AC_LIBOBJ.
48373         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
48375 2011-06-20  Bruno Haible  <bruno@clisp.org>
48377         Tests for module 'float'.
48378         * modules/float-tests: New file.
48379         * tests/test-float.c: New file.
48381 2011-06-19  Bruno Haible  <bruno@clisp.org>
48383         isinf: Coding style.
48384         * lib/isinf.c: Use GNU coding style.
48386 2011-06-19  Bruno Haible  <bruno@clisp.org>
48388         linkat test: Avoid test failure on AIX 7.1.
48389         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48390         * tests/test-link.h (test_link): Likewise.
48392 2011-06-19  Bruno Haible  <bruno@clisp.org>
48394         pread test: Avoid test failure on OpenBSD 4.9.
48395         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48397 2011-06-19  Bruno Haible  <bruno@clisp.org>
48399         sprintf-posix: Fix test failure on AIX 7.1.
48400         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48401         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48402         on AIX.
48403         * doc/posix-functions/fprintf.texi: Likewise.
48404         * doc/posix-functions/printf.texi: Likewise.
48405         * doc/posix-functions/snprintf.texi: Likewise.
48406         * doc/posix-functions/sprintf.texi: Likewise.
48407         * doc/posix-functions/vdprintf.texi: Likewise.
48408         * doc/posix-functions/vfprintf.texi: Likewise.
48409         * doc/posix-functions/vprintf.texi: Likewise.
48410         * doc/posix-functions/vsnprintf.texi: Likewise.
48411         * doc/posix-functions/vsprintf.texi: Likewise.
48413 2011-06-19  Bruno Haible  <bruno@clisp.org>
48415         roundl-ieee: Fix test failure on AIX 7.1.
48416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48417         * doc/posix-functions/roundl.texi: Mention problem with negative
48418         arguments.
48420 2011-06-19  Bruno Haible  <bruno@clisp.org>
48422         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48423         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48424         * doc/posix-functions/round.texi: Mention problem with negative
48425         arguments.
48426         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48428 2011-06-19  Bruno Haible  <bruno@clisp.org>
48430         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48432         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48433         * doc/posix-functions/roundf.texi: Mention problem with negative
48434         arguments.
48435         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48437 2011-06-19  Bruno Haible  <bruno@clisp.org>
48439         ceilf-ieee: Work around bug on MacOS X 10.5.
48440         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48442         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48443         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48444         IEEE compliant, avoid compiler optimizations.
48445         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48446         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48447         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48448         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48450         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48452         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48453         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48454         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48456 2011-06-19  Bruno Haible  <bruno@clisp.org>
48458         ceilf-ieee: Work around bug on AIX 7.1.
48459         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48460         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48462 2011-06-19  Bruno Haible  <bruno@clisp.org>
48464         ceil-ieee: Work around bug on AIX 7.1.
48465         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48466         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48468 2011-06-18  Bruno Haible  <bruno@clisp.org>
48470         fsync test: Avoid test failure on MacOS X and AIX.
48471         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48472         EINVAL.
48474 2011-06-18  Bruno Haible  <bruno@clisp.org>
48476         openat, fdopendir tests: Fix link errors.
48477         * modules/openat-tests (Depends-on): Add progname.
48478         * modules/fdopendir-tests (Depends-on): Likewise.
48479         * tests/test-fchownat.c: Include progname.h.
48480         (main): Call set_program_name.
48481         * tests/test-fstatat.c: Include progname.h.
48482         (main): Call set_program_name.
48483         * tests/test-mkdirat.c: Include progname.h.
48484         (main): Call set_program_name.
48485         * tests/test-openat.c: Include progname.h.
48486         (main): Call set_program_name.
48487         * tests/test-unlinkat.c: Include progname.h.
48488         (main): Call set_program_name.
48489         * tests/test-fdopendir.c: Include progname.h.
48490         (main): Call set_program_name.
48492 2011-06-18  Bruno Haible  <bruno@clisp.org>
48494         Doc update.
48495         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48496         HP-UX.
48497         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48499 2011-06-18  Bruno Haible  <bruno@clisp.org>
48501         getcwd tests: Avoid compilation error on HP-UX 11.31.
48502         * modules/getcwd-tests (Depends-on): Add pathmax.
48503         * tests/test-getcwd.c: Include pathmax.h.
48505 2011-06-18  Bruno Haible  <bruno@clisp.org>
48507         isfinite, isinf: Fix link error on AIX 6 and 7.
48508         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48509         needed, also test the macro with a 'float' argument.
48510         * m4/isinf.m4 (gl_ISINF): Likewise.
48512 2011-06-18  Bruno Haible  <bruno@clisp.org>
48514         getloadavg: Don't clobber LIBS. Regression from previous commit.
48515         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48516         AC_CHECK_LIB from here...
48517         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48518         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48519         gl_func_getloadavg_done.
48520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48522 2011-06-18  Bruno Haible  <bruno@clisp.org>
48524         clean-temp: Improve documentation.
48525         * lib/clean-temp.h: Explain better how to use this module.
48526         Reported by John Darrington <john@darrington.wattle.id.au>.
48528 2011-06-17  Bruno Haible  <bruno@clisp.org>
48530         pread, pwrite: Avoid cc warning on AIX.
48531         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48532         (pwrite): Likewise.
48534 2011-06-17  Bruno Haible  <bruno@clisp.org>
48536         spawn-pipe tests: Fix link error.
48537         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48540 2011-06-17  Bruno Haible  <bruno@clisp.org>
48542         Tests: Remove unnecessary dependency.
48543         * modules/canonicalize-tests (Depends-on): Remove progname.
48544         * modules/chown-tests (Depends-on): Likewise.
48545         * modules/dirname-tests (Depends-on): Likewise.
48546         * modules/fdopendir-tests (Depends-on): Likewise.
48547         * modules/fdutimensat-tests (Depends-on): Likewise.
48548         * modules/hash-tests (Depends-on): Likewise.
48549         * modules/lchown-tests (Depends-on): Likewise.
48550         * modules/linkat-tests (Depends-on): Likewise.
48551         * modules/renameat-tests (Depends-on): Likewise.
48552         * modules/spawn-pipe-tests (Depends-on): Likewise.
48553         * modules/utimensat-tests (Depends-on): Likewise.
48555 2011-06-17  Bruno Haible  <bruno@clisp.org>
48557         spawn-pipe tests: Fix link error.
48558         * tests/test-spawn-pipe-child.c: Undefine fflush.
48560 2011-06-17  Bruno Haible  <bruno@clisp.org>
48562         Fix tests link errors.
48563         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48564         * modules/chown-tests (Makefile.am): Don't link test-chown with
48565         LIBINTL.
48566         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48567         LIBINTL.
48568         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48569         LIBINTL.
48570         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48571         LIBINTL.
48573 2011-06-16  Bruno Haible  <bruno@clisp.org>
48575         crypto/gc-sha1: Fix recent regression.
48576         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48577         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48579         crypto/gc-md5: Fix recent regression.
48580         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48582         crypto/gc-md4: Fix recent regression.
48583         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48584         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48586         crypto/gc-arctwo: Fix recent regression.
48587         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48588         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48590         crypto/gc-rijndael: Fix recent regression.
48591         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48592         (configure.ac): Invoke AC_LIBOBJ here.
48593         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48596         crypto/gc-hmac-sha1: Fix recent regression.
48597         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48598         (configure.ac): Invoke AC_LIBOBJ here.
48599         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48602         crypto/gc-hmac-md5: Fix recent regression.
48603         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48604         (configure.ac): Invoke AC_LIBOBJ here.
48605         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48608         crypto/gc-des: Fix recent regression.
48609         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48610         (configure.ac): Invoke AC_LIBOBJ here.
48611         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48614         crypto/gc-arcfour: Fix recent regression.
48615         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48616         (configure.ac): Invoke AC_LIBOBJ here.
48617         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48620 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48622         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48623         After the 2011-05-21 change, this macro requires
48624         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48625         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48627 2011-06-16  Bruno Haible  <bruno@clisp.org>
48629         fprintftime: Move AC_LIBOBJ invocations to module description.
48630         * m4/fprintftime.m4: Remove file.
48631         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48632         (configure.ac): Remove gl_FPRINTFTIME call.
48633         (Makefile.am): Augment lib_SOURCES.
48634         Reported by Jim Meyering.
48636 2011-06-16  Bruno Haible  <bruno@clisp.org>
48638         tmpfile-safer: Finish 2011-05-23 commit.
48639         * m4/stdio-safer.m4: Really remove file.
48640         Reported by Jim Meyering.
48642 2011-06-16  Bruno Haible  <bruno@clisp.org>
48644         syntax-check: Fix typo.
48645         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48646         printf-posix.m4.
48647         Reported by Jim Meyering.
48649 2011-06-13  Jim Meyering  <meyering@redhat.com>
48651         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48652         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48654 2011-05-23  Bruno Haible  <bruno@clisp.org>
48656         yesno: Move AC_LIBOBJ invocations to module description.
48657         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48658         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48660 2011-05-23  Bruno Haible  <bruno@clisp.org>
48662         xstrtol: Move AC_LIBOBJ invocations to module description.
48663         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48664         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48666 2011-05-23  Bruno Haible  <bruno@clisp.org>
48668         xstrtold: Move AC_LIBOBJ invocations to module description.
48669         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48670         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48672 2011-05-23  Bruno Haible  <bruno@clisp.org>
48674         xstrtod: Move AC_LIBOBJ invocations to module description.
48675         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48676         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48678 2011-05-23  Bruno Haible  <bruno@clisp.org>
48680         xnanosleep: Move AC_LIBOBJ invocations to module description.
48681         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48682         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48684 2011-05-23  Bruno Haible  <bruno@clisp.org>
48686         xgetcwd: Move AC_LIBOBJ invocations to module description.
48687         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48688         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48690 2011-05-23  Bruno Haible  <bruno@clisp.org>
48692         xalloc: Move AC_LIBOBJ invocations to module description.
48693         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48694         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48696 2011-05-23  Bruno Haible  <bruno@clisp.org>
48698         write-any-file: Move AC_LIBOBJ invocations to module description.
48699         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48700         invocation.
48701         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48703 2011-05-23  Bruno Haible  <bruno@clisp.org>
48705         utimens: Move AC_LIBOBJ invocations to module description.
48706         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48707         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48709 2011-05-23  Bruno Haible  <bruno@clisp.org>
48711         utimecmp: Move AC_LIBOBJ invocations to module description.
48712         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48713         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48715 2011-05-23  Bruno Haible  <bruno@clisp.org>
48717         userspec: Move AC_LIBOBJ invocations to module description.
48718         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48719         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48721 2011-05-23  Bruno Haible  <bruno@clisp.org>
48723         unlinkdir: Move AC_LIBOBJ invocations to module description.
48724         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48725         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48727 2011-05-23  Bruno Haible  <bruno@clisp.org>
48729         unistd-safer: Move AC_LIBOBJ invocations to module description.
48730         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48731         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48733 2011-05-23  Bruno Haible  <bruno@clisp.org>
48735         tempname: Move AC_LIBOBJ invocations to module description.
48736         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48737         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48739 2011-05-23  Bruno Haible  <bruno@clisp.org>
48741         strftime: Move AC_LIBOBJ invocations to module description.
48742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48743         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48745 2011-05-23  Bruno Haible  <bruno@clisp.org>
48747         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48748         * m4/stdlib-safer.m4: Remove file.
48749         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48750         (configure.ac): Remove gl_STDLIB_SAFER call.
48751         (Makefile.am): Augment lib_SOURCES.
48753 2011-05-23  Bruno Haible  <bruno@clisp.org>
48755         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48756         * m4/stdio-safer.m4: Remove file.
48757         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48758         (configure.ac): Remove gl_TMPFILE_SAFER call.
48759         (Makefile.am): Augment lib_SOURCES.
48761 2011-05-23  Bruno Haible  <bruno@clisp.org>
48763         popen-safer: Move AC_LIBOBJ invocations to module description.
48764         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48765         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48766         (configure.ac): Remove gl_POPEN_SAFER call.
48767         (Makefile.am): Augment lib_SOURCES.
48769 2011-05-23  Bruno Haible  <bruno@clisp.org>
48771         freopen-safer: Move AC_LIBOBJ invocations to module description.
48772         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48773         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48774         (configure.ac): Remove gl_FREOPEN_SAFER call.
48775         (Makefile.am): Augment lib_SOURCES.
48777 2011-05-23  Bruno Haible  <bruno@clisp.org>
48779         fopen-safer: Move AC_LIBOBJ invocations to module description.
48780         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48781         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48782         (configure.ac): Remove gl_FOPEN_SAFER call.
48783         (Makefile.am): Augment lib_SOURCES.
48785 2011-05-23  Bruno Haible  <bruno@clisp.org>
48787         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48788         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48789         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48791 2011-05-23  Bruno Haible  <bruno@clisp.org>
48793         crypto/sha256: Move AC_LIBOBJ invocations to module description.
48794         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
48795         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
48797 2011-05-23  Bruno Haible  <bruno@clisp.org>
48799         crypto/sha1: Move AC_LIBOBJ invocations to module description.
48800         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
48801         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
48803 2011-05-23  Bruno Haible  <bruno@clisp.org>
48805         settime: Move AC_LIBOBJ invocations to module description.
48806         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
48807         * modules/settime (Makefile.am): Augment lib_SOURCES.
48809 2011-05-23  Bruno Haible  <bruno@clisp.org>
48811         savedir: Move AC_LIBOBJ invocations to module description.
48812         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
48813         * modules/savedir (Makefile.am): Augment lib_SOURCES.
48815 2011-05-23  Bruno Haible  <bruno@clisp.org>
48817         save-cwd: Move AC_LIBOBJ invocations to module description.
48818         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48819         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48821 2011-05-23  Bruno Haible  <bruno@clisp.org>
48823         same: Move AC_LIBOBJ invocations to module description.
48824         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48825         * modules/same (Makefile.am): Augment lib_SOURCES.
48827 2011-05-23  Bruno Haible  <bruno@clisp.org>
48829         safe-write: Move AC_LIBOBJ invocations to module description.
48830         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48831         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48832         instead of gl_SAFE_WRITE.
48833         (Makefile.am): Augment lib_SOURCES.
48835 2011-05-23  Bruno Haible  <bruno@clisp.org>
48837         safe-read: Move AC_LIBOBJ invocations to module description.
48838         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48839         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48840         of gl_SAFE_READ.
48841         (Makefile.am): Augment lib_SOURCES.
48843 2011-05-23  Bruno Haible  <bruno@clisp.org>
48845         safe-alloc: Move AC_LIBOBJ invocations to module description.
48846         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48847         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48849 2011-05-23  Bruno Haible  <bruno@clisp.org>
48851         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48852         * m4/rijndael.m4: Remove file.
48853         * modules/crypto/rijndael (Files): Remove it.
48854         (configure.ac): Remove gl_RIJNDAEL call.
48855         (Makefile.am): Augment lib_SOURCES.
48857 2011-05-23  Bruno Haible  <bruno@clisp.org>
48859         readtokens: Move AC_LIBOBJ invocations to module description.
48860         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48861         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48863 2011-05-23  Bruno Haible  <bruno@clisp.org>
48865         read-file: Move AC_LIBOBJ invocations to module description.
48866         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48867         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48868         of gl_FUNC_READ_FILE.
48869         (Makefile.am): Augment lib_SOURCES.
48871 2011-05-23  Bruno Haible  <bruno@clisp.org>
48873         quotearg: Move AC_LIBOBJ invocations to module description.
48874         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48875         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48877 2011-05-23  Bruno Haible  <bruno@clisp.org>
48879         quote: Move AC_LIBOBJ invocations to module description.
48880         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48881         * modules/quote (Makefile.am): Augment lib_SOURCES.
48883 2011-05-23  Bruno Haible  <bruno@clisp.org>
48885         posixver: Move AC_LIBOBJ invocations to module description.
48886         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48887         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48889 2011-05-23  Bruno Haible  <bruno@clisp.org>
48891         posixtm: Move AC_LIBOBJ invocations to module description.
48892         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48893         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48895 2011-05-23  Bruno Haible  <bruno@clisp.org>
48897         physmem: Move AC_LIBOBJ invocations to module description.
48898         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48899         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48901 2011-05-23  Bruno Haible  <bruno@clisp.org>
48903         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48904         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48905         invocation.
48906         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48908 2011-05-23  Bruno Haible  <bruno@clisp.org>
48910         mpsort: Move AC_LIBOBJ invocations to module description.
48911         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48912         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48914 2011-05-23  Bruno Haible  <bruno@clisp.org>
48916         modechange: Move AC_LIBOBJ invocations to module description.
48917         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48918         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48920 2011-05-23  Bruno Haible  <bruno@clisp.org>
48922         mkdir-p: Move AC_LIBOBJ invocations to module description.
48923         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48924         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48926 2011-05-23  Bruno Haible  <bruno@clisp.org>
48928         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48929         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48930         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48932 2011-05-23  Bruno Haible  <bruno@clisp.org>
48934         mgetgroups: Move AC_LIBOBJ invocations to module description.
48935         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48936         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48938 2011-05-23  Bruno Haible  <bruno@clisp.org>
48940         memxor: Move AC_LIBOBJ invocations to module description.
48941         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48942         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48944 2011-05-23  Bruno Haible  <bruno@clisp.org>
48946         memcoll: Move AC_LIBOBJ invocations to module description.
48947         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48948         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48950 2011-05-23  Bruno Haible  <bruno@clisp.org>
48952         memcasecmp: Move AC_LIBOBJ invocations to module description.
48953         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48954         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48956 2011-05-23  Bruno Haible  <bruno@clisp.org>
48958         crypto/md5: Move AC_LIBOBJ invocations to module description.
48959         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48960         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48962 2011-05-23  Bruno Haible  <bruno@clisp.org>
48964         crypto/md4: Move AC_LIBOBJ invocations to module description.
48965         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48966         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48968 2011-05-23  Bruno Haible  <bruno@clisp.org>
48970         crypto/md2: Move AC_LIBOBJ invocations to module description.
48971         * m4/md2.m4: Remove file.
48972         * modules/crypto/md2 (Files): Remove it.
48973         (configure.ac): Remove gl_MD2 call.
48974         (Makefile.am): Augment lib_SOURCES.
48976 2011-05-23  Bruno Haible  <bruno@clisp.org>
48978         long-options: Move AC_LIBOBJ invocations to module description.
48979         * m4/long-options.m4: Remove file.
48980         * modules/long-options (Files): Remove it.
48981         (configure.ac): Remove gl_LONG_OPTIONS call.
48982         (Makefile.am): Augment lib_SOURCES.
48984 2011-05-23  Bruno Haible  <bruno@clisp.org>
48986         i-ring: Move AC_LIBOBJ invocations to module description.
48987         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48988         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48990 2011-05-23  Bruno Haible  <bruno@clisp.org>
48992         idcache: Move AC_LIBOBJ invocations to module description.
48993         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48994         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48996 2011-05-23  Bruno Haible  <bruno@clisp.org>
48998         human: Move AC_LIBOBJ invocations to module description.
48999         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
49000         * modules/human (Makefile.am): Augment lib_SOURCES.
49002 2011-05-23  Bruno Haible  <bruno@clisp.org>
49004         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
49005         * m4/hmac-sha1.m4: Remove file.
49006         * modules/crypto/hmac-sha1 (Files): Remove it.
49007         (configure.ac): Remove gl_HMAC_SHA1 call.
49008         (Makefile.am): Augment lib_SOURCES.
49010 2011-05-23  Bruno Haible  <bruno@clisp.org>
49012         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
49013         * m4/hmac-md5.m4: Remove file.
49014         * modules/crypto/hmac-md5 (Files): Remove it.
49015         (configure.ac): Remove gl_HMAC_MD5 call.
49016         (Makefile.am): Augment lib_SOURCES.
49018 2011-05-23  Bruno Haible  <bruno@clisp.org>
49020         hash: Move AC_LIBOBJ invocations to module description.
49021         * m4/hash.m4: Remove file.
49022         * modules/hash (Files): Remove it.
49023         (configure.ac): Remove gl_HASH call.
49024         (Makefile.am): Augment lib_SOURCES.
49026 2011-05-23  Bruno Haible  <bruno@clisp.org>
49028         hard-locale: Move AC_LIBOBJ invocations to module description.
49029         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
49030         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
49032 2011-05-23  Bruno Haible  <bruno@clisp.org>
49034         getugroups: Move AC_LIBOBJ invocations to module description.
49035         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
49036         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
49038 2011-05-23  Bruno Haible  <bruno@clisp.org>
49040         gettime: Move AC_LIBOBJ invocations to module description.
49041         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
49042         * modules/gettime (Makefile.am): Augment lib_SOURCES.
49044 2011-05-23  Bruno Haible  <bruno@clisp.org>
49046         getndelim2: Move AC_LIBOBJ invocations to module description.
49047         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
49048         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
49050 2011-05-23  Bruno Haible  <bruno@clisp.org>
49052         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
49053         * m4/gc-pbkdf2-sha1.m4: Remove file.
49054         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
49055         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
49056         (Makefile.am): Augment lib_SOURCES.
49058 2011-05-23  Bruno Haible  <bruno@clisp.org>
49060         fts: Move AC_LIBOBJ invocations to module description.
49061         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
49062         * modules/fts (configure.ac): ... to here.
49064 2011-05-23  Bruno Haible  <bruno@clisp.org>
49066         file-type: Move AC_LIBOBJ invocations to module description.
49067         * m4/file-type.m4: Remove file.
49068         * modules/file-type (Files): Remove it.
49069         (configure.ac): Remove gl_FILE_TYPE call.
49070         (Makefile.am): Augment lib_SOURCES.
49072 2011-05-23  Bruno Haible  <bruno@clisp.org>
49074         filenamecat*: Respect rules for use of AC_LIBOBJ.
49075         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
49076         Remove AC_LIBOBJ invocation.
49077         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
49078         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
49080 2011-05-23  Bruno Haible  <bruno@clisp.org>
49082         filemode: Move AC_LIBOBJ invocations to module description.
49083         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
49084         * modules/filemode (Makefile.am): Augment lib_SOURCES.
49086 2011-05-23  Bruno Haible  <bruno@clisp.org>
49088         openat-safer: Move AC_LIBOBJ invocations to module description.
49089         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
49090         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
49092 2011-05-23  Bruno Haible  <bruno@clisp.org>
49094         fcntl-safer: Move AC_LIBOBJ invocations to module description.
49095         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
49096         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
49098 2011-05-23  Bruno Haible  <bruno@clisp.org>
49100         exclude: Move AC_LIBOBJ invocations to module description.
49101         * m4/exclude.m4: Remove file.
49102         * modules/exclude (Files): Remove it.
49103         (configure.ac): Remove gl_EXCLUDE call.
49104         (Makefile.am): Augment lib_SOURCES.
49106 2011-05-23  Bruno Haible  <bruno@clisp.org>
49108         dirname*: Respect rules for use of AC_LIBOBJ.
49109         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
49110         invocations.
49111         * modules/dirname (Makefile.am): Augment lib_SOURCES.
49112         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
49114 2011-05-23  Bruno Haible  <bruno@clisp.org>
49116         dirent-safer: Move AC_LIBOBJ invocations to module description.
49117         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
49118         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
49120 2011-05-23  Bruno Haible  <bruno@clisp.org>
49122         crypto/des: Move AC_LIBOBJ invocations to module description.
49123         * m4/des.m4: Remove file.
49124         * modules/crypto/des (Files): Remove it.
49125         (configure.ac): Remove gl_DES call.
49126         (Makefile.am): Augment lib_SOURCES.
49128 2011-05-23  Bruno Haible  <bruno@clisp.org>
49130         cycle-check: Move AC_LIBOBJ invocations to module description.
49131         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
49132         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
49134 2011-05-23  Bruno Haible  <bruno@clisp.org>
49136         c-strtold: Move AC_LIBOBJ invocations to module description.
49137         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
49138         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
49140 2011-05-23  Bruno Haible  <bruno@clisp.org>
49142         c-strtod: Move AC_LIBOBJ invocations to module description.
49143         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
49144         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
49146 2011-05-23  Bruno Haible  <bruno@clisp.org>
49148         crc: Move AC_LIBOBJ invocations to module description.
49149         * m4/crc.m4: Remove file.
49150         * modules/crc (Files): Remove it.
49151         (configure.ac): Remove gl_CRC call.
49152         (Makefile.am): Augment lib_SOURCES.
49154 2011-05-23  Bruno Haible  <bruno@clisp.org>
49156         close-stream: Move AC_LIBOBJ invocations to module description.
49157         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
49158         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
49160 2011-05-23  Bruno Haible  <bruno@clisp.org>
49162         closeout: Move AC_LIBOBJ invocations to module description.
49163         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
49164         * modules/closeout (Makefile.am): Augment lib_SOURCES.
49166 2011-05-23  Bruno Haible  <bruno@clisp.org>
49168         closein: Move AC_LIBOBJ invocations to module description.
49169         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
49170         * modules/closein (Makefile.am): Augment lib_SOURCES.
49172 2011-05-23  Bruno Haible  <bruno@clisp.org>
49174         cloexec: Move AC_LIBOBJ invocations to module description.
49175         * m4/cloexec.m4: Remove file.
49176         * modules/cloexec (Files): Remove it.
49177         (configure.ac): Remove gl_CLOEXEC call.
49178         (Makefile.am): Augment lib_SOURCES.
49180 2011-05-23  Bruno Haible  <bruno@clisp.org>
49182         check-version: Move AC_LIBOBJ invocations to module description.
49183         * m4/check-version.m4: Remove file.
49184         * modules/check-version (Files): Remove it.
49185         (configure.ac): Remove gl_CHECK_VERSION call.
49186         (Makefile.am): Augment lib_SOURCES.
49188 2011-05-23  Bruno Haible  <bruno@clisp.org>
49190         chdir-safer: Move AC_LIBOBJ invocations to module description.
49191         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
49192         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
49194 2011-05-23  Bruno Haible  <bruno@clisp.org>
49196         canonicalize: Move AC_LIBOBJ invocations to module description.
49197         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
49198         AC_LIBOBJ invocation.
49199         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
49201 2011-05-23  Bruno Haible  <bruno@clisp.org>
49203         canon-host: Move AC_LIBOBJ invocations to module description.
49204         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
49205         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
49206         instead of gl_CANON_HOST.
49207         (Makefile.am): Augment lib_SOURCES.
49209 2011-05-23  Bruno Haible  <bruno@clisp.org>
49211         backupfile: Move AC_LIBOBJ invocations to module description.
49212         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
49213         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
49215 2011-05-23  Bruno Haible  <bruno@clisp.org>
49217         argmatch: Move AC_LIBOBJ invocations to module description.
49218         * m4/argmatch.m4: Remove file.
49219         * modules/argmatch (Files): Remove it.
49220         (configure.ac): Remove gl_ARGMATCH call.
49221         (Makefile.am): Augment lib_SOURCES.
49223 2011-05-23  Bruno Haible  <bruno@clisp.org>
49225         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
49226         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
49227         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
49229 2011-05-23  Bruno Haible  <bruno@clisp.org>
49231         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
49232         * m4/arcfour.m4: Remove file.
49233         * modules/crypto/arcfour (Files): Remove it.
49234         (configure.ac): Remove gl_ARCFOUR call.
49235         (Makefile.am): Augment lib_SOURCES.
49237 2011-05-22  Bruno Haible  <bruno@clisp.org>
49239         write: Move AC_LIBOBJ invocations to module description.
49240         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
49241         * modules/write (configure.ac): ... to here.
49243 2011-05-22  Bruno Haible  <bruno@clisp.org>
49245         wmemset: Move AC_LIBOBJ invocations to module description.
49246         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
49247         here...
49248         * modules/wmemset (configure.ac): ... to here.
49250 2011-05-22  Bruno Haible  <bruno@clisp.org>
49252         wmemmove: Move AC_LIBOBJ invocations to module description.
49253         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
49254         here...
49255         * modules/wmemmove (configure.ac): ... to here.
49257 2011-05-22  Bruno Haible  <bruno@clisp.org>
49259         wmemcpy: Move AC_LIBOBJ invocations to module description.
49260         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
49261         here...
49262         * modules/wmemcpy (configure.ac): ... to here.
49264 2011-05-22  Bruno Haible  <bruno@clisp.org>
49266         wmemcmp: Move AC_LIBOBJ invocations to module description.
49267         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
49268         here...
49269         * modules/wmemcmp (configure.ac): ... to here.
49271 2011-05-22  Bruno Haible  <bruno@clisp.org>
49273         wmemchr: Move AC_LIBOBJ invocations to module description.
49274         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
49275         here...
49276         * modules/wmemchr (configure.ac): ... to here.
49278 2011-05-22  Bruno Haible  <bruno@clisp.org>
49280         wcswidth: Move AC_LIBOBJ invocations to module description.
49281         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
49282         here...
49283         * modules/wcswidth (configure.ac): ... to here.
49285 2011-05-22  Bruno Haible  <bruno@clisp.org>
49287         wcwidth: Respect rules for use of AC_LIBOBJ.
49288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
49289         invocation from here...
49290         * modules/wcwidth (configure.ac): ... to here.
49291         (Depends-on): Update conditions.
49293 2011-05-22  Bruno Haible  <bruno@clisp.org>
49295         wctype: Move AC_LIBOBJ invocations to module description.
49296         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
49297         invocation from here...
49298         * modules/wctype (configure.ac): ... to here.
49299         (Depends-on): Update conditions.
49301 2011-05-22  Bruno Haible  <bruno@clisp.org>
49303         wctrans: Move AC_LIBOBJ invocations to module description.
49304         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
49305         invocation from here...
49306         * modules/wctrans (configure.ac): ... to here.
49308 2011-05-22  Bruno Haible  <bruno@clisp.org>
49310         wctomb: Move AC_LIBOBJ invocations to module description.
49311         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
49312         invocations from here...
49313         * modules/wctomb (configure.ac): ... to here.
49315 2011-05-22  Bruno Haible  <bruno@clisp.org>
49317         wctob: Move AC_LIBOBJ invocations to module description.
49318         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
49319         gl_PREREQ_WCTOB invocations from here...
49320         * modules/wctob (configure.ac): ... to here.
49321         (Depends-on): Update conditions.
49323 2011-05-22  Bruno Haible  <bruno@clisp.org>
49325         wcsxfrm: Move AC_LIBOBJ invocations to module description.
49326         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
49327         here...
49328         * modules/wcsxfrm (configure.ac): ... to here.
49330 2011-05-22  Bruno Haible  <bruno@clisp.org>
49332         wcstok: Move AC_LIBOBJ invocations to module description.
49333         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
49334         * modules/wcstok (configure.ac): ... to here.
49336 2011-05-22  Bruno Haible  <bruno@clisp.org>
49338         wcsstr: Move AC_LIBOBJ invocations to module description.
49339         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
49340         * modules/wcsstr (configure.ac): ... to here.
49342 2011-05-22  Bruno Haible  <bruno@clisp.org>
49344         wcsspn: Move AC_LIBOBJ invocations to module description.
49345         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
49346         * modules/wcsspn (configure.ac): ... to here.
49348 2011-05-22  Bruno Haible  <bruno@clisp.org>
49350         wcsrtombs: Move AC_LIBOBJ invocations to module description.
49351         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
49352         gl_PREREQ_WCSRTOMBS invocations from here...
49353         * modules/wcsrtombs (configure.ac): ... to here.
49355 2011-05-22  Bruno Haible  <bruno@clisp.org>
49357         wcsrchr: Move AC_LIBOBJ invocations to module description.
49358         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
49359         here...
49360         * modules/wcsrchr (configure.ac): ... to here.
49362 2011-05-22  Bruno Haible  <bruno@clisp.org>
49364         wcspbrk: Move AC_LIBOBJ invocations to module description.
49365         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
49366         here...
49367         * modules/wcspbrk (configure.ac): ... to here.
49369 2011-05-22  Bruno Haible  <bruno@clisp.org>
49371         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
49372         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
49373         gl_PREREQ_WCSNRTOMBS invocations from here...
49374         * modules/wcsnrtombs (configure.ac): ... to here.
49376 2011-05-22  Bruno Haible  <bruno@clisp.org>
49378         wcsnlen: Move AC_LIBOBJ invocations to module description.
49379         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49380         here...
49381         * modules/wcsnlen (configure.ac): ... to here.
49383 2011-05-22  Bruno Haible  <bruno@clisp.org>
49385         wcsncpy: Move AC_LIBOBJ invocations to module description.
49386         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49387         here...
49388         * modules/wcsncpy (configure.ac): ... to here.
49390 2011-05-22  Bruno Haible  <bruno@clisp.org>
49392         wcsncmp: Move AC_LIBOBJ invocations to module description.
49393         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49394         here...
49395         * modules/wcsncmp (configure.ac): ... to here.
49397 2011-05-22  Bruno Haible  <bruno@clisp.org>
49399         wcsncat: Move AC_LIBOBJ invocations to module description.
49400         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49401         here...
49402         * modules/wcsncat (configure.ac): ... to here.
49404 2011-05-22  Bruno Haible  <bruno@clisp.org>
49406         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49407         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49408         from here...
49409         * modules/wcsncasecmp (configure.ac): ... to here.
49411 2011-05-22  Bruno Haible  <bruno@clisp.org>
49413         wcslen: Move AC_LIBOBJ invocations to module description.
49414         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49415         * modules/wcslen (configure.ac): ... to here.
49417 2011-05-22  Bruno Haible  <bruno@clisp.org>
49419         wcsdup: Move AC_LIBOBJ invocations to module description.
49420         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49421         * modules/wcsdup (configure.ac): ... to here.
49423 2011-05-22  Bruno Haible  <bruno@clisp.org>
49425         wcscspn: Move AC_LIBOBJ invocations to module description.
49426         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49427         here...
49428         * modules/wcscspn (configure.ac): ... to here.
49430 2011-05-22  Bruno Haible  <bruno@clisp.org>
49432         wcscpy: Move AC_LIBOBJ invocations to module description.
49433         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49434         * modules/wcscpy (configure.ac): ... to here.
49436 2011-05-22  Bruno Haible  <bruno@clisp.org>
49438         wcscoll: Move AC_LIBOBJ invocations to module description.
49439         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49440         here...
49441         * modules/wcscoll (configure.ac): ... to here.
49443 2011-05-22  Bruno Haible  <bruno@clisp.org>
49445         wcscmp: Move AC_LIBOBJ invocations to module description.
49446         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49447         * modules/wcscmp (configure.ac): ... to here.
49449 2011-05-22  Bruno Haible  <bruno@clisp.org>
49451         wcschr: Move AC_LIBOBJ invocations to module description.
49452         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49453         * modules/wcschr (configure.ac): ... to here.
49455 2011-05-22  Bruno Haible  <bruno@clisp.org>
49457         wcscat: Move AC_LIBOBJ invocations to module description.
49458         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49459         * modules/wcscat (configure.ac): ... to here.
49461 2011-05-22  Bruno Haible  <bruno@clisp.org>
49463         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49464         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49465         here...
49466         * modules/wcscasecmp (configure.ac): ... to here.
49468 2011-05-22  Bruno Haible  <bruno@clisp.org>
49470         wcrtomb: Move AC_LIBOBJ invocations to module description.
49471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49472         invocations from here...
49473         * modules/wcrtomb (configure.ac): ... to here.
49475 2011-05-22  Bruno Haible  <bruno@clisp.org>
49477         wcpncpy: Move AC_LIBOBJ invocations to module description.
49478         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49479         here...
49480         * modules/wcpncpy (configure.ac): ... to here.
49482 2011-05-22  Bruno Haible  <bruno@clisp.org>
49484         wcpcpy: Move AC_LIBOBJ invocations to module description.
49485         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49486         * modules/wcpcpy (configure.ac): ... to here.
49488 2011-05-22  Bruno Haible  <bruno@clisp.org>
49490         waitpid: Move AC_LIBOBJ invocations to module description.
49491         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49492         invocation from here...
49493         * modules/waitpid (configure.ac): ... to here.
49495 2011-05-22  Bruno Haible  <bruno@clisp.org>
49497         utimensat: Move AC_LIBOBJ invocations to module description.
49498         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49499         here...
49500         * modules/utimensat (configure.ac): ... to here.
49502 2011-05-22  Bruno Haible  <bruno@clisp.org>
49504         usleep: Move AC_LIBOBJ invocations to module description.
49505         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49506         here...
49507         * modules/usleep (configure.ac): ... to here.
49509 2011-05-22  Bruno Haible  <bruno@clisp.org>
49511         unlockpt: Move AC_LIBOBJ invocations to module description.
49512         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49513         gl_PREREQ_UNLOCKPT invocations from here...
49514         * modules/unlockpt (configure.ac): ... to here.
49516 2011-05-22  Bruno Haible  <bruno@clisp.org>
49518         unlink: Respect rules for use of AC_LIBOBJ.
49519         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49520         * modules/unlink (configure.ac): ... to here.
49522 2011-05-22  Bruno Haible  <bruno@clisp.org>
49524         uname: Move AC_LIBOBJ invocations to module description.
49525         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49527         here...
49528         * modules/uname (configure.ac): ... to here.
49530 2011-05-22  Bruno Haible  <bruno@clisp.org>
49532         ttyname_r: Move AC_LIBOBJ invocations to module description.
49533         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49534         gl_PREREQ_TTYNAME_R invocations from here...
49535         * modules/ttyname_r (configure.ac): ... to here.
49537 2011-05-22  Bruno Haible  <bruno@clisp.org>
49539         tsearch: Move AC_LIBOBJ invocations to module description.
49540         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49541         invocations from here...
49542         * modules/tsearch (configure.ac): ... to here.
49544 2011-05-22  Bruno Haible  <bruno@clisp.org>
49546         towctrans: Move AC_LIBOBJ invocations to module description.
49547         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49548         AC_LIBOBJ invocation from here...
49549         * modules/towctrans (configure.ac): ... to here.
49551 2011-05-22  Bruno Haible  <bruno@clisp.org>
49553         tmpfile: Move AC_LIBOBJ invocations to module description.
49554         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49555         invocations from here...
49556         * modules/tmpfile (configure.ac): ... to here.
49558 2011-05-22  Bruno Haible  <bruno@clisp.org>
49560         times: Move AC_LIBOBJ invocations to module description.
49561         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49562         * modules/times (configure.ac): ... to here.
49564 2011-05-22  Bruno Haible  <bruno@clisp.org>
49566         time_r: Move AC_LIBOBJ invocations to module description.
49567         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49568         invocations from here...
49569         * modules/time_r (configure.ac): ... to here.
49571 2011-05-22  Bruno Haible  <bruno@clisp.org>
49573         timegm: Move AC_LIBOBJ invocations to module description.
49574         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49575         invocations from here...
49576         * modules/timegm (configure.ac): ... to here.
49578 2011-05-22  Bruno Haible  <bruno@clisp.org>
49580         tcgetsid: Move AC_LIBOBJ invocations to module description.
49581         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49582         and gl_PREREQ_TCGETSID invocations from here...
49583         * modules/tcgetsid (configure.ac): ... to here.
49584         (Depends-on): Update conditions.
49586 2011-05-22  Bruno Haible  <bruno@clisp.org>
49588         symlinkat: Move AC_LIBOBJ invocations to module description.
49589         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49590         here...
49591         * modules/symlinkat (configure.ac): ... to here.
49593 2011-05-22  Bruno Haible  <bruno@clisp.org>
49595         symlink: Move AC_LIBOBJ invocations to module description.
49596         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49597         here...
49598         * modules/symlink (configure.ac): ... to here.
49600 2011-05-22  Bruno Haible  <bruno@clisp.org>
49602         strverscmp: Move AC_LIBOBJ invocations to module description.
49603         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49605         from here...
49606         * modules/strverscmp (configure.ac): ... to here.
49608 2011-05-22  Bruno Haible  <bruno@clisp.org>
49610         strtok_r: Move AC_LIBOBJ invocations to module description.
49611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49612         and gl_PREREQ_STRTOK_R invocations from here...
49613         * modules/strtok_r (configure.ac): ... to here.
49614         (Depends-on): Update conditions.
49616 2011-05-22  Bruno Haible  <bruno@clisp.org>
49618         strtoumax: Move AC_LIBOBJ invocations to module description.
49619         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49620         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49621         from here...
49622         * modules/strtoumax (configure.ac): ... to here.
49624 2011-05-22  Bruno Haible  <bruno@clisp.org>
49626         strtoimax: Move AC_LIBOBJ invocations to module description.
49627         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49629         from here...
49630         * modules/strtoimax (configure.ac): ... to here.
49632 2011-05-22  Bruno Haible  <bruno@clisp.org>
49634         strtoull: Move AC_LIBOBJ invocations to module description.
49635         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49637         from here...
49638         * modules/strtoull (configure.ac): ... to here.
49640 2011-05-22  Bruno Haible  <bruno@clisp.org>
49642         strtoll: Move AC_LIBOBJ invocations to module description.
49643         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49645         here...
49646         * modules/strtoll (configure.ac): ... to here.
49648 2011-05-22  Bruno Haible  <bruno@clisp.org>
49650         strtoul: Move AC_LIBOBJ invocations to module description.
49651         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49652         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49653         * modules/strtoul (configure.ac): ... to here.
49655 2011-05-22  Bruno Haible  <bruno@clisp.org>
49657         strtol: Move AC_LIBOBJ invocations to module description.
49658         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49659         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49660         * modules/strtol (configure.ac): ... to here.
49662 2011-05-22  Bruno Haible  <bruno@clisp.org>
49664         strtod: Move AC_LIBOBJ invocations to module description.
49665         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49666         invocations from here...
49667         * modules/strtod (configure.ac): ... to here.
49669 2011-05-22  Bruno Haible  <bruno@clisp.org>
49671         strstr*: Move AC_LIBOBJ invocations to module description.
49672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49673         invocations from here...
49674         * modules/strstr-simple (configure.ac): ... to here.
49675         * modules/strstr (configure.ac): ... and here.
49677 2011-05-22  Bruno Haible  <bruno@clisp.org>
49679         strsignal: Move AC_LIBOBJ invocations to module description.
49680         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49681         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49682         * modules/strsignal (configure.ac): ... to here.
49683         (Depends-on): Update conditions.
49685 2011-05-22  Bruno Haible  <bruno@clisp.org>
49687         strsep: Move AC_LIBOBJ invocations to module description.
49688         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49690         here...
49691         * modules/strsep (configure.ac): ... to here.
49693 2011-05-22  Bruno Haible  <bruno@clisp.org>
49695         strptime: Move AC_LIBOBJ invocations to module description.
49696         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49697         gl_PREREQ_STRPTIME invocations from here...
49698         * modules/strptime (configure.ac): ... to here.
49700 2011-05-22  Bruno Haible  <bruno@clisp.org>
49702         strpbrk: Move AC_LIBOBJ invocations to module description.
49703         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49705         here...
49706         * modules/strpbrk (configure.ac): ... to here.
49708 2011-05-22  Bruno Haible  <bruno@clisp.org>
49710         strnlen: Move AC_LIBOBJ invocations to module description.
49711         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49712         invocations from here...
49713         * modules/strnlen (configure.ac): ... to here.
49715 2011-05-22  Bruno Haible  <bruno@clisp.org>
49717         strndup: Move AC_LIBOBJ invocations to module description.
49718         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49719         invocations from here...
49720         * modules/strndup (configure.ac): ... to here.
49721         (Depends-on): Update conditions.
49723 2011-05-22  Bruno Haible  <bruno@clisp.org>
49725         strncat: Move AC_LIBOBJ invocations to module description.
49726         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49727         invocations from here...
49728         * modules/strncat (configure.ac): ... to here.
49730 2011-05-22  Bruno Haible  <bruno@clisp.org>
49732         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49733         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49734         invocations from here...
49735         * modules/strdup (configure.ac): ... to here.
49736         * modules/strdup-posix (configure.ac): ... and here.
49738 2011-05-22  Bruno Haible  <bruno@clisp.org>
49740         strcspn: Move AC_LIBOBJ invocations to module description.
49741         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49743         here...
49744         * modules/strcspn (configure.ac): ... to here.
49746 2011-05-22  Bruno Haible  <bruno@clisp.org>
49748         strchrnul: Move AC_LIBOBJ invocations to module description.
49749         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49750         gl_PREREQ_STRCHRNUL invocations from here...
49751         * modules/strchrnul (configure.ac): ... to here.
49753 2011-05-22  Bruno Haible  <bruno@clisp.org>
49755         strcasestr*: Move AC_LIBOBJ invocations to module description.
49756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49757         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49758         * modules/strcasestr-simple (configure.ac): ... to here.
49759         * modules/strcasestr (configure.ac): ... and here.
49761 2011-05-22  Bruno Haible  <bruno@clisp.org>
49763         strcase: Move AC_LIBOBJ invocations to module description.
49764         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49765         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49766         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49767         gl_PREREQ_STRNCASECMP invocations from here...
49768         * modules/strcase (configure.ac): ... to here.
49770 2011-05-22  Bruno Haible  <bruno@clisp.org>
49772         stpncpy: Move AC_LIBOBJ invocations to module description.
49773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49774         here...
49775         * modules/stpncpy (configure.ac): ... to here.
49777 2011-05-22  Bruno Haible  <bruno@clisp.org>
49779         stpcpy: Move AC_LIBOBJ invocations to module description.
49780         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49782         here...
49783         * modules/stpcpy (configure.ac): ... to here.
49785 2011-05-21  Bruno Haible  <bruno@clisp.org>
49787         stat: Move AC_LIBOBJ invocations to module description.
49788         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49789         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49790         here...
49791         * modules/stat (configure.ac): ... to here.
49793 2011-05-21  Bruno Haible  <bruno@clisp.org>
49795         sleep: Move AC_LIBOBJ invocations to module description.
49796         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
49797         * modules/sleep (configure.ac): ... to here.
49799 2011-05-21  Bruno Haible  <bruno@clisp.org>
49801         signbit: Move AC_LIBOBJ invocations to module description.
49802         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
49803         * modules/signbit (configure.ac): ... to here.
49805 2011-05-21  Bruno Haible  <bruno@clisp.org>
49807         sigprocmask: Move AC_LIBOBJ invocations to module description.
49808         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
49809         gl_PREREQ_SIGPROMASK invocations from here...
49810         * modules/sigprocmask (configure.ac): ... to here.
49812 2011-05-21  Bruno Haible  <bruno@clisp.org>
49814         sigaction: Move AC_LIBOBJ invocations to module description.
49815         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
49816         gl_PREREQ_SIGACTION invocations from here...
49817         * modules/sigaction (configure.ac): ... to here.
49819 2011-05-21  Bruno Haible  <bruno@clisp.org>
49821         sig2str: Move AC_LIBOBJ invocations to module description.
49822         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49823         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49824         here...
49825         * modules/sig2str (configure.ac): ... to here.
49827 2011-05-21  Bruno Haible  <bruno@clisp.org>
49829         setlocale: Move AC_LIBOBJ invocations to module description.
49830         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49831         gl_PREREQ_SETLOCALE invocations from here...
49832         * modules/setlocale (configure.ac): ... to here.
49834 2011-05-21  Bruno Haible  <bruno@clisp.org>
49836         unsetenv: Move AC_LIBOBJ invocations to module description.
49837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49838         and gl_PREREQ_UNSETENV invocations from here...
49839         * modules/unsetenv (configure.ac): ... to here.
49840         (Depends-on): Update.
49842 2011-05-21  Bruno Haible  <bruno@clisp.org>
49844         setenv: Move AC_LIBOBJ invocations to module description.
49845         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49846         here...
49847         * modules/setenv (configure.ac): ... to here.
49849 2011-05-21  Bruno Haible  <bruno@clisp.org>
49851         selinux-h: Move AC_LIBOBJ invocations to module description.
49852         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49853         AC_LIBOBJ invocation from here...
49854         * modules/selinux-h (configure.ac): ... to here.
49856 2011-05-21  Bruno Haible  <bruno@clisp.org>
49858         select: Respect rules for use of AC_LIBOBJ.
49859         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49860         here...
49861         * modules/select (configure.ac): ... to here.
49863 2011-05-21  Bruno Haible  <bruno@clisp.org>
49865         scandir: Move AC_LIBOBJ invocations to module description.
49866         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49867         invocations from here...
49868         * modules/scandir (configure.ac): ... to here.
49870 2011-05-21  Bruno Haible  <bruno@clisp.org>
49872         rpmatch: Move AC_LIBOBJ invocations to module description.
49873         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49875         here...
49876         * modules/rpmatch (configure.ac): ... to here.
49878 2011-05-21  Bruno Haible  <bruno@clisp.org>
49880         rmdir: Respect rules for use of AC_LIBOBJ.
49881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49882         * modules/rmdir (configure.ac): ... to here.
49884 2011-05-21  Bruno Haible  <bruno@clisp.org>
49886         renameat: Move AC_LIBOBJ invocations to module description.
49887         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49888         here...
49889         * modules/renameat (configure.ac): ... to here.
49891 2011-05-21  Bruno Haible  <bruno@clisp.org>
49893         rename: Respect rules for use of AC_LIBOBJ.
49894         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49895         here...
49896         * modules/rename (configure.ac): ... to here.
49898 2011-05-21  Bruno Haible  <bruno@clisp.org>
49900         remove: Move AC_LIBOBJ invocations to module description.
49901         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49902         here...
49903         * modules/remove (configure.ac): ... to here.
49905 2011-05-21  Bruno Haible  <bruno@clisp.org>
49907         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49908         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49909         macro.
49910         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49911         * modules/relocatable-lib (configure.ac): ... to here.
49912         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49913         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49915 2011-05-21  Bruno Haible  <bruno@clisp.org>
49917         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49918         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49919         here...
49920         * modules/relocatable-prog (configure.ac): ... to here.
49922 2011-05-21  Bruno Haible  <bruno@clisp.org>
49924         regex: Move AC_LIBOBJ invocations to module description.
49925         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49926         invocations from here...
49927         * modules/regex (configure.ac): ... to here.
49929 2011-05-21  Bruno Haible  <bruno@clisp.org>
49931         realloc-*: Move AC_LIBOBJ invocations to module description.
49932         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49933         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49934         AC_LIBOBJ invocations from here...
49935         * modules/realloc-gnu (configure.ac): ... to here.
49936         * modules/realloc-posix (configure.ac): ... and here.
49938 2011-05-21  Bruno Haible  <bruno@clisp.org>
49940         readutmp: Move AC_LIBOBJ invocations to module description.
49941         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49942         * modules/readutmp (configure.ac): ... to here.
49944 2011-05-21  Bruno Haible  <bruno@clisp.org>
49946         readlinkat: Move AC_LIBOBJ invocations to module description.
49947         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49948         here...
49949         * modules/readlinkat (configure.ac): ... to here.
49951 2011-05-21  Bruno Haible  <bruno@clisp.org>
49953         readlink: Move AC_LIBOBJ invocations to module description.
49954         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49955         gl_PREREQ_READLINK invocations from here...
49956         * modules/readlink (configure.ac): ... to here.
49958 2011-05-21  Bruno Haible  <bruno@clisp.org>
49960         readline: Move AC_LIBOBJ invocations to module description.
49961         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49962         gl_PREREQ_READLINE invocations from here...
49963         * modules/readline (configure.ac): ... to here.
49965 2011-05-21  Bruno Haible  <bruno@clisp.org>
49967         read: Move AC_LIBOBJ invocations to module description.
49968         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49969         * modules/read (configure.ac): ... to here.
49971 2011-05-21  Bruno Haible  <bruno@clisp.org>
49973         rawmemchr: Move AC_LIBOBJ invocations to module description.
49974         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49976         from here...
49977         * modules/rawmemchr (configure.ac): ... to here.
49979 2011-05-21  Bruno Haible  <bruno@clisp.org>
49981         random_r: Move AC_LIBOBJ invocations to module description.
49982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49983         gl_PREREQ_RANDOM_R invocations from here...
49984         * modules/random_r (configure.ac): ... to here.
49986 2011-05-21  Bruno Haible  <bruno@clisp.org>
49988         pwrite: Move AC_LIBOBJ invocations to module description.
49989         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49990         * modules/pwrite (configure.ac): ... to here.
49992 2011-05-21  Bruno Haible  <bruno@clisp.org>
49994         putenv: Move AC_LIBOBJ invocations to module description.
49995         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49996         * modules/putenv (configure.ac): ... to here.
49998 2011-05-21  Bruno Haible  <bruno@clisp.org>
50000         login_tty: Move AC_LIBOBJ invocations to module description.
50001         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
50002         * modules/login_tty (configure.ac): ... to here.
50004 2011-05-21  Bruno Haible  <bruno@clisp.org>
50006         openpty: Move AC_LIBOBJ invocations to module description.
50007         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
50008         * modules/openpty (configure.ac): ... to here.
50010 2011-05-21  Bruno Haible  <bruno@clisp.org>
50012         forkpty: Move AC_LIBOBJ invocations to module description.
50013         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
50014         * modules/forkpty (configure.ac): ... to here.
50016 2011-05-21  Bruno Haible  <bruno@clisp.org>
50018         ptsname: Move AC_LIBOBJ invocations to module description.
50019         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
50020         invocations from here...
50021         * modules/ptsname (configure.ac): ... to here.
50023 2011-05-21  Bruno Haible  <bruno@clisp.org>
50025         pread: Move AC_LIBOBJ invocations to module description.
50026         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
50027         * modules/pread (configure.ac): ... to here.
50029 2011-05-21  Bruno Haible  <bruno@clisp.org>
50031         posix_spawn*: Move AC_LIBOBJ invocations to module description.
50032         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
50033         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
50034         * modules/posix_spawn (configure.ac): ... to here.
50035         * modules/posix_spawnp (configure.ac): ... and here.
50037 2011-05-21  Bruno Haible  <bruno@clisp.org>
50039         popen: Move AC_LIBOBJ invocations to module description.
50040         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
50041         invocations from here...
50042         * modules/popen (configure.ac): ... to here.
50044 2011-05-21  Bruno Haible  <bruno@clisp.org>
50046         poll: Move AC_LIBOBJ invocations to module description.
50047         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
50048         invocations from here...
50049         * modules/poll (configure.ac): ... to here.
50051 2011-05-21  Bruno Haible  <bruno@clisp.org>
50053         pipe-posix: Move AC_LIBOBJ invocations to module description.
50054         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
50055         * modules/pipe-posix (configure.ac): ... to here.
50057 2011-05-21  Bruno Haible  <bruno@clisp.org>
50059         openat: Respect rules for use of AC_LIBOBJ.
50060         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
50061         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50062         * modules/openat (configure.ac): ... to here.
50064 2011-05-21  Bruno Haible  <bruno@clisp.org>
50066         obstack-printf*: Move AC_LIBOBJ invocations to module description.
50067         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
50068         invocation from here...
50069         * modules/obstack-printf (configure.ac): ... to here.
50070         * modules/obstack-printf-posix (configure.ac): ... and here.
50072 2011-05-21  Bruno Haible  <bruno@clisp.org>
50074         nl_langinfo: Move AC_LIBOBJ invocations to module description.
50075         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
50076         from here...
50077         * modules/nl_langinfo (configure.ac): ... to here.
50079 2011-05-21  Bruno Haible  <bruno@clisp.org>
50081         nanosleep: Move AC_LIBOBJ invocations to module description.
50082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
50083         gl_PREREQ_NANOSLEEP invocations from here...
50084         * modules/nanosleep (configure.ac): ... to here.
50086 2011-05-21  Bruno Haible  <bruno@clisp.org>
50088         mountlist: Move AC_LIBOBJ invocations to module description.
50089         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
50090         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
50091         * modules/mountlist (configure.ac): ... to here.
50093 2011-05-21  Bruno Haible  <bruno@clisp.org>
50095         mktime: Respect rules for use of AC_LIBOBJ.
50096         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
50097         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
50098         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
50099         (gl_FUNC_MKTIME_INTERNAL): ... and here...
50100         * modules/mktime (configure.ac): ... to here.
50101         * modules/mktime-internal (configure.ac): ... and here.
50102         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
50104 2011-05-21  Bruno Haible  <bruno@clisp.org>
50106         mkstemps: Move AC_LIBOBJ invocations to module description.
50107         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
50108         here...
50109         * modules/mkstemps (configure.ac): ... to here.
50111 2011-05-21  Bruno Haible  <bruno@clisp.org>
50113         mkstemp: Move AC_LIBOBJ invocations to module description.
50114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
50115         gl_PREREQ_MKSTEMP invocations from here...
50116         * modules/mkstemp (configure.ac): ... to here.
50118 2011-05-21  Bruno Haible  <bruno@clisp.org>
50120         mkostemps: Move AC_LIBOBJ invocations to module description.
50121         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
50122         here...
50123         * modules/mkostemps (configure.ac): ... to here.
50125 2011-05-21  Bruno Haible  <bruno@clisp.org>
50127         mkostemp: Move AC_LIBOBJ invocations to module description.
50128         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
50129         gl_PREREQ_MKOSTEMP invocations from here...
50130         * modules/mkostemp (configure.ac): ... to here.
50132 2011-05-21  Bruno Haible  <bruno@clisp.org>
50134         mknod: Move AC_LIBOBJ invocations to module description.
50135         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
50136         * modules/mknod (configure.ac): ... to here.
50138 2011-05-21  Bruno Haible  <bruno@clisp.org>
50140         mkfifoat: Move AC_LIBOBJ invocations to module description.
50141         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
50142         here...
50143         * modules/mkfifoat (configure.ac): ... to here.
50145 2011-05-21  Bruno Haible  <bruno@clisp.org>
50147         mkfifo: Respect rules for use of AC_LIBOBJ.
50148         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
50149         here...
50150         * modules/mkfifo (configure.ac): ... to here.
50152 2011-05-21  Bruno Haible  <bruno@clisp.org>
50154         mkdtemp: Move AC_LIBOBJ invocations to module description.
50155         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
50156         invocations from here...
50157         * modules/mkdtemp (configure.ac): ... to here.
50159 2011-05-21  Bruno Haible  <bruno@clisp.org>
50161         mkdir: Move AC_LIBOBJ invocations to module description.
50162         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
50163         * modules/mkdir (configure.ac): ... to here.
50165 2011-05-21  Bruno Haible  <bruno@clisp.org>
50167         memset: Move AC_LIBOBJ invocations to module description.
50168         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
50169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
50170         here...
50171         * modules/memset (configure.ac): ... to here.
50173 2011-05-21  Bruno Haible  <bruno@clisp.org>
50175         memrchr: Move AC_LIBOBJ invocations to module description.
50176         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
50177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
50178         here...
50179         * modules/memrchr (configure.ac): ... to here.
50181 2011-05-21  Bruno Haible  <bruno@clisp.org>
50183         mempcpy: Move AC_LIBOBJ invocations to module description.
50184         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
50185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
50186         here...
50187         * modules/mempcpy (configure.ac): ... to here.
50189 2011-05-21  Bruno Haible  <bruno@clisp.org>
50191         memmove: Move AC_LIBOBJ invocations to module description.
50192         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
50193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
50194         here...
50195         * modules/memmove (configure.ac): ... to here.
50197 2011-05-21  Bruno Haible  <bruno@clisp.org>
50199         memmem*: Move AC_LIBOBJ invocations to module description.
50200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
50201         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
50202         here...
50203         (gl_FUNC_MEMMEM): ... and here...
50204         * modules/memmem-simple (configure.ac): ... to here.
50205         * modules/memmem (configure.ac): ... and here.
50207 2011-05-21  Bruno Haible  <bruno@clisp.org>
50209         memcpy: Move AC_LIBOBJ invocations to module description.
50210         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
50211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
50212         here...
50213         * modules/memcpy (configure.ac): ... to here.
50215 2011-05-21  Bruno Haible  <bruno@clisp.org>
50217         memcmp: Simplify autoconf macro.
50218         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
50219         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
50220         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
50222 2011-05-21  Bruno Haible  <bruno@clisp.org>
50224         memcmp: Move AC_LIBOBJ invocations to module description.
50225         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
50226         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
50227         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
50228         * modules/memcmp (configure.ac): ... to here.
50229         (Depends-on): Update conditions.
50231 2011-05-21  Bruno Haible  <bruno@clisp.org>
50233         memchr: Respect rules for use of AC_LIBOBJ.
50234         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
50235         invocations from here...
50236         * modules/memchr (configure.ac): ... to here.
50238 2011-05-21  Bruno Haible  <bruno@clisp.org>
50240         mbtowc: Move AC_LIBOBJ invocations to module description.
50241         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
50242         invocations from here...
50243         * modules/mbtowc (configure.ac): ... to here.
50245 2011-05-21  Bruno Haible  <bruno@clisp.org>
50247         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
50248         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
50249         gl_PREREQ_MBSRTOWCS invocations from here...
50250         * modules/mbsrtowcs (configure.ac): ... to here.
50252 2011-05-21  Bruno Haible  <bruno@clisp.org>
50254         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
50255         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
50256         gl_PREREQ_MBSNRTOWCS invocations from here...
50257         * modules/mbsnrtowcs (configure.ac): ... to here.
50259 2011-05-21  Bruno Haible  <bruno@clisp.org>
50261         mbsinit: Move AC_LIBOBJ invocations to module description.
50262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
50263         invocations from here...
50264         * modules/mbsinit (configure.ac): ... to here.
50266 2011-05-21  Bruno Haible  <bruno@clisp.org>
50268         mbrlen: Move AC_LIBOBJ invocations to module description.
50269         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
50270         invocations from here...
50271         * modules/mbrlen (configure.ac): ... to here.
50273 2011-05-21  Bruno Haible  <bruno@clisp.org>
50275         mbrtowc: Respect rules for use of AC_LIBOBJ.
50276         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
50277         invocations from here...
50278         * modules/mbrtowc (configure.ac): ... to here.
50280 2011-05-21  Bruno Haible  <bruno@clisp.org>
50282         malloc-*: Move AC_LIBOBJ invocations to module description.
50283         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
50284         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
50285         AC_LIBOBJ invocations from here...
50286         * modules/malloc-gnu (configure.ac): ... to here.
50287         * modules/malloc-posix (configure.ac): ... and here.
50289 2011-05-21  Bruno Haible  <bruno@clisp.org>
50291         lstat, openat: Respect rules for use of AC_LIBOBJ.
50292         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
50293         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
50294         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
50295         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
50296         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
50297         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
50298         here.
50299         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
50301 2011-05-21  Bruno Haible  <bruno@clisp.org>
50303         lseek: Move AC_LIBOBJ invocations to module description.
50304         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
50305         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50306         * modules/lseek (configure.ac): ... to here.
50308 2011-05-21  Bruno Haible  <bruno@clisp.org>
50310         linkat: Move AC_LIBOBJ invocations to module description.
50311         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
50312         here...
50313         * modules/linkat (configure.ac): ... to here.
50315 2011-05-21  Bruno Haible  <bruno@clisp.org>
50317         link: Respect rules for use of AC_LIBOBJ.
50318         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
50319         * modules/link (configure.ac): ... to here.
50321 2011-05-21  Bruno Haible  <bruno@clisp.org>
50323         lchown: Move AC_LIBOBJ invocations to module description.
50324         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50325         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50326         * modules/lchown (configure.ac): ... to here.
50328 2011-05-21  Bruno Haible  <bruno@clisp.org>
50330         iswctype: Move AC_LIBOBJ invocations to module description.
50331         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
50332         here...
50333         * modules/iswctype (configure.ac): ... to here.
50335 2011-05-21  Bruno Haible  <bruno@clisp.org>
50337         iswblank: Move AC_LIBOBJ invocations to module description.
50338         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
50339         here...
50340         * modules/iswblank (configure.ac): ... to here.
50342 2011-05-21  Bruno Haible  <bruno@clisp.org>
50344         atanl: Move AC_LIBOBJ invocations to module description.
50345         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
50346         * modules/atanl (configure.ac): ... to here.
50348 2011-05-21  Bruno Haible  <bruno@clisp.org>
50350         acosl: Move AC_LIBOBJ invocations to module description.
50351         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
50352         * modules/acosl (configure.ac): ... to here.
50354 2011-05-21  Bruno Haible  <bruno@clisp.org>
50356         asinl: Respect rules for use of AC_LIBOBJ.
50357         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
50358         * modules/asinl (configure.ac): ... to here.
50360 2011-05-21  Bruno Haible  <bruno@clisp.org>
50362         tanl: Move AC_LIBOBJ invocations to module description.
50363         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
50364         * modules/tanl (configure.ac): ... to here.
50366 2011-05-21  Bruno Haible  <bruno@clisp.org>
50368         cosl: Move AC_LIBOBJ invocations to module description.
50369         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
50370         * modules/cosl (configure.ac): ... to here.
50372 2011-05-21  Bruno Haible  <bruno@clisp.org>
50374         sinl: Move AC_LIBOBJ invocations to module description.
50375         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
50376         * modules/sinl (configure.ac): ... to here.
50378 2011-05-21  Bruno Haible  <bruno@clisp.org>
50380         logl: Move AC_LIBOBJ invocations to module description.
50381         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50382         * modules/logl (configure.ac): ... to here.
50384 2011-05-21  Bruno Haible  <bruno@clisp.org>
50386         expl: Move AC_LIBOBJ invocations to module description.
50387         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50388         * modules/expl (configure.ac): ... to here.
50390 2011-05-21  Bruno Haible  <bruno@clisp.org>
50392         roundl: Move AC_LIBOBJ invocations to module description.
50393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50394         * modules/roundl (configure.ac): ... to here.
50396 2011-05-21  Bruno Haible  <bruno@clisp.org>
50398         round: Move AC_LIBOBJ invocations to module description.
50399         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50400         * modules/round (configure.ac): ... to here.
50402 2011-05-21  Bruno Haible  <bruno@clisp.org>
50404         roundf: Move AC_LIBOBJ invocations to module description.
50405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50406         * modules/roundf (configure.ac): ... to here.
50408 2011-05-21  Bruno Haible  <bruno@clisp.org>
50410         truncl: Move AC_LIBOBJ invocations to module description.
50411         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50412         * modules/truncl (configure.ac): ... to here.
50414 2011-05-21  Bruno Haible  <bruno@clisp.org>
50416         trunc: Move AC_LIBOBJ invocations to module description.
50417         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50418         * modules/trunc (configure.ac): ... to here.
50420 2011-05-21  Bruno Haible  <bruno@clisp.org>
50422         truncf: Move AC_LIBOBJ invocations to module description.
50423         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50424         * modules/truncf (configure.ac): ... to here.
50426 2011-05-21  Bruno Haible  <bruno@clisp.org>
50428         ceill: Move AC_LIBOBJ invocations to module description.
50429         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50430         * modules/ceill (configure.ac): ... to here.
50432 2011-05-21  Bruno Haible  <bruno@clisp.org>
50434         ceil: Move AC_LIBOBJ invocations to module description.
50435         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50436         * modules/ceil (configure.ac): ... to here.
50438 2011-05-21  Bruno Haible  <bruno@clisp.org>
50440         ceilf: Move AC_LIBOBJ invocations to module description.
50441         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50442         * modules/ceilf (configure.ac): ... to here.
50444 2011-05-21  Bruno Haible  <bruno@clisp.org>
50446         floorl: Respect rules for use of AC_LIBOBJ.
50447         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50448         * modules/floorl (configure.ac): ... to here.
50450 2011-05-21  Bruno Haible  <bruno@clisp.org>
50452         floor: Respect rules for use of AC_LIBOBJ.
50453         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50454         * modules/floor (configure.ac): ... to here.
50456 2011-05-21  Bruno Haible  <bruno@clisp.org>
50458         floorf: Move AC_LIBOBJ invocations to module description.
50459         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50460         * modules/floorf (configure.ac): ... to here.
50462 2011-05-20  Bruno Haible  <bruno@clisp.org>
50464         sqrtl: Respect rules for use of AC_LIBOBJ.
50465         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50466         * modules/sqrtl (configure.ac): ... to here.
50468 2011-05-20  Bruno Haible  <bruno@clisp.org>
50470         ldexpl: Respect rules for use of AC_LIBOBJ.
50471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50472         * modules/ldexpl (configure.ac): ... to here.
50474 2011-05-20  Bruno Haible  <bruno@clisp.org>
50476         frexpl*: Respect rules for use of AC_LIBOBJ.
50477         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50478         invocation from here...
50479         * modules/frexpl (configure.ac): ... to here.
50480         * modules/frexpl-nolibm (configure.ac): ... and here.
50482 2011-05-20  Bruno Haible  <bruno@clisp.org>
50484         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50485         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50486         invocation from here...
50487         * modules/frexp (configure.ac): ... to here.
50488         * modules/frexp-nolibm (configure.ac): ... and here.
50490 2011-05-20  Bruno Haible  <bruno@clisp.org>
50492         isnan: Respect rules for use of AC_LIBOBJ.
50493         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50494         invocations here.
50495         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50496         REPLACE_ISNAN.
50497         * modules/isnand (configure.ac): Likewise.
50498         * modules/isnanl (configure.ac): Likewise.
50500 2011-05-20  Bruno Haible  <bruno@clisp.org>
50502         isnanl*: Respect rules for use of AC_LIBOBJ.
50503         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50504         invocation from here...
50505         * modules/isnanl (configure.ac): ... to here.
50506         * modules/isnanl-nolibm (configure.ac): ... and here.
50508 2011-05-20  Bruno Haible  <bruno@clisp.org>
50510         isnand*: Move AC_LIBOBJ invocations to module description.
50511         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50512         invocation from here...
50513         * modules/isnand (configure.ac): ... to here.
50514         * modules/isnand-nolibm (configure.ac): ... and here.
50516 2011-05-20  Bruno Haible  <bruno@clisp.org>
50518         isnanf*: Move AC_LIBOBJ invocations to module description.
50519         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50520         invocation from here...
50521         * modules/isnanf (configure.ac): ... to here.
50522         * modules/isnanf-nolibm (configure.ac): ... and here.
50524 2011-05-20  Bruno Haible  <bruno@clisp.org>
50526         isnan*: Separate the AC_LIBOBJ invocations.
50527         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50528         AC_LIBOBJ invocation.
50529         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50530         here.
50531         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50532         AC_LIBOBJ invocation.
50533         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50534         here.
50535         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50536         AC_LIBOBJ invocation.
50537         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50538         here.
50539         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50541 2011-05-08  Bruno Haible  <bruno@clisp.org>
50543         isinf: Move AC_LIBOBJ invocations to module description.
50544         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50545         * modules/isinf (configure.ac): ... to here.
50547 2011-05-08  Bruno Haible  <bruno@clisp.org>
50549         isfinite: Move AC_LIBOBJ invocations to module description.
50550         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50551         * modules/isfinite (configure.ac): ... to here.
50553 2011-05-08  Bruno Haible  <bruno@clisp.org>
50555         isblank: Move AC_LIBOBJ invocations to module description.
50556         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50557         here...
50558         * modules/isblank (configure.ac): ... to here.
50560 2011-05-08  Bruno Haible  <bruno@clisp.org>
50562         isapipe: Move AC_LIBOBJ invocations to module description.
50563         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50564         gl_PREREQ_ISAPIPE invocations from here...
50565         * modules/isapipe (configure.ac): ... to here.
50566         (Depends-on): Update condition.
50568 2011-05-08  Bruno Haible  <bruno@clisp.org>
50570         ioctl: Move AC_LIBOBJ invocations to module description.
50571         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50572         invocations from here...
50573         * modules/ioctl (configure.ac): ... to here.
50574         (Depends-on): Update condition.
50576 2011-05-08  Bruno Haible  <bruno@clisp.org>
50578         imaxdiv: Move AC_LIBOBJ invocations to module description.
50579         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50580         invocations from here...
50581         * modules/imaxdiv (configure.ac): ... to here.
50583 2011-05-08  Bruno Haible  <bruno@clisp.org>
50585         imaxabs: Move AC_LIBOBJ invocations to module description.
50586         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50587         invocations from here...
50588         * modules/imaxabs (configure.ac): ... to here.
50590 2011-05-08  Bruno Haible  <bruno@clisp.org>
50592         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50594         AC_LIBOBJ invocations from here...
50595         * modules/getaddrinfo (configure.ac): ... to here.
50596         (Depends-on): Add conditions.
50598 2011-05-08  Bruno Haible  <bruno@clisp.org>
50600         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50601         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50602         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50603         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50604         (gl_PREREQ_INET_PTON): ... from here.
50605         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50606         gl_PREREQ_INET_PTON here.
50607         (Depends-on): Update condition.
50609 2011-05-08  Bruno Haible  <bruno@clisp.org>
50611         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50612         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50613         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50614         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50615         (gl_PREREQ_INET_NTOP): ... from here.
50616         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50617         gl_PREREQ_INET_NTOP here.
50618         (Depends-on): Update condition.
50620 2011-05-08  Bruno Haible  <bruno@clisp.org>
50622         iconv_open: Move AC_LIBOBJ invocations to module description.
50623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50624         AC_LIBOBJ invocations from here...
50625         * modules/iconv_open (configure.ac): ... to here.
50627 2011-05-08  Bruno Haible  <bruno@clisp.org>
50629         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50630         If module 'iconv_open' is among the main modules and module
50631         'iconv_open-utf' is among the tests dependencies, then
50632         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50633         return the special iconv_t values. Therefore iconv() and iconv_close()
50634         must support these special iconv_t values, already in lib, not only in
50635         tests.
50636         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50638         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50639         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50640         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50641         (Depends-on): Add the dependencies of iconv_open-utf.
50642         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50643         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50644         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50646 2011-05-08  Bruno Haible  <bruno@clisp.org>
50648         group-member: Move AC_LIBOBJ invocations to module description.
50649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50650         gl_PREREQ_GROUP_MEMBER invocations from here...
50651         * modules/group-member (configure.ac): ... to here.
50653 2011-05-08  Bruno Haible  <bruno@clisp.org>
50655         grantpt: Move AC_LIBOBJ invocations to module description.
50656         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50657         invocations from here...
50658         * modules/grantpt (configure.ac): ... to here.
50660 2011-05-08  Bruno Haible  <bruno@clisp.org>
50662         glob: Move AC_LIBOBJ invocations to module description.
50663         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50664         from here...
50665         * modules/glob (configure.ac): ... to here.
50667 2011-05-08  Bruno Haible  <bruno@clisp.org>
50669         getusershell: Move AC_LIBOBJ invocations to module description.
50670         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50671         Move AC_LIBOBJ invocation from here...
50672         * modules/getusershell (configure.ac): ... to here.
50673         (Depends-on): Update condition.
50675 2011-05-08  Bruno Haible  <bruno@clisp.org>
50677         gettimeofday: Move AC_LIBOBJ invocations to module description.
50678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50679         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50680         gl_PREREQ_GETTIMEOFDAY invocations from here...
50681         * modules/gettimeofday (configure.ac): ... to here.
50683 2011-05-08  Bruno Haible  <bruno@clisp.org>
50685         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50686         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50687         just gl_FUNC_TZSET.
50688         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50689         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50691         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50693 2011-05-08  Bruno Haible  <bruno@clisp.org>
50695         getsubopt: Move AC_LIBOBJ invocations to module description.
50696         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50697         gl_PREREQ_GETSUBOPT invocations from here...
50698         * modules/getsubopt (configure.ac): ... to here.
50700 2011-05-08  Bruno Haible  <bruno@clisp.org>
50702         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50703         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50704         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50705         * modules/getpass-gnu (configure.ac): ... to here.
50707 2011-05-08  Bruno Haible  <bruno@clisp.org>
50709         getpass: Move AC_LIBOBJ invocations to module description.
50710         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50711         gl_PREREQ_GETPASS invocations from here...
50712         * modules/getpass (configure.ac): ... to here.
50714 2011-05-08  Bruno Haible  <bruno@clisp.org>
50716         getpagesize: Move AC_LIBOBJ invocations to module description.
50717         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50718         from here...
50719         * modules/getpagesize (configure.ac): ... to here.
50721 2011-05-08  Bruno Haible  <bruno@clisp.org>
50723         getopt: Move AC_LIBOBJ invocations to module description.
50724         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50725         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50726         invocations from here...
50727         * modules/getopt-gnu (configure.ac): ... to here.
50728         * modules/getopt-posix (configure.ac): ... and here.
50729         (Depends-on): Update condition.
50731 2011-05-08  Bruno Haible  <bruno@clisp.org>
50733         getopt, argp: Respect rules for use of AC_LIBOBJ.
50734         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50735         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50736         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50737         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50739 2011-05-08  Bruno Haible  <bruno@clisp.org>
50741         getlogin_r: Move AC_LIBOBJ invocations to module description.
50742         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50743         gl_PREREQ_GETLOGIN_R invocations from here...
50744         * modules/getlogin_r (configure.ac): ... to here.
50746 2011-05-08  Bruno Haible  <bruno@clisp.org>
50748         getlogin: Move AC_LIBOBJ invocations to module description.
50749         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50750         here...
50751         * modules/getlogin (configure.ac): ... to here.
50753 2011-05-08  Bruno Haible  <bruno@clisp.org>
50755         getloadavg: Move AC_LIBOBJ invocations to module description.
50756         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50757         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50758         * modules/getloadavg (configure.ac): ... to here.
50760 2011-05-08  Bruno Haible  <bruno@clisp.org>
50762         gethrxtime: Move AC_LIBOBJ invocations to module description.
50763         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50764         LIB_GETHRXTIME from here...
50765         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50766         invocations from here...
50767         * modules/gethrxtime (configure.ac): ... to here.
50769 2011-05-08  Bruno Haible  <bruno@clisp.org>
50771         gethostname: Move AC_LIBOBJ invocations to module description.
50772         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50773         gl_PREREQ_GETHOSTNAME invocations from here...
50774         * modules/gethostname (configure.ac): ... to here.
50776 2011-05-08  Bruno Haible  <bruno@clisp.org>
50778         getgroups: Move AC_LIBOBJ invocations to module description.
50779         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50780         here...
50781         * modules/getgroups (configure.ac): ... to here.
50783 2011-05-08  Bruno Haible  <bruno@clisp.org>
50785         getdtablesize: Move AC_LIBOBJ invocations to module description.
50786         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50787         invocation from here...
50788         * modules/getdtablesize (configure.ac): ... to here.
50790 2011-05-08  Bruno Haible  <bruno@clisp.org>
50792         getdomainname: Move AC_LIBOBJ invocations to module description.
50793         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
50794         gl_PREREQ_GETDOMAINNAME invocations from here...
50795         * modules/getdomainname (configure.ac): ... to here.
50797 2011-05-08  Bruno Haible  <bruno@clisp.org>
50799         getline: Move AC_LIBOBJ invocations to module description.
50800         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
50801         invocations from here...
50802         * modules/getline (configure.ac): ... to here.
50804 2011-05-08  Bruno Haible  <bruno@clisp.org>
50806         getline: Simplify.
50807         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
50808         It's already handled through the module dependency.
50810 2011-05-08  Bruno Haible  <bruno@clisp.org>
50812         getdelim: Move AC_LIBOBJ invocations to module description.
50813         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
50814         and gl_PREREQ_GETDELIM invocations from here...
50815         * modules/getdelim (configure.ac): ... to here.
50816         (Depends-on): Fix condition.
50818 2011-05-08  Bruno Haible  <bruno@clisp.org>
50820         getcwd: Move AC_LIBOBJ invocations to module description.
50821         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50822         invocations from here...
50823         * modules/getcwd (configure.ac): ... to here.
50825 2011-05-08  Bruno Haible  <bruno@clisp.org>
50827         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50828         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50829         here...
50830         * modules/getcwd-lgpl (configure.ac): ... to here.
50832 2011-05-07  Bruno Haible  <bruno@clisp.org>
50834         crypto/gc: Move AC_LIBOBJ invocations to module description.
50835         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50836         * modules/crypto/gc (configure.ac): ... to here.
50838 2011-05-07  Bruno Haible  <bruno@clisp.org>
50840         fwriting: Move AC_LIBOBJ invocations to module description.
50841         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50842         here...
50843         * modules/fwriting (configure.ac): ... to here.
50845 2011-05-07  Bruno Haible  <bruno@clisp.org>
50847         fwritable: Move AC_LIBOBJ invocations to module description.
50848         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50849         here...
50850         * modules/fwritable (configure.ac): ... to here.
50852 2011-05-07  Bruno Haible  <bruno@clisp.org>
50854         futimens: Move AC_LIBOBJ invocations to module description.
50855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50856         here...
50857         * modules/futimens (configure.ac): ... to here.
50859 2011-05-07  Bruno Haible  <bruno@clisp.org>
50861         ftruncate: Move AC_LIBOBJ invocations to module description.
50862         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50863         gl_PREREQ_FTRUNCATE invocations from here...
50864         * modules/ftruncate (configure.ac): ... to here.
50866 2011-05-07  Bruno Haible  <bruno@clisp.org>
50868         fsync: Move AC_LIBOBJ invocations to module description.
50869         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50870         invocations from here...
50871         * modules/fsync (configure.ac): ... to here.
50873 2011-05-07  Bruno Haible  <bruno@clisp.org>
50875         fsusage: Move AC_LIBOBJ invocations to module description.
50876         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50877         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50878         * modules/fsusage (configure.ac): ... to here.
50880 2011-05-07  Bruno Haible  <bruno@clisp.org>
50882         freopen: Move AC_LIBOBJ invocations to module description.
50883         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50884         invocations from here...
50885         * modules/freopen (configure.ac): ... to here.
50887 2011-05-07  Bruno Haible  <bruno@clisp.org>
50889         free: Move AC_LIBOBJ invocations to module description.
50890         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50891         invocations from here...
50892         * modules/free (configure.ac): ... to here.
50894 2011-05-07  Bruno Haible  <bruno@clisp.org>
50896         freadable: Move AC_LIBOBJ invocations to module description.
50897         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50898         here...
50899         * modules/freadable (configure.ac): ... to here.
50901 2011-05-07  Bruno Haible  <bruno@clisp.org>
50903         fpurge: Move AC_LIBOBJ invocations to module description.
50904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50905         invocations from here...
50906         * modules/fpurge (configure.ac): ... to here.
50908 2011-05-07  Bruno Haible  <bruno@clisp.org>
50910         fpending: Move AC_LIBOBJ invocations to module description.
50911         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50912         gl_FUNC_FPENDING.
50913         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50914         invocations from here...
50915         * modules/fpending (configure.ac): ... to here.
50917 2011-05-07  Bruno Haible  <bruno@clisp.org>
50919         fopen: Move AC_LIBOBJ invocations to module description.
50920         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50921         invocations from here...
50922         * modules/fopen (configure.ac): ... to here.
50924 2011-05-07  Bruno Haible  <bruno@clisp.org>
50926         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50927         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50928         gl_FUNC_FNMATCH_POSIX.
50929         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50930         invocations from here...
50931         * modules/fnmatch (configure.ac): ... to here.
50932         * modules/fnmatch-gnu (configure.ac): ... and here.
50934 2011-05-07  Bruno Haible  <bruno@clisp.org>
50936         flock: Move AC_LIBOBJ invocations to module description.
50937         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50938         invocations from here...
50939         * modules/flock (configure.ac): ... to here.
50941 2011-05-07  Bruno Haible  <bruno@clisp.org>
50943         fileblocks: Move AC_LIBOBJ invocations to module description.
50944         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50945         gl_PREREQ_FILEBLOCKS invocations from here...
50946         * modules/fileblocks (configure.ac): ... to here.
50948 2011-05-06  Bruno Haible  <bruno@clisp.org>
50950         fflush: Move AC_LIBOBJ invocations to module description.
50951         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50952         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50953         invocations from here...
50954         * modules/fflush (configure.ac): ... to here.
50956 2011-05-06  Bruno Haible  <bruno@clisp.org>
50958         fdopendir: Move AC_LIBOBJ invocations to module description.
50959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50960         here...
50961         * modules/fdopendir (configure.ac): ... to here.
50962         (Depends-on): Improve conditions.
50964 2011-05-06  Bruno Haible  <bruno@clisp.org>
50966         _Exit: Move AC_LIBOBJ invocations to module description.
50967         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50968         invocations from here...
50969         * modules/_Exit (configure.ac): ... to here.
50971 2011-05-21  Bruno Haible  <bruno@clisp.org>
50973         euidaccess: Respect rules for use of AC_LIBOBJ.
50974         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50976         from here...
50977         * modules/euidaccess (configure.ac): ... to here.
50979 2011-05-06  Bruno Haible  <bruno@clisp.org>
50981         error: Move AC_LIBOBJ invocations to module description.
50982         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50983         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50984         invocations from here...
50985         * modules/error (configure.ac): ... to here.
50987 2011-05-06  Bruno Haible  <bruno@clisp.org>
50989         duplocale: Move AC_LIBOBJ invocations to module description.
50990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50991         gl_PREREQ_DUPLOCALE invocations from here...
50992         * modules/duplocale (configure.ac): ... to here.
50994 2011-05-05  Bruno Haible  <bruno@clisp.org>
50996         dirfd: Move AC_LIBOBJ invocations to module description.
50997         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50998         gl_FUNC_DIRFD.
50999         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
51000         here...
51001         * modules/dirfd (configure.ac): ... to here.
51002         (Depends-on): Fix condition.
51004 2011-05-05  Bruno Haible  <bruno@clisp.org>
51006         chown: Respect rules for use of AC_LIBOBJ.
51007         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
51008         * modules/chown (configure.ac): ... to here.
51010 2011-05-05  Bruno Haible  <bruno@clisp.org>
51012         chdir-long: Move AC_LIBOBJ invocations to module description.
51013         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
51014         gl_PREREQ_CHDIR_LONG invocations from here...
51015         * modules/chdir-long (configure.ac): ... to here.
51017 2011-05-05  Bruno Haible  <bruno@clisp.org>
51019         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
51020         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
51021         from here...
51022         * modules/canonicalize-lgpl (configure.ac): ... to here.
51024 2011-05-05  Bruno Haible  <bruno@clisp.org>
51026         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
51027         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
51028         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
51029         REPLACE_CALLOC.
51030         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
51031         * modules/calloc-gnu (configure.ac): Likewise.
51033 2011-05-05  Bruno Haible  <bruno@clisp.org>
51035         btowc: Move AC_LIBOBJ invocations to module description.
51036         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
51037         invocations from here...
51038         * modules/btowc (configure.ac): ... to here.
51040 2011-05-21  Bruno Haible  <bruno@clisp.org>
51042         atexit: Move AC_LIBOBJ invocations to module description.
51043         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
51044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
51045         here...
51046         * modules/atexit (configure.ac): ... to here.
51048 2011-05-05  Bruno Haible  <bruno@clisp.org>
51050         atoll: Move AC_LIBOBJ invocations to module description.
51051         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
51052         invocations from here...
51053         * modules/atoll (configure.ac): ... to here.
51055 2011-05-05  Bruno Haible  <bruno@clisp.org>
51057         argz: Move AC_LIBOBJ invocations to module description.
51058         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
51059         * modules/argz (configure.ac): ... to here.
51061 2011-05-05  Bruno Haible  <bruno@clisp.org>
51063         alphasort: Move AC_LIBOBJ invocations to module description.
51064         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
51065         gl_PREREQ_ALPHASORT invocations from here...
51066         * modules/alphasort (configure.ac): ... to here.
51068 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51070         verify: new macro verify_expr; verify_true deprecated
51071         * NEWS: Mention this.
51072         * doc/verify.texi (Compile-time Assertions): Document this.
51073         * lib/verify.h (verify_true): Deprecate.
51074         (verify_expr): New macro.
51075         * tests/test-verify.c (function): Test verify_expr.
51077 2011-06-14  Jim Meyering  <meyering@redhat.com>
51079         init.sh: give more portable redirection-related advice in a comment
51080         * tests/init.sh (stderr_fileno_): Update the advice in comments.
51081         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
51082         for lots of discussion.  Stefano Lattarini suggested the solution
51083         of putting "9>&2" after the command.  Reported by Bruno Haible.
51085 2011-06-13  Bruno Haible  <bruno@clisp.org>
51087         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
51088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
51089         'none'.
51091 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
51093         ftoastr: use strtof only if HAVE_STRTOF
51094         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
51095         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
51096         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
51097         * modules/ftoastr (configure.ac): Check for strtof.
51099 2011-06-13  Bruno Haible  <bruno@clisp.org>
51101         gnulib-tool: Addendum to 2011-06-08 commit.
51102         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
51103         and --witness-c-macro have been given, augment AM_CPPFLAGS.
51105 2011-06-13  Bruno Haible  <bruno@clisp.org>
51107         fseeko: Provide a non-inline replacement of fseek().
51108         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
51109         * modules/fseeko (Depends-on): Add fseek.
51110         * modules/fseek (License): Change to LGPLv2+.
51112 2011-06-13  Bruno Haible  <bruno@clisp.org>
51114         ftello: Provide a non-inline replacement of ftell().
51115         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
51116         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
51117         not have ftello() (such as on mingw).
51118         * modules/ftello (Depends-on): Add ftell.
51119         * modules/ftell (License): Change to LGPLv2+.
51121 2011-05-07  Bruno Haible  <bruno@clisp.org>
51123         ftell: Move AC_LIBOBJ invocations to module description.
51124         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
51125         * modules/ftell (configure.ac): ... to here.
51127 2011-05-07  Bruno Haible  <bruno@clisp.org>
51129         ftello: Respect rules for use of AC_LIBOBJ.
51130         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
51131         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
51132         here...
51133         * modules/ftello (configure.ac): ... to here.
51135 2011-05-07  Bruno Haible  <bruno@clisp.org>
51137         fseeko: Simplify.
51138         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
51139         (gl_FUNC_FSEEKO): Inline it here.
51141 2011-05-07  Bruno Haible  <bruno@clisp.org>
51143         fseek: Move AC_LIBOBJ invocations to module description.
51144         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
51145         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51146         * modules/fseek (configure.ac): ... to here.
51148 2011-05-07  Bruno Haible  <bruno@clisp.org>
51150         fseek: Respect rules for use of AC_LIBOBJ.
51151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
51152         here...
51153         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
51155 2011-05-07  Bruno Haible  <bruno@clisp.org>
51157         fseeko: Respect rules for use of AC_LIBOBJ.
51158         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
51159         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
51160         here...
51161         * modules/fseeko (configure.ac): ... to here.
51163 2011-06-13  Bruno Haible  <bruno@clisp.org>
51165         gnulib-tool: Allow comments in the 'Depends-on' section.
51166         * doc/gnulib.texi (Module description): Mention comment syntax in the
51167         Depends-on section.
51168         * gnulib-tool (func_get_dependencies): Filter out comment lines.
51170 2011-06-13  Bruno Haible  <bruno@clisp.org>
51172         file-set.h: guard __attibute__ use, now that it's not always defined
51173         * lib/file-set.h (record_file): Use __attribute__ only with compiler
51174         versions that support it.  This fixes a coreutils build failure with
51175         the vendor cc on HP-UX 11.31.
51177 2011-06-12  Bruno Haible  <bruno@clisp.org>
51179         acl: Add support for HP-UX >= 11.11 JFS ACLs.
51180         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
51181         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
51182         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
51183         (acl, aclsort): New declarations.
51184         (aclv_nontrivial): New declaration.
51185         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
51186         (file_has_acl): Read also the second kind of HP-UX ACLs.
51187         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
51188         kind of HP-UX ACLs if the first kind fails.
51189         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
51190         second kind of HP-UX ACLs.
51191         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
51192         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
51193         agree.
51194         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51195         hpuxjfs.
51196         Handle hpuxjfs.
51197         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51198         hpuxjfs.
51199         Handle hpuxjfs.
51200         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51201         (func_test_same_acls): Use both lsacl and getacl.
51202         Handle hpuxjfs.
51203         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51204         (func_test_same_acls): Use both lsacl and getacl.
51205         Handle hpuxjfs.
51207 2011-06-12  Bruno Haible  <bruno@clisp.org>
51209         acl: Complete the 2010-08-10 fix.
51210         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
51211         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
51212         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
51213         explicitly.
51214         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
51215         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
51217 2011-06-12  Bruno Haible  <bruno@clisp.org>
51219         spawn-pipe tests: Comments.
51220         * tests/test-spawn-pipe-child.c (main): Update comment.
51221         Reported by James Youngman <jay@gnu.org>.
51223 2011-06-11  James Youngman  <jay@gnu.org>
51225         New module 'stat-size'.
51226         * modules/stat-size: New module.  Provides macros for accessing
51227         file size information in instances of struct stat.  Depends on the
51228         fileblocks module because it calls st_blocks.
51229         * lib/stat-size.h: New file, adapted from coreutils' system.h.
51230         * doc/gnulib.texi: Include stat-size.texi.
51231         * doc/stat-size.texi: Documentation for this module.
51232         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
51233         * m4/fileblocks.m4: Mention that stat-size depends on the call to
51234         AC_STRUCT_ST_BLOCKS.
51236 2011-06-09  Bruno Haible  <bruno@clisp.org>
51238         thread: Support pthreads-win32.
51239         * lib/glthread/thread.h (gl_thread_self): Define differently on
51240         pthreads-win32.
51241         (gl_null_thread): New declaration.
51242         (gl_thread_self_pointer): New macro.
51243         * lib/glthread/thread.c (gl_null_thread): New constant.
51244         * tests/test-lock.c: Use gl_thread_self_pointer instead of
51245         gl_thread_self.
51246         * tests/test-tls.c: Likewise.
51247         Suggested by Paul Eggert. Reported by Eric Blake.
51249 2011-06-09  Bruno Haible  <bruno@clisp.org>
51251         thread: Fix confusion between NULL and 0.
51252         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
51253         Reported by Paul Eggert.
51255 2011-06-09  Bruno Haible  <bruno@clisp.org>
51257         spawn-pipe tests: Avoid test failure on HP-UX 11.
51258         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
51259         is closed.
51261 2011-06-09  Bruno Haible  <bruno@clisp.org>
51263         acl tests: Fix compilation error on HP-UX 11.
51264         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
51266 2011-06-09  Bruno Haible  <bruno@clisp.org>
51268         rmdir: Avoid test failure on HP-UX 10.20.
51269         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
51270         EEXIST.
51272 2011-06-08  Eric Blake  <eblake@redhat.com>
51274         perror: fix test on mingw
51275         * modules/perror-tests (Depends-on): Add dup2.
51277         strerror_r-posix: fix on MacOS
51278         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
51279         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
51280         logic bug.
51281         * lib/strerror_r.c (strerror_r): Fix the bug.
51282         * lib/strerror.c (strerror): Likewise.
51283         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51284         problem.
51285         * doc/posix-functions/strerror.texi (strerror): Likewise.
51286         * doc/posix-functions/perror.texi (perror): Likewise.
51287         * tests/test-strerror.c (main): Enhance test.
51288         * tests/test-strerror_r.c (main): Likewise.
51290 2011-06-08  Bruno Haible  <bruno@clisp.org>
51292         gnulib-tool: Better isolation between different gnulib-tool invocations.
51293         * gnulib-tool: New option --witness-c-macro.
51294         (witness_c_macro): New variable.
51295         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
51296         AM_CPPFLAGS define it as a C macro.
51297         (func_emit_tests_Makefile_am): Likewise.
51298         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51299         read it from there.
51300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
51301         m4_define, not AC_DEFUN.
51302         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
51303         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
51304         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51305         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
51306         s|...|...|, to substitute the values of the GNULIB_* module indicator
51307         variables.
51308         * modules/dirent (Makefile.am): Likewise.
51309         * modules/fcntl-h (Makefile.am): Likewise.
51310         * modules/iconv-h (Makefile.am): Likewise.
51311         * modules/langinfo (Makefile.am): Likewise.
51312         * modules/locale (Makefile.am): Likewise.
51313         * modules/math (Makefile.am): Likewise.
51314         * modules/netdb (Makefile.am): Likewise.
51315         * modules/poll-h (Makefile.am): Likewise.
51316         * modules/pty (Makefile.am): Likewise.
51317         * modules/search (Makefile.am): Likewise.
51318         * modules/signal (Makefile.am): Likewise.
51319         * modules/spawn (Makefile.am): Likewise.
51320         * modules/stdio (Makefile.am): Likewise.
51321         * modules/stdlib (Makefile.am): Likewise.
51322         * modules/string (Makefile.am): Likewise.
51323         * modules/sys_ioctl (Makefile.am): Likewise.
51324         * modules/sys_select (Makefile.am): Likewise.
51325         * modules/sys_socket (Makefile.am): Likewise.
51326         * modules/sys_stat (Makefile.am): Likewise.
51327         * modules/sys_times (Makefile.am): Likewise.
51328         * modules/sys_utsname (Makefile.am): Likewise.
51329         * modules/sys_wait (Makefile.am): Likewise.
51330         * modules/termios (Makefile.am): Likewise.
51331         * modules/time (Makefile.am): Likewise.
51332         * modules/unistd (Makefile.am): Likewise.
51333         * modules/wchar (Makefile.am): Likewise.
51335 2011-06-08  Eric Blake  <eblake@redhat.com>
51337         strerror: simplify replacement
51338         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
51339         * modules/strerror (configure.ac): No prereqs needed here...
51340         * modules/strerror-override (configure.ac): ...but this needs it.
51341         (Files): Add file for needed prereq macro.
51343 2011-06-08  Bruno Haible  <bruno@clisp.org>
51345         strerror_r-posix: Tweaks.
51346         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
51347         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
51348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
51349         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
51350         (gl_FUNC_STRERROR_R): ... to here.
51351         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
51353 2011-06-07  Eric Blake  <eblake@redhat.com>
51355         perror: document fixed bugs
51356         * doc/posix-functions/perror.texi (perror): Document recent
51357         patches.
51359 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
51361         stat-time: get_stat_birthtime failure is better-defined
51362         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
51363         return a timestamp whose tv_sec and tv_nsec values are both -1.
51364         Previously, the spec said only that the tv_nsec value was negative.
51365         This upward-compatible change simplifies GNU tar a bit.
51367 2011-06-07  Eric Blake  <eblake@redhat.com>
51369         strerror_r-posix: work around cygwin 1.7.9
51370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
51371         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
51372         bug without replacing strerror_r.
51373         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
51374         strerror_r is buggy, but without requiring strerror_r compilation.
51375         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
51377         test-perror: relax test to ignore cygwin bug
51378         * tests/test-perror2.c (main): Relax test on requiring detection
51379         of stream errors, and use unbuffered stream.
51380         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51381         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51382         * doc/posix-functions/fputc.texi (fputc): Likewise.
51383         * doc/posix-functions/fputs.texi (fputs): Likewise.
51384         * doc/posix-functions/fputws.texi (fputws): Likewise.
51385         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51386         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51387         * doc/posix-functions/getopt.texi (getopt): Likewise.
51388         * doc/posix-functions/perror.texi (perror): Likewise.
51389         * doc/posix-functions/printf.texi (printf): Likewise.
51390         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51391         * doc/posix-functions/psignal.texi (psignal): Likewise.
51392         * doc/posix-functions/putc.texi (putc): Likewise.
51393         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51394         Likewise.
51395         * doc/posix-functions/putchar.texi (putchar): Likewise.
51396         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51397         Likewise.
51398         * doc/posix-functions/puts.texi (puts): Likewise.
51399         * doc/posix-functions/putwc.texi (putwc): Likewise.
51400         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51401         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51402         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51403         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51404         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51405         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51406         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51407         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51409 2011-05-22  Bruno Haible  <bruno@clisp.org>
51411         strerror: Move AC_LIBOBJ invocations to module description.
51412         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51413         gl_PREREQ_STRERROR invocations from here...
51414         * modules/strerror (configure.ac): ... to here.
51416 2011-05-21  Bruno Haible  <bruno@clisp.org>
51418         perror: Use common idiom.
51419         * modules/perror (configure.ac): Reorder statements.
51421 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51423         tests: fix usage message in 'mktempd_'
51424         * tests/init.sh (mktempd_): In the usage message, use literal
51425         'mktempd_', not '$ME' (which is even undefined), as the name of
51426         the subroutine.
51428 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51430         tests init: new function 'fatal_', for hard errors
51431         Before this patch, the only way offered by tests/init.sh to
51432         properly signal a hard error was the `framework_failure_'
51433         function.  But the error message issued by that function,
51434         as its name would suggest, refers to a set-up failure in the
51435         testsuite, while hard errors can obviously also be due to
51436         other reasons.  The best way to fix this inconsistency is to
51437         introduce a new function with a more general error message.
51438         * tests/init.sh (fatal_): New function.
51440 2011-06-06  Eric Blake  <eblake@redhat.com>
51442         canonicalize-lgpl: use common idiom
51443         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51444         over newer POSIX -Rf.
51445         Reported by Bruno Haible.
51447         canonicalize-lgpl: work around AIX realpath bug
51448         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51449         * doc/posix-functions/realpath.texi (realpath): Document it.
51450         Reported by Bruno Haible.
51452         strerror: work around FreeBSD bug
51453         * lib/strerror.c (strerror): Special case 0.
51454         Reported by Bruno Haible.
51456         strerror-override: avoid bloating errno module
51457         * modules/errno (Files, configure.ac): Move replacement strings...
51458         * modules/strerror-override: ...to new module.
51459         * modules/strerror (Depends-on): Add strerror-override.
51460         * modules/strerror_r-posix (Depends-on): Likewise.
51461         * MODULES.html.sh: Document new module.
51462         Reported by Bruno Haible.
51464 2011-06-06  Bruno Haible  <bruno@clisp.org>
51466         spawn-pipe tests: Rename program.
51467         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51468         * tests/test-spawn-pipe-child.c: Update comment.
51469         * tests/test-spawn-pipe.sh: Update.
51470         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51472         spawn-pipe tests: Link the child program only against libc.
51473         * tests/test-spawn-pipe-child.c: New file, extracted from
51474         tests/test-spawn-pipe.c.
51475         (main): Expect only one argument.
51476         (is_open): New function, copied from tests/test-pipe.c.
51477         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51478         (child_main): Remove function.
51479         (test_pipe): Pass only one argument to the child program.
51480         (main): Remove child process code. Expect the child program's name as
51481         first argument.
51482         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51483         argument.
51484         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51485         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51486         test-spawn-pipe-child against no libraries.
51488 2011-06-06  Bruno Haible  <bruno@clisp.org>
51490         careadlinkat: Avoid mismatch between ssize_t and int.
51491         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51492         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51494 2011-06-06  Jim Meyering  <meyering@redhat.com>
51496         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51497         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51498         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51500 2011-06-05  Bruno Haible  <bruno@clisp.org>
51502         ansi-c++-opt: Interoperability with libtool.
51503         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51504         set the variable to "no", not to ":".
51505         * NEWS: Mention the change.
51507 2011-06-05  Bruno Haible  <bruno@clisp.org>
51509         acl: Fix test failure on AIX 7.
51510         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51511         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51513 2011-06-05  Bruno Haible  <bruno@clisp.org>
51515         pipe-filter-ii: Fix test failure on AIX and IRIX.
51516         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51517         with EAGAIN, retry with a smaller buffer size.
51519 2011-06-05  Bruno Haible  <bruno@clisp.org>
51521         localename: Fix link dependencies.
51522         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51523         * modules/localename-tests (Makefile.am): Link test-localename with
51524         $(LIBTHREAD).
51526 2011-06-05  Bruno Haible  <bruno@clisp.org>
51528         error: Avoid gcc warning.
51529         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51531 2011-06-05  Bruno Haible  <bruno@clisp.org>
51533         unsetenv: Avoid gcc warning.
51534         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51536 2011-06-05  Bruno Haible  <bruno@clisp.org>
51538         setenv: Avoid gcc warning.
51539         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51541 2011-06-05  Bruno Haible  <bruno@clisp.org>
51543         sys_select: Ensure memset is declared also on AIX 7.
51544         * lib/sys_select.in.h: Include <string.h> also on AIX.
51545         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51546         self-contained also on AIX 7.1.
51548 2011-06-04  Jim Meyering  <meyering@redhat.com>
51550         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51551         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51552         function name, "error".
51553         (_gl_translatable_diag_func_re): New configurable variable.
51555 2011-06-04  Bruno Haible  <bruno@clisp.org>
51557         getopt: Avoid gcc warning.
51558         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51560 2011-06-04  Bruno Haible  <bruno@clisp.org>
51562         strerror_r: Fix comments.
51563         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51564         commit.
51566 2011-06-04  Bruno Haible  <bruno@clisp.org>
51568         perror: Fix compilation error.
51569         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51570         Undefine fprintf, not sprintf.
51571         * modules/perror (Depends-on): Remove intprops, verify.
51573 2011-06-04  Bruno Haible  <bruno@clisp.org>
51575         setlocale: Enable replacement on Cygwin 1.5.
51576         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51577         Cygwin 1.5.x.
51578         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51579         LC_CTYPE category also exists on Cygwin 1.5.x.
51581 2011-06-04  Bruno Haible  <bruno@clisp.org>
51583         strerror-override: Don't disable symbol renamings.
51584         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51585         * lib/strerror-override.c: Include config.h.
51586         (strerror_override): Don't undefine.
51588 2011-06-03  Bruno Haible  <bruno@clisp.org>
51590         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51591         * lib/localename.h: Update copyright header.
51592         * lib/localename.c: Likewise.
51593         * lib/relocatable.h: Likewise.
51594         * lib/relocatable.c: Likewise.
51596 2011-06-02  Bruno Haible  <bruno@clisp.org>
51598         doc: Fix a module name.
51599         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51601 2011-06-02  Bruno Haible  <bruno@clisp.org>
51603         pipe2: Remove dependency on 'nonblocking' module.
51604         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51605         O_NONBLOCK is defined by gnulib.
51606         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51607         is zero.
51608         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51609         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51610         defined by gnulib.
51611         (get_nonblocking_flag): New function.
51612         (main): Test O_NONBLOCK flag only if it is nonzero.
51613         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51615 2011-06-03  Jim Meyering  <meyering@redhat.com>
51617         maint: three new prohibit-header-without-use rules
51618         Prohibit use of cloexec.h, posixver.h, same.h without use.
51619         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51620         (sc_prohibit_posixver_without_use): Likewise.
51621         (sc_prohibit_same_without_use): Likewise.
51623 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51625         allocator: 'die' routine is now given requested size
51626         * lib/allocator.h (struct allocator.die): New size arg.
51627         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51628         If the actual problem is an ssize_t limitation, not a size_t or
51629         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51631 2011-06-01  Eric Blake  <eblake@redhat.com>
51633         strerror: drop strerror_r dependency
51634         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51635         * lib/strerror-override.c (strerror_override): ...to new file.
51636         * lib/strerror-override.h: Add prototype.
51637         * lib/strerror-impl.h: Delete.
51638         * lib/strerror.c (strerror): New implementation.
51639         * modules/errno (Files): Add new files.
51640         (configure.ac): Compile new file as appropriate.
51641         * modules/strerror (Files): Drop unused file.
51642         (Depends-on): Drop strerror_r-posix.
51643         * MODULES.html.sh: Document strerror_r-posix.
51644         Requested by Sam Steingold.
51646         perror: call strerror_r directly
51647         * modules/perror (Files): Drop strerror-impl.h.
51648         * lib/perror.c (perror): Use our own stack buffer, rather than
51649         calling a wrapper that uses static storage.
51650         * doc/posix-functions/perror.texi (perror): Document a limitation
51651         of our replacement.
51653         strerror_r: fix includes for FreeBSD
51654         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51655         since we use abort on some platforms.
51656         Reported by Matthias Bolte.
51658 2011-05-31  Bruno Haible  <bruno@clisp.org>
51660         Fix link errors in tests: openat-die uses gettext-h.
51661         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51662         against $(LIBINTL).
51663         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51664         against $(LIBINTL).
51665         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51666         $(LIBINTL).
51667         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51668         against $(LIBINTL).
51669         * modules/linkat-tests (Makefile.am): Link test-linkat against
51670         $(LIBINTL).
51671         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51672         $(LIBINTL).
51673         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51674         against $(LIBINTL).
51675         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51676         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51677         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51678         $(LIBINTL).
51679         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51680         $(LIBINTL).
51681         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51682         $(LIBINTL).
51683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51685 2011-05-31  Bruno Haible  <bruno@clisp.org>
51687         Fix link errors in tests: wait-process uses gettext-h.
51688         * modules/nonblocking-pipe-tests (Makefile.am): Set
51689         test_nonblocking_pipe_main_LDADD.
51690         * modules/nonblocking-socket-tests (Makefile.am): Link
51691         test-nonblocking-socket-main against $(LIBINTL).
51692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51694 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51696         assert-h: work around 'verify' incompatibility
51697         * lib/verify.h: Use @...@ directives, not ifdef.
51698         * modules/assert-h (assert.h): Implement the directives.
51699         (assert.h): Substitute the symbol-prefix more consistently.
51701 2011-05-29  Jim Meyering  <meyering@redhat.com>
51703         trim: remove three superfluous assignments
51704         * lib/trim.c (trim2): Remove three superfluous assignments
51705         and correct brace positioning.
51707 2011-05-29  Bruno Haible  <bruno@clisp.org>
51709         wctype-h: Avoid namespace pollution on Solaris 2.6.
51710         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51711         identifiers.
51712         * doc/posix-headers/wctype.texi: Mention the problem.
51713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51715 2011-05-28  Jim Meyering  <meyering@redhat.com>
51717         parse-datetime.y: accommodate -Wstrict-overflow
51718         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51719         placate -Wstrict-overflow.
51721         trim: avoid a warning from -O2 -Wstrict-overflow
51722         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51724 2011-05-29  Bruno Haible  <bruno@clisp.org>
51726         gnulib-tool: Fix bug in yesterday's commit.
51727         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51728         twice.
51730 2011-05-29  Bruno Haible  <bruno@clisp.org>
51732         Allow multiple gnulib generated include files to be combined.
51733         * gnulib-tool (func_compute_include_guard_prefix): New function.
51734         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51735         ${gl_include_guard_prefix} references.
51736         (func_import, func_create_testdir): Invoke
51737         func_compute_include_guard_prefix.
51738         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51739         * lib/ctype.in.h: Likewise.
51740         * lib/dirent.in.h: Likewise.
51741         * lib/errno.in.h: Likewise.
51742         * lib/fcntl.in.h: Likewise.
51743         * lib/float.in.h: Likewise.
51744         * lib/getopt.in.h: Likewise.
51745         * lib/iconv.in.h: Likewise.
51746         * lib/langinfo.in.h: Likewise.
51747         * lib/locale.in.h: Likewise.
51748         * lib/math.in.h: Likewise.
51749         * lib/netdb.in.h: Likewise.
51750         * lib/netinet_in.in.h: Likewise.
51751         * lib/poll.in.h: Likewise.
51752         * lib/pthread.in.h: Likewise.
51753         * lib/pty.in.h: Likewise.
51754         * lib/sched.in.h: Likewise.
51755         * lib/se-selinux.in.h: Likewise.
51756         * lib/search.in.h: Likewise.
51757         * lib/signal.in.h: Likewise.
51758         * lib/spawn.in.h: Likewise.
51759         * lib/stdarg.in.h: Likewise.
51760         * lib/stddef.in.h: Likewise.
51761         * lib/stdint.in.h: Likewise.
51762         * lib/stdio.in.h: Likewise.
51763         * lib/stdlib.in.h: Likewise.
51764         * lib/string.in.h: Likewise.
51765         * lib/strings.in.h: Likewise.
51766         * lib/sys_file.in.h: Likewise.
51767         * lib/sys_ioctl.in.h: Likewise.
51768         * lib/sys_select.in.h: Likewise.
51769         * lib/sys_socket.in.h: Likewise.
51770         * lib/sys_stat.in.h: Likewise.
51771         * lib/sys_time.in.h: Likewise.
51772         * lib/sys_times.in.h: Likewise.
51773         * lib/sys_uio.in.h: Likewise.
51774         * lib/sys_utsname.in.h: Likewise.
51775         * lib/sys_wait.in.h: Likewise.
51776         * lib/sysexits.in.h: Likewise.
51777         * lib/termios.in.h: Likewise.
51778         * lib/time.in.h: Likewise.
51779         * lib/unistd.in.h: Likewise.
51780         * lib/wchar.in.h: Likewise.
51781         * lib/wctype.in.h: Likewise.
51782         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51783         * modules/ctype (Makefile.am): Likewise.
51784         * modules/dirent (Makefile.am): Likewise.
51785         * modules/errno (Makefile.am): Likewise.
51786         * modules/fcntl-h (Makefile.am): Likewise.
51787         * modules/float (Makefile.am): Likewise.
51788         * modules/getopt-posix (Makefile.am): Likewise.
51789         * modules/iconv-h (Makefile.am): Likewise.
51790         * modules/langinfo (Makefile.am): Likewise.
51791         * modules/locale (Makefile.am): Likewise.
51792         * modules/math (Makefile.am): Likewise.
51793         * modules/netdb (Makefile.am): Likewise.
51794         * modules/netinet_in (Makefile.am): Likewise.
51795         * modules/poll-h (Makefile.am): Likewise.
51796         * modules/pthread (Makefile.am): Likewise.
51797         * modules/pty (Makefile.am): Likewise.
51798         * modules/sched (Makefile.am): Likewise.
51799         * modules/search (Makefile.am): Likewise.
51800         * modules/selinux-h (Makefile.am): Likewise.
51801         * modules/signal (Makefile.am): Likewise.
51802         * modules/spawn (Makefile.am): Likewise.
51803         * modules/stdarg (Makefile.am): Likewise.
51804         * modules/stddef (Makefile.am): Likewise.
51805         * modules/stdint (Makefile.am): Likewise.
51806         * modules/stdio (Makefile.am): Likewise.
51807         * modules/stdlib (Makefile.am): Likewise.
51808         * modules/string (Makefile.am): Likewise.
51809         * modules/strings (Makefile.am): Likewise.
51810         * modules/sys_file (Makefile.am): Likewise.
51811         * modules/sys_ioctl (Makefile.am): Likewise.
51812         * modules/sys_select (Makefile.am): Likewise.
51813         * modules/sys_socket (Makefile.am): Likewise.
51814         * modules/sys_stat (Makefile.am): Likewise.
51815         * modules/sys_time (Makefile.am): Likewise.
51816         * modules/sys_times (Makefile.am): Likewise.
51817         * modules/sys_uio (Makefile.am): Likewise.
51818         * modules/sys_utsname (Makefile.am): Likewise.
51819         * modules/sys_wait (Makefile.am): Likewise.
51820         * modules/sysexits (Makefile.am): Likewise.
51821         * modules/termios (Makefile.am): Likewise.
51822         * modules/time (Makefile.am): Likewise.
51823         * modules/unistd (Makefile.am): Likewise.
51824         * modules/wchar (Makefile.am): Likewise.
51825         * modules/wctype-h (Makefile.am): Likewise.
51826         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51828 2011-05-29  Bruno Haible  <bruno@clisp.org>
51830         assert-h: Allow multiple gnulib generated replacements to coexist.
51831         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51833 2011-05-29  Bruno Haible  <bruno@clisp.org>
51835         argp: Allow coexistence with strerror_r-posix module.
51836         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51837         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51838         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51839         not the glibc signature.
51841 2011-05-28  Bruno Haible  <bruno@clisp.org>
51843         gnulib-tool: Alternative structure of testdirs, similar to --import.
51844         * gnulib-tool: New option --single-configure.
51845         (func_usage): Document it.
51846         (single_configure): New variable.
51847         (func_modules_transitive_closure_separately,
51848         func_modules_transitive_closure_separately,
51849         func_determine_use_libtests, func_modules_add_dummy_separately,
51850         func_modules_to_filelist_separately): New functions, extracted from
51851         func_import.
51852         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51853         (func_import): Use the new functions.
51854         (func_create_testdir): Set final_modules. Handle $single_configure =
51855         true case.
51857 2011-05-28  Bruno Haible  <bruno@clisp.org>
51859         getloadavg: Remove an unreliable safety check.
51860         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51861         getloadavg.c is in place.
51862         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51863         Reported by Sam Steingold <sds@gnu.org>.
51865 2011-05-28  Bruno Haible  <bruno@clisp.org>
51867         doc: Cleanup yet another file produced by texinfo.tex.
51868         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51870 2011-05-28  Bruno Haible  <bruno@clisp.org>
51872         Finish the conditional dependencies mechanism.
51873         * gnulib-tool: New option --no-conditional-dependencies.
51874         (func_usage): Document it. Don't mark --conditional-dependencies as
51875         experimental.
51876         (cond_dependencies): The possible values can now be true, false, empty.
51877         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51878         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51879         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51881 2011-05-28  Bruno Haible  <bruno@clisp.org>
51883         doc: Use a recent texinfo.tex.
51884         * doc/Makefile (tex_opts): New variable.
51885         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51887 2011-05-28  Jim Meyering  <meyering@redhat.com>
51889         intprops.h: adjust comment to match code change
51890         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51891         only once, it *may* have side effects.  Also fix an unrelated typo.
51892         (_GL_INT_SIGNED): Likewise.
51894 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51896         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51898 2011-05-26  Bruno Haible  <bruno@clisp.org>
51900         mbsrchr: Avoid collision with system function on Interix.
51901         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51902         Reported by Markus Duft <mduft@gentoo.org>.
51904 2011-05-15  James Youngman  <jay@gnu.org>
51906         getopt: for ambiguous options, enumerate the possibilities.
51907         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51908         the ambiguous options when an ambiguous prefix is given. This was
51909         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51910         glibc change was
51911         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51913 2011-05-25  Eric Blake  <eblake@redhat.com>
51915         getcwd: work around mingw bug
51916         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51917         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51918         Reported by Matthias Bolte.
51920 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51922         test-intprops: disable -Wtype-limits diagnostics
51923         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51924         diagnostics.  Otherwise, the integer overflow macros generate many
51925         diagnostics.  Reported by Jim Meyering in
51926         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51928         intprops: shorten, to pacify gcc -Woverlength-strings
51929         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51930         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51931         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51932         likely to run afoul of C compiler limits for string constant lengths.
51933         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51935 2011-05-24  Eric Blake  <eblake@redhat.com>
51937         docs: document recently fixed glibc printf bug
51938         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51939         * doc/posix-functions/printf.texi (printf): Likewise.
51940         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51941         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51943         closein-tests: convert to init.sh
51944         * modules/closein-tests (Files): Add init.sh
51945         * tests/test-closein.sh Use it.
51947         yesno-tests: convert to init.sh
51948         * modules/yesno-tests (Files): Add init.sh.
51949         * tests/test-yesno.sh: Use it.
51951         atexit-tests: ensure reliable exit status
51952         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51953         Reported by Bruno Haible.
51955 2011-05-24  Bruno Haible  <bruno@clisp.org>
51957         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51959         gl_PREREQ_STRERROR_R invocations from here...
51960         * modules/strerror_r-posix (configure.ac): ... to here.
51962 2011-05-24  Eric Blake  <eblake@redhat.com>
51964         strerror_r: fix missing header
51965         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51967         strerror_r: fix AIX test failures
51968         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51969         ERANGE failure.
51971         strerror_r: fix Solaris test failures
51972         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51973         failures.
51974         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51976         strerror_r: enforce POSIX recommendations
51977         * lib/strerror_r.c (safe_copy): New helper method.
51978         (strerror_r): Guarantee a non-empty string.
51979         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51980         recent POSIX rulings and to match our strerror guarantees.
51981         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51983 2011-05-24  Jim Meyering  <meyering@redhat.com>
51985         test-perror2.c: avoid warning about unused variable
51986         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51988 2011-05-24  Eric Blake  <eblake@redhat.com>
51990         perror: avoid spurious test failure on HP-UX
51991         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51993         tests: fix logic bug in init.sh
51994         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51995         shell.
51997 2011-05-24  Jim Meyering  <meyering@redhat.com>
51999         utimensat: do not reference an out-of-scope buffer
52000         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
52001         declared in an inner scope, yet "times" would be dereferenced outside
52002         the scope in which "ts" was valid.
52003         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
52004         of ts[2] "out/up", so that the use of aliased "times" (via
52005         "times = ts;") does not end up referencing an out-of-scope "ts"
52007         opendir-safer.c: don't clobber errno; don't close negative FD
52008         * lib/opendir-safer.c (opendir_safer):
52009         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
52010         file descriptor, and more importantly, don't clobber the
52011         offending errno value with EINVAL.  Before, upon failure
52012         of dup_safer, we would pass the negative file descriptor to
52013         fdopendir, which would clobber errno.
52015 2011-05-23  Bruno Haible  <bruno@clisp.org>
52017         idcache: Fix module description.
52018         * modules/idcache (Include): Set to "idcache.h".
52020 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
52022         gnulib-tool: fix portability problem with MacOS sed
52023         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
52024         before the "}".  Problem reported by Leo in
52025         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
52026         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
52027         sed_extract_condition1, sed_extract_condition2.
52029 2011-05-23  Bruno Haible  <bruno@clisp.org>
52031         hash: Simplify autoconf macro.
52032         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
52034 2011-05-23  Bruno Haible  <bruno@clisp.org>
52036         getugroups: Fix module description.
52037         * modules/getugroups (Include): Set to "getugroups.h".
52039 2011-05-23  Bruno Haible  <bruno@clisp.org>
52041         linkat: Simplify autoconf macro.
52042         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
52044 2011-05-23  Bruno Haible  <bruno@clisp.org>
52045             Eric Blake  <eblake@redhat.com>
52047         linkat, renameat: Update dependencies.
52048         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
52049         * modules/linkat (Depends-on): Likewise. Remove also readlink,
52050         symlinkat.
52052 2011-05-23  Jim Meyering  <meyering@redhat.com>
52054         maint.mk: more tight_scope improvements
52055         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
52056         (_gl_TS_headers): Define only in if-0'd block.
52057         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
52058         sometimes we must *not* use it.  Adjust uses accordingly.
52059         (sc_tight_scope): Use much simpler grep-based test to determine
52060         whether we skip this rule.
52062         maint.mk: generalize/improve the tight-scope rule
52063         * top/maint.mk: Emit a warning when the test is skipped.
52064         (_gl_TS_dir): Add $(srcdir)/ prefix.
52065         (_gl_TS_function_match): Simplify, rather than trying
52066         to enumerate common types.  Otherwise, it would fail to match an
52067         "extern unsigned char const *" declaration in idutils.
52068         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
52069         a way to support use of that type of macro.
52070         (_gl_TS_var_match): Simplify regexp.
52071         (_gl_TS_obj_files): New configurable variable.
52072         (_gl_TS_headers): Likewise.
52074 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52076         verify: fix bug when gnulib <assert.h> is also included
52077         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
52078         is defined, not if _GL_STATIC_ASSERT_H is not defined.
52079         Perhaps there's a better way, but this fixes the immediate problem.
52080         Problem reported by Bruno Haible in
52081         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
52083 2011-05-22  Bruno Haible  <bruno@clisp.org>
52085         xgetcwd: Simplify autoconf macro.
52086         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
52088 2011-05-22  Bruno Haible  <bruno@clisp.org>
52090         New module 'mktime-internal'.
52091         * modules/mktime-internal: New file.
52092         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
52093         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
52094         mktime_internal as a C macro if libc has __mktime_internal.
52095         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
52096         conditions.
52097         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
52099 2011-05-22  Bruno Haible  <bruno@clisp.org>
52101         timegm: Correct mktime replacement statements.
52102         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
52103         defining mktime as a C macro. This completes a 2009-07-28 commit.
52105 2011-05-22  Bruno Haible  <bruno@clisp.org>
52107         timegm: Simplify autoconf macro.
52108         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
52110 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
52112         clock-time: change to LGPLv2+.
52113         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
52114         BSD-like but we have no mark for that; this is good enough for now.
52116 2011-05-21  Bruno Haible  <bruno@clisp.org>
52118         strerror_r: Fix comments.
52119         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
52121 2011-05-21  Bruno Haible  <bruno@clisp.org>
52123         relocatable-prog-wrapper: Fix possible link error.
52124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
52125         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
52126         (gl_FUNC_SETENV): ... to here.
52127         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
52128         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
52130 2011-05-21  Bruno Haible  <bruno@clisp.org>
52132         relocatable-prog-wrapper: Assume strerror() exists.
52133         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
52134         m4/strerror.m4.
52135         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
52136         * lib/relocwrapper.c: Remove mention of strerror module.
52137         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
52138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
52139         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
52140         C macro.
52142 2011-05-21  Bruno Haible  <bruno@clisp.org>
52144         select: Simplify replacement idiom.
52145         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
52146         Win32 platforms.
52147         * lib/sys_select.in.h (select): Simplify accordingly.
52148         * modules/select (Depends-on): Likewise.
52150 2011-05-21  Bruno Haible  <bruno@clisp.org>
52152         mkdir-p: Simplify autoconf macro.
52153         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
52154         gl_FUNC_LCHOWN.
52156 2011-05-21  Eric Blake  <eblake@redhat.com>
52158         strerror_r: avoid clobbering strerror on cygwin
52159         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
52160         fall back instead to sys_errlist.
52161         * modules/strerror (configure.ac): Add witness.
52162         * tests/test-strerror_r.c (main): Enhance test.
52163         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52164         * tests/test-perror2.c (main): Free memory before exit.
52166 2011-05-21  Bruno Haible  <bruno@clisp.org>
52168         mkdtemp: Use gnulib naming conventions.
52169         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
52170         * modules/mkdtemp (configure.ac): Update.
52172 2011-05-20  Eric Blake  <eblake@redhat.com>
52174         strerror_r: avoid corrupting errno on Solaris
52175         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
52176         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52178         strerror_r: avoid compiler warning
52179         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
52181         strerror_r: simplify AIX code
52182         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
52184         test-perror: avoid spurious failure on FreeBSD
52185         * modules/perror-tests (Depends-on): Add strerror, now that
52186         strerror_r no longer pulls it in.
52188 2011-05-20  Bruno Haible  <bruno@clisp.org>
52190         strerror_r-posix: Remove unused dependencies.
52191         * modules/strerror_r-posix (Depends-on): Remove strerror.
52192         Reported by Eric Blake.
52194 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52196         intprops: remove assumption about A|B representation
52197         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
52198         is a valid integer if both A and B are.  Although this is true for
52199         all known practical hosts, the C standard doesn't guarantee it,
52200         and the code need not assume it.  Also, this change may work around
52201         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
52202         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
52204 2011-05-20  Eric Blake  <eblake@redhat.com>
52206         perror: work around FreeBSD bug
52207         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
52208         is broken.  Move AC_LIBOBJ...
52209         * modules/perror (configure.ac): Here.
52210         * doc/posix-functions/perror.texi (perror): Document this.
52211         * tests/test-perror2.c (main): Enhance test.
52213         test-perror: check for strerror interactions
52214         * tests/macros.h (STREQ): Add macro.
52215         * modules/perror-tests (Files): Add second test.
52216         * tests/test-perror2.c (main): New file.
52217         * doc/posix-functions/perror.texi (perror): Document glibc bug.
52219         test-perror: rewrite to use init script
52220         * modules/perror-tests (Files): Add init.sh.
52221         * tests/test-perror.sh: Use temporary directory.
52223 2011-05-20  Jim Meyering  <meyering@redhat.com>
52225         maint: replace misused "a" with "an"
52226         * doc/intprops.texi: "a integer"
52227         * doc/regex.texi: "a explanation"
52228         * lib/alignof.h: "a object"
52229         * lib/argmatch.h: "a explanation"
52230         * lib/argp-help.c: "a option" and "a OPTION_DOC"
52231         * lib/stdint.in.h: "a integer"
52232         * lib/userspec.c: "a owner"
52233         * doc/gnulib.texi: Fix "a idea", and reword.
52235 2011-05-19  Jim Meyering  <meyering@redhat.com>
52237         maint: correct misuse of "a" and "an"
52238         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
52239         * lib/argp-help.c: "an docum...": s/an/a/
52240         * lib/argp-parse.c: "An vector": s/An/A/
52241         * lib/execute.c: "an native": s/an/a/
52242         * lib/spawn-pipe.c: Likewise.
52243         * lib/gc.h: "an Gc_rc": s/an/a/
52244         * lib/unigbrk.in.h: "an grapheme": s/an/a/
52245         * lib/fts.c: "an stat.st_dev": s/an/a/
52247 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52249         intprops-tests: work around HP-UX 11.23 cc bug with constants
52250         * tests/test-intprops.c (VERIFY): New macro.
52251         (main): Use it, instead of verify, to work around the compiler bug; see
52252         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52254         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
52255         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
52256         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
52257         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
52258         (_GL_REMAINDER_OVERFLOW): Use it.
52260         intprops-tests: revert unsigned part of previous change
52261         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
52262         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
52263         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
52264         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
52266 2011-05-19  Bruno Haible  <bruno@clisp.org>
52268         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
52269         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
52270         strerror_r() returned without filling the buffer.
52271         Reported by Eric Blake.
52273 2011-05-19  Eric Blake  <eblake@redhat.com>
52275         strerror_r: guarantee unchanged errno
52276         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
52277         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
52278         failure.
52279         * tests/test-strerror_r.c (main): Enhance test.
52281 2011-05-19  Bruno Haible  <bruno@clisp.org>
52283         strerror_r: Reorder #if blocks.
52284         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
52285         for consistency with the previous commit.
52287 2011-05-19  Bruno Haible  <bruno@clisp.org>
52289         perror: Avoid clobbering the strerror buffer when possible.
52290         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
52291         * lib/strerror.c: Include it.
52292         * modules/strerror (Files): Add lib/strerror-impl.h.
52293         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
52294         (my_strerror): New function, defined through lib/strerror-impl.h.
52295         (perror): Use it instead of strerror.
52296         * modules/perror (Files): Add lib/strerror-impl.h.
52297         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
52299 2011-05-19  Eric Blake  <eblake@redhat.com>
52301         strerror_r: fix on newer cygwin
52302         * lib/strerror_r.c (strerror_r): Cygwin now has
52303         __xpg_strerror_r, use it.
52305 2011-05-19  Bruno Haible  <bruno@clisp.org>
52307         strerror_r: Avoid clobbering the strerror buffer when possible.
52308         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
52309         (sys_nerr, sys_errlist): New declarations.
52310         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
52311         HP-UX, native Win32, IRIX, and 32-bit Solaris.
52312         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
52314 2011-05-19  Bruno Haible  <bruno@clisp.org>
52316         strerror_r: Fix test failure on mingw.
52317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
52318         EXTEND_STRERROR_R.
52319         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
52320         macros from errno.in.h instead.
52322 2011-05-19  Eric Blake  <eblake@redhat.com>
52324         strerror: relax test for Solaris
52325         * tests/test-strerror.c (main): Permit Solaris behavior.
52326         * tests/test-strerror_r.c (main): Likewise.
52328         strerror: enforce POSIX ruling on strerror(0)
52329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
52330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52331         * lib/strerror_r.c (rpl_strerror_r): Work around it.
52332         * doc/posix-functions/strerror.texi (strerror): Document it.
52333         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
52334         * tests/test-strerror.c (main): Strengthen test.
52335         * tests/test-strerror_r.c (main): Likewise.
52337 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52339         intprop-tests: port to older and more-pedantic compilers
52340         * modules/intprops-tests (Files): Add tests/macros.h.
52341         * tests/test-intprops.c: Include macros.h.
52342         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
52343         it's no longer documented to expand to an integer constant expression.
52344         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
52345         argument is floating point, as it's no longer documented to expand
52346         to an integer constant expression in that case.
52347         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
52348         compiler bugs reported by Bruno Haible.  See
52349         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52350         (U0, U1): New constants, to work around the same bugs.  Also,
52351         in tests, use e.g., "(unsigned int) 39" rather than "39u".
52353         intprops: work around C compiler bugs
52354         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
52355         bug in Sun C 5.11 2010/08/13 and other compilers; see
52356         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52358         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
52359         * doc/intprops.texi (Integer Type Determination): Fix
52360         documentation for TYPE_IS_INTEGER: it returns an constant
52361         expression, not an integer constant expression.  Fix doc for
52362         TYPE_SIGNED: it returns an integer constant expression only if its
52363         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
52364         hardly worth documented that way....)
52366 2011-05-18  Bruno Haible  <bruno@clisp.org>
52368         strerror_r: Avoid clobbering the strerror buffer when possible.
52369         * lib/strerror_r.c (strerror_r): Merge the three implementations.
52370         Handle gnulib defined errno values here. When strerror() returns NULL
52371         or an empty string, return EINVAL.
52372         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
52373         gnulib defined errno values here.
52374         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
52376 2011-05-18  Eric Blake  <eblake@redhat.com>
52378         fnmatch: avoid compiler warning
52379         * lib/fnmatch_loop.c (FCT): Use correct type.
52380         Reported by Matthias Bolte.
52382 2011-05-13  Jim Meyering  <meyering@redhat.com>
52384         maint.mk: three new prohibit_<HDR>_without_use rules
52385         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52386         (sc_prohibit_stdio-safer_without_use): Likewise.
52387         (sc_prohibit_xfreopen_without_use): Likewise.
52389 2011-05-17  Jim Meyering  <meyering@redhat.com>
52391         announce-gen: fail if the NEWS delta is empty
52392         If there's nothing noteworthy in NEWS, then either you forgot
52393         or you shouldn't be releasing.
52394         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52396 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52398         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52399         reserved symbols starting with double underscore from the check.
52401 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52403         intprops: add doc
52404         * doc/intprops.texi: New file, documenting intprops.
52405         * doc/gnulib.texi (Particular Modules): Include it.
52407         verify: add doc to gnulib manual and fix example
52408         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52409         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52410         (Compile-time Assertions): Fix example so it can't overflow.
52412 2011-05-17  Jim Meyering  <meyering@redhat.com>
52414         warnings.m4: don't usurp save_CPPFLAGS variable name
52415         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52417         doc: fix typo
52418         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52420 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52421             Bruno Haible  <bruno@clisp.org>
52423         doc: Tweak recent change.
52424         * README (Portability guidelines): Tweak new text.
52425         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52426         Interix 6.1.
52428 2011-05-16  Eric Blake  <eblake@redhat.com>
52430         inttypes: avoid autoconf warning
52431         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52432         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52434 2011-05-16  Sam Steingold  <sds@gnu.org>
52435         and Eric Blake  <eblake@redhat.com>
52437         vc-list-files: accept multiple directory operands
52438         * build-aux/vc-list-files: Iterate over all remaining operands.
52440 2011-05-16  Bruno Haible  <bruno@clisp.org>
52442         Fix confusion regarding deprecated modules.
52443         * modules/calloc (Status, Notice): Mark module as deprecated, not
52444         obsolete.
52445         * modules/fnmatch-posix (Status, Notice): Likewise.
52446         * modules/getdate (Status, Notice): Likewise.
52447         * modules/getopt (Status, Notice): Likewise.
52448         * modules/malloc (Status, Notice): Likewise.
52449         * modules/pipe (Status, Notice): Likewise.
52450         * modules/realloc (Status, Notice): Likewise.
52451         * modules/rename-dest-slash (Status, Notice): Likewise.
52452         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52453         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52454         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52455         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52456         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52458 2011-05-16  Bruno Haible  <bruno@clisp.org>
52460         doc: List the target platforms.
52461         * doc/gnulib-intro.texi (Target Platforms): New section.
52462         * doc/gnulib.texi (Introduction): Update menu.
52463         * README (Portability guidelines): Refer to the new section. Update
52464         statement about oldest supported environment. Remove rationale why
52465         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52466         unportable C89 function.
52467         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52468         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52470 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52472         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52474 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52476         intprops-tests: new module
52477         * modules/intprops-tests, tests/test-intprops.c: New files.
52479         intprops: add safe, portable integer overflow checking
52480         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52481         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52482         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52483         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52484         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52485         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52486         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52487         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52488         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52489         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52490         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52492 2011-05-12  James Youngman  <jay@gnu.org>
52494         Add a test for glibc's Bugzilla bug #12378.
52495         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52496         doesn't allow the literal matching of a lone "[" (which is
52497         required by POSIX).
52498         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52500 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52502         Sync glibc change fixing Bugzilla bug #12378.
52503         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52504         beginning and fall back to matching as normal character if the
52505         string ends before the matching ']' is found.  This is what POSIX
52506         requires.
52508 2011-05-13  Eric Blake  <eblake@redhat.com>
52510         getcwd-lgpl: relax test for FreeBSD
52511         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52512         issue.
52513         * tests/test-getcwd-lgpl.c (main): Relax test.
52514         Reported by Matthias Bolte.
52516 2011-05-11  Eric Blake  <eblake@redhat.com>
52518         test-fflush: silence compiler warning
52519         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52521 2011-05-11  Bruno Haible  <bruno@clisp.org>
52523         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52524         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52525         * modules/canonicalize (Depends-on): Add 'nocrash'.
52526         * modules/canonicalize-lgpl (Depends-on): Likewise.
52527         * doc/posix-functions/realpath.texi: Update platforms list.
52528         Reported by Ryan Schmidt <ryandesign@macports.org>.
52530 2011-05-11  Bruno Haible  <bruno@clisp.org>
52532         group-member: Declare function in <unistd.h>.
52533         * lib/unistd.in.h (group_member): New declaration.
52534         * lib/group-member.h: Remove file.
52535         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52536         * tests/test-unistd-c++.cc: Check signature of group_member.
52537         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52538         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52539         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52540         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52541         HAVE_GROUP_MEMBER.
52542         * modules/group-member (Files): Remove lib/group-member.h.
52543         (Depends-on): Add unistd. Specify conditions.
52544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52545         (Include): Change to <unistd.h>.
52546         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52547         HAVE_GROUP_MEMBER.
52548         * NEWS: Mention the change.
52549         * lib/euidaccess.c: Don't include group-member.h.
52551 2011-05-11  Bruno Haible  <bruno@clisp.org>
52553         group-member: Document module.
52554         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52555         module.
52557 2011-05-11  Bruno Haible  <bruno@clisp.org>
52559         fclose: Fix mistake earlier today.
52560         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52562 2011-05-11  Eric Blake  <eblake@redhat.com>
52564         fclose: preserve fflush errors
52565         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52566         Reported by Jim Meyering.
52568         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52569         * build-aux/bootstrap (check_versions): When no specific version
52570         is required, merely check that the app produces an exit status
52571         that indicates its existence.
52573         maint.mk: drop redundant check
52574         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52575         the same but better.
52577 2011-05-11  Bruno Haible  <bruno@clisp.org>
52579         fclose: Fix possible link error.
52580         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52581         unregister_shadow_fd. Improve comments.
52582         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52583         Eric Blake.
52585 2011-05-11  Jim Meyering  <meyering@redhat.com>
52587         maint.mk: improve "can not" detection and generalize rule name
52588         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52589         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52590         Use the same technique as in sc_prohibit_doubled_word, so that
52591         we recognize "can not" also when the words are separated by a newline.
52592         Suggested by Eric Blake.
52593         (perl_filename_lineno_text_): Define.  Factored out of...
52594         (prohibit_doubled_word_): ...here.  Use the new definition.
52595         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52596         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52597         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52599 2011-05-10  Eric Blake  <eblake@redhat.com>
52601         fclose: avoid double close race when possible
52602         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52603         all but WINDOWS_SOCKETS.
52605 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52607         openat: correct new comment
52608         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52610 2011-05-10  Jim Meyering  <meyering@redhat.com>
52612         openat: add comments
52613         * lib/openat-proc.c (openat_proc_name): Add comments,
52614         mostly from Eric Blake.
52616 2011-05-09  Eric Blake  <eblake@redhat.com>
52618         openat: reduce syscalls in first probe of /proc
52619         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52620         be a directory.  Simplify the probe for .. bugs.
52621         * modules/openat (Depends-on): Drop same-inode.
52622         Reported by Bastien ROUCARIES.
52624 2011-05-09  Jim Meyering  <meyering@redhat.com>
52626         maint.mk: change semantics/name of tight_scope variables
52627         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52628         Rename variables to align with semantics that make them more useful.
52630         maint.mk: tweak new rule's name not to impinge
52631         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52632         (sc_tight_scope): Use new rule name rather than $@-0.
52634         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52635         * top/maint.mk (sc_tight_scope): New rule.
52636         (sc_tight_scope-0): New rule, ifdef'd out.
52637         (_gl_TS_dir): Default.
52638         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52639         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52641 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52643         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52644         Haible <bruno@clisp.org>.
52646 2011-05-08  Bruno Haible  <bruno@clisp.org>
52648         Comments.
52649         * m4/isnanf.m4: Add comment.
52650         * m4/isnanl.m4: Likewise.
52652 2011-05-08  Bruno Haible  <bruno@clisp.org>
52654         glob: Remove obsolete macro.
52655         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52657 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52659         intprops: Sun C 5.11 supports __typeof__
52660         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52661         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52662         which is new.
52663         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52665         intprops: switch to usual gnulib indenting and naming
52666         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52667         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52669         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52671 2011-05-08  Jim Meyering  <meyering@redhat.com>
52673         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52674         * top/maint.mk (release-prep): Use make's --no-print-directory
52675         option when generating the announcement.  This eliminates the
52676         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52677         generated announcement template.
52679 2011-05-08  Bruno Haible  <bruno@clisp.org>
52681         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52682         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52683         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52685 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52687         ignore-value, verify: Omit include files from lib_SOURCES.
52688         * modules/ignore-value, modules/verify (Makefile.am):
52689         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52690         that leads Automake to duplicate use of am__objects_... variables
52691         in Makefile.in.  See
52692         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52694 2011-05-07  Bruno Haible  <bruno@clisp.org>
52696         fclose: Simplify autoconf macro.
52697         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52698         defined.
52700 2011-05-07  Bruno Haible  <bruno@clisp.org>
52702         canonicalize-lgpl: Fix autoconf macro ordering bug.
52703         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52704         gl_STDLIB_H_DEFAULTS.
52706 2011-05-06  Eric Blake  <eblake@redhat.com>
52708         maintainer-makefile: make sc_po_check easier to tune
52709         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52710         to probe for strings, such as an alternate location for gnulib.
52712         fclose: guarantee behavior on seekable stdin
52713         * modules/fclose (Depends-on): Add fflush.
52714         * doc/posix-functions/fclose.texi (fclose): Document this.
52715         * tests/test-fclose.c (main): Make test for this unconditional.
52717 2011-05-06  Bruno Haible  <bruno@clisp.org>
52719         fflush, fpurge: Relicense under LGPLv2+.
52720         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52721         * modules/fpurge (License): Likewise.
52722         With permission from Eric Blake and Jim Meyering.
52723         Suggested by Eric Blake.
52725 2011-05-06  Karl Berry  <karl@gnu.org>
52727         * MODULES.html.sh (func_all_modules): remove exit.
52729 2011-05-06  Jim Meyering  <meyering@redhat.com>
52731         maint.mk: use info-gnu@ as the default only for a stable release
52732         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52733         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52734         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52737 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52739         assert-h: new module, which supports C1X-style static_assert
52740         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52741         * lib/verify.h: Revamp so that this can be copied into assert.h,
52742         while retaining the ability to use it standalone as before.
52743         Rename private identifiers so as not to encroach on the
52744         standard C namespace, since this is now used by assert.h.
52745         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52746         the old verify_true.
52747         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52748         the old verify_true.  Use _GL_VERIFY_TYPE.
52749         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52750         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52751         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52752         defined when this file is copied into the replacement assert.h.
52753         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52754         and _Static_assert is not built in.
52755         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52756         defined, and use the new macros mentioned above.
52757         * doc/posix-headers/assert.texi: Document this.
52759 2011-05-05  Bruno Haible  <bruno@clisp.org>
52761         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52762         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52763         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52764         gl_REPLACE_FCLOSE here.
52765         * modules/fflush (Depends-on): Remove fclose.
52766         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52767         combination with module 'fclose'.
52769 2011-05-05  Bruno Haible  <bruno@clisp.org>
52771         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52772         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52773         gl_FUNC_FFLUSH.
52774         (gl_FUNC_FFLUSH): Use it.
52775         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52777         gl_REPLACE_FSEEKO here.
52779 2011-05-05  Bruno Haible  <bruno@clisp.org>
52781         tzset: Relicense under LGPL.
52782         * modules/tzset (License): Change to LGPL.
52783         No agreement needed; it's a no-op.
52785         strtoimax, strtoumax: Relicense under LGPL.
52786         * modules/strtoimax (License): Change to LGPL.
52787         * modules/strtoumax (License): Likewise.
52788         With permission from Jim Meyering, Paul Eggert:
52789         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52790         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52792         getgroups: Relicense under LGPL.
52793         * modules/getgroups (License): Change to LGPL.
52794         With permission from Jim Meyering, Paul Eggert, Eric Blake:
52795         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52796         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52797         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52799         nanosleep: Relicense under LGPL.
52800         * modules/nanosleep (License): Change to LGPL.
52801         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
52802         Haible:
52803         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52804         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52805         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52806         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52808         futimens: Relicense under LGPL.
52809         * modules/futimens (License): Change to LGPL.
52810         With permission from Eric Blake:
52811         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52813         fflush: Relicense under LGPL.
52814         * modules/fflush (License): Change to LGPL.
52815         With permission from Eric Blake, Bruno Haible, Jim Meyering:
52816         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52817         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52818         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52820         tmpfile: Relicense under LGPL.
52821         * modules/tmpfile (License): Change to LGPL.
52822         With permission from Ben Pfaff:
52823         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52825         isfinite: Relicense under LGPL.
52826         * modules/isfinite (License): Change to LGPL.
52827         With permission from Ben Pfaff, Bruno Haible:
52828         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52829         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52831         acosl..tanl: Relicense under LGPL.
52832         * modules/acosl (License): Change to LGPL.
52833         * modules/asinl (License): Likewise.
52834         * modules/atanl (License): Likewise.
52835         * modules/cosl (License): Likewise.
52836         * modules/expl (License): Likewise.
52837         * modules/logl (License): Likewise.
52838         * modules/sinl (License): Likewise.
52839         * modules/sqrtl (License): Likewise.
52840         * modules/tanl (License): Likewise.
52841         Source code originally from glibc and Paolo Bonzini. Agreements:
52842         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52843         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52845 2011-05-05  Bruno Haible  <bruno@clisp.org>
52847         signal: Define sighandler_t.
52848         * lib/signal.in.h (sighandler_t): New type.
52849         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52850         whether sighandler_t is defined.
52851         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52852         * modules/signal (Depends-on): Add extensions.
52853         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52854         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52855         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52857 2011-05-05  Eric Blake  <eblake@redhat.com>
52859         maint: remove useless REPLACE_*_H macros
52860         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52861         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52862         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52863         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52864         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52865         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52866         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52867         * m4/btowc.m4: Update callers.
52868         * m4/dirfd.m4: Likewise.
52869         * m4/duplocale.m4: Likewise.
52870         * m4/fchdir.m4: Likewise.
52871         * m4/fdopendir.m4: Likewise.
52872         * m4/inet_ntop.m4: Likewise.
52873         * m4/inet_pton.m4: Likewise.
52874         * m4/ioctl.m4: Likewise.
52875         * m4/mbrlen.m4: Likewise.
52876         * m4/mbrtowc.m4: Likewise.
52877         * m4/mbsinit.m4: Likewise.
52878         * m4/mbsnrtowcs.m4: Likewise.
52879         * m4/mbsrtowcs.m4: Likewise.
52880         * m4/poll.m4: Likewise.
52881         * m4/setlocale.m4: Likewise.
52882         * m4/wcrtomb.m4: Likewise.
52883         * m4/wcsnrtombs.m4: Likewise.
52884         * m4/wcsrtombs.m4: Likewise.
52885         * m4/wctob.m4: Likewise.
52886         * m4/wcwidth.m4: Likewise.
52887         * modules/posix_spawn: Likewise.
52888         * modules/posix_spawn_file_actions_addclose: Likewise.
52889         * modules/posix_spawn_file_actions_adddup2: Likewise.
52890         * modules/posix_spawn_file_actions_addopen: Likewise.
52891         * modules/posix_spawn_file_actions_destroy: Likewise.
52892         * modules/posix_spawn_file_actions_init: Likewise.
52893         * modules/posix_spawnattr_destroy: Likewise.
52894         * modules/posix_spawnattr_getflags: Likewise.
52895         * modules/posix_spawnattr_getpgroup: Likewise.
52896         * modules/posix_spawnattr_getschedparam: Likewise.
52897         * modules/posix_spawnattr_getschedpolicy: Likewise.
52898         * modules/posix_spawnattr_getsigdefault: Likewise.
52899         * modules/posix_spawnattr_getsigmask: Likewise.
52900         * modules/posix_spawnattr_init: Likewise.
52901         * modules/posix_spawnattr_setflags: Likewise.
52902         * modules/posix_spawnattr_setpgroup: Likewise.
52903         * modules/posix_spawnattr_setschedparam: Likewise.
52904         * modules/posix_spawnattr_setschedpolicy: Likewise.
52905         * modules/posix_spawnattr_setsigdefault: Likewise.
52906         * modules/posix_spawnattr_setsigmask: Likewise.
52907         * modules/posix_spawnp: Likewise.
52909 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52911         Add option to do-release-commit-and-tag to specify branch.
52912         * build-aux/do-release-commit-and-tag: Add --branch.
52914 2011-05-03  Bruno Haible  <bruno@clisp.org>
52916         Avoid unnecessary compilation units, through conditional dependencies.
52917         * modules/accept (Depends-on): Add conditions to the dependencies.
52918         * modules/acosl (Depends-on): Likewise.
52919         * modules/argz (Depends-on): Likewise.
52920         * modules/asinl (Depends-on): Likewise.
52921         * modules/atanl (Depends-on): Likewise.
52922         * modules/atoll (Depends-on): Likewise.
52923         * modules/bind (Depends-on): Likewise.
52924         * modules/btowc (Depends-on): Likewise.
52925         * modules/canonicalize-lgpl (Depends-on): Likewise.
52926         * modules/ceil (Depends-on): Likewise.
52927         * modules/ceilf (Depends-on): Likewise.
52928         * modules/ceill (Depends-on): Likewise.
52929         * modules/chdir-long (Depends-on): Likewise.
52930         * modules/chown (Depends-on): Likewise.
52931         * modules/close (Depends-on): Likewise.
52932         * modules/connect (Depends-on): Likewise.
52933         * modules/cosl (Depends-on): Likewise.
52934         * modules/dirfd (Depends-on): Likewise.
52935         * modules/dprintf (Depends-on): Likewise.
52936         * modules/dprintf-posix (Depends-on): Likewise.
52937         * modules/error (Depends-on): Likewise.
52938         * modules/euidaccess (Depends-on): Likewise.
52939         * modules/expl (Depends-on): Likewise.
52940         * modules/faccessat (Depends-on): Likewise.
52941         * modules/fchdir (Depends-on): Likewise.
52942         * modules/fclose (Depends-on): Likewise.
52943         * modules/fcntl (Depends-on): Likewise.
52944         * modules/fdopendir (Depends-on): Likewise.
52945         * modules/fflush (Depends-on): Likewise.
52946         * modules/floor (Depends-on): Likewise.
52947         * modules/floorf (Depends-on): Likewise.
52948         * modules/floorl (Depends-on): Likewise.
52949         * modules/fnmatch (Depends-on): Likewise.
52950         * modules/fopen (Depends-on): Likewise.
52951         * modules/fprintf-posix (Depends-on): Likewise.
52952         * modules/frexp (Depends-on): Likewise.
52953         * modules/frexp-nolibm (Depends-on): Likewise.
52954         * modules/frexpl (Depends-on): Likewise.
52955         * modules/frexpl-nolibm (Depends-on): Likewise.
52956         * modules/fseek (Depends-on): Likewise.
52957         * modules/fsusage (Depends-on): Likewise.
52958         * modules/ftell (Depends-on): Likewise.
52959         * modules/ftello (Depends-on): Likewise.
52960         * modules/futimens (Depends-on): Likewise.
52961         * modules/getcwd (Depends-on): Likewise.
52962         * modules/getcwd-lgpl (Depends-on): Likewise.
52963         * modules/getdelim (Depends-on): Likewise.
52964         * modules/getdomainname (Depends-on): Likewise.
52965         * modules/getgroups (Depends-on): Likewise.
52966         * modules/gethostname (Depends-on): Likewise.
52967         * modules/getline (Depends-on): Likewise.
52968         * modules/getlogin_r (Depends-on): Likewise.
52969         * modules/getopt-posix (Depends-on): Likewise.
52970         * modules/getpeername (Depends-on): Likewise.
52971         * modules/getsockname (Depends-on): Likewise.
52972         * modules/getsockopt (Depends-on): Likewise.
52973         * modules/getsubopt (Depends-on): Likewise.
52974         * modules/getusershell (Depends-on): Likewise.
52975         * modules/glob (Depends-on): Likewise.
52976         * modules/grantpt (Depends-on): Likewise.
52977         * modules/iconv_open (Depends-on): Likewise.
52978         * modules/iconv_open-utf (Depends-on): Likewise.
52979         * modules/inet_ntop (Depends-on): Likewise.
52980         * modules/inet_pton (Depends-on): Likewise.
52981         * modules/ioctl (Depends-on): Likewise.
52982         * modules/isapipe (Depends-on): Likewise.
52983         * modules/isfinite (Depends-on): Likewise.
52984         * modules/isinf (Depends-on): Likewise.
52985         * modules/lchown (Depends-on): Likewise.
52986         * modules/ldexpl (Depends-on): Likewise.
52987         * modules/link (Depends-on): Likewise.
52988         * modules/linkat (Depends-on): Likewise.
52989         * modules/listen (Depends-on): Likewise.
52990         * modules/logl (Depends-on): Likewise.
52991         * modules/lstat (Depends-on): Likewise.
52992         * modules/mbrlen (Depends-on): Likewise.
52993         * modules/mbrtowc (Depends-on): Likewise.
52994         * modules/mbsinit (Depends-on): Likewise.
52995         * modules/mbsnrtowcs (Depends-on): Likewise.
52996         * modules/mbsrtowcs (Depends-on): Likewise.
52997         * modules/mbtowc (Depends-on): Likewise.
52998         * modules/memcmp (Depends-on): Likewise.
52999         * modules/mkdir (Depends-on): Likewise.
53000         * modules/mkdtemp (Depends-on): Likewise.
53001         * modules/mkfifo (Depends-on): Likewise.
53002         * modules/mkfifoat (Depends-on): Likewise.
53003         * modules/mknod (Depends-on): Likewise.
53004         * modules/mkostemp (Depends-on): Likewise.
53005         * modules/mkostemps (Depends-on): Likewise.
53006         * modules/mkstemp (Depends-on): Likewise.
53007         * modules/mkstemps (Depends-on): Likewise.
53008         * modules/mktime (Depends-on): Likewise.
53009         * modules/nanosleep (Depends-on): Likewise.
53010         * modules/open (Depends-on): Likewise.
53011         * modules/openat (Depends-on): Likewise.
53012         * modules/perror (Depends-on): Likewise.
53013         * modules/poll (Depends-on): Likewise.
53014         * modules/popen (Depends-on): Likewise.
53015         * modules/posix_spawn (Depends-on): Likewise.
53016         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
53017         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53018         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53019         * modules/posix_spawnp (Depends-on): Likewise.
53020         * modules/pread (Depends-on): Likewise.
53021         * modules/printf-posix (Depends-on): Likewise.
53022         * modules/ptsname (Depends-on): Likewise.
53023         * modules/putenv (Depends-on): Likewise.
53024         * modules/pwrite (Depends-on): Likewise.
53025         * modules/readline (Depends-on): Likewise.
53026         * modules/readlink (Depends-on): Likewise.
53027         * modules/readlinkat (Depends-on): Likewise.
53028         * modules/recv (Depends-on): Likewise.
53029         * modules/recvfrom (Depends-on): Likewise.
53030         * modules/regex (Depends-on): Likewise.
53031         * modules/remove (Depends-on): Likewise.
53032         * modules/rename (Depends-on): Likewise.
53033         * modules/renameat (Depends-on): Likewise.
53034         * modules/rmdir (Depends-on): Likewise.
53035         * modules/round (Depends-on): Likewise.
53036         * modules/roundf (Depends-on): Likewise.
53037         * modules/roundl (Depends-on): Likewise.
53038         * modules/rpmatch (Depends-on): Likewise.
53039         * modules/select (Depends-on): Likewise.
53040         * modules/send (Depends-on): Likewise.
53041         * modules/sendto (Depends-on): Likewise.
53042         * modules/setenv (Depends-on): Likewise.
53043         * modules/setlocale (Depends-on): Likewise.
53044         * modules/setsockopt (Depends-on): Likewise.
53045         * modules/shutdown (Depends-on): Likewise.
53046         * modules/sigaction (Depends-on): Likewise.
53047         * modules/signbit (Depends-on): Likewise.
53048         * modules/sigprocmask (Depends-on): Likewise.
53049         * modules/sinl (Depends-on): Likewise.
53050         * modules/sleep (Depends-on): Likewise.
53051         * modules/snprintf (Depends-on): Likewise.
53052         * modules/snprintf-posix (Depends-on): Likewise.
53053         * modules/socket (Depends-on): Likewise.
53054         * modules/sprintf-posix (Depends-on): Likewise.
53055         * modules/sqrtl (Depends-on): Likewise.
53056         * modules/stat (Depends-on): Likewise.
53057         * modules/strchrnul (Depends-on): Likewise.
53058         * modules/strdup-posix (Depends-on): Likewise.
53059         * modules/strerror (Depends-on): Likewise.
53060         * modules/strerror_r-posix (Depends-on): Likewise.
53061         * modules/strndup (Depends-on): Likewise.
53062         * modules/strnlen (Depends-on): Likewise.
53063         * modules/strptime (Depends-on): Likewise.
53064         * modules/strsep (Depends-on): Likewise.
53065         * modules/strsignal (Depends-on): Likewise.
53066         * modules/strstr-simple (Depends-on): Likewise.
53067         * modules/strtod (Depends-on): Likewise.
53068         * modules/strtoimax (Depends-on): Likewise.
53069         * modules/strtok_r (Depends-on): Likewise.
53070         * modules/strtoumax (Depends-on): Likewise.
53071         * modules/symlink (Depends-on): Likewise.
53072         * modules/symlinkat (Depends-on): Likewise.
53073         * modules/tanl (Depends-on): Likewise.
53074         * modules/tcgetsid (Depends-on): Likewise.
53075         * modules/tmpfile (Depends-on): Likewise.
53076         * modules/trunc (Depends-on): Likewise.
53077         * modules/truncf (Depends-on): Likewise.
53078         * modules/truncl (Depends-on): Likewise.
53079         * modules/uname (Depends-on): Likewise.
53080         * modules/unlink (Depends-on): Likewise.
53081         * modules/unlockpt (Depends-on): Likewise.
53082         * modules/unsetenv (Depends-on): Likewise.
53083         * modules/usleep (Depends-on): Likewise.
53084         * modules/utimensat (Depends-on): Likewise.
53085         * modules/vasprintf (Depends-on): Likewise.
53086         * modules/vdprintf (Depends-on): Likewise.
53087         * modules/vdprintf-posix (Depends-on): Likewise.
53088         * modules/vfprintf-posix (Depends-on): Likewise.
53089         * modules/vprintf-posix (Depends-on): Likewise.
53090         * modules/vsnprintf (Depends-on): Likewise.
53091         * modules/vsnprintf-posix (Depends-on): Likewise.
53092         * modules/vsprintf-posix (Depends-on): Likewise.
53093         * modules/wcrtomb (Depends-on): Likewise.
53094         * modules/wcscasecmp (Depends-on): Likewise.
53095         * modules/wcscspn (Depends-on): Likewise.
53096         * modules/wcsdup (Depends-on): Likewise.
53097         * modules/wcsncasecmp (Depends-on): Likewise.
53098         * modules/wcsnrtombs (Depends-on): Likewise.
53099         * modules/wcspbrk (Depends-on): Likewise.
53100         * modules/wcsrtombs (Depends-on): Likewise.
53101         * modules/wcsspn (Depends-on): Likewise.
53102         * modules/wcsstr (Depends-on): Likewise.
53103         * modules/wcstok (Depends-on): Likewise.
53104         * modules/wcswidth (Depends-on): Likewise.
53105         * modules/wctob (Depends-on): Likewise.
53106         * modules/wctomb (Depends-on): Likewise.
53107         * modules/wctype (Depends-on): Likewise.
53108         * modules/wcwidth (Depends-on): Likewise.
53109         * modules/write (Depends-on): Likewise.
53111 2011-05-03  Bruno Haible  <bruno@clisp.org>
53113         Support for conditional dependencies.
53114         * doc/gnulib.texi (Module description): Document the syntax of
53115         conditional dependencies.
53116         * gnulib-tool: New option --conditional-dependencies.
53117         (func_usage): Document it.
53118         (cond_dependencies): New variable.
53119         (func_get_automake_snippet_conditional,
53120         func_get_automake_snippet_unconditional): New functions, extracted from
53121         func_get_automake_snippet.
53122         (func_get_automake_snippet): Use them.
53123         (sed_first_32_chars): New variable.
53124         (func_module_shellfunc_name): New function.
53125         (func_module_shellvar_name): New function.
53126         (func_module_conditional_name): New function.
53127         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
53128         func_cond_module_condition): New functions.
53129         (func_modules_transitive_closure): Add support for conditional
53130         dependencies.
53131         (func_emit_lib_Makefile_am): For a conditional module, enclose the
53132         conditional automake snippet in an automake conditional.
53133         (func_emit_autoconf_snippets): Emit shell functions that contain the
53134         code for conditional modules.
53135         (func_import, func_create_testdir): Update specification.
53137 2011-05-03  Eric Blake  <eblake@redhat.com>
53139         test-getaddrinfo: report error information
53140         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
53142 2011-05-03  Jim Meyering  <meyering@redhat.com>
53144         bootstrap: avoid build failure when $GZIP is set
53145         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
53146         program name.  If defined at all, it is supposed to list gzip options.
53147         Reported by Alan Curry in http://debbugs.gnu.org/8609
53149 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
53151         readme-release: new module with release instructions
53152         * modules/readme-release: New module.
53153         * top/README-release: New file, from coreutils, grep, diffutils.
53154         * MODULES.html.sh (Support for maintaining and releasing): Add it.
53156 2011-05-02  Eric Blake  <eblake@redhat.com>
53158         fflush: also replace fclose when fixing fflush
53159         * modules/fflush (Depends-on): Add fclose.
53160         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
53161         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
53162         memstreams with no backing fd.
53163         * doc/posix-functions/fclose.texi (fclose): Document the use of
53164         fflush module to fix the bug.
53165         * tests/test-fclose.c (main): Relax test when fclose is used in
53166         isolation.
53168         fclose: add some tests
53169         * modules/fclose-tests: New test module.
53170         * tests/test-fclose.c: New file.
53171         * doc/posix-functions/fclose.texi (fclose): Document the bug.
53173         fclose: reduced dependencies
53174         * modules/fclose (Depends-on): Switch from fflush/fseeko to
53175         simpler lseek.
53176         * lib/fclose.c (rpl_fclose): Likewise.
53177         Reported by Simon Josefsson.
53179         exit: drop remaining clients
53180         * modules/argmatch (Depends-on): Replace exit with stdlib.
53181         * modules/copy-file (Depends-on): Likewise.
53182         * modules/execute (Depends-on): Likewise.
53183         * modules/exitfail (Depends-on): Likewise.
53184         * modules/obstack (Depends-on): Likewise.
53185         * modules/pagealign_alloc (Depends-on): Likewise.
53186         * modules/pipe-filter-gi (Depends-on): Likewise.
53187         * modules/pipe-filter-ii (Depends-on): Likewise.
53188         * modules/savewd (Depends-on): Likewise.
53189         * modules/spawn-pipe (Depends-on): Likewise.
53190         * modules/wait-process (Depends-on): Likewise.
53191         * modules/xsetenv (Depends-on): Likewise.
53192         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
53193         * modules/git-merge-changelog (Depends-on): Likewise.
53194         * modules/long-options (Depends-on): Likewise.
53195         * modules/pt_chown (Depends-on): Likewise.
53196         * modules/sysexits (Depends-on): Likewise.
53198         freading: relax license from LGPLv3+ to LGPLv2+
53199         * modules/freading (License): Relax LGPL version.
53201 2011-05-02  Bruno Haible  <bruno@clisp.org>
53203         fchdir: Remove unused dependencies.
53204         * modules/fchdir (Depends-on): Remove include_next.
53206 2011-05-02  Bruno Haible  <bruno@clisp.org>
53208         gnulib-tool: Refactor.
53209         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
53210         from func_emit_autoconf_snippets.
53211         (func_emit_autoconf_snippets): Use it.
53213 2011-05-02  Simon Josefsson  <simon@josefsson.org>
53215         * NEWS: Document removal of 'exit'.
53216         * modules/exit: Remove file.
53218 2011-05-01  Bruno Haible  <bruno@clisp.org>
53220         Update DEPENDENCIES.
53221         * DEPENDENCIES (gettext): Recommend the newest release.
53222         Reported by Simon Josefsson.
53224 2011-05-01  Bruno Haible  <bruno@clisp.org>
53226         gnulib-tool: Reduce code duplication.
53227         * gnulib-tool (func_emit_autoconf_snippets): New function.
53228         (func_import, func_create_testdir): Use it.
53230 2011-04-30  Eric Blake  <eblake@redhat.com>
53232         fclose: don't fail on non-seekable input stream
53233         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
53234         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
53235         since fflush is allowed to fail in that case.
53237 2011-04-30  Bruno Haible  <bruno@clisp.org>
53239         dup3: cleanup
53240         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
53242 2011-04-30  Bruno Haible  <bruno@clisp.org>
53244         netdb: Make it work in C++ mode.
53245         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
53246         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
53247         module.
53248         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
53249         gl_MODULE_INDICATOR_FOR_TESTS.
53250         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
53251         * modules/netdb-c++-tests: New file.
53252         * tests/test-netdb-c++.cc: New file.
53254 2011-04-30  Bruno Haible  <bruno@clisp.org>
53256         New modules 'vfscanf', 'vscanf'.
53257         * modules/vfscanf: New file.
53258         * modules/vscanf: New file.
53259         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
53260         here.
53261         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
53262         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
53264 2011-04-30  Bruno Haible  <bruno@clisp.org>
53266         passfd: Add comments.
53267         * lib/passfd.c: Add comments about platforms.
53269 2011-04-30  Bruno Haible  <bruno@clisp.org>
53271         sys_uio: Make <sys/uio.h> self-contained.
53272         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
53273         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
53275 2011-04-30  Bruno Haible  <bruno@clisp.org>
53277         sys_socket: Ensure 'struct iovec' definition.
53278         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
53279         <sys/socket.h>.
53280         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
53282 2011-04-30  Bruno Haible  <bruno@clisp.org>
53284         sys_uio: Protect definition of 'struct iovec'.
53285         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
53286         it as a C struct.
53288 2011-04-30  Bruno Haible  <bruno@clisp.org>
53290         manywarnings: fix indentation
53291         * m4/manywarnings.m4: Indent by 2 spaces consistently.
53293 2011-04-30  Pádraig Brady  <P@draigBrady.com>
53295         manywarnings: add -Wno-missing-field-initializers if needed.
53296         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
53297         option if it's needed to allow initialization with { 0, }
53299 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
53301         announce-gen: cosmetic improvement
53302         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
53304 2011-04-29  Jim Meyering  <meyering@redhat.com>
53306         vc-list-files: indent with spaces, not TABs
53307         * build-aux/vc-list-files: Convert leading TABs to spaces,
53308         to match the style of most other files in gnulib.
53310         announce-gen: indent with spaces, not TABs
53311         * build-aux/announce-gen: Convert all TABs to spaces, to match
53312         the style of most other files in gnulib.
53314 2011-04-29  Eric Blake  <eblake@redhat.com>
53316         quotearg: avoid uninitialized variable use
53317         * lib/quotearg.c (quoting_options_from_style): Initialize
53318         remaining fields, and ensure that custom styles are only used via
53319         quoting_options rather than quoting_style.
53321 2011-04-29  Jim Meyering  <meyering@redhat.com>
53323         maint.mk: remove unused VC-tag variable
53324         * top/maint.mk (VC-tag): Remove unused variable.
53326 2011-04-29  Bruno Haible  <bruno@clisp.org>
53328         netdb: fix gai_strerror replacements
53329         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
53330         * modules/netdb: Substitute it.
53332 2011-04-29  Jim Meyering  <meyering@redhat.com>
53334         test-getcwd.c: avoid new set-but-not-used warning
53335         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
53336         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
53337         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
53338         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
53340         test-hash.c: avoid a new shadowing warning
53341         * tests/test-hash.c (main): Don't shadow "dup".
53343 2011-04-28  Eric Blake  <eblake@redhat.com>
53345         getaddrinfo: fix gai_strerror signature
53346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
53347         and work around mingw with UNICODE defined.
53348         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
53349         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
53350         * modules/netdb (Makefile.am): Substitute it.
53351         * lib/netdb.in.h (gai_strerror): Declare replacement.
53352         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
53353         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
53354         the fix.
53356         getsockopt: avoid compiler warning
53357         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
53358         Reported by Matthias Bolte.
53360         tests: drop unused link dependency
53361         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
53362         * modules/dirent-safer-tests (Makefile.am): Likewise.
53363         * modules/fdopendir-tests (Makefile.am): Likewise.
53364         * modules/mkfifoat-tests (Makefile.am): Likewise.
53365         * modules/openat-safer-tests (Makefile.am): Likewise.
53366         * modules/openat-tests (Makefile.am): Likewise.
53367         * modules/readlinkat-tests (Makefile.am): Likewise.
53368         * modules/symlinkat-tests (Makefile.am): Likewise.
53369         * modules/linkat-tests (Makefile.am): Likewise.
53370         (Depends-on): Switch to filenamecat-lgpl.
53371         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
53372         LIBINTL.
53373         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
53374         * tests/test-linkat.c (main): Don't require xalloc.
53376         hash, mgetgroups: drop xalloc dependency
53377         * lib/hash.c (includes): Adjust includes.
53378         * lib/mgetgroups.c (includes): Likewise.
53379         (xgetgroups): Move...
53380         * lib/xgetgroups.c: ...to new file.
53381         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53382         * modules/xgetgroups: New file, split from...
53383         * modules/mgetgroups: ...here.
53384         (Depends-on): Add xalloc-oversized.
53385         * modules/hash (Depends-on): Likewise.
53386         * modules/hash-tests (Depends-on): Drop xalloc.
53387         (test_hash_LDADD): Drop unused library.
53388         * tests/test-hash.c (main): Break xalloc dependency.
53389         (includes): Drop unused include.
53391         xalloc-oversized: new module
53392         * modules/xalloc-oversized: New module.
53393         * modules/xalloc (Depends-on): Add it.
53394         * lib/xalloc.h (xalloc_oversized): Move...
53395         * lib/xalloc-oversized.h: ...into new file.
53397         utimecmp: drop dependency on xmalloc
53398         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53399         due to memory pressure.
53400         * modules/utimecmp (Depends-on): Drop xalloc.
53402 2011-04-27  Eric Blake  <eblake@redhat.com>
53404         getcwd: fix mingw bugs
53405         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53406         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53407         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53409 2011-04-27  Bruno Haible  <bruno@clisp.org>
53411         mkstemps: Ensure declaration on MacOS X 10.5.
53412         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53413         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53414         MacOS X.
53416 2011-04-27  Bruno Haible  <bruno@clisp.org>
53418         mkstemp: More documentation.
53419         * doc/posix-functions/mkstemp.texi: Document header file problem on
53420         MacOS X.
53422 2011-04-27  Bruno Haible  <bruno@clisp.org>
53424         mkstemp: Tweak configure message when cross-compiling.
53425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53426         result as a guess.
53428 2011-04-27  Bruno Haible  <bruno@clisp.org>
53430         clean-temp: Clarify what it does.
53431         * lib/clean-temp.h: Add more comments.
53432         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53433         module.
53434         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53435         * doc/glibc-functions/mkstemps.texi: Likewise.
53436         * doc/glibc-functions/mkostemps.texi: Likewise.
53438 2011-04-27  Eric Blake  <eblake@redhat.com>
53440         fchdir: avoid extra chdir and fix test
53441         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53442         getcwd-lgpl.
53443         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53444         have to be canonical.
53445         (canonicalize_file_name): Drop unused macro.
53446         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53448         filenamecat-lgpl: fix licence
53449         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53450         when it was first created.
53452         linkat, renameat: add missing dependency
53453         * modules/linkat (Depends-on): Require getcwd-lgpl.
53454         * modules/renameat (Depends-on): Likewise.
53456         tests: reduce dependencies
53457         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53458         * tests/test-renameat.c (main): Likewise.
53459         * modules/linkat-tests (Depends-on): Relax dependency.
53460         * modules/renameat-tests (Depends-on): Likewise.
53461         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53462         dependency explicit.
53464         save-cwd: reduce default dependency
53465         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53466         * lib/save-cwd.c: Update comments.
53467         * NEWS: Document the semantic change.
53469         getcwd: enhance tests
53470         * tests/test-getcwd-lgpl.c: New file, taken from...
53471         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53472         repeat long path stress tests from m4 probe.
53473         * modules/getcwd-lgpl-tests: New module.
53474         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53475         * m4/getcwd-abort-bug.m4: Update comment.
53476         * m4/getcwd-path-max.m4: Likewise.
53478         getcwd-lgpl: new module
53479         * modules/getcwd-lgpl: New module.
53480         * lib/getcwd-lgpl.c: New file.
53481         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53482         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53483         * modules/getcwd (configure.ac): Set C witness.
53484         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53486         getcwd: tweak comments
53487         * m4/getcwd-abort-bug.m4: Fix comments.
53488         * m4/getcwd-path-max.m4: Likewise.
53489         * m4/getcwd.m4: Likewise.
53491 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53492         and Eric Blake  <eblake@redhat.com>
53494         mkstemp: replace if system version uses wrong permissions
53495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53496         read/write mode bits set in file created by mkstemp.
53497         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53499 2011-04-27  Eric Blake  <eblake@redhat.com>
53501         passfd: avoid compiler warning
53502         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53503         Reported by Laine Stump.
53505 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53507         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53508         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53510 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53511         and Eric Blake  <eblake@redhat.com>
53513         mkstemp: mention clean-temp module
53514         * lib/mkstemp.c: Add comment.
53515         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53517 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53519         inttypes: also provide default values for 32-bit tests
53520         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53521         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53523 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53525         strtoumax: remove dependency on strtoimax
53526         This is like the strtoull change of yesterday.
53527         * modules/strtoumax (Files): Add lib/strtoimax.c.
53528         (Depends-on): Remove strtoimax and add verify.
53530         inttypes-incomplete: new module
53531         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53532         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53533         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53534         of gl_INTTYPES_H.
53535         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53536         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53537         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53538         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53539         * modules/strtoumax, modules/xstrtol (Depends-on):
53540         Depend on inttypes-incomplete, not inttypes.
53541         * modules/inttypes-incomplete: New module, containing the contents
53542         of the old modules/inttypes module, except that the Files: section
53543         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53544         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53545         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53546         (Depends-on): Depend only on inttypes-incomplete.
53547         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53549         inttypes: omit now-redundant strtoimax and strtoumax work
53550         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53551         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53553         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53554         This supports apps that need pointers to strtoimax and strtoumax,
53555         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53556         nonexistent functions.  See
53557         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53558         et seq.
53559         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53560         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53561         a macro.
53562         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53564 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53566         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53568 2011-04-25  Bruno Haible  <bruno@clisp.org>
53570         strtol, strtoul: Mark modules as obsolete.
53571         * modules/strtol (Status, Notice): New sections.
53572         * modules/strtoul (Status, Notice): New sections.
53574 2011-04-25  Bruno Haible  <bruno@clisp.org>
53576         strtod: Remove check for strtod, unless supporting old platforms.
53577         * modules/strtod-obsolete: New file.
53578         * m4/strtod-obsolete.m4: New file.
53579         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53580         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53581         * modules/strtod (Depends-on): Add strtod-obsolete.
53582         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53584 2011-04-25  Bruno Haible  <bruno@clisp.org>
53586         strcase: Make module obsolete.
53587         * modules/strcase (Status, Notice): New sections.
53589 2011-04-25  Bruno Haible  <bruno@clisp.org>
53591         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53592         * modules/dup2-obsolete: New file.
53593         * m4/dup2-obsolete.m4: New file.
53594         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53595         gl_FUNC_DUP2_OBSOLETE is not also defined.
53596         * modules/dup2 (Depends-on): Add dup2-obsolete.
53597         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53599 2011-04-25  Bruno Haible  <bruno@clisp.org>
53601         strnlen: Avoid memchr related link error on old obsolete platforms.
53602         * modules/memchr-obsolete: New file.
53603         * m4/memchr-obsolete.m4: New file.
53604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53605         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53606         * modules/memchr (Depends-on): Add memchr-obsolete.
53607         * modules/strnlen (Depends-on): Likewise.
53608         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53610 2011-04-25  Jim Meyering  <meyering@redhat.com>
53612         maint.mk: makefile_at_at_check extend and clean up
53613         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53614         in addition to */Makefile.am.
53615         Exempt legitimate uses of @VAR@ notation, e.g.,
53616         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53617         Remove obsolete coreutils-specific comment.
53618         Prompted by discussion here:
53619         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53621 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53623         strtoul: remove dependency on strtol
53624         This is so that 'configure' need not check for strtol merely because
53625         the application needs strtoul.
53626         * modules/strtoul (Files): Add lib/strtol.c.
53627         (Depends-on): Remove strtol.
53629         strtoull: remove dependency on strtoul
53630         This is like the strtoll change.
53631         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53632         (Depends-on): Remove strtoul.
53634         strtoll: remove dependency on strtol
53635         This is so that 'configure' need not check for strtol merely because
53636         the application needs strtoll.
53637         * modules/strtoll (Files): Add lib/strtol.c.
53638         (Depends-on): Remove strtol.
53640 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53642         inttypes: Move some configure check to module 'imaxdiv'.
53643         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53644         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53645         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53647 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53649         inttypes: Move some configure check to module 'imaxabs'.
53650         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53651         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53652         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53654 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53656         inttypes: Remove configure tests that are not needed since 2009-12-31.
53657         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53658         gl_cv_header_working_inttypes_h.
53660 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53662         * modules/strnlen (Depends-on): Remove memchr.
53663         The strnlen implementation doesn't need the memchr module's fixes; see
53664         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53666         strtol: remove dependency on wchar
53667         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53668         * modules/strtol (Depends-on): Remove wchar.
53670 2011-04-21  Eric Blake  <eblake@redhat.com>
53672         passfd: fix test regression on Linux
53673         * modules/passfd-tests (configure.ac): Correct socketpair check.
53675         passfd: speed up configure and drop unused code
53676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53677         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53678         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53679         Instead of probing at configure for unix_scm_rights_bsd44_way,
53680         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53681         check to a struct member probe.
53682         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53683         (sendfd, recvfd): Update preprocessor checks.
53684         * modules/passfd (Files): Reflect rename, and drop unused file.
53685         (Depends-on): Drop unused dependency.
53687         passfd: allow compilation on mingw
53688         * modules/sys_socket (Depends-on): Add sys_uio.
53689         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53690         iovec and a minimal struct msghdr.
53691         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53692         * tests/test-sys_socket.c (main): Enhance test.
53693         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53694         guaranteed to provide what we need.
53695         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53696         * modules/passfd-tests (Depends-on): Add sys_wait.
53697         * tests/test-passfd.c (main): Skip test on mingw, for now.
53698         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53699         partial 'struct msghdr' implementation.
53701         sys_uio: new module
53702         * modules/sys_uio: New module.
53703         * modules/sys_uio-tests: Likewise.
53704         * lib/sys_uio.in.h: New file.
53705         * m4/sys_uio_h.m4: Likewise.
53706         * tests/test-sys_uio.c: Likewise.
53707         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53708         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53710 2011-04-20  Jim Meyering  <meyering@redhat.com>
53712         useless-if-before-free: avoid false-positive
53713         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53714         disjunct so that it too requires a terminating ";".  Without that,
53715         this script would identify as useless one statement from gcc that
53716         was not:
53717           if (aligned_ptr)
53718             free (((void **) aligned_ptr) [-1]);
53720 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53722         doc: update users.txt.
53723         * users.txt: Add barcode.
53725 2011-04-19  Bruno Haible  <bruno@clisp.org>
53727         ioctl: Remove link dependency on native Windows.
53728         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53729         (gl_close_fn, gl_ioctl_fn): New types.
53730         (struct fd_hook): Renamed from struct close_hook. Change type of
53731         private_close_fn field. Add private_ioctl_fn field.
53732         (close_hook_fn): Add parameter for primary close method.
53733         (execute_close_hooks, execute_all_close_hooks): Likewise.
53734         (ioctl_hook_fn): New type.
53735         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53736         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53737         argument.
53738         (unregister_fd_hook): Renamed from unregister_close_hook.
53739         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53740         Don't include <unistd.h>.
53741         (close): Remove undef.
53742         (anchor): Update.
53743         (execute_close_hooks): Add argument for primary close method.
53744         (execute_all_close_hooks): Likewise.
53745         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53746         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53747         argument. Allow each argument to be NULL.
53748         (unregister_fd_hook): Renamed from unregister_close_hook.
53749         * lib/close.c (rpl_close): Pass 'close' function pointer to
53750         execute_all_close_hooks.
53751         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53752         (primary_ioctl): New function.
53753         (ioctl): Don't call ioctlsocket here. Instead, call
53754         execute_all_ioctl_hooks.
53755         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53756         close method.
53757         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53758         (fd_sockets_hook): Renamed from close_sockets_hook.
53759         (gl_sockets_startup, gl_sockets_cleanup): Update.
53760         * modules/fd-hook: Renamed from modules/close-hook. Update.
53761         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53762         * modules/sockets (Depends-on): Likewise.
53763         * modules/ioctl (Depends-on): Add fd-hook.
53764         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53765         GNULIB_SOCKET.
53767 2011-04-19  Bruno Haible  <bruno@clisp.org>
53769         Move the support of O_NONBLOCK in open() to the 'open' module.
53770         * modules/nonblocking (Depends-on): Remove 'open'.
53771         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53772         gl_cv_have_open_O_NONBLOCK.
53773         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53774         O_NONBLOCK support.
53775         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53777 2011-04-17  Bruno Haible  <bruno@clisp.org>
53779         pipe2: Simplify code.
53780         * lib/pipe2.c (pipe2): Reduce code duplication.
53782 2011-04-17  Bruno Haible  <bruno@clisp.org>
53784         nonblocking: Add comment.
53785         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53787 2011-04-17  Bruno Haible  <bruno@clisp.org>
53789         nonblocking: Add tests for sockets.
53790         * tests/test-nonblocking-socket.sh: New file.
53791         * tests/test-nonblocking-socket-main.c: New file.
53792         * tests/test-nonblocking-socket-child.c: New file.
53793         * tests/test-nonblocking-socket.h: New file.
53794         * tests/socket-server.h: New file.
53795         * tests/socket-client.h: New file.
53796         * modules/nonblocking-socket-tests: New file.
53797         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
53799 2011-04-17  Bruno Haible  <bruno@clisp.org>
53801         nonblocking: Add tests for pipes.
53802         * tests/test-nonblocking-pipe.sh: New file.
53803         * tests/test-nonblocking-pipe-main.c: New file.
53804         * tests/test-nonblocking-pipe-child.c: New file.
53805         * tests/test-nonblocking-pipe.h: New file.
53806         * tests/test-nonblocking-writer.h: New file.
53807         * tests/test-nonblocking-reader.h: New file.
53808         * tests/test-nonblocking-misc.h: New file.
53809         * modules/nonblocking-pipe-tests: New file.
53810         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
53812 2011-04-16  Bruno Haible  <bruno@clisp.org>
53814         gettext: Clarify the needed programmer actions.
53815         * modules/gettext (Notice): New field.
53816         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53818 2011-04-16  Bruno Haible  <bruno@clisp.org>
53820         strchrnul: Tweak last commit.
53821         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53822         bug.
53823         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53824         as in _GL_FUNCDECL_SYS.
53825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53826         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53828 2011-04-15  Eric Blake  <eblake@redhat.com>
53830         strchrnul: work around cygwin bug
53831         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53834         * modules/string (Makefile.am): Substitute it.
53835         * lib/string.in.h (strchrnul): Use it.
53837 2011-04-15  Bruno Haible  <bruno@clisp.org>
53839         Don't require lib/stdio-write.c when only module 'stdio' is used.
53840         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53841         invocation.
53842         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53844 2011-04-14  Bruno Haible  <bruno@clisp.org>
53846         Support non-blocking pipe I/O in read() on native Windows.
53847         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53848         (read): New declaration.
53849         * lib/read.c: New file.
53850         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53851         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53852         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53853         vscanf): New declarations.
53854         * lib/stdio-read.c: New file.
53855         * m4/read.m4: New file.
53856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53857         REPLACE_READ.
53858         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53859         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53860         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53861         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53862         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53863         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53864         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53865         * modules/read: New file.
53866         * modules/nonblocking (Files): Add lib/stdio-read.c.
53867         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53868         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53869         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53870         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53871         * modules/pread (Depends-on): Add read.
53872         * modules/safe-read (Depends-on): Likewise.
53873         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53874         gets, scanf, vfscanf, vscanf): Verify signatures.
53875         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53876         problem with non-blocking pipes.
53877         * doc/posix-functions/fgetc.texi: Likewise.
53878         * doc/posix-functions/fgets.texi: Likewise.
53879         * doc/posix-functions/fread.texi: Likewise.
53880         * doc/posix-functions/fscanf.texi: Likewise.
53881         * doc/posix-functions/getc.texi: Likewise.
53882         * doc/posix-functions/getchar.texi: Likewise.
53883         * doc/posix-functions/gets.texi: Likewise.
53884         * doc/posix-functions/scanf.texi: Likewise.
53885         * doc/posix-functions/vfscanf.texi: Likewise.
53886         * doc/posix-functions/vscanf.texi: Likewise.
53888 2011-04-14  Bruno Haible  <bruno@clisp.org>
53890         Support non-blocking pipe I/O in write() on native Windows.
53891         * lib/write.c (rpl_write): Split a write request that failed merely
53892         because the byte count was larger than the pipe buffer's size.
53893         * doc/posix-functions/write.texi: Mention the problem with large byte
53894         counts.
53896 2011-04-14  Bruno Haible  <bruno@clisp.org>
53898         wchar: Ensure that wchar_t gets defined on uClibc.
53899         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53900         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53902 2011-04-13  Bruno Haible  <bruno@clisp.org>
53904         safe-write, full-read: Avoid unnecessary compilation units.
53905         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53906         (Depends-on): Remove safe-read. Add ssize_t.
53907         * modules/full-read (Files): Add lib/full-write.c.
53908         (Depends-on): Add full-write.
53910 2011-04-13  Bruno Haible  <bruno@clisp.org>
53912         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53913         * modules/pwrite (Depends-on): Add 'write'.
53915 2011-04-13  Bruno Haible  <bruno@clisp.org>
53917         Support non-blocking pipe I/O in write() on native Windows.
53918         * lib/unistd.in.h (write): Enable replacement also if
53919         GNULIB_UNISTD_H_NONBLOCKING is 1.
53920         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53921         (rpl_write): When failing to write on a non-blocking pipe, change
53922         errno from ENOSPC to EAGAIN.
53923         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53924         putchar, puts, vfprintf, vprintf): Enable replacement also if
53925         GNULIB_STDIO_H_NONBLOCKING is 1.
53926         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53927         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53928         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53929         CALL_WITH_SIGPIPE_EMULATION.
53930         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53931         * m4/nonblocking.m4: New file.
53932         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53933         for non-blocking I/O support.
53934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53935         GNULIB_UNISTD_H_NONBLOCKING.
53936         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53937         required for non-blocking I/O support.
53938         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53939         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53940         lib/stdio-write.c, m4/asm-underscore.m4.
53941         (Depends-on): Add stdio, unistd.
53942         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53943         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53944         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53945         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53946         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53947         problem with non-blocking pipes.
53948         * doc/posix-functions/fputc.texi: Likewise.
53949         * doc/posix-functions/fputs.texi: Likewise.
53950         * doc/posix-functions/fwrite.texi: Likewise.
53951         * doc/posix-functions/printf.texi: Likewise.
53952         * doc/posix-functions/putc.texi: Likewise.
53953         * doc/posix-functions/putchar.texi: Likewise.
53954         * doc/posix-functions/puts.texi: Likewise.
53955         * doc/posix-functions/vfprintf.texi: Likewise.
53956         * doc/posix-functions/vprintf.texi: Likewise.
53957         * doc/posix-functions/write.texi: Likewise.
53959 2011-04-10  Jim Meyering  <meyering@redhat.com>
53961         maint.mk: prohibit doubled words
53962         Detect them also when they're separated by a newline.
53963         There are 3 ways to customize it:
53964           - disable the test on a per file basis, as usual with rules using
53965             $(VC_LIST_EXCEPT)
53966           - replace the default doubled-word-selecting regexp (affects all files)
53967           - ignore a particular file-vs-doubled-word match
53968         I nearly used that last one to ignore the "is is" match in
53969         coreutils' NEWS file, since the text was "ls -is is ..."
53970         To do that, I would have added this line to cfg.mk:
53971           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53972         but it would have ignored any "is is" match in NEWS.
53973         Low probability, but still...
53974         Instead, I changed the text, slightly:
53975           -  ls -is is now consistent with ls -lis in ignoring values returned
53976           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53977         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53978         (prohibit_doubled_word_): Define.
53979         (sc_prohibit_doubled_word): New rule.
53980         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53982 2011-04-10  Jim Meyering  <meyering@redhat.com>
53984         maint: fix doubled-word typo in comment
53985         * m4/gethostname.m4: s/is is/it is/
53986         * m4/getdomainname.m4: Likewise.
53988 2011-04-10  Jim Meyering  <meyering@redhat.com>
53990         maint: remove doubled word: s/it it/it/
53991         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53993 2011-04-10  Jim Meyering  <meyering@redhat.com>
53995         maint.mk: remove useless semicolon and backslash
53996         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53997         semicolon and backslash.
53999 2011-04-10  Bruno Haible  <bruno@clisp.org>
54001         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
54002         * modules/stdint-tests (Depends-on): Add wchar.
54004 2011-04-10  Jim Meyering  <meyering@redhat.com>
54006         maint: remove doubled words in comments, e.g., s/a a/a/
54007         * lib/strptime.c (day_of_the_week): s/the the/the/
54008         * tests/test-chown.h (test_chown): s/a a/a/
54010         test-chown.h: correct a cast
54011         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
54012         when the destination is a stat.st_gid.
54014 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
54016         getaddrinfo: Fix test for sa_len member.
54017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
54018         include <sys/types.h> before <sys/socket.h>.
54020 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54022         maint: change "can not" to "cannot"
54023         * doc/posix-functions/iconv.texi (iconv): This one crossed line
54024         boundaries.
54026 2011-04-09  Jim Meyering  <meyering@redhat.com>
54028         maint: change "a a" to "a"
54029         * tests/test-lchown.h (test_lchown): s/a a/a/
54031         maint.mk: prohibit \<the the\>
54032         * top/maint.mk (sc_prohibit_the_the): New rule.
54034         maint: fix "the the" in comment
54035         * lib/count-one-bits.h: s/the the/the/
54037         maint: change "can not" to "cannot"
54038         But do not change the occurrences in maintain.texi or in
54039         build-aux/po/Makefile.in.in, which I presume comes from gettext.
54040         * doc/gnulib-tool.texi: s/can not/cannot/
54041         * doc/posix-functions/accept.texi (accept): Likewise.
54042         * doc/posix-functions/socket.texi (socket): Likewise.
54043         * lib/mbrtowc.c: Likewise.
54045         maint.mk: prohibit use of "can not"
54046         * top/maint.mk (sc_prohibit_can_not): New rule.
54047         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
54049 2011-04-09  Bruno Haible  <bruno@clisp.org>
54051         careadlinkat: Guard against misuse of careadlinkatcwd.
54052         * lib/careadlinkat.c: Include <stdlib.h>.
54053         (careadlinkatcwd): Check that the fd argument is as expected.
54055 2011-04-09  Bruno Haible  <bruno@clisp.org>
54057         careadlinkat: Use common coding style.
54058         * lib/careadlinkat.c: Move gnulib includes after system includes.
54060 2011-04-09  Bruno Haible  <bruno@clisp.org>
54062         careadlinkat: Clarify specification.
54063         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
54064         (careadlinkatcwd): Add comment.
54065         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
54067 2011-04-09  Bruno Haible  <bruno@clisp.org>
54069         areadlinkat: Avoid link error on many platforms.
54070         * modules/areadlinkat (Depends-on): Add areadlink.
54072 2011-04-09  Bruno Haible  <bruno@clisp.org>
54074         allocator, careadlinkat: Fix double-inclusion guard.
54075         * lib/allocator.h: Fix double-inclusion guard.
54076         * lib/careadlinkat.h: Likewise.
54078 2011-04-09  Bruno Haible  <bruno@clisp.org>
54080         relocatable-prog-wrapper: Update after module 'areadlink' changed.
54081         * lib/relocwrapper.c: Update dependencies hierarchy.
54082         * build-aux/install-reloc: Update list of files to be compiled.
54083         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
54084         lib/allocator.[hc].
54086 2011-04-08  Eric Blake  <eblake@redhat.com>
54088         strftime: silence gnulib-tool warning
54089         * modules/strftime-tests (Depends-on): Drop automatic dependency.
54091 2011-04-08  Bruno Haible  <bruno@clisp.org>
54093         verify: Fix syntax error with GCC 4.6 in C++ mode.
54094         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
54095         (HAVE_STATIC_ASSERT): New macro.
54096         (verify_true, verify): Use 'static_assert' if it is supported and
54097         '_Static_assert' is not supported.
54099 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
54101         allocator: New module.
54102         * modules/allocator, lib/allocator.c: New files.
54103         * lib/allocator.h (stdlib_allocator): New decl.
54104         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
54105         Remove.  Do not include <stdlib.h>.
54106         (careadlinkat): Use stdlib_allocator instead of rolling our own.
54107         * modules/careadlinkat (Files): Remove lib/allocator.h.
54108         (Depends-on): Add allocator.
54110         stdlib: let modules use system malloc, realloc
54111         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
54112         if !_GL_USE_STDLIB_ALLOC.
54113         (malloc, realloc): Limit this change to a smaller scope.
54115         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
54116         (malloc, realloc): Don't #undef; no longer needed.
54117         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54118         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54119         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54120         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54121         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54122         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54123         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54124         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54126         careadlinkat: rename members to avoid problem
54127         * lib/allocator.h (struct allocator): Rename members from
54128         malloc/realloc to allocate/reallocate, to avoid problems if malloc
54129         and realloc are #define'd.  Reported by Eric Blake in
54130         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
54131         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
54133 2011-04-08  Eric Blake  <eblake@redhat.com>
54135         nonblocking: reduce dependency
54136         * tests/test-nonblocking.c: Only test sockets when in use.
54137         * modules/nonblocking-tests (Depends-on): Drop socket.
54138         (Makefile.am): Link even if sockets are not present.
54139         * modules/pipe2-tests (Makefile.am): Likewise.
54140         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
54142         pipe2: fix O_NONBLOCK support on mingw
54143         * modules/pipe2 (Depends-on): Add nonblocking.
54144         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
54145         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
54146         * tests/test-nonblocking.c (main): Likewise.
54147         * modules/pipe2-tests (Makefile.am): Avoid link failure.
54149         fcntl-h: fix O_ACCMODE on cygwin
54150         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
54151         * lib/fcntl.in.h (O_ACCMODE): Fix it.
54153         pipe-filter: drop O_NONBLOCK workarounds
54154         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
54155         * modules/pipe-filter-ii (Depends-on): Likewise.
54156         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
54158         nonblocking: provide O_NONBLOCK for mingw
54159         * modules/nonblocking (Depends-on): Add open.
54160         (configure.ac): Set new witness macro.
54161         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
54162         * modules/fcntl-h (Makefile.am): Substitute it.
54163         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
54164         nonblocking module is in use.
54165         * lib/nonblocking.c: Adjust portability test.
54166         * lib/open.c (open): Don't let native open see gnulib flag.
54167         * tests/test-fcntl-h.c (main): Enhance test.
54168         * tests/test-open.h (test_open): Likewise.
54169         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
54171         careadlinkat: fix compilation error on mingw
54172         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
54173         within struct allocator.
54175 2011-04-06  Eric Blake  <eblake@redhat.com>
54177         binary-io: relicense under LGPLv2+
54178         * modules/binary-io (License): Relax to LGPLv2+.
54179         Requested for libvirt, and required by pipe2.
54181 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
54183         verify: use _Static_assert if available
54184         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
54185         (verify_true, verify): Use it if available.  This generates better
54186         diagnostics with GCC 4.6.0 and later.
54188 2011-04-05  Bruno Haible  <bruno@clisp.org>
54190         Remove leftover generated .h files after config.status changed.
54192         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
54193         GL_GENERATE_ALLOCA_H.
54194         * modules/alloca-opt (Makefile.am): Remove alloca.h if
54195         GL_GENERATE_ALLOCA_H evaluates to false.
54197         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
54198         GL_GENERATE_ARGZ_H.
54199         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
54200         evaluates to false.
54202         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
54203         GL_GENERATE_BYTESWAP_H.
54204         * modules/byteswap (Makefile.am): Remove byteswap.h if
54205         GL_GENERATE_BYTESWAP_H evaluates to false.
54207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
54208         GL_GENERATE_ERRNO_H.
54209         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
54210         evaluates to false.
54212         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
54213         GL_GENERATE_FLOAT_H.
54214         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
54215         evaluates to false.
54217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
54218         GL_GENERATE_FNMATCH_H.
54219         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
54220         GL_GENERATE_FNMATCH_H evaluates to false.
54222         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
54223         GL_GENERATE_GLOB_H.
54224         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
54225         evaluates to false.
54227         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
54228         automake conditional GL_GENERATE_ICONV_H.
54229         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
54230         evaluates to false.
54232         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
54233         GL_GENERATE_NETINET_IN_H.
54234         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
54235         GL_GENERATE_NETINET_IN_H evaluates to false.
54237         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
54238         conditional GL_GENERATE_PTHREAD_H.
54239         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
54240         * modules/pthread (Makefile.am): Remove pthread.h if
54241         GL_GENERATE_PTHREAD_H evaluates to false.
54243         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
54244         GL_GENERATE_SCHED_H.
54245         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
54246         evaluates to false.
54248         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
54249         conditional GL_GENERATE_SELINUX_CONTEXT_H.
54250         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
54251         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
54253         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
54254         GL_GENERATE_STDARG_H.
54255         * modules/stdarg (Makefile.am): Remove stdarg.h if
54256         GL_GENERATE_STDARG_H evaluates to false.
54258         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
54259         GL_GENERATE_STDBOOL_H.
54260         * modules/stdbool (Makefile.am): Remove stdbool.h if
54261         GL_GENERATE_STDBOOL_H evaluates to false.
54263         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
54264         conditional GL_GENERATE_STDDEF_H.
54265         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
54266         * modules/stddef (Makefile.am): Remove stddef.h if
54267         GL_GENERATE_STDDEF_H evaluates to false.
54269         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
54270         GL_GENERATE_STDINT_H.
54271         * modules/stdint (Makefile.am): Remove stdint.h if
54272         GL_GENERATE_STDINT_H evaluates to false.
54274         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
54275         GL_GENERATE_SYSEXITS_H.
54276         * modules/sysexits (Makefile.am): Remove sysexits.h if
54277         GL_GENERATE_SYSEXITS_H evaluates to false.
54279         Reported by Karl Berry and Ralf Wildenhues.
54281 2011-04-05  Bruno Haible  <bruno@clisp.org>
54283         Ensure to rebuild generated .h files when config.status has changed.
54284         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
54285         config.status.
54286         * modules/ctype (Makefile.am): Likewise.
54287         * modules/dirent (Makefile.am): Likewise.
54288         * modules/errno (Makefile.am): Likewise.
54289         * modules/fcntl-h (Makefile.am): Likewise.
54290         * modules/float (Makefile.am): Likewise.
54291         * modules/getopt-posix (Makefile.am): Likewise.
54292         * modules/glob (Makefile.am): Likewise.
54293         * modules/iconv-h (Makefile.am): Likewise.
54294         * modules/inttypes (Makefile.am): Likewise.
54295         * modules/langinfo (Makefile.am): Likewise.
54296         * modules/locale (Makefile.am): Likewise.
54297         * modules/math (Makefile.am): Likewise.
54298         * modules/netdb (Makefile.am): Likewise.
54299         * modules/netinet_in (Makefile.am): Likewise.
54300         * modules/poll-h (Makefile.am): Likewise.
54301         * modules/pthread (Makefile.am): Likewise.
54302         * modules/pty (Makefile.am): Likewise.
54303         * modules/sched (Makefile.am): Likewise.
54304         * modules/search (Makefile.am): Likewise.
54305         * modules/selinux-h (Makefile.am): Likewise.
54306         * modules/signal (Makefile.am): Likewise.
54307         * modules/spawn (Makefile.am): Likewise.
54308         * modules/stdarg (Makefile.am): Likewise.
54309         * modules/stdbool (Makefile.am): Likewise.
54310         * modules/stddef (Makefile.am): Likewise.
54311         * modules/stdint (Makefile.am): Likewise.
54312         * modules/stdio (Makefile.am): Likewise.
54313         * modules/stdlib (Makefile.am): Likewise.
54314         * modules/string (Makefile.am): Likewise.
54315         * modules/strings (Makefile.am): Likewise.
54316         * modules/sys_file (Makefile.am): Likewise.
54317         * modules/sys_ioctl (Makefile.am): Likewise.
54318         * modules/sys_select (Makefile.am): Likewise.
54319         * modules/sys_socket (Makefile.am): Likewise.
54320         * modules/sys_stat (Makefile.am): Likewise.
54321         * modules/sys_time (Makefile.am): Likewise.
54322         * modules/sys_times (Makefile.am): Likewise.
54323         * modules/sys_utsname (Makefile.am): Likewise.
54324         * modules/sys_wait (Makefile.am): Likewise.
54325         * modules/sysexits (Makefile.am): Likewise.
54326         * modules/termios (Makefile.am): Likewise.
54327         * modules/time (Makefile.am): Likewise.
54328         * modules/unistd (Makefile.am): Likewise.
54329         * modules/wchar (Makefile.am): Likewise.
54330         * modules/wctype-h (Makefile.am): Likewise.
54331         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
54333 2011-04-05  Bruno Haible  <bruno@clisp.org>
54335         pipe2: Relicense under LGPLv2+.
54336         * modules/pipe2 (License): Change to LGPLv2+.
54337         Requested by Eric Blake, for libvirt.
54339 2011-04-05  Bruce Korb  <bkorb@gnu.org>
54341         bootstrap: compute gnulib_extra_files after updating build_aux
54342         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
54343         change build_aux or also supply gnulib_extra_files.  Handle correctly.
54345 2011-04-05  Eric Blake  <eblake@redhat.com>
54347         bootstrap: preserve git whitelist item sorting
54348         * build-aux/bootstrap (sort_patterns): New function.
54349         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
54351 2011-04-05  Simon Josefsson  <simon@josefsson.org>
54353         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
54354         sc_space_tab check.
54356 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
54358         areadlink, areadlinkat: rewrite in terms of careadlinkat
54359         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
54360         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
54361         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
54362         (malloc, realloc): Remove #undefs.
54363         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
54364         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
54365         readlink, ssize_t, stdint, unistd.
54366         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
54367         areadlink, stdint.
54369         careadlinkat: new module
54370         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
54371         * modules/careadlinkat: New files, written by me with
54372         a review and feedback from Ben Pfaff in
54373         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
54375 2011-04-01  Bruno Haible  <bruno@clisp.org>
54377         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
54378         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
54379         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54380         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54381         Reported by Bruce Korb <bruce.korb@gmail.com>.
54383 2011-04-01  Bruno Haible  <bruno@clisp.org>
54385         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54386         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54387         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54388         * modules/wcpcpy (Depends-on): Add extensions.
54389         * modules/wcpncpy (Depends-on): Likewise.
54390         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54391         systems.
54392         * doc/posix-functions/wcpncpy.texi: Likewise.
54393         * doc/posix-functions/wcwidth.texi: Likewise.
54395 2011-03-31  Eric Blake  <eblake@redhat.com>
54397         nonblocking: fix mingw test failures
54398         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54399         non-blocking flag on regular file.
54400         (get_nonblocking_flag): Set errno on invalid fd.
54401         * tests/test-nonblocking.c (main): Avoid test failure on
54402         directories if fchdir is not active.
54403         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54405 2011-03-31  Bruno Haible  <bruno@clisp.org>
54407         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54408         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54409         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54410         Reported by Simon Josefsson <simon@josefsson.org>.
54412 2011-03-31  Bruno Haible  <bruno@clisp.org>
54413         and Eric Blake  <eblake@redhat.com>
54415         nonblocking: new module
54416         * modules/nonblocking: New module.
54417         * modules/nonblocking-tests: Likewise.
54418         * lib/nonblocking.h: New file.
54419         * lib/nonblocking.c: Likewise.
54420         * tests/test-nonblocking.c: New test.
54421         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54423 2011-03-30  Bruno Haible  <bruno@clisp.org>
54425         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54426         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54427         instead of 'printf' format for GCC >= 4.4.
54428         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54429         (fprintf, printf, vfprintf, vprintf): Declare with
54430         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54431         the system's vfprintf() function.
54432         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54434 2011-03-30  Eric Blake  <eblake@redhat.com>
54436         passfd: fix scoping bug
54437         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54438         before sendmsg/recvmsg.
54440         passfd: standardize coding conventions
54441         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54442         can be learned at compile time.
54443         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54444         ifdefs.
54445         (sendfd, recvfd): Follow gnulib code conventions.
54447         passfd: fix incorrect sendmsg arguments
54448         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54449         incorrect msg_controllen value.
54450         * modules/passfd-tests (Depends-on): Check for alarm.
54451         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54452         Reported by Bastien ROUCARIES.
54454 2011-03-30  Bruno Haible  <bruno@clisp.org>
54456         c-strcasestr: Relicense under LGPLv2+.
54457         * modules/c-strcasestr (License): Change to LGPLv2+.
54458         Requested by Eric Blake, for libvirt.
54460 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54462         * users.txt: Add libidn2.  Fix libtasn1 link.
54464 2011-03-30  Jim Meyering  <meyering@redhat.com>
54466         tests: readlink* ("",... fails with EINVAL on newer kernels
54467         readlink and readlinkat have typically failed with ENOENT for
54468         the invalid, empty file name,  "".  However, with the advent
54469         of linux-2.6.39, they fail with EINVAL.
54470         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54471         when operating on the empty file name.
54472         * tests/test-readlink.h (test_readlink): Likewise.
54474 2011-03-29  Bruno Haible  <bruno@clisp.org>
54476         Relicense some modules under LGPLv2+, for libidn2.
54477         * modules/array-mergesort (License): Change to LGPLv2+.
54478         * modules/c-strcaseeq (License): Likewise.
54479         * modules/striconveh (License): Likewise.
54480         * modules/striconveha (License): Likewise.
54481         * modules/uniconv/base (License): Likewise.
54482         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54483         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54484         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54485         * modules/unictype/base (License): Likewise.
54486         * modules/unictype/bidiclass-of (License): Likewise.
54487         * modules/unictype/category-M (License): Likewise.
54488         * modules/unictype/category-none (License): Likewise.
54489         * modules/unictype/category-of (License): Likewise.
54490         * modules/unictype/category-test (License): Likewise.
54491         * modules/unictype/category-test-withtable (License): Likewise.
54492         * modules/unictype/combining-class (License): Likewise.
54493         * modules/unictype/joiningtype-of (License): Likewise.
54494         * modules/unictype/scripts (License): Likewise.
54495         * modules/uninorm/base (License): Likewise.
54496         * modules/uninorm/canonical-decomposition (License): Likewise.
54497         * modules/uninorm/composition (License): Likewise.
54498         * modules/uninorm/decompose-internal (License): Likewise.
54499         * modules/uninorm/decomposition-table (License): Likewise.
54500         * modules/uninorm/nfc (License): Likewise.
54501         * modules/uninorm/nfd (License): Likewise.
54502         * modules/uninorm/u32-normalize (License): Likewise.
54503         * modules/unistr/base (License): Likewise.
54504         * modules/unistr/u32-cpy (License): Likewise.
54505         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54506         * modules/unistr/u32-to-u8 (License): Likewise.
54507         * modules/unistr/u32-uctomb (License): Likewise.
54508         * modules/unistr/u8-check (License): Likewise.
54509         * modules/unistr/u8-mblen (License): Likewise.
54510         * modules/unistr/u8-mbtouc (License): Likewise.
54511         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54512         * modules/unistr/u8-mbtoucr (License): Likewise.
54513         * modules/unistr/u8-prev (License): Likewise.
54514         * modules/unistr/u8-strlen (License): Likewise.
54515         * modules/unistr/u8-to-u32 (License): Likewise.
54516         * modules/unistr/u8-uctomb (License): Likewise.
54517         * modules/unitypes (License): Likewise.
54518         Requested by Simon Josefsson.
54520 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54522         lib-symbol-visibility: Add a notice.
54523         * modules/lib-symbol-visibility (Notice): New field.
54525 2011-03-29  Bruno Haible  <bruno@clisp.org>
54527         getaddrinfo: Doc fix.
54528         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54529         section "fixed in Gnulib".
54531 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54533         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54534         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54536 2011-03-26  Bruno Haible  <bruno@clisp.org>
54538         unictype/property-byname: Reduce the number of load-time relocations.
54539         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54540         (UC_PROPERTY_INDEX_*): New enumeration values.
54541         (uc_property_byname): Convert an index from the lookup table to an
54542         uc_property_t.
54543         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54544         values.
54546 2011-03-26  Bruno Haible  <bruno@clisp.org>
54548         unictype/property-byname: Allow omitted word separators and aliases.
54549         * lib/unictype/pr_byname.gperf: Add property names without word
54550         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54551         for 'space'.
54553 2011-03-26  Bruno Haible  <bruno@clisp.org>
54555         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54556         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54557         also hyphens to space.
54558         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54559         without spaces.
54560         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54562 2011-03-26  Bruno Haible  <bruno@clisp.org>
54564         unictype/joiningtype-byname: Recognize long names as well.
54565         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54566         a long name.
54567         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54568         unictype/joiningtype_byname.h.
54569         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54570         * lib/unictype/joiningtype_byname.gperf: New file.
54571         * modules/unictype/joiningtype-byname (Files): Add
54572         lib/unictype/joiningtype_byname.gperf.
54573         (Depends-on): Add gperf.
54574         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54575         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54576         long names.
54578         Tests for module 'unictype/joiningtype-longname'.
54579         * modules/unictype/joiningtype-longname-tests: New file.
54580         * tests/unictype/test-joiningtype_longname.c: New file.
54582         New module 'unictype/joiningtype-longname'.
54583         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54584         * lib/unictype/joiningtype_longname.c: New file.
54585         * modules/unictype/joiningtype-longname: New file.
54586         * modules/unictype/joiningtype-all (Depends-on): Add
54587         unictype/joiningtype-longname.
54589 2011-03-26  Bruno Haible  <bruno@clisp.org>
54591         unictype/bidiclass-byname: Recognize long names as well.
54592         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54593         name.
54594         * lib/unictype/bidi_byname.c: Include <string.h>,
54595         unictype/bidi_byname.h.
54596         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54597         * lib/unictype/bidi_byname.gperf: New file.
54598         * modules/unictype/bidiclass-byname (Files): Add
54599         lib/unictype/bidi_byname.gperf.
54600         (Depends-on): Add gperf.
54601         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54602         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54603         long names.
54605         Tests for module 'unictype/bidiclass-longname'.
54606         * modules/unictype/bidiclass-longname-tests: New file.
54607         * tests/unictype/test-bidi_longname.c: New file.
54609         New module 'unictype/bidiclass-longname'.
54610         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54611         * lib/unictype/bidi_longname.c: New file.
54612         * modules/unictype/bidiclass-longname: New file.
54613         * modules/unictype/bidiclass-all (Depends-on): Add
54614         unictype/bidiclass-longname.
54616 2011-03-26  Bruno Haible  <bruno@clisp.org>
54618         unictype/bidi*: Rename modules.
54619         * modules/unictype/bidiclass-all: Renamed from
54620         modules/unictype/bidicategory-all.
54621         * modules/unictype/bidiclass-name: Renamed from
54622         modules/unictype/bidiclass-name.
54623         (Description): Update.
54624         * modules/unictype/bidiclass-name-tests: Renamed from
54625         modules/unictype/bidicategory-name-tests.
54626         * modules/unictype/bidiclass-byname: Renamed from
54627         modules/unictype/bidicategory-byname.
54628         (Description): Update.
54629         * modules/unictype/bidiclass-byname-tests: Renamed from
54630         modules/unictype/bidicategory-byname-tests.
54631         * modules/unictype/bidiclass-of: Renamed from
54632         modules/unictype/bidicategory-of.
54633         (Description): Update.
54634         * modules/unictype/bidiclass-of-tests: Renamed from
54635         modules/unictype/bidicategory-of-tests.
54636         * modules/unictype/bidiclass-test: Renamed from
54637         modules/unictype/bidicategory-test.
54638         (Description): Update.
54639         * modules/unictype/bidiclass-test-tests: Renamed from
54640         modules/unictype/bidicategory-test-tests.
54641         * modules/unictype/bidicategory-all: New file, a simple redirection.
54642         * modules/unictype/bidicategory-name: Likewise.
54643         * modules/unictype/bidicategory-byname: Likewise.
54644         * modules/unictype/bidicategory-of: Likewise.
54645         * modules/unictype/bidicategory-test: Likewise.
54646         * modules/unictype/property-bidi-* (Dependencies): Update.
54647         * lib/unictype/bidi_*.c: Update comment.
54649 2011-03-26  Bruno Haible  <bruno@clisp.org>
54651         unictype/bidi*: Rename functions, part 2.
54652         * modules/unictype/bidicategory-name (configure.ac): Update required
54653         libunistring version.
54654         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54656 2011-03-25  Bruno Haible  <bruno@clisp.org>
54658         New module 'unictype/combining-class-all'.
54659         * modules/unictype/combining-class-all: New file.
54661         Tests for module 'unictype/combining-class-byname'.
54662         * modules/unictype/combining-class-byname-tests: New file.
54663         * tests/unictype/test-combiningclass_byname.c: New file.
54665         New module 'unictype/combining-class-byname'.
54666         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54667         * lib/unictype/combiningclass_byname.c: New file.
54668         * lib/unictype/combiningclass_byname.gperf: New file.
54669         * modules/unictype/combining-class-byname: New file.
54671         Tests for module 'unictype/combining-class-longname'.
54672         * modules/unictype/combining-class-longname-tests: New file.
54673         * tests/unictype/test-combiningclass_longname.c: New file.
54675         New module 'unictype/combining-class-longname'.
54676         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54677         * lib/unictype/combiningclass_longname.c: New file.
54678         * modules/unictype/combining-class-longname: New file.
54680         Tests for module 'unictype/combining-class-name'.
54681         * modules/unictype/combining-class-name-tests: New file.
54682         * tests/unictype/test-combiningclass_name.c: New file.
54684         New module 'unictype/combining-class-name'.
54685         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54686         * lib/unictype/combiningclass_name.c: New file.
54687         * modules/unictype/combining-class-name: New file.
54689 2011-03-25  Bruno Haible  <bruno@clisp.org>
54691         unictype/combining-class: Rename source files.
54692         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54693         of unictype/combining.h.
54694         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54695         Update.
54696         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54697         * modules/unictype/combining-class (Description): Fix.
54698         (Files, Makefile.am): Update.
54699         * tests/unictype/test-combiningclass.c: Renamed from
54700         tests/unictype/test-combining.c.
54701         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54703 2011-03-25  Bruno Haible  <bruno@clisp.org>
54705         unictype: Update list of canonical combining classes.
54706         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54708 2011-03-25  Bruno Haible  <bruno@clisp.org>
54710         unictype/category-byname: Recognize long names as well.
54711         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54712         a long name.
54713         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54714         unictype/categ_byname.h.
54715         (UC_CATEGORY_INDEX_*): New enumeration values.
54716         (uc_general_category_byname): Use uc_general_category_lookup and
54717         convert from index to value.
54718         * lib/unictype/categ_byname.gperf: New file.
54719         * modules/unictype/category-byname (Files): Add
54720         lib/unictype/categ_byname.gperf.
54721         (Depends-on): Add gperf.
54722         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54723         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54724         long names.
54726         Tests for module 'unictype/category-longname'.
54727         * modules/unictype/category-longname-tests: New file.
54728         * tests/unictype/test-categ_longname.c: New file.
54730         New module 'unictype/category-longname'.
54731         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54732         * lib/unictype/categ_longname.c: New file.
54733         * modules/unictype/category-longname: New file.
54734         * modules/unictype/category-all (Depends-on): Add it.
54736 2011-03-25  Bruno Haible  <bruno@clisp.org>
54738         Tests for module 'unictype/category-LC'.
54739         * modules/unictype/category-LC-tests: New file.
54740         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54742         New module 'unictype/category-LC'.
54743         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54744         (UC_CATEGORY_LC): New declaration.
54745         (UC_CASED_LETTER): New macro.
54746         * lib/gen-uni-tables.c (is_category_LC): New function.
54747         (output_categories): Also handle category LC.
54748         (UC_CATEGORY_MASK_LC): New enumeration value.
54749         (general_category_byname): Also handle category LC.
54750         * lib/unictype/categ_LC.c: New file.
54751         * lib/unictype/categ_LC.h: New file, automatically generated.
54752         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54753         category LC.
54754         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54755         * modules/unictype/category-LC: New file.
54756         * modules/unictype/category-byname (Depends-on): Add
54757         unictype/category-LC.
54758         * modules/unictype/category-all (Depends-on): Likewise.
54760 2011-03-25  Eric Blake  <eblake@redhat.com>
54762         xmalloc: revert yesterday's regression
54763         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54764         realloc's underlying behavior (allowing allocation of zero-size
54765         objects, especially if malloc-gnu is also in use).
54767 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54769         maint.mk: add missing version to VC-tag
54770         * top/maint.mk: git tag was missing actual tag name; add it.
54772         valgrind: do leak checking, and exit with code 1 on error (not 0)
54773         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54774         to VALGRIND.
54776 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54778         posix-modules: say what it does.
54779         * posix-modules: Add a line to the --help output saying what it does.
54781 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54783         xmalloc: Do not leak if underlying realloc is C99 compatible.
54784         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54785         This avoids a leak on C99-based systems.  See
54786         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54788 2011-03-24  Eric Blake  <eblake@redhat.com>
54790         realloc: document portability problem
54791         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54792         passing 0 size to realloc.
54794 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
54796         doc: update users.txt
54797         * users.txt: Add cvsps, tmpwatch
54799 2011-03-23  Matt Rice  <ratmice@gmail.com>
54801         doc: update users.txt
54802         * users.txt: Add gdb.
54804 2011-03-23  Jim Meyering  <meyering@redhat.com>
54806         doc: update users.txt
54807         Looking through matches up to the following URL (there are still
54808         several more pages), I found several projects that use gnulib:
54809         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
54810         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
54811         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
54813 2011-03-22  Bruno Haible  <bruno@clisp.org>
54815         unictype/bidi*: Rename functions.
54816         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
54817         uc_bidi_class, uc_is_bidi_class): New declarations.
54818         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54819         uc_bidi_category_byname.
54820         (uc_bidi_category_byname): New function.
54821         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54822         u_bidi_category_name.
54823         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54824         (uc_bidi_category_name): New function.
54825         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54826         uc_bidi_category.
54827         (uc_bidi_category): New function.
54828         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54829         uc_is_bidi_category. Invoke uc_bidi_class.
54830         (uc_is_bidi_category): New function.
54831         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54832         instead of uc_bidi_category_byname.
54833         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54834         instead of uc_bidi_category_name.
54835         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54836         uc_bidi_category.
54837         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54838         instead of uc_is_bidi_category.
54840 2011-03-21  Bruno Haible  <bruno@clisp.org>
54842         New module 'unictype/joininggroup-all'.
54843         * modules/unictype/joininggroup-all: New file.
54845         Tests for module 'unictype/joininggroup-of'.
54846         * modules/unictype/joininggroup-of-tests: New file.
54847         * tests/unictype/test-joininggroup_of.c: New file.
54848         * tests/unictype/test-joininggroup_of.h: New file, automatically
54849         generated by gen-uni-tables.
54851         New module 'unictype/joininggroup-of'.
54852         * modules/unictype/joininggroup-of: New file.
54853         * lib/unictype/joininggroup_of.c: New file.
54854         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54855         gen-uni-tables.
54857         Tests for module 'unictype/joininggroup-byname'.
54858         * modules/unictype/joininggroup-byname-tests: New file.
54859         * tests/unictype/test-joininggroup_byname.c: New file.
54861         New module 'unictype/joininggroup-byname'.
54862         * modules/unictype/joininggroup-byname: New file.
54863         * lib/unictype/joininggroup_byname.c: New file.
54864         * lib/unictype/joininggroup_byname.gperf: New file.
54866         Tests for module 'unictype/joininggroup-name'.
54867         * modules/unictype/joininggroup-name-tests: New file.
54868         * tests/unictype/test-joininggroup_name.c: New file.
54870         New module 'unictype/joininggroup-name'.
54871         * modules/unictype/joininggroup-name: New file.
54872         * lib/unictype/joininggroup_name.c: New file.
54873         * lib/unictype/joininggroup_name.h: New file.
54875         New module 'unictype/joiningtype-all'.
54876         * modules/unictype/joiningtype-all: New file.
54878         Tests for module 'unictype/joiningtype-of'.
54879         * modules/unictype/joiningtype-of-tests: New file.
54880         * tests/unictype/test-joiningtype_of.c: New file.
54881         * tests/unictype/test-joiningtype_of.h: New file, automatically
54882         generated by gen-uni-tables.
54884         New module 'unictype/joiningtype-of'.
54885         * modules/unictype/joiningtype-of: New file.
54886         * lib/unictype/joiningtype_of.c: New file.
54887         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54888         gen-uni-tables.
54890         Tests for module 'unictype/joiningtype-byname'.
54891         * modules/unictype/joiningtype-byname-tests: New file.
54892         * tests/unictype/test-joiningtype_byname.c: New file.
54894         New module 'unictype/joiningtype-byname'.
54895         * modules/unictype/joiningtype-byname: New file.
54896         * lib/unictype/joiningtype_byname.c: New file.
54898         Tests for module 'unictype/joiningtype-name'.
54899         * modules/unictype/joiningtype-name-tests: New file.
54900         * tests/unictype/test-joiningtype_name.c: New file.
54902         New module 'unictype/joiningtype-name'.
54903         * modules/unictype/joiningtype-name: New file.
54904         * lib/unictype/joiningtype_name.c: New file.
54906         unictype: Add support for Arabic shaping properties.
54907         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54908         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54909         declarations.
54910         (UC_JOINING_GROUP_*): New enumeration values.
54911         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54912         declarations.
54913         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54914         (unicode_joining_type): New variable.
54915         (UC_JOINING_GROUP_*): New enumeration values.
54916         (unicode_joining_group): New variable.
54917         (fill_arabicshaping, joining_type_as_c_identifier,
54918         output_joining_type_test, output_joining_type,
54919         joining_group_as_c_identifier, output_joining_group_test,
54920         output_joining_group): New functions.
54921         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54922         fill_arabicshaping and output_joining_type_test, output_joining_type,
54923         output_joining_group_test, output_joining_group.
54924         Reported by Simon Josefsson.
54926 2011-03-21  Jim Meyering  <meyering@redhat.com>
54928         strftime: fix a bug in yesterday's change
54929         * lib/strftime.c (add): Accommodate width's initial value of -1.
54930         Otherwise, nstrftime would copy uninitialized data into
54931         the result buffer.
54933 2011-03-21  Jim Meyering  <meyering@redhat.com>
54935         tests: add strftime-tests module
54936         * tests/test-strftime.c: New file.
54937         * modules/strftime-tests: New module.
54939 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54941         strftime: don't assume a byte count fits in 'int'
54942         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54943         found this problem by static analysis, using gcc -Wstrict-overflow
54944         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54945         on an integer overflow having undefined behavior, but it turns out
54946         that the argument is a size, which might not fit in 'int' anyway,
54948 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54950         stdio: don't require ignore_value around fwrite
54952         This patch works around libc bug 11959
54953         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54954         Without this patch, applications must often write
54955         ignore_value (fwrite (...)) even though the ignore_value is
54956         not helpful here.  It's common to write many objects, using
54957         fwrite/printf/etc., and then use ferror to detect output error.
54959         I considered making this patch optional, but decided against it,
54960         because libc is obviously being inconsistent here: there is no
54961         reason libc should insist that user code must inspect fwrite
54962         return's value without also insisting that it inspect printf's,
54963         putchar's, etc.  If user code wants to have a strict style where
54964         all these functions' values are checked (so that ferror need not
54965         be checked), we could add support for that style in a new gnulib
54966         module, but in the meantime it's better to be consistent and to
54967         support common usage.
54969         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54970         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54971         that we are compiling in checking mode, and if not C++, and
54972         if not already wrapping fwrite for some other reason.
54973         (fwrite): #define to rpl_fwrite if the latter is defined.
54975 2011-03-20  Bruno Haible  <bruno@clisp.org>
54977         verror: Fix compilation error introduced on 2011-02-13.
54978         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54979         instead of __attribute__.
54980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54982 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54983             Bruno Haible  <bruno@clisp.org>
54985         socklen: do not depend on sys_socket
54986         While trying to modify Emacs to use gnulib's socklen module,
54987         I discovered a circular dependency: socklen depends on sys_socket
54988         and vice versa.  Emacs can use socklen, but it does not need
54989         sys_socket because it has its own substitute for sys/socket.h.
54990         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54991         gl_TYPE_SOCKLEN_T.
54992         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54993         gl_PREREQ_SYS_H_SOCKET.
54994         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54995         gl_PREREQ_SYS_H_SOCKET.
54996         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54997         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54998         * modules/socklen (Depends-on): Do not depend on sys_socket.
54999         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
55001 2011-03-20  Jim Meyering  <meyering@redhat.com>
55003         maint.mk: sort file names *after* new transformation
55004         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
55005         prefix would have led to an unwarranted failure in GNU parted.
55006         Sort after that transformation.
55008 2011-03-19  Jim Meyering  <meyering@redhat.com>
55010         maint.mk: fix po-file syntax-check rule
55011         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
55012         Patch by Bruno Haible.
55014 2011-03-19  Bruno Haible  <bruno@clisp.org>
55016         socklen: Update comment.
55017         * m4/socklen.m4: Update comment about platforms.
55019 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55020             Bruno Haible  <bruno@clisp.org>
55022         inet_ntop, inet_pton: Simplify.
55023         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
55024         documented to provide socklen_t and we already depend on sys_socket.
55025         * modules/inet_pton (Depends-on): Likewise.
55026         * lib/arpa_inet.in.h: Adjust comment.
55028 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55029             Bruno Haible  <bruno@clisp.org>
55031         netdb: Simplify.
55032         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
55033         documented to provide socklen_t and we already depend on sys_socket.
55034         * lib/netdb.in.h: Adjust comment.
55036 2011-03-19  Bruno Haible  <bruno@clisp.org>
55038         sys_socket, netdb: Document problem with socklen_t.
55039         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
55040         platforms.
55041         * doc/posix-headers/netdb.texi: Likewise.
55043 2011-03-18  Eric Blake  <eblake@redhat.com>
55045         maint.mk: let po check work in VPATH build
55046         * top/maint.mk (po_file): Allow cfg.mk override.
55047         (sc_po_check): Allow VPATH use.
55048         Reported by Jiri Denemark.
55050 2011-03-16  Jim Meyering  <meyering@redhat.com>
55052         maint.mk: allow fine-grained syntax-check exclusion via Make variables
55053         Before, you would have had to create one .x-sc_ file per rule in order
55054         to exempt offending files.  Now, you may instead use a Make variable --
55055         usually defined in cfg.mk -- whose name identifies the affected rule.
55056         * top/maint.mk (_sc_excl): Define.
55057         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
55058         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
55060 2011-03-13  Bruno Haible  <bruno@clisp.org>
55062         ignore-value tests: Avoid warnings.
55063         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
55064         empty for gcc < 3.4.
55066 2011-03-13  Bruno Haible  <bruno@clisp.org>
55068         passfd: Fix link error on Solaris.
55069         * modules/passfd (Description): Correct.
55070         (Depends-on): Add socketlib.
55071         (Link): New section.
55072         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
55074 2011-03-13  Bruno Haible  <bruno@clisp.org>
55076         passfd: Fix link error on AIX 5.2.
55077         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
55079 2011-03-13  Bruno Haible  <bruno@clisp.org>
55081         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
55082         * lib/sys_socket.in.h: Include <stddef.h>.
55083         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
55084         CMSG_FIRSTHDR. Remove unused variable.
55086 2011-03-13  Bruno Haible  <bruno@clisp.org>
55088         passfd: Fix compilation error on OpenBSD.
55089         * lib/passfd.c: Include <sys/uio.h>.
55091 2011-03-13  Bruno Haible  <bruno@clisp.org>
55093         passfd test: Fix warnings.
55094         * tests/test-passfd.c: Include <sys/wait.h>.
55095         (main): Fix typo.
55097 2011-03-13  Bruno Haible  <bruno@clisp.org>
55099         passfd module, part 4, tweaks.
55100         * tests/test-passfd.c: Reorder includes.
55101         (main): Fix perror and printf calls.
55103 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55105         passfd module, part 4.
55106         * modules/passfd-tests: New file.
55107         * tests/test-passfd.c: New file.
55109 2011-03-13  Jim Meyering  <meyering@redhat.com>
55111         Makefile: rely on GNU make; derive syntax-check rule names
55112         Rather than requiring that each sc_ rule be listed as a dependent
55113         of "check", use features of GNU make to derive the list.
55114         * Makefile (syntax-check-rules): Define.
55115         (check): Depend on the new variable, not the hard-coded list.
55117 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
55118             Bruno Haible  <bruno@clisp.org>
55120         passfd module, part 3.
55121         * lib/passfd.h (recvfd): Add a flags argument.
55122         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
55123         (recvfd): Add a flags argument.
55124         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
55125         exists.
55126         * modules/passfd (Depends-on): Add cloexec.
55127         Suggested by Eric Blake.
55129 2011-03-13  Bruno Haible  <bruno@clisp.org>
55131         passfd module, part 2, tweaks.
55132         * modules/passfd (Files): Reorder.
55133         (Depends-on): Remove errno.
55134         (Include): Remove <sys/socket.h>, <sys/un.h>.
55135         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
55136         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
55137         specification header. Include <sys/socket.h> always. Don't include
55138         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
55139         (sendfd): Clarify that it sets errno when it fails.
55140         (recvfd): Fix specification.
55142 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55144         passfd module, part 2.
55145         * modules/passfd: New file.
55146         * lib/passfd.h: New file.
55147         * lib/passfd.c: New file.
55149 2011-03-12  Bruno Haible  <bruno@clisp.org>
55151         wcswidth, mbswidth: Avoid integer overflow.
55152         * lib/wcswidth.c: Include <limits.h>.
55153         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
55154         * lib/mbswidth.c: Include <limits.h>.
55155         (mbsnwidth): Avoid 'int' overflow.
55156         Reported by Jim Meyering.
55158 2011-03-12  Bruno Haible  <bruno@clisp.org>
55160         futimens, utimensat: Avoid endless recursion on Solaris 10.
55161         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
55162         Solaris.
55163         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
55164         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
55166 2011-03-11  Jim Meyering  <meyering@redhat.com>
55168         maint.mk: relax a regexp to accommodate other formatting styles
55169         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
55170         between "ngettext" and the following "(".
55172 2011-03-11  Pádraig Brady  <P@draigBrady.com>
55174         maint.mk: suppress a false positive warning
55175         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
55176         diagnostics are marked with ngettext.
55178 2011-03-10  Eric Blake  <eblake@redhat.com>
55180         wchar: add explicit dependencies, for Tru64
55181         * modules/mbmemcasecoll (Depends-on): Add wchar.
55182         * modules/mbtowc (Depends-on): Likewise.
55183         * modules/vasnprintf (Depends-on): Likewise.
55184         * modules/unistdio/u-printf-args (Depends-on): Likewise.
55185         * modules/wctomb (Depends-on): Likewise.
55186         Reported by Peter O'Gorman.
55188 2011-03-08  Bruno Haible  <bruno@clisp.org>
55190         passfd module, part 1, tweaks.
55191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
55192         Improve indentation. Improve AC_MSG_CHECKING messages.
55193         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
55194         gl_SOCKET_FAMILIES.
55196 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55198         passfd module, part 1.
55199         * m4/afunix.m4: New file.
55200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
55201         sockets.
55203 2011-03-08  Bruno Haible  <bruno@clisp.org>
55205         regex-quote: New API.
55206         * lib/regex-quote.h: Include <stdbool.h>.
55207         (struct regex_quote_spec): New type.
55208         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55209         New declarations.
55210         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55211         'const struct regex_quote_spec *' argument.
55212         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
55213         (pcre_special): New constant.
55214         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55215         New functions.
55216         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55217         'const struct regex_quote_spec *' argument.
55218         * modules/regex-quote (Depends-on): Add stdbool.
55219         * tests/test-regex-quote.c (check): Update for new API. Add test for
55220         anchored results.
55221         * NEWS: Mention the API change.
55222         Reported by Reuben Thomas and Eric Blake.
55224 2011-03-06  Bruno Haible  <bruno@clisp.org>
55226         regex-quote: Fix creation of POSIX extended regular expressions.
55227         * lib/regex-quote.c (ere_special): Add grouping and alternation
55228         operators.
55230 2011-03-05  Bruno Haible  <bruno@clisp.org>
55232         doc: Improve doc regarding autopoint vs. gnulib.
55233         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
55234         disable autopoint while running autoreconf.
55235         Suggested by Ralf Wildenhues.
55237 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55239         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
55240         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
55242 2011-03-03  Bruce Korb  <bkorb@gnu.org>
55244         parse-duration: remove xalloc.h dependency
55245         * lib/parse-duration.c (parse_period): handle NULL return from
55246         strdup instead of calling xstrdup().
55247         * modules/parse-duration: remove "xalloc" dependency
55249 2011-03-03  Matthew Booth  <mbooth@redhat.com>
55251         bootstrap: honor m4_base when running aclocal
55252         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
55254 2011-03-02  Jim Meyering  <meyering@redhat.com>
55256         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
55257         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
55258         on request from Matt Booth.
55260 2011-03-01  Eric Blake  <eblake@redhat.com>
55262         test-link: work on Hurd
55263         * tests/test-link.h (test_link): Hurd rejects linking directories
55264         with EISDIR instead of the POSIX-mandated EPERM.
55266 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
55268         stdio: simplify by moving files to printf-posix, sigpipe
55269         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
55270         since this symbol is needed only if printf is replaced.
55271         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
55272         Require gl_ASM_SYMBOL_PREFIX.
55273         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
55274         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
55275         (Depends-on): Add 'raise'.
55276         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
55277         * modules/stdio (Files): Remove lib/stdio-write.c,
55278         m4/asm-underscore.m4.
55279         (Depends-on): Remove 'raise'.
55281         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
55282         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
55283         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
55284         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
55286 2011-02-28  Bruno Haible  <bruno@clisp.org>
55288         localcharset: Assume ANSI C behaviour of free().
55289         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
55290         calling free().
55291         Suggested by Simon Josefsson <simon@josefsson.org>.
55293 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
55294             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
55295             Bruno Haible  <bruno@clisp.org>  (tiny change)
55297         On Cygwin, use /proc file system instead of win32 API.
55298         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
55299         Win32 file names.
55300         (DllMain): Simplify by removing Cygwin specific code.
55301         (find_shared_library_fullname): Use Linux specific implementation also
55302         for Cygwin.
55303         (get_shared_library_fullname): Update accordingly.
55304         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
55305         Win32 file names.
55306         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
55307         Cygwin specific code.
55309 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
55310             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
55312         Fix OpenMP flag detection for various Fortran compilers.
55313         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
55314         OpenMP-conditional compilation construct, to force compile
55315         failure with missing OpenMP flag.
55316         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
55318 2011-02-25  Eric Blake  <eblake@redhat.com>
55320         strstr: expand test coverage
55321         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
55322         compilation.
55323         * tests/test-memmem.c (main): Duplicate tests.
55324         * tests/test-strcasestr.c (main): Likewise.
55325         * tests/test-c-strcasestr.c (main): Likewise.
55327 2011-02-25  Jim Meyering  <meyering@redhat.com>
55329         maint.mk: detect missing-NL-at-EOF, too
55330         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
55331         it also detects when a file lacks a newline at EOF.
55332         (require_exactly_one_NL_at_EOF_): Renamed from
55333         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
55334         since people may well have .x-sc_... file names tied to the
55335         existing name.  Suggested by Eric Blake.
55337 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55339         dirname: move m4/dos.m4 functionality into lib/dosname.h
55341         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
55342         extracts symbols from it, puts them into config.h; but it's much
55343         easier to use the symbols directly.  filename.h already does this,
55344         but it disagrees with dos.m4 in some respects.  This patch
55345         introduces a different include file dosname.h that packages up
55346         dos.m4, and then later we can work on merging filename.h and
55347         dosname.h.  Applications that need only the easy-to-configure
55348         symbols should consider including dosname.h rather than dirname.h.
55349         * NEWS: Mention incompatible changes.
55350         * m4/dos.m4: Remove.
55351         * lib/dosname.h, modules/dosname: New files.
55352         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
55353         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
55354         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
55355         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
55356         Include dosname.h, not dirname.h.
55357         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
55358         Include dosname.h, for definitions of symbols like ISSLASH
55359         that used to be in config.h.
55360         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
55361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
55362         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55363         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55364         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
55365         * modules/rmdir (Files): Likewise.
55366         * modules/stat (Files): Likewise.
55367         * modules/unlink (Files): Likewise.
55368         * modules/dirname-lgpl (Depends-on): Add dosname.
55369         * modules/lstat (Depends-on): Likewise.
55370         * modules/openat (Depends-on): Likewise.
55371         * modules/rmdir (Depends-on): Likewise.
55372         * modules/savewd (Depends-on): Likewise.
55373         * modules/stat (Depends-on): Likewise.
55374         * modules/unlink (Depends-on): Likewise.
55375         * modules/openat (Depends-on): Remove dirname-lgpl.
55376         * modules/savewd (Depends-on): Likewise.
55377         * tests/test-dirname.c: Do not use removed symbols like
55378         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
55379         the remaining symbols, e.g., ISSLASH ('\\').
55381 2011-02-25  Eric Blake  <eblake@redhat.com>
55383         strstr: revert patches that introduced bug and pessimization
55384         * lib/str-two-way.h: Add another reference.
55385         (two_way_short_needle, two_way_long_needle): Revert changes from
55386         2011-02-24; they pessimize search speed.
55387         (critical_factorization): Partially revert changes from
55388         2010-06-22; they violate the requirement that the left half of the
55389         needle be smaller than the period of the needle.
55391 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55393         filenamecat: remove unnecessary dependency on dirname-lgpl
55394         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55395         is no direct dependency, just an indirect one via filenamecat-lgpl.
55397         remove: remove unnecessary use of m4/dos.m4
55398         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55399         * modules/remove (FILES): Remove m4/dos.m4.
55401         * lib/openat-proc.c: Don't include dirname.h; not needed.
55403         backupfile: remove unnecessary use of m4/dos.m4
55404         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55405         of its symbols are used by the backupfile code.  backupfile.c does
55406         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55407         for the rare case of programs that want all their backup file
55408         names to live within 8+3 limits, and dos.m4 doesn't address that.
55409         * modules/backupfile (Files): Remove m4/dos.m4.
55411 2011-02-24  Jim Meyering  <meyering@redhat.com>
55413         strstr: fix a bug whereby strstr would mistakenly return NULL
55414         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55415         in period calculation.
55416         (two_way_long_needle): Likewise.
55417         The original problem was reported by Mike Stump in
55418         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55419         Ralf Wildenhues provided the short needle and haystack.
55420         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55421         Add a more involved test to trigger the bug in two_way_long_needle.
55423 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55425         gnulib-tool: remove use of bold display in help screen
55426         * gnulib-tool (func_usage): Do not use bold display anymore in the
55427         help screen.  That was just meant to be a temporary emphasis for a
55428         backward-incompatible change.
55430 2011-02-23  Bruno Haible  <bruno@clisp.org>
55432         Fix misindentation of preprocessor directives.
55433         * lib/argp-namefrob.h: Reindent preprocessor directives.
55434         * lib/getopt_int.h (struct _getopt_data): Likewise.
55435         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55436         * lib/vasnprintf.c (decode_long_double): Likewise.
55437         * tests/test-argmatch.c: Insert blank lines, for clarity.
55438         * tests/test-exclude.c: Likewise.
55440 2011-02-22  Bruno Haible  <bruno@clisp.org>
55442         ioctl: Fix for MacOS X in 64-bit mode.
55443         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55444         value.
55445         Suggested by Eric Blake.
55446         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55448 2011-02-22  Jim Meyering  <meyering@redhat.com>
55450         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55451         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55452         in lib/.
55454 2011-02-22  Eric Blake  <eblake@redhat.com>
55456         maint: avoid any CDPATH issue
55457         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55459         maint: adjust cpp indentation for my modules, as well
55460         * Makefile (sc_cpp_indent_check): Add my name.
55461         * lib/fbufmode.c: Filter through cppi.
55462         * lib/fpurge.c: Likewise.
55463         * lib/freadable.c: Likewise.
55464         * lib/freading.c: Likewise.
55465         * lib/fwritable.c: Likewise.
55466         * lib/fwriting.c: Likewise.
55467         * lib/sigaction.c: Likewise.
55469 2011-02-22  Jim Meyering  <meyering@redhat.com>
55471         maint: adjust cpp indentation to reflect nesting depth
55472         I.e., in a block of code that begins with an unnested "#if",
55473         put one space between the "#" in column 1 and following token.
55474         For example,
55475         -#include <sys/vfs.h>
55476         +# include <sys/vfs.h>
55477         Do this only in .c files that are part of a module I maintain.
55478         * lib/linkat.c: Filter through cppi.
55479         * lib/nanosleep.c: Likewise.
55480         * lib/openat.c: Likewise.
55481         * lib/openat-die.c: Likewise.
55482         * lib/dup3.c: Likewise.
55483         * lib/fchownat.c: Likewise.
55484         * lib/flock.c: Likewise.
55485         * lib/fsync.c: Likewise.
55486         * lib/fts.c: Likewise.
55487         * lib/getpass.c: Likewise.
55488         * lib/gettimeofday.c: Likewise.
55489         * lib/userspec.c: Likewise.
55490         * Makefile (sc_cpp_indent_check): New rule, to check this.
55492 2011-02-22  Bruno Haible  <bruno@clisp.org>
55494         New module 'wctomb'.
55495         * lib/stdlib.in.h (wctomb): New declaration.
55496         * lib/wctomb.c: New file.
55497         * lib/wctomb-impl.h: New file.
55498         * m4/wctomb.m4: New file.
55499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55500         REPLACE_WCTOMB.
55501         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55502         REPLACE_WCTOMB.
55503         * modules/wctomb: New file.
55504         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55505         * doc/posix-functions/wctomb.texi: Mention the new module.
55506         * modules/wctob (Depends-on): Add wctomb.
55508 2011-02-22  Bruno Haible  <bruno@clisp.org>
55510         New module 'mbtowc'.
55511         * lib/stdlib.in.h (mbtowc): New declaration.
55512         * lib/mbtowc.c: New file.
55513         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55514         * m4/mbtowc.m4: New file.
55515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55516         REPLACE_MBTOWC.
55517         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55518         REPLACE_MBTOWC.
55519         * modules/mbtowc: New file.
55520         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55521         * doc/posix-functions/mbtowc.texi: Mention the new module.
55522         * modules/btowc (Depends-on): Add mbtowc.
55524 2011-02-22  Bruno Haible  <bruno@clisp.org>
55526         wcrtomb: Add more tests for native Windows platforms.
55527         * tests/test-wcrtomb-w32-1.sh: New file.
55528         * tests/test-wcrtomb-w32-2.sh: New file.
55529         * tests/test-wcrtomb-w32-3.sh: New file.
55530         * tests/test-wcrtomb-w32-4.sh: New file.
55531         * tests/test-wcrtomb-w32-5.sh: New file.
55532         * tests/test-wcrtomb-w32.c: New file.
55533         * modules/wcrtomb-tests (Files): Add them.
55534         (Makefile.am): Arrange to run these tests.
55535         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55536         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55538 2011-02-20  Bruno Haible  <bruno@clisp.org>
55540         wcrtomb: Enhance test.
55541         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55543 2011-02-20  Bruno Haible  <bruno@clisp.org>
55545         mbrtowc: Tiny optimization.
55546         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55548 2011-02-20  Jim Meyering  <meyering@redhat.com>
55550         test-exclude.c: remove unmatched #endif
55551         * tests/test-exclude.c: Remove stray #endif, left over from
55552         the change of a week ago.
55554 2011-02-19  Jim Meyering  <meyering@redhat.com>
55556         git-version-gen: skip "-dirty" check when appropriate
55557         * build-aux/git-version-gen: Don't run any git commands when the
55558         version string comes from .tarball-version.  Prior to this, we
55559         would run git update-index --refresh even from a just-unpacked
55560         tarball directory, and that could affect a .git/ directory in a
55561         parent of the build directory.  Reported by Mike Frysinger.
55563 2011-02-19  Bruno Haible  <bruno@clisp.org>
55565         unictype/property-byname: Reduce the size of the 'data' segment.
55566         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55568 2011-02-19  Bruno Haible  <bruno@clisp.org>
55570         unictype/scripts: Reduce the size of the 'data' segment.
55571         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55572         '%pic'.
55573         * lib/unictype/scripts_byname.gperf: Regenerated.
55575 2011-02-19  Bruno Haible  <bruno@clisp.org>
55577         stdint: Update documentation.
55578         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55580 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55582         stdint: omit redundant check for wchar.h
55583         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55584         always tests whether wchar.h exists, so remove the now-redundant test.
55586 2011-02-18  Bruno Haible  <bruno@clisp.org>
55588         stdint: Cut dependency to module 'wchar'.
55589         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55590         include the necessary prerequisites.
55591         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55592         * modules/stdint (Depends-on): Remove wchar.
55593         (Makefile.am): Substitute HAVE_WCHAR_H.
55594         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55596 2011-02-18  Eric Blake  <eblake@redhat.com>
55598         longlong: skip, rather than fail, on cross-compilation
55599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55600         when cross-compiling; regression from 2011-02-16.
55602 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55604         * NEWS: Mention 2011-02-08 change to stdlib.
55606 2011-02-17  Bruno Haible  <bruno@clisp.org>
55608         getloadavg: Add comments about platforms.
55609         * m4/getloadavg.m4: Add comment.
55610         * lib/getloadavg.c: Likewise.
55612 2011-02-17  Bruno Haible  <bruno@clisp.org>
55614         getloadavg: Fix link error on Solaris 2.6.
55615         * modules/getloadavg (Link): New section.
55616         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55617         linking test-getloadavg.
55618         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55619         getloadavg.
55621 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55623         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55624         It was 'int', but this doesn't match the IRIX 6.5 manual.
55625         Suggested by Bruno Haible in
55626         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55628 2011-02-17  Bruno Haible  <bruno@clisp.org>
55630         havelib: Fix comments.
55631         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55632         change.
55634 2011-02-17  Bruno Haible  <bruno@clisp.org>
55636         havelib: Update config.rpath.
55637         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55639 2011-02-17  Bruno Haible  <bruno@clisp.org>
55641         getloadavg test: Add some plausibility checks.
55642         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55643         is improbable.
55645 2011-02-16  Eric Blake  <eblake@redhat.com>
55647         maintainer-makefile: make syntax-check a no-op from tarballs
55648         * top/maint.mk (no-vc-detected): New rule.
55649         (local-checks-available): Use it to avoid hanging if someone tries
55650         'make syntax-check' from a tarball.  Also append to any non-syntax
55651         checks already defined in cfg.mk.
55653 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55655         longlong: tune, particularly for common case of c99
55657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55658         or running anything if c99, or if unsigned long long int does not
55659         work.  In either case, we know the answer without further tests.
55660         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55661         it at most once, and use its results for both long long int and
55662         unsigned long long int.  This is more likely to be efficient in
55663         the common case where the program wants to check for both long
55664         long int and unsigned long long int.
55665         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55666         since the answer is already known.
55668 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55670         getloadavg: set errno
55671         * lib/getloadavg.c: Set errno when returning -1.  If no other
55672         error number looks appropriate, set it to ENOSYS if the getloadavg
55673         looks like it can't possibly ever work, ENOTSUP otherwise.
55674         Suggested by Bruno Haible in
55675         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55677         getloadavg: trim unused parts and speed up 'configure'
55678         * NEWS: Document this.
55679         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55680         always compiled if getloadavg is absent.
55681         Move test code to ...
55682         * tests/test-getloadavg.c: New file, containing previous
55683         contents of test from lib/getloadavg.c.  It also contains
55684         suggestions by Bruno Haible in
55685         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55686         * modules/getloadavg-tests: New file.
55687         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55688         Do tests in the same order as they're needed for getloadavg.c.
55689         Omit setgid-related tests that generate symbols KMEM_GROUP,
55690         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55691         Do only the tests that are needed to see whether the system has
55692         getloadavg, moving the other tests into ...
55693         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55694         NLIST_NAME_UNION; nobody should be using it.  Do not define
55695         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55696         relevant, as the user of this module shouldn't care how getloadavg
55697         is implemented.
55699         getloadavg: omit unused var
55700         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55702 2011-02-15  Jim Meyering  <meyering@redhat.com>
55704         doc: update users.txt
55705         * users.txt: Update iwhd's URL.
55707 2011-02-13  Bruno Haible  <bruno@clisp.org>
55709         Consistent macro naming for macros that use GCC __attribute__.
55710         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55711         _ATTRIBUTE_NONNULL_.
55712         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55713         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55714         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55715         ATTRIBUTE_DEPRECATED.
55716         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55717         ATTRIBUTE_NORETURN.
55718         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55719         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55720         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55721         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55722         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55723         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55724         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55725         ATTRIBUTE_SENTINEL.
55726         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55727         ATTRIBUTE_RETURN_CHECK.
55728         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55729         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55730         ATTRIBUTE_NORETURN.
55731         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55732         Reported by Paul Eggert.
55734 2011-02-13  Bruno Haible  <bruno@clisp.org>
55736         Don't interfere with a program's definition of __attribute__.
55737         * lib/argp.h (__attribute__): Remove definition.
55738         (_GL_ATTRIBUTE_FORMAT): New macro.
55739         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55740         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55741         (_GL_ATTRIBUTE_FORMAT): New macro.
55742         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55743         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55744         GCC 3 or newer.
55745         * lib/error.h (__attribute__): Remove definition.
55746         (_GL_ATTRIBUTE_FORMAT): New macro.
55747         (error, error_at_line): Use it.
55748         * lib/hash.h (__attribute__): Remove definition.
55749         (ATTRIBUTE_WUR): Update definition. Define always.
55750         * lib/openat.h (__attribute__): Remove definition.
55751         (ATTRIBUTE_NORETURN): Update definition. Define always.
55752         * lib/sigpipe-die.h (__attribute__): Remove definition.
55753         (ATTRIBUTE_NORETURN): Update definition. Define always.
55754         * lib/vasnprintf.h (__attribute__): Remove definition.
55755         (_GL_ATTRIBUTE_FORMAT): New macro.
55756         (asnprintf, vasnprintf): Use it.
55757         * lib/xalloc.h (__attribute__): Remove definition.
55758         (ATTRIBUTE_NORETURN): Update definition. Define always.
55759         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55760         * lib/xmemdup0.h (__attribute__): Remove definition.
55761         (ATTRIBUTE_NORETURN): Update definition. Define always.
55762         * lib/xprintf.h (__attribute__): Remove definition.
55763         (_GL_ATTRIBUTE_FORMAT): New macro.
55764         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55765         * lib/xstrtol.h (__attribute__): Remove definition.
55766         (ATTRIBUTE_NORETURN): Update definition. Define always.
55767         * lib/xvasprintf.h (__attribute__): Remove definition.
55768         (_GL_ATTRIBUTE_FORMAT): New macro.
55769         (xasprintf, xvasprintf): Use it.
55770         * tests/test-argmatch.c (__attribute__): Remove definition.
55771         (ATTRIBUTE_NORETURN): Update definition. Define always.
55772         * tests/test-exclude.c (__attribute__): Remove definition.
55773         (ATTRIBUTE_NORETURN): Update definition. Define always.
55774         Reported by Paul Eggert.
55776 2011-02-13  Bruno Haible  <bruno@clisp.org>
55778         mbrtowc: Add more tests for native Windows platforms.
55779         * tests/test-mbrtowc-w32-1.sh: New file.
55780         * tests/test-mbrtowc-w32-2.sh: New file.
55781         * tests/test-mbrtowc-w32-3.sh: New file.
55782         * tests/test-mbrtowc-w32-4.sh: New file.
55783         * tests/test-mbrtowc-w32-5.sh: New file.
55784         * tests/test-mbrtowc-w32.c: New file.
55785         * modules/mbrtowc-tests (Files): Add them.
55786         (Makefile.am): Arrange to run these tests.
55787         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55788         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55790 2011-02-13  Bruno Haible  <bruno@clisp.org>
55792         mbrtowc: Work around native Windows bug.
55793         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
55794         guess when no suitable locale for testing was found.
55795         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
55797 2011-02-13  Bruno Haible  <bruno@clisp.org>
55799         mbsinit: Work around mingw bug.
55800         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
55801         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
55802         Windows.
55803         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
55805 2011-02-13  Bruno Haible  <bruno@clisp.org>
55807         mbsinit: Don't crash for a NULL argument.
55808         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
55809         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
55811 2011-02-13  Bruno Haible  <bruno@clisp.org>
55813         Don't interfere with a program's definition of __attribute__.
55814         * lib/stdio.in.h (__attribute__): Remove definition.
55815         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
55816         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
55817         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55818         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55819         * lib/string.in.h (__attribute__): Remove definition.
55820         Reported by Paul Eggert.
55822 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55824         stdlib: don't get in the way of non-GCC __attribute__
55825         See thread starting at
55826         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55827         Revert previous stdlib change, installing the following instead:
55828         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55829         to get in the way of a non-GCC compiler that supports __attribute__.
55830         (_GL_ATTRIBUTE_RETURN): New macro.
55831         (_Exit): Use it instead of __attribute__.
55833 2011-02-12  Bruno Haible  <bruno@clisp.org>
55835         quotearg test: Avoid test failure on mingw.
55836         * tests/test-quotearg.sh: Convert the locale identifier from native
55837         Windows syntax to Unix syntax.
55839 2011-02-12  Bruno Haible  <bruno@clisp.org>
55841         setlocale: Prefer gnulib's override over libintl's override.
55842         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55843         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55844         GNULIB_defined_setlocale is set.
55846 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55848         stdlib: support non-GCC __attribute__
55850         Fix a serious and tricky problem encountered when attempting to
55851         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55852         5.5, but it crashed due to memory corruption on Solaris 10 with
55853         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55854         bits that are otherwise zero.  This tagging is optional inside
55855         Emacs but is preferred and is used when __attribute__ ((__aligned
55856         (8))) works, as it does with both recent-enough GCC and with Sun C
55857         5.11.  However, Sun C 5.11 is not GCC and does not #define
55858         __GNUC__ and __GNUC_MINOR__.
55860         When I added the getloadavg module to Emacs, it brought in
55861         stdlib.in.h, which contained this fragment:
55863            #ifndef __attribute__
55864            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55865            #  define __attribute__(Spec)   /* empty */
55866            # endif
55867            #endif
55869         When files that include <stdlib.h> were compiled with Sun C 5.11,
55870         the above code disabled __attribute__ ((__aligned (8))), which
55871         caused variables to not be properly aligned, which eventually led
55872         to the pointer corruption mentioned above.  (This was a bit hard
55873         to diagnose, unfortunately.)
55875         Several "#define __attribute__(X) /* empty */" code snippets need
55876         to be eradicated from Gnulib to work with non-GCC compilers that
55877         support __attribute__.  The Autoconf way to do this is to test for
55878         each kind of attribute that we want support for, and selectively
55879         enable that in source code.
55881         Fix this problem just for stdlib.h, by adding a test for the
55882         __noreturn__ attribute, and change stdlib.in.h to use that test
55883         when needed.  This technique can be easily generalized to the
55884         other *.in.h files and attributes, and a similar technique can be
55885         used for *.h and *.c files.  This patch is enough to solve the
55886         problem for Emacs + getloadavg, and I thought I'd publish it for
55887         feedback before undertaking further, similar fixes in other
55888         modules.
55890         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55891         because it's not needed for stdlib.h.  It merely substitutes the
55892         value directly into stdlib.h.  We may well need to #define it, or
55893         similar symbols, for other modules, but it's nice to also have an
55894         option to not #define it for applications like Emacs that do not
55895         need it.
55897         * lib/stdlib.in.h (__attribute__): Do not #define.
55898         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55899         be defined only if the _Exit module is also used.
55900         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55902         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55903         platforms.
55904         * modules/_Exit (Files): Add m4/attribute.m4.
55905         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55906         * m4/attribute.m4: New file.
55908 2011-02-12  Bruno Haible  <bruno@clisp.org>
55910         wcsrtombs: Work around bug on native Windows.
55911         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55912         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55913         instead of len.
55914         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55916 2011-02-12  Bruno Haible  <bruno@clisp.org>
55918         mbsrtowcs: Work around bug on native Windows.
55919         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55920         against mingw bug.
55921         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55923 2011-02-12  Bruno Haible  <bruno@clisp.org>
55925         Avoid setlocale bugs in tests.
55926         * modules/btowc (Dependencies): Add setlocale.
55927         * modules/c-strcase (Dependencies): Likewise.
55928         * modules/mbmemcasecmp (Dependencies): Likewise.
55929         * modules/mbmemcasecoll (Dependencies): Likewise.
55930         * modules/mbrtowc (Dependencies): Likewise.
55931         * modules/mbscasecmp (Dependencies): Likewise.
55932         * modules/mbscasestr (Dependencies): Likewise.
55933         * modules/mbschr (Dependencies): Likewise.
55934         * modules/mbscspn (Dependencies): Likewise.
55935         * modules/mbsinit (Dependencies): Likewise.
55936         * modules/mbsncasecmp (Dependencies): Likewise.
55937         * modules/mbsnrtowcs (Dependencies): Likewise.
55938         * modules/mbspbrk (Dependencies): Likewise.
55939         * modules/mbspcasecmp (Dependencies): Likewise.
55940         * modules/mbsrchr (Dependencies): Likewise.
55941         * modules/mbsrtowcs (Dependencies): Likewise.
55942         * modules/mbsspn (Dependencies): Likewise.
55943         * modules/mbsstr (Dependencies): Likewise.
55944         * modules/nl_langinfo (Dependencies): Likewise.
55945         * modules/quotearg (Dependencies): Likewise.
55946         * modules/unicase/locale-language (Dependencies): Likewise.
55947         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55948         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55949         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55950         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55951         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55952         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55953         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55954         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55955         * modules/vasnprintf-posix (Dependencies): Likewise.
55956         * modules/wcrtomb (Dependencies): Likewise.
55957         * modules/wcsnrtombs (Dependencies): Likewise.
55958         * modules/wcsrtombs (Dependencies): Likewise.
55960 2011-02-12  Bruno Haible  <bruno@clisp.org>
55962         setlocale: Workaround native Windows bug.
55963         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55964         succeeds but sets LC_CTYPE to "C", report a failure.
55965         * tests/test-setlocale2.sh: New file.
55966         * tests/test-setlocale2.c: New file.
55967         * modules/setlocale-tests (Files): Add the new files.
55968         (Makefile.am): Enable test-setlocale2.sh test.
55969         * doc/posix-functions/setlocale.texi: Mention workaround.
55971 2011-02-11  Bruno Haible  <bruno@clisp.org>
55973         Tests for module 'setlocale'.
55974         * modules/setlocale-tests: New file.
55975         * tests/test-setlocale1.sh: New file.
55976         * tests/test-setlocale1.c: New file.
55978         New module 'setlocale'.
55979         * lib/locale.in.h (setlocale): New declaration.
55980         * lib/setlocale.c: New file, based on
55981         gettext/gettext-runtime/intl/setlocale.c.
55982         * m4/setlocale.m4: New file.
55983         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55984         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55985         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55986         REPLACE_SETLOCALE.
55987         * modules/setlocale: New file.
55988         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55989         * doc/posix-functions/setlocale.texi: Mention the new module.
55991 2011-02-11  Bruno Haible  <bruno@clisp.org>
55993         Prepare for locale dependent tests on mingw.
55994         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55995         because it has the wrong locale encoding.
55996         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55997         French_France.1252 instead of "fr".
55998         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55999         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
56000         because it has the wrong locale encoding.
56001         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
56002         native Windows, try Turkish_Turkey.65001.
56003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
56004         Chinese_China.54936.
56006         Prepare for locale dependent tests on mingw.
56007         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
56008         differently.
56009         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
56010         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
56011         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56014 2011-02-11  Eric Blake  <eblake@redhat.com>
56016         strptime: avoid compiler warnings
56017         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
56018         compiler warnings about dead code.
56019         Reported by Daniel P. Berrange.
56021 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
56023         doc: update users.txt
56024         * users.txt: Add rcs.
56026 2011-02-10  John W. Eaton  <jwe@gnu.org>
56028         doc: update users.txt
56029         * users.txt: Add octave.
56031 2011-02-10  Jim Meyering  <meyering@redhat.com>
56033         doc: update users.txt
56034         * users.txt: Add iwhd.
56036 2011-02-09  Bruno Haible  <bruno@clisp.org>
56038         gnulib-tool: Make copyright notice adjustment more robust.
56039         * gnulib-tool (func_import): In sed_transform_main_lib_file,
56040         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
56041         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
56042         License".
56043         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
56045 2011-02-06  Bruno Haible  <bruno@clisp.org>
56047         New module 'towctrans'.
56048         * modules/towctrans: New file.
56049         * lib/wctype.in.h (towctrans): New declaration.
56050         * lib/towctrans.c: New file.
56051         * lib/towctrans-impl.h: New file.
56052         * m4/towctrans.m4: New file.
56053         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
56054         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
56055         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
56056         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
56057         * doc/posix-functions/towctrans.texi: Mention the new module.
56059 2011-02-06  Bruno Haible  <bruno@clisp.org>
56061         New module 'wctrans'.
56062         * modules/wctrans: New file.
56063         * lib/wctype.in.h (wctrans): New declaration.
56064         * lib/wctrans.c: New file.
56065         * lib/wctrans-impl.h: New file.
56066         * m4/wctrans.m4: New file.
56067         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
56068         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
56069         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
56070         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
56071         * doc/posix-functions/wctrans.texi: Mention the new module.
56073 2011-02-06  Bruno Haible  <bruno@clisp.org>
56075         New module 'iswctype'.
56076         * modules/iswctype: New file.
56077         * lib/wctype.in.h (iswctype): New declaration.
56078         * lib/iswctype.c: New file.
56079         * lib/iswctype-impl.h: New file.
56080         * m4/iswctype.m4: New file.
56081         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
56082         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
56083         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
56084         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
56085         * doc/posix-functions/iswctype.texi: Mention the new module and the
56086         HP-UX 11.00 problem.
56088 2011-02-06  Bruno Haible  <bruno@clisp.org>
56090         New module 'wctype'.
56091         * modules/wctype: Change to represent the wctype() substitute.
56092         * lib/wctype.in.h (wctype): New declaration.
56093         * lib/wctype.c: New file.
56094         * lib/wctype-impl.h: New file.
56095         * m4/wctype.m4: New file.
56096         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
56097         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
56098         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
56099         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
56100         * doc/posix-functions/wctype.texi: Mention the new module and the
56101         HP-UX 11.00 problem.
56103 2011-02-06  Bruno Haible  <bruno@clisp.org>
56105         wctype-h: Ensure wctype_t and wctrans_t are defined.
56106         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
56107         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56108         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56109         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
56110         HAVE_WCTRANS_T.
56111         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
56113 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
56115         flock: fix license typo
56117         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
56118         omitted.
56120 2011-02-08  Bruno Haible  <bruno@clisp.org>
56122         Split large sed scripts, for HP-UX sed.
56123         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
56124         to avoid HP-UX limit of 99 commands, in the near future.
56125         * modules/stdlib (Makefile.am): Likewise.
56126         * modules/unistd (Makefile.am): Likewise.
56127         * modules/wchar (Makefile.am): Likewise.
56128         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56129         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
56130         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
56132 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56133             Bruno Haible  <bruno@clisp.org>
56135         stdlib: improve random_r modularization
56136         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
56137         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
56138         you also need the random_r module to get this material right.
56139         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
56140         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
56141         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
56143 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56145         stdlib: don't depend on stdint
56146         * lib/stdlib.in.h: Don't include <stdint.h> merely because
56147         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
56148         be independent of whether stdint.h is needed.
56149         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
56150         here, instead of ...
56151         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
56152         struct random_data should be using the random_r module, not just
56153         the stdlib module (which wouldn't make sense: what package needs
56154         just struct random_data without also needing random_r?).
56155         * modules/stdlib (Depends-on): Remove stdint.
56157         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
56158         See the thread rooted at
56159         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
56160         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
56161         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
56162         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
56163         __VMS)); previously it was always included (via fcntl--.h).
56164         (getloadavg): Do not use c_strtod.  Instead, approximate it by
56165         hand; this is good enough for load averages.  Also, do not use
56166         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
56167         flags directly if available and don't bother otherwise.  (Packages
56168         that need the extra reliability should use the modules that define
56169         these flags on older platforms that lack them.)
56170         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
56171         fcntl-safer.
56173 2011-02-08  Jim Meyering  <meyering@redhat.com>
56175         di-set.h, ino-map.h: add multiple-inclusion guard
56176         Technically, the guard is required only for ino-map.h, due to its
56177         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
56178         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
56179         * lib/ino-map.h: Likewise.
56181 2011-02-06  Bruno Haible  <bruno@clisp.org>
56183         iswblank: Ensure declaration on glibc systems.
56184         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
56185         * modules/iswblank (Dependencies): Add 'extensions'.
56186         * doc/posix-functions/iswblank.texi: Document the glibc problem.
56188 2011-02-06  Bruno Haible  <bruno@clisp.org>
56190         New module 'iswblank'.
56191         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
56192         * modules/iswblank: New file.
56193         * modules/wctype-h (Files): Remove lib/iswblank.c.
56194         (Makefile.am): Substitute GNULIB_ISWBLANK.
56195         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
56196         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
56197         (gl_WCTYPE_H_DEFAULTS): New macro.
56198         (gl_WCTYPE_H): Require it. Remove iswblank related code.
56199         * modules/iswblank-tests: New file.
56200         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
56201         * tests/test-wctype-h.c (main): Remove iswblank tests.
56202         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
56203         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
56204         of 'wctype-h'.
56205         * NEWS: Mention the change.
56206         * modules/mbchar (Depends-on): Add iswblank.
56208 2011-02-08  Bruno Haible  <bruno@clisp.org>
56210         di-set tests: Refactor.
56211         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
56212         unnecessary includes.
56213         (ASSERT): Remove macro.
56214         (main): Make C90 compliant by avoiding variable declaration after
56215         statement.
56216         * modules/di-set-tests (Files): Add tests/macros.h.
56218 2011-02-08  Bruno Haible  <bruno@clisp.org>
56220         ino-map tests: Refactor.
56221         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
56222         unnecessary includes.
56223         (ASSERT): Remove macro.
56224         (main): Make C90 compliant by avoiding variable declaration after
56225         statement.
56226         * modules/ino-map-tests (Files): Add tests/macros.h.
56228 2011-02-08  Jim Meyering  <meyering@redhat.com>
56230         di-set: add "const" to a cast
56231         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
56232         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
56234 2011-02-06  Bruno Haible  <bruno@clisp.org>
56236         Rename module 'wctype' to 'wctype-h'.
56237         * modules/wctype-h: Renamed from modules/wctype.
56238         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
56239         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
56240         (Files, Depends-on, Makefile.am): Update.
56241         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
56242         (Files, Makefile.am): Update.
56243         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
56244         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
56245         * doc/posix-headers/wctype.texi: Update.
56246         * doc/posix-functions/iswalnum.texi: Update.
56247         * doc/posix-functions/iswalpha.texi: Update.
56248         * doc/posix-functions/iswblank.texi: Update.
56249         * doc/posix-functions/iswcntrl.texi: Update.
56250         * doc/posix-functions/iswdigit.texi: Update.
56251         * doc/posix-functions/iswgraph.texi: Update.
56252         * doc/posix-functions/iswlower.texi: Update.
56253         * doc/posix-functions/iswprint.texi: Update.
56254         * doc/posix-functions/iswpunct.texi: Update.
56255         * doc/posix-functions/iswspace.texi: Update.
56256         * doc/posix-functions/iswupper.texi: Update.
56257         * doc/posix-functions/iswxdigit.texi: Update.
56258         * doc/posix-functions/towlower.texi: Update.
56259         * doc/posix-functions/towupper.texi: Update.
56260         * NEWS: Mention the change.
56261         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
56262         * modules/mbchar (Dependencies): Likewise.
56263         * modules/mbswidth (Dependencies): Likewise.
56264         * modules/quotearg (Dependencies): Likewise.
56265         * modules/regex (Dependencies): Likewise.
56266         * modules/wcscasecmp (Dependencies): Likewise.
56267         * modules/wcsncasecmp (Dependencies): Likewise.
56268         * modules/wcwidth (Dependencies): Likewise.
56270 2011-02-06  Bruno Haible  <bruno@clisp.org>
56272         New module 'wcswidth'.
56273         * modules/wcswidth: New file.
56274         * lib/wchar.in.h (wcswidth): New declaration.
56275         * lib/wcswidth.c: New file.
56276         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
56277         * m4/wcswidth.m4: New file.
56278         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
56279         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
56280         REPLACE_WCSWIDTH.
56281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
56282         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
56283         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
56284         * doc/posix-functions/wcswidth.texi: Mention the new module.
56286 2011-02-06  Bruno Haible  <bruno@clisp.org>
56288         New module 'wcstok'.
56289         * modules/wcstok: New file.
56290         * lib/wchar.in.h (wcstok): New declaration.
56291         * lib/wcstok.c: New file.
56292         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
56293         * m4/wcstok.m4: New file.
56294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
56295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
56296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
56297         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
56298         * doc/posix-functions/wcstok.texi: Mention the new module.
56300 2011-02-06  Bruno Haible  <bruno@clisp.org>
56302         New module 'wcsstr'.
56303         * modules/wcsstr: New file.
56304         * lib/wchar.in.h (wcsstr): New declaration.
56305         * lib/wcsstr.c: New file.
56306         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
56307         * m4/wcsstr.m4: New file.
56308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
56309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
56310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
56311         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
56312         * doc/posix-functions/wcsstr.texi: Mention the new module.
56314 2011-02-06  Bruno Haible  <bruno@clisp.org>
56316         New module 'wcspbrk'.
56317         * modules/wcspbrk: New file.
56318         * lib/wchar.in.h (wcspbrk): New declaration.
56319         * lib/wcspbrk.c: New file.
56320         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
56321         * m4/wcspbrk.m4: New file.
56322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
56323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
56324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
56325         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
56326         * doc/posix-functions/wcspbrk.texi: Mention the new module.
56328 2011-02-06  Bruno Haible  <bruno@clisp.org>
56330         New module 'wcsspn'.
56331         * modules/wcsspn: New file.
56332         * lib/wchar.in.h (wcsspn): New declaration.
56333         * lib/wcsspn.c: New file.
56334         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
56335         * m4/wcsspn.m4: New file.
56336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
56337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
56338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
56339         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
56340         * doc/posix-functions/wcsspn.texi: Mention the new module.
56342 2011-02-06  Bruno Haible  <bruno@clisp.org>
56344         New module 'wcscspn'.
56345         * modules/wcscspn: New file.
56346         * lib/wchar.in.h (wcscspn): New declaration.
56347         * lib/wcscspn.c: New file.
56348         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
56349         * m4/wcscspn.m4: New file.
56350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
56351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
56352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
56353         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
56354         * doc/posix-functions/wcscspn.texi: Mention the new module.
56356 2011-02-06  Bruno Haible  <bruno@clisp.org>
56358         New module 'wcsrchr'.
56359         * modules/wcsrchr: New file.
56360         * lib/wchar.in.h (wcsrchr): New declaration.
56361         * lib/wcsrchr.c: New file.
56362         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
56363         * m4/wcsrchr.m4: New file.
56364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
56365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
56366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
56367         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
56368         * doc/posix-functions/wcsrchr.texi: Mention the new module.
56370 2011-02-06  Bruno Haible  <bruno@clisp.org>
56372         New module 'wcschr'.
56373         * modules/wcschr: New file.
56374         * lib/wchar.in.h (wcschr): New declaration.
56375         * lib/wcschr.c: New file.
56376         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
56377         * m4/wcschr.m4: New file.
56378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
56379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56381         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56382         * doc/posix-functions/wcschr.texi: Mention the new module.
56384 2011-02-06  Bruno Haible  <bruno@clisp.org>
56386         New module 'wcsdup'.
56387         * modules/wcsdup: New file.
56388         * lib/wchar.in.h (wcsdup): New declaration.
56389         * lib/wcsdup.c: New file.
56390         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56391         * m4/wcsdup.m4: New file.
56392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56395         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56396         * doc/posix-functions/wcsdup.texi: Mention the new module.
56398 2011-02-06  Bruno Haible  <bruno@clisp.org>
56400         New module 'wcsxfrm'.
56401         * modules/wcsxfrm: New file.
56402         * lib/wchar.in.h (wcsxfrm): New declaration.
56403         * lib/wcsxfrm.c: New file.
56404         * lib/wcsxfrm-impl.h: New file.
56405         * m4/wcsxfrm.m4: New file.
56406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56409         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56410         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56412 2011-02-06  Bruno Haible  <bruno@clisp.org>
56414         New module 'wcscoll'.
56415         * modules/wcscoll: New file.
56416         * lib/wchar.in.h (wcscoll): New declaration.
56417         * lib/wcscoll.c: New file.
56418         * lib/wcscoll-impl.h: New file.
56419         * m4/wcscoll.m4: New file.
56420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56423         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56424         * doc/posix-functions/wcscoll.texi: Mention the new module.
56426 2011-02-06  Bruno Haible  <bruno@clisp.org>
56428         New module 'wcsncasecmp'.
56429         * modules/wcsncasecmp: New file.
56430         * lib/wchar.in.h (wcsncasecmp): New declaration.
56431         * lib/wcsncasecmp.c: New file.
56432         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56433         * m4/wcsncasecmp.m4: New file.
56434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56437         HAVE_WCSNCASECMP.
56438         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56439         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56441 2011-02-06  Bruno Haible  <bruno@clisp.org>
56443         New module 'wcscasecmp'.
56444         * modules/wcscasecmp: New file.
56445         * lib/wchar.in.h (wcscasecmp): New declaration.
56446         * lib/wcscasecmp.c: New file.
56447         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56448         * m4/wcscasecmp.m4: New file.
56449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56452         HAVE_WCSCASECMP.
56453         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56454         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56456 2011-02-05  Bruno Haible  <bruno@clisp.org>
56458         New module 'wcsncmp'.
56459         * modules/wcsncmp: New file.
56460         * lib/wchar.in.h (wcsncmp): New declaration.
56461         * lib/wcsncmp.c: New file.
56462         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56463         * m4/wcsncmp.m4: New file.
56464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56467         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56468         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56470 2011-02-05  Bruno Haible  <bruno@clisp.org>
56472         New module 'wcscmp'.
56473         * modules/wcscmp: New file.
56474         * lib/wchar.in.h (wcscmp): New declaration.
56475         * lib/wcscmp.c: New file.
56476         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56477         * m4/wcscmp.m4: New file.
56478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56481         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56482         * doc/posix-functions/wcscmp.texi: Mention the new module.
56484 2011-02-05  Bruno Haible  <bruno@clisp.org>
56486         New module 'wcsncat'.
56487         * modules/wcsncat: New file.
56488         * lib/wchar.in.h (wcsncat): New declaration.
56489         * lib/wcsncat.c: New file.
56490         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56491         * m4/wcsncat.m4: New file.
56492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56495         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56496         * doc/posix-functions/wcsncat.texi: Mention the new module.
56498 2011-02-05  Bruno Haible  <bruno@clisp.org>
56500         New module 'wcscat'.
56501         * modules/wcscat: New file.
56502         * lib/wchar.in.h (wcscat): New declaration.
56503         * lib/wcscat.c: New file.
56504         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56505         * m4/wcscat.m4: New file.
56506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56509         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56510         * doc/posix-functions/wcscat.texi: Mention the new module.
56512 2011-02-05  Bruno Haible  <bruno@clisp.org>
56514         New module 'wcpncpy'.
56515         * modules/wcpncpy: New file.
56516         * lib/wchar.in.h (wcpncpy): New declaration.
56517         * lib/wcpncpy.c: New file.
56518         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56519         * m4/wcpncpy.m4: New file.
56520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56522         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56523         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56524         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56526 2011-02-05  Bruno Haible  <bruno@clisp.org>
56528         New module 'wcsncpy'.
56529         * modules/wcsncpy: New file.
56530         * lib/wchar.in.h (wcsncpy): New declaration.
56531         * lib/wcsncpy.c: New file.
56532         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56533         * m4/wcsncpy.m4: New file.
56534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56537         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56538         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56540 2011-02-05  Bruno Haible  <bruno@clisp.org>
56542         New module 'wcpcpy'.
56543         * modules/wcpcpy: New file.
56544         * lib/wchar.in.h (wcpcpy): New declaration.
56545         * lib/wcpcpy.c: New file.
56546         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56547         * m4/wcpcpy.m4: New file.
56548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56550         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56551         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56552         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56554 2011-02-05  Bruno Haible  <bruno@clisp.org>
56556         New module 'wcscpy'.
56557         * modules/wcscpy: New file.
56558         * lib/wchar.in.h (wcscpy): New declaration.
56559         * lib/wcscpy.c: New file.
56560         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56561         * m4/wcscpy.m4: New file.
56562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56565         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56566         * doc/posix-functions/wcscpy.texi: Mention the new module.
56568 2011-02-05  Bruno Haible  <bruno@clisp.org>
56570         New module 'wcsnlen'.
56571         * modules/wcsnlen: New file.
56572         * lib/wchar.in.h (wcsnlen): New declaration.
56573         * lib/wcsnlen.c: New file.
56574         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56575         * m4/wcsnlen.m4: New file.
56576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56579         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56580         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56582 2011-02-05  Bruno Haible  <bruno@clisp.org>
56584         New module 'wcslen'.
56585         * modules/wcslen: New file.
56586         * lib/wchar.in.h (wcslen): New declaration.
56587         * lib/wcslen.c: New file.
56588         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56589         * m4/wcslen.m4: New file.
56590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56593         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56594         * doc/posix-functions/wcslen.texi: Mention the new module.
56596 2011-02-05  Bruno Haible  <bruno@clisp.org>
56598         New module 'wmemset'.
56599         * modules/wmemset: New file.
56600         * lib/wchar.in.h (wmemset): New declaration.
56601         * lib/wmemset.c: New file.
56602         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56603         * m4/wmemset.m4: New file.
56604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56606         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56607         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56608         * doc/posix-functions/wmemset.texi: Mention the new module.
56610 2011-02-05  Bruno Haible  <bruno@clisp.org>
56612         New module 'wmemmove'.
56613         * modules/wmemmove: New file.
56614         * lib/wchar.in.h (wmemmove): New declaration.
56615         * lib/wmemmove.c: New file.
56616         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56617         * m4/wmemmove.m4: New file.
56618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56620         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56621         HAVE_WMEMMOVE.
56622         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56623         * doc/posix-functions/wmemmove.texi: Mention the new module.
56625 2011-02-05  Bruno Haible  <bruno@clisp.org>
56627         New module 'wmemcpy'.
56628         * modules/wmemcpy: New file.
56629         * lib/wchar.in.h (wmemcpy): New declaration.
56630         * lib/wmemcpy.c: New file.
56631         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56632         * m4/wmemcpy.m4: New file.
56633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56635         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56636         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56637         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56639 2011-02-05  Bruno Haible  <bruno@clisp.org>
56641         New module 'wmemcmp'.
56642         * modules/wmemcmp: New file.
56643         * lib/wchar.in.h (wmemcmp): New declaration.
56644         * lib/wmemcmp.c: New file.
56645         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56646         * m4/wmemcmp.m4: New file.
56647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56649         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56650         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56651         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56653 2011-02-07  Jim Meyering  <meyering@redhat.com>
56655         di-set, ino-map: new modules, from coreutils
56656         * lib/di-set.c: New file.
56657         * lib/di-set.h: Likewise.
56658         * lib/ino-map.c: Likewise.
56659         * lib/ino-map.h: Likewise.
56660         * modules/di-set: Likewise.
56661         * modules/di-set-tests: Likewise.
56662         * modules/ino-map: Likewise.
56663         * modules/ino-map-tests: Likewise.
56664         * tests/test-di-set.c: Likewise.
56665         * tests/test-ino-map.c: Likewise.
56667 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56669         getloadavg: merge minor changes from Emacs
56671         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56672         (getloadavg): Use memset, not bzero.
56674         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56675         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56676         clash (bug#86).
56678 2010-11-14  Bruno Haible  <bruno@clisp.org>
56680         Allow multiple gnulib generated replacements to coexist.
56681         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56682         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56683         * lib/langinfo.in.h (nl_item): Likewise.
56684         * lib/math.in.h (_NaN, NAN): Likewise.
56685         * lib/netdb.in.h (struct addrinfo): Likewise.
56686         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56687         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56688         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56689         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56690         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56691         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56692         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56693         pthread_mutexattr_init, pthread_mutexattr_settype,
56694         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56695         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56696         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56697         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56698         * lib/sched.in.h (struct sched_param): Likewise.
56699         * lib/se-selinux.in.h (security_class_t, security_context_t,
56700         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56701         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56702         lsetfilecon, fsetfilecon, security_check_context,
56703         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56704         Likewise.
56705         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56706         Likewise.
56707         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56708         _gl_function_taking_int_returning_void_t, union sigval,
56709         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56710         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56711         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56712         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56713         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56714         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56715         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56716         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56717         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56718         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56719         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56720         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56721         socklen_t, rpl_fd_isset): Likewise.
56722         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56723         * lib/sys_time.in.h (struct timeval): Likewise.
56724         * lib/sys_times.in.h (struct tms): Likewise.
56725         * lib/sys_utsname.in.h (struct utsname):
56726         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56727         * lib/unistd.in.h (getpagesize): Likewise.
56728         * lib/wchar.in.h (mbstate_t): Likewise.
56729         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56730         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56731         towlower, towupper): Likewise.
56732         Reported by Sam Steingold <sds@gnu.org>.
56734 2011-02-05  Eric Blake  <eblake@redhat.com>
56736         unsetenv: work around Haiku issues
56737         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56738         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56740 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56742         libposix: avoid calling error() within libposix
56743         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56744         is defined.
56746 2011-02-05  Eric Blake  <eblake@redhat.com>
56748         strerror_r-posix: port to cygwin
56749         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56750         implementation.
56751         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56752         * tests/test-strerror_r.c (main): Fix test.
56753         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56754         issue.
56756 2011-02-05  Bruno Haible  <bruno@clisp.org>
56758         New module 'wmemchr'.
56759         * modules/wmemchr: New file.
56760         * lib/wchar.in.h (wmemchr): New declaration.
56761         * lib/wmemchr.c: New file.
56762         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56763         * m4/wmemchr.m4: New file.
56764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56766         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56767         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56768         * doc/posix-functions/wmemchr.texi: Mention the new module.
56770 2011-02-04  Eric Blake  <eblake@redhat.com>
56772         fdopendir: detect FreeBSD bug
56773         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56774         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56776 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56778         stdbool: do not define HAVE_STDBOOL_H
56779         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56780         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56781         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56782         imported from the latest Autoconf git.  It was motivated by Emacs,
56783         which uses gnulib but does not need HAVE_STDBOOL_H.
56785 2011-02-04  Bruno Haible  <bruno@clisp.org>
56787         wcsnrtombs: Prepare for new module wwcsnrtombs.
56788         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56789         * lib/wcsnrtombs.c: Include it.
56790         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56792         wcsrtombs: Prepare for new module wwcsrtombs.
56793         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
56794         * lib/wcsrtombs.c: Include it.
56795         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
56797         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
56798         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
56799         * lib/mbsnrtowcs.c: Include it.
56800         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
56802         mbsrtowcs: Prepare for new module mbsrtowwcs.
56803         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
56804         * lib/mbsrtowcs.c: Include it.
56805         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
56807 2011-02-04  Bruno Haible  <bruno@clisp.org>
56809         vasnprintf: Reduce use of malloc for small format strings.
56810         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
56811         (arguments): Add room for the first 7 arguments.
56812         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
56813         (char_directives, u8_directives, u16_directives, u32_directives): Add
56814         room for the first 7 directives.
56815         * lib/printf-parse.c: Include <string.h>.
56816         (PRINTF_PARSE): Change memory handling code so that it uses the first
56817         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56818         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56819         Reported by Pádraig Brady <P@draigbrady.com>.
56821 2011-01-31  Eric Blake  <eblake@redhat.com>
56823         dup2: work around Haiku bug
56824         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56825         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56826         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56827         * tests/test-dup2.c (main): Enhance test.
56829 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56831         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56832         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56833         declared by eglibc 2.11.2.
56834         * lib/stdio.in.h: Likewise.
56836 2011-01-31  Eric Blake  <eblake@redhat.com>
56838         ignore-value: add missing test dependency
56839         * tests/test-ignore-value.c: Revert previous change; stdio.h
56840         provides off_t.
56841         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56843 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56845         mktime: clarify long_int width checking
56846         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56847         the top level, to make it clearer that the assumption about
56848         long_int width is being checked.  See
56849         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56851 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56853         ignore-value: Fix self-test.
56854         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56856 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56858         TYPE_MAXIMUM: avoid theoretically undefined behavior
56859         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56860         negative number, which the C Standard says has undefined behavior.
56861         In practice this is not a problem, but might as well do it by the book.
56862         Reported by Rich Felker and Eric Blake; see
56863         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56864         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56865         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56867         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56868         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56869         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56871         mktime: #undef mktime before #defining it
56872         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56874         mktime: systematically normalize tm_isdst comparisons
56875         * lib/mktime.c (isdst_differ): New function.
56876         (__mktime_internal): Use it systematically for all isdst comparisons.
56877         This completes the fix for libc BZ #6723, and removes the need for
56878         normalizing tm_isdst.  See
56879         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56880         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56882         mktime: fix some integer overflow issues and sidestep the rest
56884         This was prompted by a bug report by Benjamin Lindner for MinGW
56885         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56886         His bug is due to signed integer overflow (0 - INT_MIN), and I
56887         I scanned through mktime.c looking for other integer overflow
56888         problems, fixing all the bugs I found.
56890         Although the C Standard says the resulting code is still not safe
56891         in the presence of integer overflow, in practice it should be good
56892         enough for all real-world two's-complement implementations, except
56893         for debugging environments that deliberately trap on integer
56894         overflow (e.g., gcc -ftrapv).
56896         * lib/mktime.c (WRAPV): New macro.
56897         (SHR): Also check that long_int and time_t shift right in the
56898         usual way, before using the fast-but-unportable method.
56899         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56900         used.  The code already assumed two's complement, so there's
56901         no need to test for alternatives.  All uses removed.
56902         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56903         the C standard.  Problem reported by Rich Felker in
56904         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56905         (twos_complement_arithmetic): Also check long_int and time_t.
56906         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56907         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56908         (__mktime_internal): Avoid integer overflow with unary subtraction
56909         in two instances where -1 - X is an adequate replacement for -X,
56910         since the calculations are approximate.
56912 2011-01-29  Eric Blake  <eblake@redhat.com>
56914         mktime: avoid infinite loop
56915         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56916         type; behavior is still undefined but portable to all known targets.
56917         Reported by Rich Felker.
56919 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56921         rename, unlink, same-inode: Relicense.
56922         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56923         * modules/unlink (License): Likewise.
56924         * modules/same-inode (License): Likewise.
56926 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56928         mktime: avoid problems on NetBSD 5 / i386
56929         * lib/mktime.c (long_int): New type.  This works around a problem
56930         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56931         but time_t is 64 bits, and where I expect the existing code is
56932         wrong in some cases.
56933         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56934         (ydhms_diff): Bring back the compile-time check for wide-enough
56935         year and yday.
56937         mktime: fix misspelling in comment
56938         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56939         This merges all recent glibc changes of importance.
56941 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56943         move-if-change: cope with concurrent mv of identical file.
56944         * build-aux/move-if-change (CMPPROG): Accept environment
56945         variable as an override for `cmp'.
56946         (usage): Document CMPPROG.
56947         Adjust comparison to drop stdout.  Cope with failure of mv if
56948         the target file exists and is identical to the source, for
56949         parallel builds.
56950         Report from H.J. Lu against binutils in PR binutils/12283.
56952 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56954         * users.txt: Mention sharutils.
56956 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56958         * users.txt: Mention OATH Toolkit.
56960 2011-01-27  Bruno Haible  <bruno@clisp.org>
56962         Prepare for supporting FreeBSD 10.
56963         * build-aux/config.libpath: Remove handling of freebsd1*.
56965 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56967         Prepare for supporting FreeBSD 10.
56968         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56969         match FreeBSD 10.0.
56971 2011-01-27  Bruno Haible  <bruno@clisp.org>
56973         vma-iter, get-rusage-as: Add OpenBSD support.
56974         * modules/vma-iter (configure.ac): Test for mquery.
56975         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56976         * lib/vma-iter.c: Include <sys/mman.h>.
56977         (vma_iterate): Add an implementation based on mquery().
56978         * lib/resource-ext.h (get_rusage_as): Update comments.
56979         * lib/get-rusage-as.c: Likewise.
56980         * lib/get-rusage-data.c: Likewise.
56982 2011-01-26  Karl Berry  <karl@gnu.org>
56984         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56985         variables to make it easier to override the makeinfo program used.
56987 2011-01-26  Eric Blake  <eblake@redhat.com>
56989         fcntl: work around Haiku F_DUPFD bugs
56990         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56991         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56992         cloexec bit on duplication.
56993         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56995 2011-01-26  Bruno Haible  <bruno@clisp.org>
56997         Enable memory leak tests on AIX.
56998         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56999         * tests/test-fprintf-posix3.c (main): Likewise.
57001 2011-01-26  Bruno Haible  <bruno@clisp.org>
57003         Tests for module 'get-rusage-data'.
57004         * modules/get-rusage-data-tests: New file.
57005         * tests/test-get-rusage-data.c: New file.
57007         New module 'get-rusage-data'.
57008         * lib/resource-ext.h (get_rusage_data): New declaration.
57009         * lib/get-rusage-data.c: New file.
57010         * modules/get-rusage-data: New file.
57012 2011-01-25  Bruno Haible  <bruno@clisp.org>
57014         get-rusage-as: Allow for easier testing.
57015         * lib/resource-ext.h (get_rusage_as): Add comment.
57016         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
57017         (main): New function for interactive testing.
57019 2011-01-25  Bruno Haible  <bruno@clisp.org>
57021         vma-iter: Treat Haiku like BeOS.
57022         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
57023         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
57025 2011-01-25  Eric Blake  <eblake@redhat.com>
57027         c-stack: fix regression on cygwin when libsigsegv is present
57028         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
57030 2011-01-24  Bruno Haible  <bruno@clisp.org>
57032         vma-iter: Avoid empty intervals.
57033         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
57034         on an empty interval.
57036 2011-01-24  Jim Meyering  <meyering@redhat.com>
57038         u64: remove unnecessary #include
57039         * lib/u64.h: Don't include <stddef.h>.  It was not used.
57041 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57043         Allow the user to avoid the HAVE_RAW_DECL_* macros.
57044         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
57046 2011-01-23  Bruno Haible  <bruno@clisp.org>
57048         New module 'vma-iter'.
57049         * lib/vma-iter.h: New file.
57050         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
57051         * modules/vma-iter: New file.
57052         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
57053         for get_rusage_as_via_iterator.
57054         (vma_iterate_callback): New function.
57055         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
57056         * modules/get-rusage-as (Depends-on): Add vma-iter.
57058 2011-01-23  Bruno Haible  <bruno@clisp.org>
57060         uninorm: Tweak includes.
57061         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
57062         Reported by Jim Meyering.
57064 2011-01-23  Bruno Haible  <bruno@clisp.org>
57066         get-rusage-as: Improve on NetBSD.
57067         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
57068         /proc, like on FreeBSD.
57070 2011-01-23  Jim Meyering  <meyering@redhat.com>
57072         xreadlink.h: remove unnecessary #include
57073         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
57075         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
57076         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
57078 2011-01-23  Bruno Haible  <bruno@clisp.org>
57080         get-rusage-as: Fix bug.
57081         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
57082         original limit when aborting the first loop.
57084 2011-01-23  Bruno Haible  <bruno@clisp.org>
57086         wctype: Ensure valid C syntax.
57087         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
57088         unconditionally, instead of gl_NEXT_HEADERS conditionally.
57090 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57092         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
57093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
57094         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
57095         as they are needed only for configure's test case.
57096         This removes two unnecessary symbols from config.h.
57098         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
57099         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
57100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
57101         AC_CHECK_HEADERS_ONCE on a header that we also invoke
57102         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
57103         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
57104         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
57105         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
57106         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57107         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57108         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
57109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57110         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57111         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57112         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
57113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57114         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57115         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57117 2011-01-21  Eric Blake  <eblake@redhat.com>
57119         maintainer-makefile: work with older git for submodule check
57120         * top/maint.mk (public-submodule-commit): Rewrite to avoid
57121         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
57122         Reported by Matthias Bolte.
57124         bootstrap: minor portability fixes
57125         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
57126         (usage): Omit leading capital and trailing . on help phrases, per
57127         GNU Coding Standards.
57128         (check_versions, top level): Prefix messages with script name.
57130 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
57132         bootstrap: support --no-git option
57133         * build-aux/bootstrap: Add --no-git option, to be used when
57134         --gnulib-srcdir points to the exact desired checkout.
57136 2011-01-21  Eric Blake  <eblake@redhat.com>
57138         strerror_r-posix: work with glibc 2.13
57139         * lib/strerror_r.c (strerror_r): Fix return type.
57141 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57142             Bruno Haible  <bruno@clisp.org>
57144         uN_strstr: New unit tests.
57145         * modules/unistr/u8-strstr-tests: New file.
57146         * modules/unistr/u16-strstr-tests: New file.
57147         * modules/unistr/u32-strstr-tests: New file.
57148         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
57149         * tests/unistr/test-u8-strstr.c: New file.
57150         * tests/unistr/test-u16-strstr.c: New file.
57151         * tests/unistr/test-u32-strstr.c: New file.
57153 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57154             Bruno Haible  <bruno@clisp.org>
57156         Make uN_strstr functions O(n) worst-case.
57157         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
57158         16-bit and 32-bit unit cases, use the unibyte algorithm from
57159         lib/mbsstr.c.
57160         * lib/unistr/u8-strstr.c: Include <string.h>.
57161         (UNIT_IS_UINT8_T): New macro.
57162         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
57163         (U_STRLEN, U_STRNLEN): New macros.
57164         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
57165         (U_STRLEN, U_STRNLEN): New macros.
57166         * modules/unistr/u8-strstr (Depends-on): Add strstr.
57167         (configure.ac): Update required libunistring version.
57168         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
57169         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
57170         malloca.
57171         (configure.ac): Update required libunistring version.
57172         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
57173         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
57174         malloca.
57175         (configure.ac): Update required libunistring version.
57177 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57178             Bruno Haible  <bruno@clisp.org>
57180         Prepare for faster uN_strstr functions.
57181         * lib/str-kmp.h: Support definable UNITs.
57182         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
57183         needle_len argument.
57184         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
57185         * lib/mbscasestr.c (mbscasestr): Likewise.
57187 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57189         malloca-tests: make faster by unsetting MALLOC_PERTURB_
57190         * tests/test-malloca.c (main): Unset the environment variable
57191         to greatly speed up the test.
57192         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
57193         * modules/malloca-tests: Depend on unsetenv.
57195 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57197         ignore-value: remove stdint dependency
57198         * lib/ignore-value.h: Remove <stdint.h>
57199         * modules/ignore-value: Remove stdint dependency.
57201 2011-01-21  Jim Meyering  <meyering@redhat.com>
57203         maint.mk: adjust variable name to be consistent with other gl_ vars
57204         * top/maint.mk (gl_public_submodule_commit): Rename the variable
57205         to be lower case.
57207 2011-01-20  Jim Meyering  <meyering@redhat.com>
57209         maint.mk: make "check" depend on public-submodule-commit by default
57210         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
57212 2011-01-20  Bruno Haible  <bruno@clisp.org>
57214         mbfile, mbiter: Complete change from 2008-12-21.
57215         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
57216         * m4/mbiter.m4 (gl_MBITER): Likewise.
57218 2011-01-20  Jim Meyering  <meyering@redhat.com>
57220         init.sh: insert space between each function name and "()"
57221         * tests/init.sh: Make it a little easier to see that a function's
57222         name is "warn_", and not "warn" when looking at the first part of
57223         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
57225 2011-01-20  Jim Meyering  <meyering@redhat.com>
57227         mountlist: clean up code formatting
57228         * lib/mountlist.c (read_file_system_list): Split a long line,
57229         correct bracing style, use NULL in place of "(struct statfs *)0",
57230         don't parenthesize return value, add spaces around "=" and after
57231         ";-in-for-stmt".
57233 2011-01-14  Markus Duft  <mduft@gentoo.org>
57235         mountlist: add support for Interix
57236         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
57237         Apply statvfs to all entries of /dev/fs.
57238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
57239         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
57241 2011-01-20  Jim Meyering  <meyering@redhat.com>
57243         maint.mk: improve the public-submodule-commit rule
57244         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
57245         to suppress printing of its commands... unless V=1.
57246         Add git submodule's --quiet option to suppress printing of e.g.,
57247         "Entering gnulib" output.
57248         "cd" into $(srcdir) before running git submodule.
57250 2011-01-20  Bruno Haible  <bruno@clisp.org>
57252         include_next: Fix bug introduced on 2011-01-18.
57253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
57254         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
57255         ac_cv_header_... variable if the second argument is not 'check'.
57256         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
57257         gl_NEXT_HEADERS_INTERNAL.
57259 2011-01-20  Bruno Haible  <bruno@clisp.org>
57261         Allow the user to avoid the GNULIB_TEST_* macros.
57262         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
57263         Suggested by Paul Eggert.
57265 2011-01-14  Jim Meyering  <meyering@redhat.com>
57267         bootstrap: avoid failure when there is no .gitmodules file
57268         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
57269         has been assigned to, even when its value is the empty string.
57270         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
57271         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
57272         Reported by John W. Eaton <jwe@gnu.org>.
57274 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57276         assume <ctype.h>, ..., <time.h> exist
57277         For years gnulib has been assuming the existence of the headers
57278         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
57279         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
57280         them, since they don't appear to be needed.
57281         * README (Portability guidelines): Document this.
57282         * lib/flock.c: Assume <fcntl.h> exists.
57283         * lib/regex_internal.h: Assume <locale.h> exists.
57284         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
57285         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
57286         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
57287         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
57288         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
57289         * m4/regex.m4 (gl_REGEX): Likewise.
57290         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
57291         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
57292         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
57293         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
57294         * tests/test-argp.c: Likewise.
57295         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
57297         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
57298         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
57299         AA_APPLE_UNIVERSAL_BUILD.  See
57300         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
57301         * NEWS: Document this.
57303 2011-01-19  Eric Blake  <eblake@redhat.com>
57305         c-stack: assume stack overflow if SA_SIGINFO unsupported
57306         * lib/c-stack.c (SIGACTION_WORKS): Rename...
57307         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
57308         sigaction will work.
57309         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
57310         behavior match Linux.
57311         * tests/test-c-stack.c (main): Prefer NULL for pointers.
57313         stdbool-tests: accommodate Haiku
57314         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57316         binary-io: fix O_TEXT on Haiku
57317         * modules/binary-io (Depends-on): Add fcntl-h.
57318         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
57319         than blindly undefining O_TEXT.
57320         Reported by Scott McCreary.
57322 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57324         include_next: do not check for standard headers like stddef.h
57326         I found this problem when modifying Emacs to use gnulib.
57327         I noticed that it added HAVE_STDDEF_H to config.h, even though
57328         gnulib always assumes <stddef.h> exists as per README and this
57329         symbol is unnecessary.
57330         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
57331         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
57332         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
57333         faster for headers like stddef.h that are known to exist.
57334         (gl_CHECK_NEXT_HEADERS): Use it.
57335         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
57336         rather than gl_CHECK_NEXT_HEADERS.
57337         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
57338         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
57340 2011-01-18  Eric Blake  <eblake@redhat.com>
57342         ansi-c++-opt: skip C++ dependency style if C++ is unused
57343         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
57344         tests when we know C++ compilation is not desired.
57345         Reported by Scott McCreary.
57347 2011-01-18  Bruno Haible  <bruno@clisp.org>
57349         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
57350         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
57351         (main): Perform test also when getrlimit and setrlimit don't exist or
57352         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
57353         limiting the address space size using setrlimit, compare the address
57354         space size before and after the test.
57355         * tests/test-dprintf-posix2.c: Likewise.
57356         * tests/test-fprintf-posix3.sh: Update skip messages.
57357         * tests/test-dprintf-posix2.sh: Likewise.
57358         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
57359         * modules/dprintf-posix-tests (Depends-on): Likewise.
57360         Reported by Bruce Korb <bkorb@gnu.org> and
57361         Gary V. Vaughan <gary@gnu.org>.
57363 2011-01-18  Bruno Haible  <bruno@clisp.org>
57365         get-rusage-as: Improvement for Cygwin.
57366         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57367         areas that are merely reserved.
57369 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57371         strftime: remove dependencies on multibyte modules
57373         strftime depended on mbrlen, mbsinit, and wchar, but these modules
57374         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
57375         only if __osf__ is defined, and I suspect OSF doesn't need these
57376         other modules.  If my guess is wrong, we'll need to come up with a
57377         variant of strftime that doesn't need the multibyte modules.
57379         I discovered this problem when attempting modify Emacs to use the
57380         strftime module.  With the previous gnulib, this caused Emacs to
57381         need 31 new files, ranging from lib/config.charset to
57382         m4/wint_t.m4.  This was overkill and I expect would be offputting
57383         to the Emacs maintainers.  After this change, only 6 new files are
57384         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57385         stdbool.m4, and tm_gmtoff.m4.
57387         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57388         Suggested by Bruno Haible in
57389         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57391         and do not check for wchar.h.
57392         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57393         (Depends-on): Remove mbrlen, mbsinit, wchar.
57395 2011-01-18  Bruno Haible  <bruno@clisp.org>
57397         Tests for module 'get-rusage-as'.
57398         * modules/get-rusage-as-tests: New file.
57399         * tests/test-get-rusage-as.c: New file.
57401         New module 'get-rusage-as'.
57402         * modules/get-rusage-as: New file.
57403         * lib/resource-ext.h: New file.
57404         * lib/get-rusage-as.c: New file.
57406 2011-01-17  Eric Blake  <eblake@redhat.com>
57408         sigaction: relax license from LGPLv3+ to LGPLv2+
57409         * modules/sigaction (License): Relax to LGPLv2+.
57411 2011-01-14  Bruno Haible  <bruno@clisp.org>
57413         filemode: Make function declarations usable in C++ mode.
57414         * lib/filemode.h: Enclose function declarations in extern "C" block.
57415         Reported by John W. Eaton <jwe@gnu.org>.
57417 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57419         save-cwd: no longer include "xgetcwd.h"
57420         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57421         This avoids a compilation failure in projects that use save-cwd
57422         without also using the xgetcwd module.
57424 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57426         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57427         This is so that a program like Emacs, which needs only dtoastr,
57428         does not have to bother with distributing and compiling ftoastr
57429         and ldtoastr.
57430         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57431         * modules/dtoastr, modules/ldtoastr: New files.
57432         * modules/ftoastr: Now works just for 'float'.
57433         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57434         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57435         dtoastr.c, ldtoastr.c.
57437 2011-01-11  Jim Meyering  <meyering@redhat.com>
57439         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57440         There is no need to work around the lack of the fchdir function,
57441         since gnulib can now provide a replacement when required.
57442         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57443         * modules/save-cwd (Depends-on): Add fchdir.
57445 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57447         openat, save-cwd: avoid xmalloc
57449         This removes a direct (but undocumented) dependency of openat on
57450         xalloc, along with an indirect dependency via save-cwd.  It also
57451         removes a dependency of save-cwd on xgetcwd, and thereby
57452         indirectly on xalloc.  This change causes the openat substitute
57453         to fall back on save_cwd when memory is tight, and for save_cwd to
57454         fail instead of dying when memory is tight, but that's good enough.
57455         Problem and initial idea for fix reported by Bastien Roucaries in
57456         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57458         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57459         xalloc.h (for xmalloc).
57460         (openat_proc_name): Use malloc, not xmalloc.
57461         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57462         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57464         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57465         This avoids heap allocation for file names whose lengths are in
57466         the range 512..1023, with the upper bound increasing to at most
57467         4031 depending on the platform's PATH_MAX.  (We do not want
57468         pathmax.h here as it might supply a non-constant PATH_MAX.)
57469         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57470         Perhaps they should be moved to malloca.h?
57471         (OPENAT_BUFFER_SIZE): Use them.
57473 2011-01-10  Bruno Haible  <bruno@clisp.org>
57475         doc: Update users.txt.
57476         * users.txt: Add recutils.
57478 2011-01-09  Karl Berry  <karl@gnu.org>
57480         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57482         * doc/configmake.texi: New file.
57483         * doc/gnulib.texi: Include it.
57484         * modules/configmake: Move documentation from here.
57486 2011-01-09  Bruno Haible  <bruno@clisp.org>
57488         Update to Unicode 6.0.0.
57489         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57490         (get_lbp): Update for Unicode 6.0.0.
57491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57492         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57493         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57494         U+11001, U+11038..U+11046. Remove U+06DE.
57495         (uc_width): Fix bounds of planes.
57496         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57497         lib/uniwidth/width.c.
57498         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57499         trailing whitespace removed.
57500         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57501         without comments, but with the original copyright notice.
57502         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57503         * lib/unicase/ignorable.h: Likewise.
57504         * lib/unicase/tocasefold.h: Likewise.
57505         * lib/unicase/tolower.h: Likewise.
57506         * lib/unicase/totitle.h: Likewise.
57507         * lib/unicase/toupper.h: Likewise.
57508         * lib/unictype/bidi_of.h: Likewise.
57509         * lib/unictype/blocks.h: Likewise.
57510         * lib/unictype/categ_C.h: Likewise.
57511         * lib/unictype/categ_Cn.h: Likewise.
57512         * lib/unictype/categ_L.h: Likewise.
57513         * lib/unictype/categ_Ll.h: Likewise.
57514         * lib/unictype/categ_Lm.h: Likewise.
57515         * lib/unictype/categ_Lo.h: Likewise.
57516         * lib/unictype/categ_Lu.h: Likewise.
57517         * lib/unictype/categ_M.h: Likewise.
57518         * lib/unictype/categ_Mc.h: Likewise.
57519         * lib/unictype/categ_Me.h: Likewise.
57520         * lib/unictype/categ_Mn.h: Likewise.
57521         * lib/unictype/categ_N.h: Likewise.
57522         * lib/unictype/categ_Nd.h: Likewise.
57523         * lib/unictype/categ_No.h: Likewise.
57524         * lib/unictype/categ_P.h: Likewise.
57525         * lib/unictype/categ_Po.h: Likewise.
57526         * lib/unictype/categ_S.h: Likewise.
57527         * lib/unictype/categ_Sc.h: Likewise.
57528         * lib/unictype/categ_Sk.h: Likewise.
57529         * lib/unictype/categ_Sm.h: Likewise.
57530         * lib/unictype/categ_So.h: Likewise.
57531         * lib/unictype/categ_of.h: Likewise.
57532         * lib/unictype/combining.h: Likewise.
57533         * lib/unictype/ctype_alnum.h: Likewise.
57534         * lib/unictype/ctype_alpha.h: Likewise.
57535         * lib/unictype/ctype_graph.h: Likewise.
57536         * lib/unictype/ctype_lower.h: Likewise.
57537         * lib/unictype/ctype_print.h: Likewise.
57538         * lib/unictype/ctype_punct.h: Likewise.
57539         * lib/unictype/ctype_upper.h: Likewise.
57540         * lib/unictype/decdigit.h: Likewise.
57541         * lib/unictype/digit.h: Likewise.
57542         * lib/unictype/numeric.h: Likewise.
57543         * lib/unictype/pr_alphabetic.h: Likewise.
57544         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57545         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57546         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57547         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57548         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57549         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57550         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57551         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57552         * lib/unictype/pr_case_ignorable.h: Likewise.
57553         * lib/unictype/pr_cased.h: Likewise.
57554         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57555         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57556         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57557         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57558         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57559         * lib/unictype/pr_combining.h: Likewise.
57560         * lib/unictype/pr_composite.h: Likewise.
57561         * lib/unictype/pr_currency_symbol.h: Likewise.
57562         * lib/unictype/pr_decimal_digit.h: Likewise.
57563         * lib/unictype/pr_deprecated.h: Likewise.
57564         * lib/unictype/pr_format_control.h: Likewise.
57565         * lib/unictype/pr_grapheme_base.h: Likewise.
57566         * lib/unictype/pr_grapheme_extend.h: Likewise.
57567         * lib/unictype/pr_grapheme_link.h: Likewise.
57568         * lib/unictype/pr_id_continue.h: Likewise.
57569         * lib/unictype/pr_id_start.h: Likewise.
57570         * lib/unictype/pr_ideographic.h: Likewise.
57571         * lib/unictype/pr_lowercase.h: Likewise.
57572         * lib/unictype/pr_math.h: Likewise.
57573         * lib/unictype/pr_numeric.h: Likewise.
57574         * lib/unictype/pr_other_alphabetic.h: Likewise.
57575         * lib/unictype/pr_other_id_continue.h: Likewise.
57576         * lib/unictype/pr_other_math.h: Likewise.
57577         * lib/unictype/pr_punctuation.h: Likewise.
57578         * lib/unictype/pr_sentence_terminal.h: Likewise.
57579         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57580         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57581         * lib/unictype/pr_unified_ideograph.h: Likewise.
57582         * lib/unictype/pr_uppercase.h: Likewise.
57583         * lib/unictype/pr_xid_continue.h: Likewise.
57584         * lib/unictype/pr_xid_start.h: Likewise.
57585         * lib/unictype/scripts.h: Likewise.
57586         * lib/unictype/scripts_byname.gperf: Likewise.
57587         * lib/unictype/sy_java_ident.h: Likewise.
57588         * lib/unigbrk/gbrkprop.h: Likewise.
57589         * lib/unilbrk/lbrkprop1.h: Likewise.
57590         * lib/unilbrk/lbrkprop2.h: Likewise.
57591         * lib/uninorm/decomposition-table2.h: Likewise.
57592         * lib/uniwbrk/wbrkprop.h: Likewise.
57593         * tests/unicase/test-cased.c: Likewise.
57594         * tests/unicase/test-ignorable.c: Likewise.
57595         * tests/unicase/test-uc_tolower.c: Likewise.
57596         * tests/unicase/test-uc_totitle.c: Likewise.
57597         * tests/unicase/test-uc_toupper.c: Likewise.
57598         * tests/unictype/test-categ_C.c: Likewise.
57599         * tests/unictype/test-categ_Cn.c: Likewise.
57600         * tests/unictype/test-categ_L.c: Likewise.
57601         * tests/unictype/test-categ_Ll.c: Likewise.
57602         * tests/unictype/test-categ_Lm.c: Likewise.
57603         * tests/unictype/test-categ_Lo.c: Likewise.
57604         * tests/unictype/test-categ_Lu.c: Likewise.
57605         * tests/unictype/test-categ_M.c: Likewise.
57606         * tests/unictype/test-categ_Mc.c: Likewise.
57607         * tests/unictype/test-categ_Me.c: Likewise.
57608         * tests/unictype/test-categ_Mn.c: Likewise.
57609         * tests/unictype/test-categ_N.c: Likewise.
57610         * tests/unictype/test-categ_Nd.c: Likewise.
57611         * tests/unictype/test-categ_No.c: Likewise.
57612         * tests/unictype/test-categ_P.c: Likewise.
57613         * tests/unictype/test-categ_Po.c: Likewise.
57614         * tests/unictype/test-categ_S.c: Likewise.
57615         * tests/unictype/test-categ_Sc.c: Likewise.
57616         * tests/unictype/test-categ_Sk.c: Likewise.
57617         * tests/unictype/test-categ_Sm.c: Likewise.
57618         * tests/unictype/test-categ_So.c: Likewise.
57619         * tests/unictype/test-ctype_alnum.c: Likewise.
57620         * tests/unictype/test-ctype_alpha.c: Likewise.
57621         * tests/unictype/test-ctype_graph.c: Likewise.
57622         * tests/unictype/test-ctype_lower.c: Likewise.
57623         * tests/unictype/test-ctype_print.c: Likewise.
57624         * tests/unictype/test-ctype_punct.c: Likewise.
57625         * tests/unictype/test-ctype_upper.c: Likewise.
57626         * tests/unictype/test-decdigit.h: Likewise.
57627         * tests/unictype/test-digit.h: Likewise.
57628         * tests/unictype/test-numeric.h: Likewise.
57629         * tests/unictype/test-pr_alphabetic.c: Likewise.
57630         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57631         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57632         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57633         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57634         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57635         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57636         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57637         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57638         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57639         * tests/unictype/test-pr_cased.c: Likewise.
57640         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57641         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57642         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57643         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57644         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57645         * tests/unictype/test-pr_combining.c: Likewise.
57646         * tests/unictype/test-pr_composite.c: Likewise.
57647         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57648         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57649         * tests/unictype/test-pr_deprecated.c: Likewise.
57650         * tests/unictype/test-pr_format_control.c: Likewise.
57651         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57652         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57653         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57654         * tests/unictype/test-pr_id_continue.c: Likewise.
57655         * tests/unictype/test-pr_id_start.c: Likewise.
57656         * tests/unictype/test-pr_ideographic.c: Likewise.
57657         * tests/unictype/test-pr_lowercase.c: Likewise.
57658         * tests/unictype/test-pr_math.c: Likewise.
57659         * tests/unictype/test-pr_numeric.c: Likewise.
57660         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57661         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57662         * tests/unictype/test-pr_other_math.c: Likewise.
57663         * tests/unictype/test-pr_punctuation.c: Likewise.
57664         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57665         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57666         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57667         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57668         * tests/unictype/test-pr_uppercase.c: Likewise.
57669         * tests/unictype/test-pr_xid_continue.c: Likewise.
57670         * tests/unictype/test-pr_xid_start.c: Likewise.
57671         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57672         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57673         changes.
57674         * lib/unictype/categ_Cc.h: Likewise.
57675         * lib/unictype/categ_Cf.h: Likewise.
57676         * lib/unictype/categ_Co.h: Likewise.
57677         * lib/unictype/categ_Cs.h: Likewise.
57678         * lib/unictype/categ_Lt.h: Likewise.
57679         * lib/unictype/categ_Nl.h: Likewise.
57680         * lib/unictype/categ_Pc.h: Likewise.
57681         * lib/unictype/categ_Pd.h: Likewise.
57682         * lib/unictype/categ_Pe.h: Likewise.
57683         * lib/unictype/categ_Pf.h: Likewise.
57684         * lib/unictype/categ_Pi.h: Likewise.
57685         * lib/unictype/categ_Ps.h: Likewise.
57686         * lib/unictype/categ_Z.h: Likewise.
57687         * lib/unictype/categ_Zl.h: Likewise.
57688         * lib/unictype/categ_Zp.h: Likewise.
57689         * lib/unictype/categ_Zs.h: Likewise.
57690         * lib/unictype/ctype_blank.h: Likewise.
57691         * lib/unictype/ctype_cntrl.h: Likewise.
57692         * lib/unictype/ctype_digit.h: Likewise.
57693         * lib/unictype/ctype_space.h: Likewise.
57694         * lib/unictype/ctype_xdigit.h: Likewise.
57695         * lib/unictype/mirror.h: Likewise.
57696         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57697         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57698         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57699         * lib/unictype/pr_bidi_control.h: Likewise.
57700         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57701         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57702         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57703         * lib/unictype/pr_bidi_pdf.h: Likewise.
57704         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57705         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57706         * lib/unictype/pr_dash.h: Likewise.
57707         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57708         * lib/unictype/pr_diacritic.h: Likewise.
57709         * lib/unictype/pr_extender.h: Likewise.
57710         * lib/unictype/pr_hex_digit.h: Likewise.
57711         * lib/unictype/pr_hyphen.h: Likewise.
57712         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57713         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57714         * lib/unictype/pr_ignorable_control.h: Likewise.
57715         * lib/unictype/pr_iso_control.h: Likewise.
57716         * lib/unictype/pr_join_control.h: Likewise.
57717         * lib/unictype/pr_left_of_pair.h: Likewise.
57718         * lib/unictype/pr_line_separator.h: Likewise.
57719         * lib/unictype/pr_logical_order_exception.h: Likewise.
57720         * lib/unictype/pr_non_break.h: Likewise.
57721         * lib/unictype/pr_not_a_character.h: Likewise.
57722         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57723         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57724         * lib/unictype/pr_other_id_start.h: Likewise.
57725         * lib/unictype/pr_other_lowercase.h: Likewise.
57726         * lib/unictype/pr_other_uppercase.h: Likewise.
57727         * lib/unictype/pr_paired_punctuation.h: Likewise.
57728         * lib/unictype/pr_paragraph_separator.h: Likewise.
57729         * lib/unictype/pr_pattern_syntax.h: Likewise.
57730         * lib/unictype/pr_pattern_white_space.h: Likewise.
57731         * lib/unictype/pr_private_use.h: Likewise.
57732         * lib/unictype/pr_quotation_mark.h: Likewise.
57733         * lib/unictype/pr_radical.h: Likewise.
57734         * lib/unictype/pr_soft_dotted.h: Likewise.
57735         * lib/unictype/pr_space.h: Likewise.
57736         * lib/unictype/pr_titlecase.h: Likewise.
57737         * lib/unictype/pr_variation_selector.h: Likewise.
57738         * lib/unictype/pr_white_space.h: Likewise.
57739         * lib/unictype/pr_zero_width.h: Likewise.
57740         * lib/unictype/sy_c_ident.h: Likewise.
57741         * lib/unictype/sy_c_whitespace.h: Likewise.
57742         * lib/unictype/sy_java_whitespace.h: Likewise.
57743         * lib/uninorm/composition-table.gperf: Likewise.
57744         * lib/uninorm/decomposition-table1.h: Likewise.
57745         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57746         LB8.
57747         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57748         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57749         * modules/unictype/*: Bump version number of expected libunistring
57750         version.
57752 2011-01-09  Bruno Haible  <bruno@clisp.org>
57754         Update to Unicode 5.2.0.
57755         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57756         trailing whitespace removed.
57758 2011-01-09  Bruno Haible  <bruno@clisp.org>
57760         New Unicode character properties, from Unicode 5.2.0.
57761         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57762         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57763         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57764         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57765         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57766         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57767         uc_is_property_cased, uc_is_property_case_ignorable,
57768         uc_is_property_changes_when_lowercased,
57769         uc_is_property_changes_when_uppercased,
57770         uc_is_property_changes_when_titlecased,
57771         uc_is_property_changes_when_casefolded,
57772         uc_is_property_changes_when_casemapped): New declarations.
57773         * lib/unictype/pr_byname.gperf: Add the new properties.
57774         * modules/unictype/property-byname (Depends-on): Depend on the new
57775         properties modules.
57776         * modules/unictype/property-all (Depends-on): Likewise.
57777         * MODULES.html.sh (Unicode string functions): Add
57778         unictype/property-case-ignorable, unictype/property-cased,
57779         unictype/property-changes-when-casefolded,
57780         unictype/property-changes-when-casemapped,
57781         unictype/property-changes-when-lowercased,
57782         unictype/property-changes-when-titlecased,
57783         unictype/property-changes-when-uppercased.
57785         New module 'unictype/property-changes-when-casemapped'.
57786         * modules/unictype/property-changes-when-casemapped: New file.
57787         * lib/unictype/pr_changes_when_casemapped.c: New file.
57788         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57789         generated by gen-uni-tables.
57790         * modules/unictype/property-changes-when-casemapped-tests: New file.
57791         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57792         automatically generated by gen-uni-tables.
57794         New module 'unictype/property-changes-when-casefolded'.
57795         * modules/unictype/property-changes-when-casefolded: New file.
57796         * lib/unictype/pr_changes_when_casefolded.c: New file.
57797         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
57798         generated by gen-uni-tables.
57799         * modules/unictype/property-changes-when-casefolded-tests: New file.
57800         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
57801         automatically generated by gen-uni-tables.
57803         New module 'unictype/property-changes-when-titlecased'.
57804         * modules/unictype/property-changes-when-titlecased: New file.
57805         * lib/unictype/pr_changes_when_titlecased.c: New file.
57806         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
57807         generated by gen-uni-tables.
57808         * modules/unictype/property-changes-when-titlecased-tests: New file.
57809         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
57810         automatically generated by gen-uni-tables.
57812         New module 'unictype/property-changes-when-uppercased'.
57813         * modules/unictype/property-changes-when-uppercased: New file.
57814         * lib/unictype/pr_changes_when_uppercased.c: New file.
57815         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
57816         generated by gen-uni-tables.
57817         * modules/unictype/property-changes-when-uppercased-tests: New file.
57818         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57819         automatically generated by gen-uni-tables.
57821         New module 'unictype/property-changes-when-lowercased'.
57822         * modules/unictype/property-changes-when-lowercased: New file.
57823         * lib/unictype/pr_changes_when_lowercased.c: New file.
57824         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57825         generated by gen-uni-tables.
57826         * modules/unictype/property-changes-when-lowercased-tests: New file.
57827         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57828         automatically generated by gen-uni-tables.
57830         New module 'unictype/property-case-ignorable'.
57831         * modules/unictype/property-case-ignorable: New file.
57832         * lib/unictype/pr_case_ignorable.c: New file.
57833         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57834         by gen-uni-tables.
57835         * modules/unictype/property-case-ignorable-tests: New file.
57836         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57837         generated by gen-uni-tables.
57839         New module 'unictype/property-cased'.
57840         * modules/unictype/property-cased: New file.
57841         * lib/unictype/pr_cased.c: New file.
57842         * lib/unictype/pr_cased.h: New file, automatically generated by
57843         gen-uni-tables.
57844         * modules/unictype/property-cased-tests: New file.
57845         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57846         gen-uni-tables.
57848 2011-01-09  Bruno Haible  <bruno@clisp.org>
57850         Update to Unicode 5.2.0.
57851         * lib/gen-uni-tables.c (output_predicate, output_category,
57852         output_combclass, output_bidi_category, output_decimal_digit_test,
57853         output_decimal_digit, output_digit_test, output_digit,
57854         output_numeric_test, output_numeric, output_mirror, output_scripts,
57855         output_scripts_byname, output_blocks, output_ident_category): Fix
57856         comment header.
57857         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57858         get_wbp.
57859         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57860         items.
57861         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57862         Changes_When_Lowercased, Changes_When_Uppercased,
57863         Changes_When_Titlecased, Changes_When_Casefolded,
57864         Changes_When_Casemapped.
57865         (is_property_alphabetic, is_property_default_ignorable_code_point):
57866         Update for Unicode 5.2.0.
57867         (is_property_cased, is_property_case_ignorable,
57868         is_property_changes_when_lowercased,
57869         is_property_changes_when_uppercased,
57870         is_property_changes_when_titlecased,
57871         is_property_changes_when_casefolded,
57872         is_property_changes_when_casemapped): New functions.
57873         (output_properties): Output also the properties cased, case_ignorable,
57874         changes_when_lowercased, changes_when_uppercased,
57875         changes_when_titlecased, changes_when_casefolded,
57876         changes_when_casemapped.
57877         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57878         Unicode TR#11 revision 17 -> 19.
57879         (LBP_CP): New enumeration value.
57880         (LBP_*): Adjust values accordingly.
57881         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57882         TR#14 revision 22 -> 24.
57883         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57884         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57885         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57886         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57887         is_WBP_MIDLETTER.
57888         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57889         the code1 and code2 of each composition rule.
57890         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57891         * lib/unicase/ignorable.h: Likewise.
57892         * lib/unicase/tocasefold.h: Likewise.
57893         * lib/unicase/tolower.h: Likewise.
57894         * lib/unicase/totitle.h: Likewise.
57895         * lib/unicase/toupper.h: Likewise.
57896         * lib/unictype/bidi_of.h: Likewise.
57897         * lib/unictype/blocks.h: Likewise.
57898         * lib/unictype/categ_C.h: Likewise.
57899         * lib/unictype/categ_Cf.h: Likewise.
57900         * lib/unictype/categ_Cn.h: Likewise.
57901         * lib/unictype/categ_L.h: Likewise.
57902         * lib/unictype/categ_Ll.h: Likewise.
57903         * lib/unictype/categ_Lm.h: Likewise.
57904         * lib/unictype/categ_Lo.h: Likewise.
57905         * lib/unictype/categ_Lu.h: Likewise.
57906         * lib/unictype/categ_M.h: Likewise.
57907         * lib/unictype/categ_Mc.h: Likewise.
57908         * lib/unictype/categ_Mn.h: Likewise.
57909         * lib/unictype/categ_N.h: Likewise.
57910         * lib/unictype/categ_Nd.h: Likewise.
57911         * lib/unictype/categ_Nl.h: Likewise.
57912         * lib/unictype/categ_No.h: Likewise.
57913         * lib/unictype/categ_P.h: Likewise.
57914         * lib/unictype/categ_Pd.h: Likewise.
57915         * lib/unictype/categ_Po.h: Likewise.
57916         * lib/unictype/categ_S.h: Likewise.
57917         * lib/unictype/categ_Sc.h: Likewise.
57918         * lib/unictype/categ_So.h: Likewise.
57919         * lib/unictype/categ_of.h: Likewise.
57920         * lib/unictype/combining.h: Likewise.
57921         * lib/unictype/ctype_alnum.h: Likewise.
57922         * lib/unictype/ctype_alpha.h: Likewise.
57923         * lib/unictype/ctype_graph.h: Likewise.
57924         * lib/unictype/ctype_lower.h: Likewise.
57925         * lib/unictype/ctype_print.h: Likewise.
57926         * lib/unictype/ctype_punct.h: Likewise.
57927         * lib/unictype/ctype_upper.h: Likewise.
57928         * lib/unictype/decdigit.h: Likewise.
57929         * lib/unictype/digit.h: Likewise.
57930         * lib/unictype/numeric.h: Likewise.
57931         * lib/unictype/pr_alphabetic.h: Likewise.
57932         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57933         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57934         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57935         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57936         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57937         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57938         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57939         * lib/unictype/pr_combining.h: Likewise.
57940         * lib/unictype/pr_composite.h: Likewise.
57941         * lib/unictype/pr_currency_symbol.h: Likewise.
57942         * lib/unictype/pr_dash.h: Likewise.
57943         * lib/unictype/pr_decimal_digit.h: Likewise.
57944         * lib/unictype/pr_deprecated.h: Likewise.
57945         * lib/unictype/pr_diacritic.h: Likewise.
57946         * lib/unictype/pr_extender.h: Likewise.
57947         * lib/unictype/pr_grapheme_base.h: Likewise.
57948         * lib/unictype/pr_grapheme_extend.h: Likewise.
57949         * lib/unictype/pr_grapheme_link.h: Likewise.
57950         * lib/unictype/pr_id_continue.h: Likewise.
57951         * lib/unictype/pr_id_start.h: Likewise.
57952         * lib/unictype/pr_ideographic.h: Likewise.
57953         * lib/unictype/pr_ignorable_control.h: Likewise.
57954         * lib/unictype/pr_logical_order_exception.h: Likewise.
57955         * lib/unictype/pr_lowercase.h: Likewise.
57956         * lib/unictype/pr_numeric.h: Likewise.
57957         * lib/unictype/pr_other_alphabetic.h: Likewise.
57958         * lib/unictype/pr_punctuation.h: Likewise.
57959         * lib/unictype/pr_sentence_terminal.h: Likewise.
57960         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57961         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57962         * lib/unictype/pr_unified_ideograph.h: Likewise.
57963         * lib/unictype/pr_uppercase.h: Likewise.
57964         * lib/unictype/pr_xid_continue.h: Likewise.
57965         * lib/unictype/pr_xid_start.h: Likewise.
57966         * lib/unictype/pr_zero_width.h: Likewise.
57967         * lib/unictype/scripts.h: Likewise.
57968         * lib/unictype/scripts_byname.gperf: Likewise.
57969         * lib/unictype/sy_java_ident.h: Likewise.
57970         * lib/unigbrk/gbrkprop.h: Likewise.
57971         * lib/unilbrk/lbrkprop1.h: Likewise.
57972         * lib/unilbrk/lbrkprop2.h: Likewise.
57973         * lib/unilbrk/lbrktables.h: Likewise.
57974         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57975         LBP_CP. Implement rule LB30.
57976         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57977         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57978         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57979         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57980         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57981         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57982         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57983         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57984         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57985         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57986         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57987         bits instead of 16 bits in the code1 and code2 of each composition
57988         rule.
57989         (uc_composition): Update for Unicode 5.2.0.
57990         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57991         * lib/uninorm/decomposition-table2.h: Likewise.
57992         * lib/uniwbrk/wbrkprop.h: Likewise.
57993         * tests/unicase/test-cased.c: Likewise.
57994         * tests/unicase/test-ignorable.c: Likewise.
57995         * tests/unicase/test-uc_tolower.c: Likewise.
57996         * tests/unicase/test-uc_totitle.c: Likewise.
57997         * tests/unicase/test-uc_toupper.c: Likewise.
57998         * tests/unictype/test-categ_C.c: Likewise.
57999         * tests/unictype/test-categ_Cf.c: Likewise.
58000         * tests/unictype/test-categ_Cn.c: Likewise.
58001         * tests/unictype/test-categ_L.c: Likewise.
58002         * tests/unictype/test-categ_Ll.c: Likewise.
58003         * tests/unictype/test-categ_Lm.c: Likewise.
58004         * tests/unictype/test-categ_Lo.c: Likewise.
58005         * tests/unictype/test-categ_Lu.c: Likewise.
58006         * tests/unictype/test-categ_M.c: Likewise.
58007         * tests/unictype/test-categ_Mc.c: Likewise.
58008         * tests/unictype/test-categ_Mn.c: Likewise.
58009         * tests/unictype/test-categ_N.c: Likewise.
58010         * tests/unictype/test-categ_Nd.c: Likewise.
58011         * tests/unictype/test-categ_Nl.c: Likewise.
58012         * tests/unictype/test-categ_No.c: Likewise.
58013         * tests/unictype/test-categ_P.c: Likewise.
58014         * tests/unictype/test-categ_Pd.c: Likewise.
58015         * tests/unictype/test-categ_Po.c: Likewise.
58016         * tests/unictype/test-categ_S.c: Likewise.
58017         * tests/unictype/test-categ_Sc.c: Likewise.
58018         * tests/unictype/test-categ_So.c: Likewise.
58019         * tests/unictype/test-ctype_alnum.c: Likewise.
58020         * tests/unictype/test-ctype_alpha.c: Likewise.
58021         * tests/unictype/test-ctype_graph.c: Likewise.
58022         * tests/unictype/test-ctype_lower.c: Likewise.
58023         * tests/unictype/test-ctype_print.c: Likewise.
58024         * tests/unictype/test-ctype_punct.c: Likewise.
58025         * tests/unictype/test-ctype_upper.c: Likewise.
58026         * tests/unictype/test-decdigit.h: Likewise.
58027         * tests/unictype/test-digit.h: Likewise.
58028         * tests/unictype/test-numeric.h: Likewise.
58029         * tests/unictype/test-pr_alphabetic.c: Likewise.
58030         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58032         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58033         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58034         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58035         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58036         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58037         * tests/unictype/test-pr_combining.c: Likewise.
58038         * tests/unictype/test-pr_composite.c: Likewise.
58039         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58040         * tests/unictype/test-pr_dash.c: Likewise.
58041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58042         * tests/unictype/test-pr_deprecated.c: Likewise.
58043         * tests/unictype/test-pr_diacritic.c: Likewise.
58044         * tests/unictype/test-pr_extender.c: Likewise.
58045         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58046         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58047         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58048         * tests/unictype/test-pr_id_continue.c: Likewise.
58049         * tests/unictype/test-pr_id_start.c: Likewise.
58050         * tests/unictype/test-pr_ideographic.c: Likewise.
58051         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58052         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58053         * tests/unictype/test-pr_lowercase.c: Likewise.
58054         * tests/unictype/test-pr_numeric.c: Likewise.
58055         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58056         * tests/unictype/test-pr_punctuation.c: Likewise.
58057         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58058         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58061         * tests/unictype/test-pr_uppercase.c: Likewise.
58062         * tests/unictype/test-pr_xid_continue.c: Likewise.
58063         * tests/unictype/test-pr_xid_start.c: Likewise.
58064         * tests/unictype/test-pr_zero_width.c: Likewise.
58065         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
58066         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
58067         changed behaviour: line breaking is now disallowed between a letter
58068         or '=' and '('.
58069         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58070         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58071         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58072         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
58073         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58074         lib/uniwidth/width.c.
58075         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
58076         without comments, but with the original copyright notice.
58077         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
58078         changes.
58079         * lib/unictype/categ_Cc.h: Likewise.
58080         * lib/unictype/categ_Co.h: Likewise.
58081         * lib/unictype/categ_Cs.h: Likewise.
58082         * lib/unictype/categ_Lt.h: Likewise.
58083         * lib/unictype/categ_Me.h: Likewise.
58084         * lib/unictype/categ_Pc.h: Likewise.
58085         * lib/unictype/categ_Pe.h: Likewise.
58086         * lib/unictype/categ_Pf.h: Likewise.
58087         * lib/unictype/categ_Pi.h: Likewise.
58088         * lib/unictype/categ_Ps.h: Likewise.
58089         * lib/unictype/categ_Sk.h: Likewise.
58090         * lib/unictype/categ_Sm.h: Likewise.
58091         * lib/unictype/categ_Z.h: Likewise.
58092         * lib/unictype/categ_Zl.h: Likewise.
58093         * lib/unictype/categ_Zp.h: Likewise.
58094         * lib/unictype/categ_Zs.h: Likewise.
58095         * lib/unictype/ctype_blank.h: Likewise.
58096         * lib/unictype/ctype_cntrl.h: Likewise.
58097         * lib/unictype/ctype_digit.h: Likewise.
58098         * lib/unictype/ctype_space.h: Likewise.
58099         * lib/unictype/ctype_xdigit.h: Likewise.
58100         * lib/unictype/mirror.h: Likewise.
58101         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58103         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58104         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58105         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58106         * lib/unictype/pr_bidi_control.h: Likewise.
58107         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58108         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58109         * lib/unictype/pr_bidi_pdf.h: Likewise.
58110         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58111         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58112         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58113         * lib/unictype/pr_format_control.h: Likewise.
58114         * lib/unictype/pr_hex_digit.h: Likewise.
58115         * lib/unictype/pr_hyphen.h: Likewise.
58116         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58117         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58118         * lib/unictype/pr_iso_control.h: Likewise.
58119         * lib/unictype/pr_join_control.h: Likewise.
58120         * lib/unictype/pr_left_of_pair.h: Likewise.
58121         * lib/unictype/pr_line_separator.h: Likewise.
58122         * lib/unictype/pr_math.h: Likewise.
58123         * lib/unictype/pr_non_break.h: Likewise.
58124         * lib/unictype/pr_not_a_character.h: Likewise.
58125         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58126         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58127         * lib/unictype/pr_other_id_continue.h: Likewise.
58128         * lib/unictype/pr_other_id_start.h: Likewise.
58129         * lib/unictype/pr_other_lowercase.h: Likewise.
58130         * lib/unictype/pr_other_math.h: Likewise.
58131         * lib/unictype/pr_other_uppercase.h: Likewise.
58132         * lib/unictype/pr_paired_punctuation.h: Likewise.
58133         * lib/unictype/pr_paragraph_separator.h: Likewise.
58134         * lib/unictype/pr_pattern_syntax.h: Likewise.
58135         * lib/unictype/pr_pattern_white_space.h: Likewise.
58136         * lib/unictype/pr_private_use.h: Likewise.
58137         * lib/unictype/pr_quotation_mark.h: Likewise.
58138         * lib/unictype/pr_radical.h: Likewise.
58139         * lib/unictype/pr_soft_dotted.h: Likewise.
58140         * lib/unictype/pr_space.h: Likewise.
58141         * lib/unictype/pr_titlecase.h: Likewise.
58142         * lib/unictype/pr_variation_selector.h: Likewise.
58143         * lib/unictype/pr_white_space.h: Likewise.
58144         * lib/unictype/sy_c_ident.h: Likewise.
58145         * lib/unictype/sy_c_whitespace.h: Likewise.
58146         * lib/unictype/sy_java_whitespace.h: Likewise.
58147         * modules/uni*/*: Bump version number of expected libunistring version.
58148         Reported by Simon Josefsson.
58150 2011-01-09  Karl Heuer  <kwzh@gnu.org>
58152         useless-if-before-free: fix typo in --help and make the internal,
58153         automatic version date update process work once again.
58154         --help output contained a NUL character instead of the
58155         backslash-zero that was intended.  Also, the "must lie within
58156         the first 8 lines" line is on line 9, and hence not getting
58157         automatically updated.
58158         * build-aux/useless-if-before-free: Fix the former by adding a
58159         backslash, and the latter by condensing the three lines of what-it-does
58160         to a single line, leaving one line of slack for the future.
58162 2011-01-09  Bruno Haible  <bruno@clisp.org>
58164         uniwidth/width: Fix width of U+1D173..U+1D17A.
58165         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
58166         symbolic_width, output_width_property_test): New functions.
58167         (main): Invoke output_nonspacing_property, output_width_property_test.
58168         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
58169         U+1D173..U+1D17A.
58170         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
58171         1.
58172         * modules/uniwidth/*: Bump version number of expected libunistring
58173         version.
58174         * modules/unilbrk/*: Likewise.
58176 2011-01-08  Bruno Haible  <bruno@clisp.org>
58178         uninorm tests: Preserve copyright of Unicode data file.
58179         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
58180         Mention modifications.
58182 2011-01-08  Bruno Haible  <bruno@clisp.org>
58184         gen-uni-tables: Prepare for Unicode 5.2.0.
58185         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
58186         (debug_output_lbp, output_lbp): Update.
58188 2011-01-08  Bruno Haible  <bruno@clisp.org>
58190         unilbrk: Clarify gen-uni-tables.c code.
58191         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
58192         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
58193         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
58195 2011-01-07  Bruno Haible  <bruno@clisp.org>
58197         strtod: Restore errno when successfully parsing Infinity or NaN.
58198         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
58199         restore the original errno.
58201 2011-01-07  Bruno Haible  <bruno@clisp.org>
58203         remove test: Avoid failure on HP-UX 11.
58204         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
58206 2011-01-07  Bruno Haible  <bruno@clisp.org>
58208         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
58209         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
58210         error code.
58212 2011-01-07  Pádraig Brady  <P@draigBrady.com>
58214         ignore-value: fixup comments, and add Eric Blake
58215         as an author since he rewrote the macros.
58216         * lib/ignore-value.h (ignore_value):  State that
58217         we now support aggregates.  Also specify exactly
58218         when the GCC warn_unused_result feature was added.
58220 2011-01-06  Eric Blake  <eblake@redhat.com>
58222         ignore-value: support aggregate types
58223         * lib/ignore-value.h (ignore_value): Provide separate gcc
58224         definition.
58225         * modules/ignore-value-tests: New test module.
58226         * tests/test-ignore-value.c: New test.
58228         maint.mk: improve sc_prohibit_strcmp regex
58229         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
58230         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
58231         definition of STRNEQ.
58233         signal: work around Haiku issue with SIGBUS
58234         * lib/siglist.h: Add comment.
58235         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
58236         strsignal's favoring of SIGSEGV.
58237         * tests/test-signal.c (main): Avoid test failure.
58238         * doc/posix-headers/signal.texi (signal.h): Document the issue.
58239         Reported by Scott McCreary.
58241         maint.mk: add pre-release check to ensure submodule commits are public
58242         * top/maint.mk (public-submodule-commit): New rule.
58243         (submodule-checks): New variable.
58244         (alpha beta stable): Depend on the variable.
58246 2011-01-05  Pádraig Brady  <P@draigBrady.com>
58247         and Jim Meyering  <meyering@redhat.com>
58249         ignore-value: make ignore_value more generic; deprecate ignore_ptr
58250         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
58251         (ATTRIBUTE_DEPRECATED): Define.
58252         (_ignore_case): New function.
58253         (ignore_value): New macro, to replace the old function.
58254         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
58255         * modules/ignore-value (Depends-on): Add stdint.
58257 2011-01-04  Eric Blake  <eblake@redhat.com>
58259         doc: regenerate INSTALL
58260         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
58261         @firstparagraphindent support, now that autoconf dropped it.
58262         (INSTALL_PRELUDE): Reinstate old macro.
58263         * doc/install.texi: Resync from autoconf.
58264         * doc/INSTALL: Reflect recent autoconf update.
58265         * doc/INSTALL.ISO: Likewise.
58266         * doc/INSTALL.UTF-8: Likewise.
58267         Reported by Karl Berry.
58269 2011-01-04  Bruce Korb  <address@hidden>
58271         git-version-gen: avoid a sub-shell
58272         * build-aux/git-version-gen: Redirect stderr in `...` via
58273         "exec 2>...", rather than via an added sub-shell.
58275 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
58277         git-version-gen: use (...) rather than sh -c '...'
58278         * build-aux/git-version-gen: Rather than hard-coding a shell's name
58279         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
58281 2011-01-03  Jim Meyering  <meyering@redhat.com>
58283         git-version-gen: convert leading TABs to spaces
58284         * build-aux/git-version-gen: Expand leading TABs.
58286         git-version-gen: handle failed "git rev-list"
58287         * build-aux/git-version-gen: Rather than leaking a "fatal" error
58288         from git and proceeding as if it had succeeded but printed no SHA1
58289         checksums, suppress the diagnostic and handle the failure.
58290         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
58292         git-version-gen: include command name in one more diagnostic
58293         * build-aux/git-version-gen: When the required .tarball-version file
58294         was missing or unreadable, you might see the diagnostic from "cat",
58295         but no trace of the name of the invoking script.  Now, you still see
58296         the diagnostic from cat, but also get one from "git-version-gen: ".
58297         Inspired by a patch from Bruce Korb.
58299         update-copyright: adjust test to match changed code
58300         * tests/test-update-copyright.sh: Change test's expected output
58301         to match new actual output.
58303 2011-01-02  Bruno Haible  <bruno@clisp.org>
58305         getlogin_r: Avoid test failure on HP-UX 11.
58306         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
58307         ERANGE when the second argument is zero.
58308         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
58309         portability problem.
58311 2011-01-02  Bruce Korb  <bkorb@gnu.org>
58313         * build-aux/update-copyright: doc Simon's changes
58315 2011-01-02  Simon Josefsson  <simon@josefsson.org>
58317         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
58318         environment variable.
58320 2011-01-02  Bruno Haible  <bruno@clisp.org>
58322         unigbrk: Avoid gcc warnings.
58323         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
58324         unused variable.
58325         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
58326         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
58327         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
58328         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
58329         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
58330         Change type of first argument to 'const char *'.
58331         (main): Remove unused variable.
58332         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
58333         type of first argument to 'const char *'.
58334         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
58335         Likewise.
58336         (main): Change type of variable 's'.
58337         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
58338         to 'int'.
58340 2011-01-02  Bruno Haible  <bruno@clisp.org>
58342         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
58343         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
58344         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
58345         bug.
58346         * lib/pwrite.c: Undo 2010-12-31 patch.
58347         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
58349 2011-01-02  Bruno Haible  <bruno@clisp.org>
58351         pread: Fix test whether it works.
58352         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
58354 2011-01-02  Bruno Haible  <bruno@clisp.org>
58356         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
58357         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
58358         ends in "6". Don't require a specific month name. Try also the locale
58359         names found on HP-UX 11 and Solaris 7.
58361 2011-01-02  Bruno Haible  <bruno@clisp.org>
58363         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
58364         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
58365         C linkage.
58366         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
58368 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58370         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
58371         for consistency, since the "cluster" term is not used elsewhere.
58372         * lib/unigbrk.in.h: Update name.
58373         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
58374         * lib/unigbrk/u16-grapheme-next.c: Update name.
58375         * lib/unigbrk/u16-grapheme-prev.c: Update name.
58376         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
58377         * lib/unigbrk/u32-grapheme-next.c: Update name.
58378         * lib/unigbrk/u32-grapheme-prev.c: Update name.
58379         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58380         * lib/unigbrk/u8-grapheme-next.c: Update name.
58381         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58382         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58383         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58384         Suggested by Bruno Haible.
58386 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58388         Remove module 'u8-grapheme-len' as too redundant with
58389         'u8-grapheme-next'.
58390         * modules/unigbrk/u8-grapheme-len: Delete file.
58391         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58392         * lib/unigbrk.in.h: Remove prototype for deleted function.
58393         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58394         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58396         Remove module 'u16-grapheme-len' as too redundant with
58397         'u16-grapheme-next'.
58398         * modules/unigbrk/u16-grapheme-len: Delete file.
58399         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58400         * lib/unigbrk.in.h: Remove prototype for deleted function.
58401         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58402         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58404         Remove module 'u32-grapheme-len' as too redundant with
58405         'u32-grapheme-next'.
58406         * modules/unigbrk/u32-grapheme-len: Delete file.
58407         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58408         * lib/unigbrk.in.h: Remove prototype for deleted function.
58409         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58410         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58412         Suggested by Bruno Haible.
58414 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58416         * unigbrk.in.h: Fix typo: "ben" => "been".
58417         Reported by Bruno Haible.
58419 2011-01-01  Jim Meyering  <meyering@redhat.com>
58421         maint: update almost all copyright ranges to include 2011
58422         Run the new "make update-copyright" rule.
58424 2011-01-01  Jim Meyering  <meyering@redhat.com>
58426         maint: update-copyright: exempt doc/INSTALL*
58427         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58428         since they are generated.  Suggested by Bruno Haible.
58430 2011-01-01  Jim Meyering  <meyering@redhat.com>
58432         maint: refine the update-copyright rule
58433         * Makefile (update-copyright): Also exclude any file that includes
58434         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58435         code that merely generates the comment.
58437 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58439         New module 'u8-grapheme-len'.
58440         * modules/unigbrk/u8-grapheme-len: New file.
58441         * modules/unigbrk/u8-grapheme-len-tests: New file.
58442         * lib/unigbrk.in.h: Add prototype for new function.
58443         * lib/unigbrk/u8-grapheme-len.c: New file.
58444         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58446         New module 'u16-grapheme-len'.
58447         * modules/unigbrk/u16-grapheme-len: New file.
58448         * modules/unigbrk/u16-grapheme-len-tests: New file.
58449         * lib/unigbrk.in.h: Add prototype for new function.
58450         * lib/unigbrk/u16-grapheme-len.c: New file.
58451         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58453         New module 'u32-grapheme-len'.
58454         * modules/unigbrk/u32-grapheme-len: New file.
58455         * modules/unigbrk/u32-grapheme-len-tests: New file.
58456         * lib/unigbrk.in.h: Add prototype for new function.
58457         * lib/unigbrk/u32-grapheme-len.c: New file.
58458         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58460         New module 'u8-grapheme-next'.
58461         * modules/unigbrk/u8-grapheme-next: New file.
58462         * modules/unigbrk/u8-grapheme-next-tests: New file.
58463         * lib/unigbrk.in.h: Add prototype for new function.
58464         * lib/unigbrk/u8-grapheme-next.c: New file.
58465         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58467         New module 'u16-grapheme-next'.
58468         * modules/unigbrk/u16-grapheme-next: New file.
58469         * modules/unigbrk/u16-grapheme-next-tests: New file.
58470         * lib/unigbrk.in.h: Add prototype for new function.
58471         * lib/unigbrk/u16-grapheme-next.c: New file.
58472         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58474         New module 'u32-grapheme-next'.
58475         * modules/unigbrk/u32-grapheme-next: New file.
58476         * modules/unigbrk/u32-grapheme-next-tests: New file.
58477         * lib/unigbrk.in.h: Add prototype for new function.
58478         * lib/unigbrk/u32-grapheme-next.c: New file.
58479         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58481         New module 'u8-grapheme-prev'.
58482         * modules/unigbrk/u8-grapheme-prev: New file.
58483         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58484         * lib/unigbrk.in.h: Add prototype for new function.
58485         * lib/unigbrk/u8-grapheme-prev.c: New file.
58486         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58488         New module 'u16-grapheme-prev'.
58489         * modules/unigbrk/u16-grapheme-prev: New file.
58490         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58491         * lib/unigbrk.in.h: Add prototype for new function.
58492         * lib/unigbrk/u16-grapheme-prev.c: New file.
58493         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58495         New module 'u32-grapheme-prev'.
58496         * modules/unigbrk/u32-grapheme-prev: New file.
58497         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58498         * lib/unigbrk.in.h: Add prototype for new function.
58499         * lib/unigbrk/u32-grapheme-prev.c: New file.
58500         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58502         New module 'u8-grapheme-breaks'.
58503         * modules/unigbrk/u8-grapheme-breaks: New file.
58504         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58505         * lib/unigbrk.in.h: Add prototype for new function.
58506         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58507         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58509         New module 'u16-grapheme-breaks'.
58510         * modules/unigbrk/u16-grapheme-breaks: New file.
58511         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58512         * lib/unigbrk.in.h: Add prototype for new function.
58513         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58514         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58516         New module 'u32-grapheme-breaks'.
58517         * modules/unigbrk/u32-grapheme-breaks: New file.
58518         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58519         * lib/unigbrk.in.h: Add prototype for new function.
58520         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58521         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58523         New module 'ulc-grapheme-breaks'.
58524         * modules/unigbrk/ulc-grapheme-breaks: New file.
58525         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58526         * m4/locale-ar.m4: New file.
58527         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58528         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58529         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58531 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58533         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58534         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58535         modified how this file was generated before I initially submitted
58536         the module, but failed to regenerate it.  This meant that several
58537         of the level2 entries were wrong.
58538         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58539         Remove the division-by-2 that is folded into the table now that
58540         gbrkprop.h has been regenerated properly.  Now -1 entries are
58541         handled correctly.
58543         New module 'unigbrk/uc-gbrk-prop-tests'.
58544         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58545         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58546         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58547         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58549 2011-01-01  Bruno Haible  <bruno@clisp.org>
58551         Avoid use of hexadecimal escapes.
58552         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58553         instead of hexadecimal escapes.
58555 2011-01-01  Jim Meyering  <meyering@redhat.com>
58557         maint: new rule to update copyright year ranges
58558         * Makefile (update-copyright): New rule.
58560         maint: indent with TABs in Makefile
58561         * Makefile: Expand leading sequences of spaces to TABs
58563         version-etc: update the copyright year it reports
58564         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58566 2010-12-31  Bruno Haible  <bruno@clisp.org>
58568         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58569         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58570         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58571         zero.
58573 2010-12-31  Bruno Haible  <bruno@clisp.org>
58575         pwrite: Work around HP-UX 11.11 bug.
58576         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58577         works and set REPLACE_PWRITE if not.
58578         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58579         function.
58580         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58582 2010-12-31  Bruno Haible  <bruno@clisp.org>
58584         pread: Work around HP-UX 11 bugs.
58585         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58586         and set REPLACE_PREAD if not.
58587         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58589 2010-12-31  Eric Blake  <eblake@redhat.com>
58591         nl_langinfo: fix YESEXPR on Irix 6.5
58592         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58593         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58595         it.
58597 2010-12-31  Bruno Haible  <bruno@clisp.org>
58599         iconv: Document HP-UX 11 bug.
58600         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58602 2010-12-31  Bruno Haible  <bruno@clisp.org>
58604         ldexpl: Fix link error on HP-UX 11.
58605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58606         LDEXPL_LIBM, using $ISNANL_LIBM.
58608 2010-12-31  Eric Blake  <eblake@redhat.com>
58610         ftello: avoid compilation failure with SunStudio c89
58611         * lib/ftello.c (ftello): Use lseek, not llseek.
58613         tests: avoid failing coreutils tests on cygwin
58614         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58615         (create_exe_shims_): Return 0 when skipping.
58617 2010-12-31  Bruno Haible  <bruno@clisp.org>
58619         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58620         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58622 2010-12-31  Bruno Haible  <bruno@clisp.org>
58624         waitpid: Fix link error in C++ mode.
58625         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58627 2010-12-31  Bruno Haible  <bruno@clisp.org>
58629         isnan: Use GCC built-ins when possible.
58630         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58631         __builtin_isnan.
58632         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58633         (isnan): Define using GCC built-ins for GCC >= 4.0.
58635 2010-12-31  Bruno Haible  <bruno@clisp.org>
58637         isnand: Fix mistake.
58638         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58639         __builtin_isnand.
58641 2010-12-31  Bruno Haible  <bruno@clisp.org>
58643         open: Avoid C++ error on HP-UX 11.
58644         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58646 2010-12-31  Bruno Haible  <bruno@clisp.org>
58648         time_r: Add missing declarations on HP-UX 11.
58649         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58650         instead of HAVE_LOCALTIME_R.
58651         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58652         HAVE_LOCALTIME_R always.
58653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58654         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58655         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58656         HAVE_LOCALTIME_R.
58657         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58658         * doc/posix-functions/localtime_r.texi: Likewise.
58660 2010-12-29  Eric Blake  <eblake@redhat.com>
58662         mountlist: tweak previous commit
58663         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58664         Reported by Paul Eggert.
58666         mountlist: fix local drive detection on cygwin
58667         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58668         that works for cygwin.
58670 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58672         ftoastr, snprintf: ftoastr + snprintf module
58673         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58674         since the snprintf module now should be good enough here.
58675         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58676         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58677         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58678         GNULIB_SNPRINTF only for the test directory, and the latter
58679         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58680         seems to suffice by itself.
58682 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58684         alloca: one step towards thread-safety
58685         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58686         need for a static variable.  All callers changed.  This does not
58687         make the alloca replacement thread-safe, but it's one step.
58689         tests: minor indenting change
58690         * tests/init.sh: Sync from coreutils housekeeping patch
58691         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58692         to keep lines within 80 columns.
58694 2010-12-28  Jim Meyering  <meyering@redhat.com>
58696         regex: don't infloop on persistent failing calloc
58697         * lib/regexec.c (build_trtable): Return failure indication upon
58698         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58699         In glibc, this was fixed for version 2.13:
58700         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58702 2010-12-28  Bruno Haible  <bruno@clisp.org>
58703             Paul Eggert <eggert@cs.ucla.edu>
58705         linkat: Make implementation robust against system behaviour variations.
58706         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58707         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58708         way, and to -2 if it needs a generic runtime test.
58709         * lib/linkat.c (solaris_optimized_link_immediate,
58710         solaris_optimized_link_follow): New functions.
58711         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58712         (check_same_link): Use it.
58714 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58716         New module 'unigbrk/base'.
58717         * modules/unigbrk/base: New file.
58718         * lib/unigbrk.in.h: New file.
58720         New module 'unigbrk/uc-gbrk-prop'.
58721         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58722         * modules/unigbrk/uc-gbrk-prop: New file.
58723         * lib/unigbrk/gbrkprop.h: New file.
58724         * lib/unigbrk/uc-gbrk-prop.c: New file.
58726         New module 'unigbrk/uc-is-grapheme-break'.
58727         * modules/unigbrk/uc-is-grapheme-break: New file.
58728         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58729         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58730         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58731         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58732         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58734         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58736 2010-12-27  Bruno Haible  <bruno@clisp.org>
58738         linkat test: Avoid failure on Solaris 11 2010-11.
58739         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58741 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58743         utimens: work around glibc rounding bug on more platforms
58744         * lib/utimens.c (fdutimens): Work around rounding bug even if
58745         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58746         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58748 2010-12-27  Bruno Haible  <bruno@clisp.org>
58750         select tests: Improve comments.
58751         * tests/test-select.c (do_select): Add comments.
58753 2010-12-27  Bruno Haible  <bruno@clisp.org>
58755         select tests: Safer way of handling timeout.
58756         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58757         at every invocation.
58759 2010-12-27  Bruno Haible  <bruno@clisp.org>
58761         select tests: Use 'bool' where appropriate.
58762         * tests/test-select.c (connect_to_socket): Change argument type to
58763         'bool'.
58765 2010-12-27  Bruno Haible  <bruno@clisp.org>
58767         select tests: Use existing modules.
58768         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58769         (configure.ac): Don't test for unistd.h.
58770         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58771         declared in <unistd.h>.
58773 2010-12-27  Bruno Haible  <bruno@clisp.org>
58775         mbrtowc: Work around a Solaris 7 bug.
58776         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58777         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58778         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58779         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58780         MBRTOWC_NULL_ARG1_BUG.
58781         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58782         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58783         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58784         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58786 2010-12-27  Jim Meyering  <meyering@redhat.com>
58788         read-file.c: tweak syntax
58789         * lib/read-file.c (fread_file): Remove space after "*" in function
58790         definitions.
58792 2010-12-27  Bruno Haible  <bruno@clisp.org>
58794         times test: Avoid gcc warnings on OSF/1.
58795         * tests/test-times.c (main): Cast printf arguments from clock_t to
58796         'long int'.
58798 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58800         utimens: work around glibc rounding bug on older Linux kernels
58801         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
58802         on Linux with a glibc whose utimes might not work, then work
58803         around a longstanding glibc bug involving rounding rather than
58804         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
58805         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58807 2010-12-26  Bruno Haible  <bruno@clisp.org>
58809         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
58810         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
58811         _GL_CXXALIAS_SYS.
58812         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58814 2010-12-26  Bruno Haible  <bruno@clisp.org>
58816         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
58817         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58819         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58820         looking for the declaration.
58821         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58822         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58823         problem.
58824         * doc/posix-functions/inet_pton.texi: Likewise.
58826 2010-12-26  Bruno Haible  <bruno@clisp.org>
58828         arpa_inet: Use the common idioms with C++ support.
58829         * lib/arpa_inet.in.h: Include c++defs.h.
58830         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58831         support.
58832         * modules/arpa_inet (Depends-on): Add c++defs.
58833         (Makefile.am): Substitute the contents of c++defs.h.
58834         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58835         * modules/arpa_inet-c++-tests: New file.
58836         * tests/test-arpa_inet-c++.cc: New file.
58838 2010-12-25  Bruno Haible  <bruno@clisp.org>
58840         Fix more C++ link errors on Solaris 8.
58841         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58842         $(LIB_EACCESS).
58843         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58844         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58845         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58846         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58847         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58849 2010-12-25  Bruno Haible  <bruno@clisp.org>
58851         printf-posix: Fix link error when a non-GCC compiler is used.
58852         * lib/stdio.in.h (printf): When not using GCC, override printf
58853         correctly.
58854         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58856 2010-12-25  Bruno Haible  <bruno@clisp.org>
58858         strerror_r-posix: Update doc.
58859         * doc/posix-functions/strerror_r.texi: Update doc about the return
58860         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58862 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58864         utimens: simplify the logic of the previous change
58865         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58866         This should not affect whether the test succeeds or fails.
58868         utimens: configure better on hosts with NFS clock skew
58869         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58870         uses the clock of the local host.  It might use the clock of the
58871         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58872         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58874 2010-12-25  Bruno Haible  <bruno@clisp.org>
58876         ptsname test: Avoid failure on Solaris.
58877         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58878         open a pseudo-terminal; don't use BSD-style ptys.
58879         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58881 2010-12-25  Bruno Haible  <bruno@clisp.org>
58883         ptsname: Avoid ERANGE failure on some systems.
58884         * lib/ptsname.c (buffer): Increase size.
58886 2010-12-25  Bruno Haible  <bruno@clisp.org>
58888         rename, renameat: Avoid test failures at NFS mounted locations.
58889         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58890         so that subsequent mkdir calls succeed.
58892 2010-12-25  Bruno Haible  <bruno@clisp.org>
58894         iswblank: Fix C++ link error on Solaris 8.
58895         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58896         _GL_FUNCDECL_SYS.
58898 2010-12-25  Bruno Haible  <bruno@clisp.org>
58900         unistd: Fix C++ link error on Solaris 8.
58901         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58903 2010-12-25  Bruno Haible  <bruno@clisp.org>
58905         readlink doc: Mention an old glibc bug.
58906         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58908 2010-12-25  Bruno Haible  <bruno@clisp.org>
58910         fcntl-h: Fix for use of C++ on glibc systems.
58911         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58912         also on glibc systems in C++ mode.
58913         Reported by Gary V. Vaughan <gary@gnu.org>.
58915 2010-12-25  Bruno Haible  <bruno@clisp.org>
58917         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58918         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58920 2010-12-25  Bruno Haible  <bruno@clisp.org>
58922         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58923         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58924         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58925         test whether truncl works according to ISO C 99 with IEC 60559.
58926         * m4/truncl-ieee.m4: New file.
58927         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58928         m4/signbit.m4.
58929         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58931 2010-12-25  Bruno Haible  <bruno@clisp.org>
58933         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58934         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58935         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58936         test whether ceill works according to ISO C 99 with IEC 60559.
58937         * m4/ceill-ieee.m4: New file.
58938         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58939         m4/signbit.m4.
58940         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58942 2010-12-25  Bruno Haible  <bruno@clisp.org>
58944         Ensure all prerequisites of <wchar.h> are included.
58945         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58946         before <wchar.h>.
58947         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58948         gl_MBRLEN_NUL_RETVAL): Likewise.
58949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58950         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58951         AC_FUNC_MBRTOWC): Likewise.
58952         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58953         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58954         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58955         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58956         Likewise.
58957         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58958         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58959         (gl_WCHAR_H): Improve comments.
58960         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58962 2010-12-25  Bruno Haible  <bruno@clisp.org>
58964         strtok_r: Fix C syntax error in autoconf macro.
58965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58966         characters in test program.
58968 2010-12-24  Bruno Haible  <bruno@clisp.org>
58970         ceil, trunc, round: Fix gcc warnings.
58971         * lib/ceil.c (MIN): Undefine before redefining.
58972         * lib/trunc.c (MIN): Likewise.
58973         * lib/round.c (MIN): Likewise.
58974         Include <math.h> first.
58976 2010-12-24  Bruno Haible  <bruno@clisp.org>
58978         select tests: Avoid failures on OSF/1 5.1.
58979         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58980         failure of closing the last socket; it may fail with ECONNRESET.
58982 2010-12-24  Eric Blake  <eblake@redhat.com>
58984         stdint: avoid HP-UX 10.20 preprocessor bug
58985         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58986         than #if.
58987         * tests/test-floor2.c (main): Likewise.
58988         Reported by Peter O'Gorman.
58990         pipe: make obsoletion transition easier
58991         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58992         * modules/pipe (Files): Include revived file.
58993         (Include): Drop reference, to mirror getdate's behavior.
58995 2010-12-24  Bruno Haible  <bruno@clisp.org>
58997         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58998         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58999         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
59000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59002 2010-12-24  Bruno Haible  <bruno@clisp.org>
59004         gethostname: Ensure declaration on NonStop Kernel.
59005         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
59006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59008 2010-12-24  Bruno Haible  <bruno@clisp.org>
59010         sys_select: Ensure all necessary types on NonStop Kernel.
59011         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
59012         include <sys/time.h>.
59013         * doc/posix-headers/sys_select.texi: Mention that it's missing on
59014         NonStop Kernel.
59015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59017 2010-12-24  Bruno Haible  <bruno@clisp.org>
59019         sys_select: Remove unneeded include.
59020         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
59021         have <sys/select.h>.
59023 2010-12-24  Bruno Haible  <bruno@clisp.org>
59025         gethostname: Provide a fallback for HOST_NAME_MAX.
59026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
59027         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
59028         instead.
59029         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59031 2010-12-24  Bruno Haible  <bruno@clisp.org>
59033         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
59034         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
59035         (SA_RESTART): Likewise.
59036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59038 2010-12-24  Bruno Haible  <bruno@clisp.org>
59040         signal: Define NSIG.
59041         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
59042         * tests/test-signal.c (nsig): New variable.
59043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59045 2010-12-24  Bruno Haible  <bruno@clisp.org>
59047         rename, renameat: Avoid test failures on OSF/1 5.1.
59048         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
59049         alternative error codes.
59050         * tests/test-renameat.c (main): Likewise.
59052 2010-12-24  Bruno Haible  <bruno@clisp.org>
59054         *printf: Detect large precisions bug on Solaris 10/SPARC.
59055         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
59056         by Paul Eggert.
59057         * tests/test-snprintf-posix.h (test_function): Add this test code here
59058         too.
59059         * tests/test-sprintf-posix.h (test_function): Likewise.
59060         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59061         * tests/test-vasprintf-posix.c (test_function): Likewise.
59062         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
59063         around by gnulib.
59064         * doc/posix-functions/printf.texi: Likewise.
59065         * doc/posix-functions/snprintf.texi: Likewise.
59066         * doc/posix-functions/sprintf.texi: Likewise.
59067         * doc/posix-functions/vfprintf.texi: Likewise.
59068         * doc/posix-functions/vprintf.texi: Likewise.
59069         * doc/posix-functions/vsnprintf.texi: Likewise.
59070         * doc/posix-functions/vsprintf.texi: Likewise.
59071         * doc/posix-functions/dprintf.texi: Undo last commit.
59072         * doc/posix-functions/vdprintf.texi: Likewise.
59074 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59076         tests: port test-fdutimensat.c to Solaris 8
59077         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
59078         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
59079         On Solaris 8, it fails with errno == ENOSYS, because there is no
59080         futimens (so it can't use the fd), and there is no lutimens (so it
59081         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
59083         vsnprintf: make more consistent with snprintf; doc fixes
59085         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
59086         the byte count return problem was promoted from the snprintf-posix
59087         to the snprintf module.
59088         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
59089         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
59090         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
59091         * tests/test-snprintf.c (main): Check the byte count returned.
59092         * tests/test-vsnprintf.c (main): Likewise.
59094 2010-12-23  Eric Blake  <eblake@redhat.com>
59096         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
59097         * modules/sigpipe (License): Relax license.
59099 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59101         doc: document Solaris printf bug with large float precisions
59102         * doc/posix-functions/dprintf.texi (dprintf):
59103         * doc/posix-functions/fprintf.texi (fprintf):
59104         * doc/posix-functions/printf.texi (printf):
59105         * doc/posix-functions/snprintf.texi (snprintf):
59106         * doc/posix-functions/sprintf.texi (sprintf):
59107         * doc/posix-functions/vdprintf.texi (vdprintf):
59108         * doc/posix-functions/vfprintf.texi (vfprintf):
59109         * doc/posix-functions/vprintf.texi (vprintf):
59110         * doc/posix-functions/vsnprintf.texi (vsnprintf):
59111         * doc/posix-functions/vsprintf.texi (vsprintf):
59112         Mention that these functions mishandle large floating point
59113         precisions on Solaris 10.  The same bug is also present in Solaris
59114         8, and I assume earlier.  This causes "cd gnulib-tests; make
59115         check" to fail on Solaris 8 (and I assume, later) when building
59116         the latest coreutils, in test-vasprintf-posix's call to
59117         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
59118         the wide flavors (e.g., wprintf) so this patch just updates the
59119         documentation for the narrow ones.
59121         test-posixtm.c: add two tests
59122         * tests/test-posixtm.c: Add two tests, to highlight the
59123         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
59124         around this bug; this is merely to document it.
59126 2010-12-22  Bruno Haible  <bruno@clisp.org>
59128         getlogin_r: Work around portability problem on OSF/1.
59129         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
59130         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
59131         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
59132         test for a truncated result.
59133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
59134         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
59135         * modules/getlogin_r (Depends-on): Add memchr.
59136         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
59138 2010-12-22  Bruno Haible  <bruno@clisp.org>
59140         ptsname: Avoid test failure on OSF/1 5.1.
59141         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
59142         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
59143         (same_slave): New function.
59144         (main): Use it to compare ptsname's result with the expected file name.
59146 2010-12-22  Bruno Haible  <bruno@clisp.org>
59148         Port extended stdio modules to HP NonStop Kernel.
59149         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
59150         macros.
59151         * lib/fbufmode.c: Update comments.
59152         * lib/fflush.c: Likewise.
59153         * lib/fpurge.c: Likewise.
59154         * lib/freadable.c: Likewise.
59155         * lib/freadahead.c: Likewise.
59156         * lib/freading.c: Likewise.
59157         * lib/freadptr.c: Likewise.
59158         * lib/freadseek.c: Likewise.
59159         * lib/fseeko.c: Likewise.
59160         * lib/fseterr.c: Likewise.
59161         * lib/fwritable.c: Likewise.
59162         * lib/fwriting.c: Likewise.
59163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59165 2010-12-22  Bruno Haible  <bruno@clisp.org>
59167         ttyname_r: Work around bug on OSF/1 5.1.
59168         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
59169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
59170         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
59171         present.
59172         * lib/ttyname_r.c (ttyname_r): Update comments.
59174 2010-12-22  Bruno Haible  <bruno@clisp.org>
59176         round: Implement result sign according to IEEE 754.
59177         * lib/round.c (MIN, MINUS_ZERO): New macros.
59178         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
59179         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
59180         * tests/test-round-ieee.c (main): Likewise.
59181         * tests/test-roundl-ieee.c (main): Likewise.
59183         trunc: Implement result sign according to IEEE 754.
59184         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
59185         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
59186         * tests/test-trunc2.c: Include minus-zero.h.
59187         (MINUS_ZERO): New macro.
59188         (trunc_reference): Keep in sync with lib/trunc.c.
59189         * tests/test-truncf2.c: Include minus-zero.h.
59190         (MINUS_ZERO): New macro.
59191         (truncf_reference): Keep in sync with lib/trunc.c.
59192         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
59193         * tests/test-trunc-ieee.c (main): Likewise.
59194         * tests/test-truncl-ieee.c (main): Likewise.
59196         ceil: Implement result sign according to IEEE 754.
59197         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
59198         (FUNC): Return -0.0 for -1 < x < 0.
59199         * tests/test-ceil2.c: Include minus-zero.h.
59200         (MINUS_ZERO): New macro.
59201         (ceil_reference): Keep in sync with lib/ceil.c.
59202         * tests/test-ceilf2.c: Include minus-zero.h.
59203         (MINUS_ZERO): New macro.
59204         (ceilf_reference): Keep in sync with lib/ceil.c.
59205         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
59206         * tests/test-ceil-ieee.c (main): Likewise.
59207         * tests/test-ceill-ieee.c (main): Likewise.
59209         floor: Implement result sign according to IEEE 754.
59210         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
59211         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
59212         * tests/test-floorf2.c (floorf_reference): Likewise.
59213         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
59214         * tests/test-floor-ieee.c (main): Likewise.
59215         * tests/test-floorl-ieee.c (main): Likewise.
59217 2010-12-22  Bruno Haible  <bruno@clisp.org>
59219         getaddrinfo: Update doc.
59220         * doc/posix-functions/gai_strerror.texi: Return type is also different
59221         on AIX and HP-UX.
59223 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59225         getaddrinfo, inet_ntop: Update doc for Solaris.
59226         * doc/posix-functions/gai_strerror.texi: Return type is also an
59227         issue on Solaris 9 and earlier.
59228         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
59229         on Solaris 10 and earlier.
59231 2010-12-21  Bruno Haible  <bruno@clisp.org>
59233         New module 'roundl-ieee'.
59234         * modules/roundl-ieee: New file.
59235         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
59236         test whether roundl works according to ISO C 99 with IEC 60559.
59237         * m4/roundl-ieee.m4: New file.
59238         * modules/roundl-ieee-tests: New file.
59239         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
59240         * tests/test-roundl.c (main): Remove signbit tests.
59241         * modules/roundl-tests (Depends-on): Remove signbit.
59242         * doc/posix-functions/roundl.texi: Mention the new module.
59244 2010-12-21  Bruno Haible  <bruno@clisp.org>
59246         New module 'truncl-ieee'.
59247         * modules/truncl-ieee: New file.
59248         * modules/truncl-ieee-tests: New file.
59249         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
59250         * tests/test-truncl.c (main): Remove signbit tests.
59251         * modules/truncl-tests (Depends-on): Remove signbit.
59252         * doc/posix-functions/truncl.texi: Mention the new module.
59254 2010-12-21  Bruno Haible  <bruno@clisp.org>
59256         New module 'ceill-ieee'.
59257         * modules/ceill-ieee: New file.
59258         * modules/ceill-ieee-tests: New file.
59259         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
59260         * tests/test-ceill.c (main): Remove signbit tests.
59261         * modules/ceill-tests (Depends-on): Remove signbit.
59262         * doc/posix-functions/ceill.texi: Mention the new module.
59264 2010-12-21  Bruno Haible  <bruno@clisp.org>
59266         New module 'floorl-ieee'.
59267         * modules/floorl-ieee: New file.
59268         * modules/floorl-ieee-tests: New file.
59269         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
59270         * tests/test-floorl.c (main): Remove signbit tests.
59271         * modules/floorl-tests (Depends-on): Remove signbit.
59272         * doc/posix-functions/floorl.texi: Mention the new module.
59274 2010-12-21  Bruno Haible  <bruno@clisp.org>
59276         New module 'round-ieee'.
59277         * modules/round-ieee: New file.
59278         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
59279         whether round works according to ISO C 99 with IEC 60559.
59280         * m4/round-ieee.m4: New file.
59281         * modules/round-ieee-tests: New file.
59282         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
59283         * tests/test-round1.c (main): Remove signbit tests.
59284         * modules/round-tests (Depends-on): Remove 'signbit'.
59285         * doc/posix-functions/round.texi: Mention the new module.
59287 2010-12-21  Bruno Haible  <bruno@clisp.org>
59289         New module 'trunc-ieee'.
59290         * modules/trunc-ieee: New file.
59291         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
59292         whether trunc works according to ISO C 99 with IEC 60559.
59293         * m4/trunc-ieee.m4: New file.
59294         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
59295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
59296         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
59297         * modules/trunc-ieee-tests: New file.
59298         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
59299         * tests/test-trunc1.c (main): Remove signbit tests.
59300         * modules/trunc-tests (Depends-on): Remove 'signbit'.
59301         * doc/posix-functions/trunc.texi: Mention the new module.
59303 2010-12-21  Bruno Haible  <bruno@clisp.org>
59305         New module 'ceil-ieee'.
59306         * modules/ceil-ieee: New file.
59307         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
59308         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
59309         ISO C 99 with IEC 60559.
59310         * m4/ceil-ieee.m4: New file.
59311         * modules/ceil (Files): Add lib/ceil.c.
59312         (Depends-on): Add 'float'.
59313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59314         * lib/math.in.h (ceil): New declaration.
59315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
59316         REPLACE_CEIL.
59317         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
59318         * modules/ceil-ieee-tests: New file.
59319         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
59320         * tests/test-math-c++.cc: Check the signature of 'ceil'.
59321         * doc/posix-functions/ceil.texi: Mention the new module.
59323 2010-12-21  Bruno Haible  <bruno@clisp.org>
59325         New module 'floor-ieee'.
59326         * modules/floor-ieee: New file.
59327         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
59328         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
59329         ISO C 99 with IEC 60559.
59330         * m4/floor-ieee.m4: New file.
59331         * modules/floor (Files): Add lib/floor.c.
59332         (Depends-on): Add 'float'.
59333         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59334         * lib/math.in.h (floor): New declaration.
59335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
59336         REPLACE_FLOOR.
59337         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
59338         * modules/floor-ieee-tests: New file.
59339         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
59340         * tests/test-math-c++.cc: Check the signature of 'floor'.
59341         * doc/posix-functions/floor.texi: Mention the new module.
59343 2010-12-21  Bruno Haible  <bruno@clisp.org>
59345         New module 'roundf-ieee'.
59346         * modules/roundf-ieee: New file.
59347         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
59348         test whether roundf works according to ISO C 99 with IEC 60559.
59349         * m4/roundf-ieee.m4: New file.
59350         * modules/roundf-ieee-tests: New file.
59351         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
59352         * tests/test-roundf1.c (main): Remove signbit tests.
59353         * modules/roundf-tests (Depends-on): Remove 'signbit'.
59354         * doc/posix-functions/roundf.texi: Mention the new module.
59356 2010-12-21  Bruno Haible  <bruno@clisp.org>
59358         New module 'truncf-ieee'.
59359         * modules/truncf-ieee: New file.
59360         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
59361         test whether truncf works according to ISO C 99 with IEC 60559.
59362         * m4/truncf-ieee.m4: New file.
59363         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
59364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
59365         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
59366         * modules/truncf-ieee-tests: New file.
59367         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
59368         * tests/test-truncf1.c (main): Remove signbit tests.
59369         * modules/truncf-tests (Depends-on): Remove 'signbit'.
59370         * doc/posix-functions/truncf.texi: Mention the new module.
59372 2010-12-21  Bruno Haible  <bruno@clisp.org>
59374         New module 'ceilf-ieee'.
59375         * modules/ceilf-ieee: New file.
59376         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
59377         test whether ceilf works according to ISO C 99 with IEC 60559.
59378         * m4/ceilf-ieee.m4: New file.
59379         * modules/ceilf-ieee-tests: New file.
59380         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59381         * tests/test-ceilf1.c (main): Remove signbit tests.
59382         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59383         * doc/posix-functions/ceilf.texi: Mention the new module.
59385 2010-12-21  Bruno Haible  <bruno@clisp.org>
59387         New module 'floorf-ieee'.
59388         * modules/floorf-ieee: New file.
59389         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59390         test whether floorf works according to ISO C 99 with IEC 60559.
59391         * m4/floorf-ieee.m4: New file.
59392         * modules/floorf-ieee-tests: New file.
59393         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59394         * tests/test-floorf1.c (main): Remove signbit tests.
59395         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59396         * doc/posix-functions/floorf.texi: Mention the new module.
59398 2010-12-21  Bruno Haible  <bruno@clisp.org>
59400         Support for minus zero in autoconf macros.
59401         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59402         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59403         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59404         * tests/minus-zero.h: Update comments.
59406 2010-12-21  Bruno Haible  <bruno@clisp.org>
59408         Tests for module 'ceil'.
59409         * modules/ceil-tests: New file.
59410         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59411         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59413 2010-12-21  Bruno Haible  <bruno@clisp.org>
59415         Tests for module 'floor'.
59416         * modules/floor-tests: New file.
59417         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59418         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59420 2010-12-21  Bruno Haible  <bruno@clisp.org>
59422         math: Fix indentation.
59423         * lib/math.in.h (floorf): Fix indentation.
59425 2010-12-21  Bruno Haible  <bruno@clisp.org>
59427         Fix cross-compilation guesses on Solaris.
59428         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59429         not match "solaris2.10".
59430         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59431         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59432         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59434 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59436         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59437         This fixes a problem observed with the latest coreutils snapshot
59438         that caused a test to fail on Solaris 8.  src/csplit.c's call
59439         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59440         earlier, instead of returning the number of bytes that would have
59441         been generated; this causes csplit to incorrectly report memory
59442         exhaustion.
59443         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59444         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59445         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59446         comments to match.
59447         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59448         Fix typo in matching older versions of Solaris: "solaris2.10"
59449         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59450         only for guessing while cross-compiling.
59451         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59453 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59455         ftoastr: fix comment again
59456         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59457         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59458         Also, simplify example a bit by using flags = 0.
59460 2010-12-20  Bruno Haible  <bruno@clisp.org>
59462         round*, trunc*: Update documentation regarding glibc.
59463         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59464         * doc/posix-functions/round.texi: Likewise.
59465         * doc/posix-functions/roundl.texi: Likewise.
59466         * doc/posix-functions/truncf.texi: Likewise.
59467         * doc/posix-functions/trunc.texi: Likewise.
59468         * doc/posix-functions/truncl.texi: Likewise.
59470 2010-12-20  Bruno Haible  <bruno@clisp.org>
59472         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59473         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59474         * doc/posix-functions/round.texi: Likewise.
59475         * doc/posix-functions/roundl.texi: Likewise.
59477 2010-12-20  Bruno Haible  <bruno@clisp.org>
59479         ttyname_r: Add missing declaration on HP-UX 11.
59480         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59481         HAVE_TTYNAME_R.
59482         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59483         declared. Set HAVE_TTYNAME_R always.
59484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59485         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59486         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59487         HAVE_TTYNAME_R.
59488         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59490 2010-12-20  Bruno Haible  <bruno@clisp.org>
59492         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59493         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59494         * doc/posix-functions/getlogin_r.texi: Likewise.
59495         * tests/test-getlogin.c: Include <errno.h>.
59496         (main): Avoid test failure on HP-UX 11.11.
59497         * tests/test-getlogin_r.c (main): Likewise.
59499 2010-12-20  Bruno Haible  <bruno@clisp.org>
59501         getlogin_r: Add missing declaration on HP-UX 11.
59502         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59503         declared also when it exists as a function.
59504         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59506 2010-12-20  Bruno Haible  <bruno@clisp.org>
59508         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59509         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59510         through wcrtomb.
59512 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59514         ftoastr: fix comment
59515         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59516         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59518 2010-12-19  Bruno Haible  <bruno@clisp.org>
59520         isnan: Ensure it is a macro.
59521         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59522         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59523         Solaris.
59525 2010-12-19  Bruno Haible  <bruno@clisp.org>
59527         ldexpl test: Fix link error on OSF/1 5.1.
59528         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59530 2010-12-19  Bruno Haible  <bruno@clisp.org>
59532         wctype: Make it work in C++ mode on OSF/1 5.1.
59533         * lib/wctype.in.h (iswblank): Declare but not define here.
59534         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59535         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59536         * modules/wctype (Files): Add lib/iswblank.c.
59538 2010-12-19  Bruno Haible  <bruno@clisp.org>
59540         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59541         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59542         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59544 2010-12-19  Bruno Haible  <bruno@clisp.org>
59546         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59548         _POSIX_PII_SOCKET.
59549         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59550         * doc/posix-functions/recvfrom.texi: Likewise.
59551         * doc/posix-functions/send.texi: Likewise.
59552         * doc/posix-functions/sendto.texi: Likewise.
59554 2010-12-19  Bruno Haible  <bruno@clisp.org>
59556         tcgetsid: Add missing declaration on OSF/1 5.1.
59557         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59558         HAVE_TCGETSID.
59559         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59560         Don't set HAVE_TCGETSID.
59561         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59562         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59563         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59564         HAVE_TCGETSID.
59565         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59567 2010-12-19  Bruno Haible  <bruno@clisp.org>
59569         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59570         * lib/stdio.in.h: During the include_next statement, let recursive
59571         includes of this file include only the system header file.
59573 2010-12-19  Bruno Haible  <bruno@clisp.org>
59575         iconv_open: Fix regression from 2010-12-04.
59576         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59577         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59579 2010-12-19  Bruno Haible  <bruno@clisp.org>
59581         stdbool test: Avoid a gcc warning.
59582         * tests/test-stdbool.c (main): Fail if e1 is false.
59583         Reported by Jim Meyering.
59585 2010-12-19  Jim Meyering  <meyering@redhat.com>
59587         setenv: restore to working order
59588         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59589         mistakenly removed.
59590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59591         HAVE_SETENV.
59592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59593         HAVE_SETENV.
59595 2010-12-19  Bruno Haible  <bruno@clisp.org>
59597         Document some different function declarations on OSF/1 5.1.
59598         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59599         * doc/posix-functions/inet_ntop.texi: Likewise.
59600         * doc/posix-functions/gethostname.texi: Likewise.
59601         * lib/unistd.in.h (gethostname): Update comment.
59603 2010-12-19  Bruno Haible  <bruno@clisp.org>
59605         doc: Mention vasprintf-posix module.
59606         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59607         the 'vasprintf-posix' module.
59608         * doc/glibc-functions/vasprintf.texi: Likewise.
59610 2010-12-19  Bruno Haible  <bruno@clisp.org>
59612         unsetenv: Add missing declaration on OSF/1 5.1.
59613         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59614         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59615         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59617         not HAVE_UNSETENV.
59618         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59619         HAVE_UNSETENV.
59620         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59622 2010-12-19  Bruno Haible  <bruno@clisp.org>
59624         setenv: Add missing declaration on OSF/1 5.1.
59625         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59626         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59627         declared. Don't set HAVE_SETENV.
59628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59629         not HAVE_SETENV.
59630         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59631         HAVE_SETENV.
59632         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59634 2010-12-19  Bruno Haible  <bruno@clisp.org>
59636         nl_langinfo tests: Avoid gcc warning.
59637         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59639 2010-12-19  Bruno Haible  <bruno@clisp.org>
59641         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59642         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59643         _GL_CXXALIAS_SYS.
59645 2010-12-19  Bruno Haible  <bruno@clisp.org>
59647         stdbool: Relax test.
59648         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59649         address to 'bool' work in static initializer, for compilers other than
59650         GCC.
59652 2010-12-19  Bruno Haible  <bruno@clisp.org>
59654         ftello: Add missing declaration on OSF/1 5.1.
59655         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59656         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59658         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59659         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59661 2010-12-19  Bruno Haible  <bruno@clisp.org>
59663         fseeko: Add missing declaration on OSF/1 5.1.
59664         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59667         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59668         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59670 2010-12-19  Bruno Haible  <bruno@clisp.org>
59672         fchdir: Add missing declaration on OSF/1 5.1.
59673         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59676         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59677         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59679 2010-12-19  Bruno Haible  <bruno@clisp.org>
59681         relocatable-prog-wrapper: Separate from relocatable-prog.
59682         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59683         uninstall-relocwrapper rule here.
59684         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59685         Reported by Ian Beckwith <ianb@erislabs.net>.
59687 2010-12-19  Bruno Haible  <bruno@clisp.org>
59689         unistr/u8-mbsnlen: Add missing dependency.
59690         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59691         Reported by Ian Beckwith <ianb@erislabs.net>.
59693 2010-12-19  Bruno Haible  <bruno@clisp.org>
59695         iconv: Make it possible again to use this module without 'iconv-h'.
59696         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59697         if it is not defined.
59698         Reported by Ian Beckwith <ianb@erislabs.net>.
59700 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59702         acl: port to Solaris 8 when copying from tmpfs to ufs
59703         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59704         error number.  Problem observed on Solaris 8 with latest
59705         coreutils, with "mv A B", where A is on a tmpfs file system and B
59706         is on a ufs file system.  This caused coreutils' mv/part-symlink
59707         test to fail.
59709         tests: set fail=0 at start
59710         * tests/init.sh (setup_): Move fail=0 initialization here ...
59711         (mktempd_): ... from here, so that tests can rely on fail being
59712         set to 0 initially.  This fixes a problem in coreutils; see:
59713         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59715 2010-12-18  Bruno Haible  <bruno@clisp.org>
59717         memmem-simple: Stylistic changes.
59718         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59719         Fix preprocessor directive indentation.
59721 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59723         memmem, memmem-simple: reorganize and expand empty needle check
59724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59725         functional checks to memmem-simple so that one has a fully functional
59726         memmem by using just this module.
59727         Restrict the performance only check to the memmem module.
59728         Also expand the empty needle check to ensure the correct
59729         pointer is returned, not just a non NULL pointer.
59730         * doc/glibc-functions/memmem.texi: Rearrange the portability
59731         documentation to correlate with the rearranged checks.
59732         Clarify exactly how the memmem and memmem-simple modules
59733         relate to each other.
59735 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59736             Bruno Haible  <bruno@clisp.org>
59738         Improve cross-compilation guesses for uClibc.
59739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59740         that uClibc does not have the glibc bug.
59741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59742         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59744 2010-12-14  Eric Blake  <eblake@redhat.com>
59746         configmake: provide fallbacks for oldest supported autotools
59747         * m4/configmake.m4: New file.
59748         * modules/configmake (Files): Ship it.
59749         (configure.ac): Use it to guarantee fallbacks.
59751 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59753         read-file: Improve handling of large files
59754         * lib/read-file.c (fread_file): Minimize realloc()s
59755         for regular files, and better manage sizes around SIZE_MAX.
59757 2010-12-13  Eric Blake  <eblake@redhat.com>
59759         cloexec, fcntl: relax license
59760         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59761         consent from all contributors.
59762         * modules/fcntl (License): Likewise.
59764 2010-12-10  Bruno Haible  <bruno@clisp.org>
59766         Tests for module 'pipe-posix'.
59767         * modules/pipe-posix-tests: New file.
59768         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59770 2010-12-10  Bruno Haible  <bruno@clisp.org>
59772         pipe-posix: Make it work in C++ mode.
59773         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59774         (pipe): Use common idiom, not a macro definition.
59775         * lib/pipe.c: New file.
59776         * m4/pipe.m4: New file.
59777         * modules/pipe-posix (Description): Enhance.
59778         (Files): Add lib/pipe.c, m4/pipe.m4.
59779         (configure.ac): Invoke gl_FUNC_PIPE.
59780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59781         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59782         * tests/test-unistd-c++.cc: Check the signature of pipe.
59784 2010-12-10  Bruno Haible  <bruno@clisp.org>
59786         Rename module 'pipe' to 'spawn-pipe'.
59787         * modules/spawn-pipe: New file, renamed from modules/pipe.
59788         (Files, configure.ac, Makefile.am): Update.
59789         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59790         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59791         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59792         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
59793         "spawn-pipe.h" instead of "pipe.h".
59794         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
59795         to gl_SPAWN_PIPE.
59796         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
59797         (Files, Makefile.am): Update.
59798         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
59799         Update.
59800         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
59801         Include "spawn-pipe.h" instead of "pipe.h".
59802         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
59803         * lib/javacomp.c: Likewise.
59804         * lib/javaversion.c: Likewise.
59805         * lib/pipe-filter-gi.c: Likewise.
59806         * lib/pipe-filter-ii.c: Likewise.
59807         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
59808         * modules/javacomp (Depends-on): Likewise.
59809         * modules/javaversion (Depends-on): Likewise.
59810         * modules/pipe-filter-gi (Depends-on): Likewise.
59811         * modules/pipe-filter-ii (Depends-on): Likewise.
59812         * MODULES.html.sh (Executing programs): Update.
59813         * NEWS: Mention the change.
59815 2010-12-10  Eric Blake  <eblake@redhat.com>
59817         pipe-posix: new module
59818         * modules/pipe-posix: New file.
59819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59820         (gl_UNISTD_H): Check for declaration.
59821         * modules/unistd (Makefile.am): Substitute it.
59822         * lib/unistd.in.h (pipe): Provide it for mingw.
59823         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59824         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59826 2010-12-07  Bruno Haible  <bruno@clisp.org>
59828         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59829         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59830         u8_strcmp_gnu.
59831         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59833 2010-12-06  Bruno Haible  <bruno@clisp.org>
59835         Update internal documentation.
59836         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59838 2010-12-04  Bruno Haible  <bruno@clisp.org>
59840         Put more information about failed tests into the test return codes.
59841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59842         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59843         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59848         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59849         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59851         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59852         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59853         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59854         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59855         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59856         returns a bit mask.
59857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59858         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59859         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59860         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59861         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59862         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59865         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59866         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59867         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59868         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59871         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59872         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59873         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59874         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59875         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59876         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59878         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59880         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59881         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59882         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59883         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59884         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59885         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59886         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59887         gl_PRINTF_PRECISION): Likewise.
59888         * m4/regex.m4 (gl_REGEX): Likewise.
59889         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59891         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59892         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59896         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59897         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59898         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59899         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59900         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59902         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59903         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59905         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59908         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59909         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59910         enumerated value.
59911         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59913 2010-12-04  Bruno Haible  <bruno@clisp.org>
59915         Update for Solaris 11 2010-11.
59916         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59917         Express, released in November 2010.
59919 2010-12-04  Bruno Haible  <bruno@clisp.org>
59921         nproc: Relax license.
59922         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59923         and Paul Eggert.
59924         Requested by Ludovic Courtès <ludo@gnu.org>.
59926 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59928         utimecmp: fine-grained src to nearby coarse-grained dest
59930         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59931         and the source is on a file system with higher-resolution time
59932         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59933         not work, and the time stamps are close together, the algorithm to
59934         determine the exact resolution from the read-back mtime was buggy:
59935         it had a "!=" where it should have had an "==".  This bug has been
59936         in the code ever since it was introduced to gnulib.
59937         Problem reported by Dan Jacobson in
59938         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59940 2010-11-30  Bruno Haible  <bruno@clisp.org>
59942         strerror_r-posix: Fix autoconf test.
59943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59945 2010-11-28  Bruno Haible  <bruno@clisp.org>
59946             Paul Eggert  <eggert@cs.ucla.edu>
59948         Tests for module 'getdomainname'.
59949         * modules/getdomainname-tests: New file.
59950         * tests/test-getdomainname.c: New file, based on
59951         tests/test-gethostname.c.
59953 2010-11-28  Bruno Haible  <bruno@clisp.org>
59954             Paul Eggert  <eggert@cs.ucla.edu>
59956         getdomainname: Use the system function when possible.
59957         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59958         (getdomainname): Replace if needed. Provide the declaration if it is
59959         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59960         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59961         (getdomainname): When the system has getdomainname, call the system
59962         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59963         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59964         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59965         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59966         the function if its second argument is of type 'int' or if it is found
59967         in libnsl.
59968         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59969         <sys/systeminfo.h> and sysinfo().
59970         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59972         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59973         HAVE_GETDOMAINNAME.
59974         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59975         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59976         * doc/glibc-functions/getdomainname.texi: Document the problems with
59977         the getdomainname declaration.
59979 2010-11-28  Bruno Haible  <bruno@clisp.org>
59981         sys_socket: Ensure ss_family field on AIX.
59982         * lib/sys_socket.in.h (ss_family): New macro definition.
59983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59984         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59985         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59986         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59987         * modules/sys_socket (Makefile.am): Substitute
59988         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59989         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59991 2010-11-27  Bruno Haible  <bruno@clisp.org>
59993         readline: Improve configure output.
59994         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59995         "checking for readline..." result understandable.
59997 2010-11-27  Bruno Haible  <bruno@clisp.org>
59999         *printf-posix: Detect a bug on Solaris 10/x86.
60000         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
60001         for floating-point output.
60002         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
60003         directive.
60004         * tests/test-snprintf-posix.h (test_function): Likewise.
60005         * tests/test-sprintf-posix.h (test_function): Likewise.
60006         * tests/test-vasprintf-posix.c (test_function): Likewise.
60007         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
60008         * doc/posix-functions/printf.texi: Likewise.
60009         * doc/posix-functions/snprintf.texi: Likewise.
60010         * doc/posix-functions/sprintf.texi: Likewise.
60011         * doc/posix-functions/vfprintf.texi: Likewise.
60012         * doc/posix-functions/vprintf.texi: Likewise.
60013         * doc/posix-functions/vsnprintf.texi: Likewise.
60014         * doc/posix-functions/vsprintf.texi: Likewise.
60015         * doc/glibc-functions/obstack_printf.texi: Likewise.
60016         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60018 2010-11-27  Bruno Haible  <bruno@clisp.org>
60020         Fix link error when module libunistring-optional is in use.
60021         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
60022         * modules/striconveha-tests (Makefile.am): Likewise.
60024 2010-11-27  Bruno Haible  <bruno@clisp.org>
60026         regex: Mention link dependencies.
60027         * modules/regex (Link): New section.
60028         * modules/rpmatch (Link): Likewise.
60029         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
60031 2010-11-27  Bruno Haible  <bruno@clisp.org>
60033         ftoastr: Fix compilation error on Solaris.
60034         * lib/ftoastr.c: Include <config.h>.
60036 2010-11-27  Bruno Haible  <bruno@clisp.org>
60038         getloadavg: Update documentation.
60039         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
60041 2010-11-27  Bruno Haible  <bruno@clisp.org>
60043         sys_socket: Fix test whether the functions are declared.
60044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
60045         not <sys/select.h>.
60047 2010-11-27  Bruno Haible  <bruno@clisp.org>
60049         getpass: Make sure to get system declaration on some platforms.
60050         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
60051         gl_USE_SYSTEM_EXTENSIONS.
60052         * modules/getpass (Depends-on): Add extensions.
60054 2010-11-26  Bruno Haible  <bruno@clisp.org>
60056         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
60057         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
60058         'iconv' module is present.
60059         (ICONV_CONST): New macro.
60060         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
60061         ICONV_CONST.
60062         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
60063         set ICONV_CONST.
60064         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
60065         here.
60066         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
60067         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
60068         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
60069         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
60070         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
60071         present.
60073 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60075         ftoastr: comment fix
60076         * lib/ftoastr.c: "little" -> "little or no" in comment
60078 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
60080         stdint: port to GCC 4.3 + OSX + Octave
60081         On this platform, stdint.h is buggy and defines int64_t to long
60082         long int.  The replacement defined it to long int, causing
60083         problems with C++ style name mangling.  Instead, trust the system
60084         definition if INT64_MAX is defined, and likewise for the unsigned
60085         variant.   Problem reported by Jarno Rajahalme in
60086         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
60087         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
60088         and don't mess with int64_t and INT64_MAX in this case.
60089         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
60091 2010-11-24  Bruno Haible  <bruno@clisp.org>
60093         doc: Corrections regarding MacOS X 10.4 and 10.5.
60094         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
60095         MacOS X.
60096         Reported by Simon Josefsson.
60098 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
60100         Uninstall ".bin" files installed by relocwrapper.
60101         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
60102         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
60103         unless it is already there.
60105 2010-11-21  Bruno Haible  <bruno@clisp.org>
60107         Update for NetBSD 5.0.
60108         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60109         NetBSD; the test fails on NetBSD 5.0.
60110         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60111         about NetBSD.
60113 2010-11-21  Bruno Haible  <bruno@clisp.org>
60115         Update for HP-UX 11.23 and HP-UX 11.31.
60116         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
60117         HP-UX.
60119 2010-11-21  Bruno Haible  <bruno@clisp.org>
60121         Update for MacOS X 10.5.
60122         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60123         MacOS X; the test fails on MacOS X 10.5.8.
60124         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60125         about MacOS X.
60127 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
60129         bootstrap: add bootstrap_sync option.
60130         See discussion at
60131         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
60132         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
60133         * build-aux/bootstrap: Accept --bootstrap-sync to update
60134         bootstrap if it is not identical to the local gnulib's
60135         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
60136         enable this by default.  Accept --no-bootstrap-sync to disable
60137         it.
60139 2010-11-20  Bruno Haible  <bruno@clisp.org>
60141         Ensure that <features.h> is included before __GLIBC__ is tested.
60142         * lib/printf-parse.h: Include <features.h>.
60143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
60144         Reported by Mike Frysinger <vapier@gentoo.org>.
60146         Ensure that <features.h> is included before __GLIBC__ is tested.
60147         * lib/wchar.in.h: Include <features.h>.
60148         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
60149         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
60150         Reported by Mike Frysinger <vapier@gentoo.org>.
60152         Ensure that <features.h> is included before __GLIBC__ is tested.
60153         * lib/arpa_inet.in.h: Include <features.h>.
60154         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
60155         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
60156         Reported by Mike Frysinger <vapier@gentoo.org>.
60158         Ensure that <features.h> is included before __GLIBC__ is tested.
60159         * build-aux/link-warning.h: Include <features.h>.
60160         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
60161         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
60162         Reported by Mike Frysinger <vapier@gentoo.org>.
60164         Ensure that <features.h> is included before __GLIBC__ is tested.
60165         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
60166         Reported by Mike Frysinger <vapier@gentoo.org>.
60168 2010-11-20  Bruno Haible  <bruno@clisp.org>
60170         memmem: Fix autoconf test.
60171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
60173 2010-11-20  Bruno Haible  <bruno@clisp.org>
60175         Port to uClibc.
60176         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
60177         * lib/fcntl.in.h: Likewise.
60178         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
60179         * lib/mbrtowc.c (mbrtowc): Likewise.
60180         * lib/relocatable.c (find_shared_library_fullname): Likewise.
60181         * lib/strerror_r.c: Likewise.
60182         * lib/unistr/u8-strnlen.c: Likewise.
60183         * lib/vasnprintf.c (decimal_point_char): Likewise.
60184         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60185         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
60186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60187         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
60188         * tests/test-sigaction.c (handler, main): Likewise.
60189         * lib/freading.h: Treat uClibc like a non-glibc platform.
60190         * lib/freading.c: Likewise.
60191         * lib/gettext.h: Likewise.
60192         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
60193         Likewise.
60194         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
60195         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60196         * lib/propername.c (proper_name_utf8): Likewise.
60197         * lib/spawn.in.h: Likewise.
60198         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
60199         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
60200         mem_cd_iconveh_internal): Likewise.
60201         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
60202         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60203         strstr, strcasestr): Likewise.
60204         * lib/unicodeio.c (unicode_to_mb): Likewise.
60205         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
60206         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
60207         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
60208         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
60209         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
60210         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
60211         * lib/unistr/u8-stpncpy.c: Likewise.
60212         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60213         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
60214         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60215         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60216         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
60217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
60218         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
60219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
60220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
60221         Likewise.
60222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60223         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
60225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60227         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60228         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60229         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60230         * tests/test-getopt.h (OPTIND_MIN): Likewise.
60231         * tests/test-striconveha.c (main): Likewise.
60232         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60233         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
60234         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
60235         * doc/posix-functions/getline.texi: Likewise.
60236         Reported by Mike Frysinger <vapier@gentoo.org>.
60238 2010-11-20  Bruno Haible  <bruno@clisp.org>
60240         nproc: Fix condition.
60241         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
60242         HAVE_PTHREAD_AFFINITY_NP.
60244 2010-11-20  Bruno Haible  <bruno@clisp.org>
60246         Fix a comment.
60247         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
60249 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
60251         ftoastr: don't assume snprintf
60252         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
60253         Implement a subset of snprintf here, by using sprintf safely.
60254         * modules/ftoastr (Depends-on): Remove snprintf.
60256 2010-11-19  Jim Meyering  <meyering@redhat.com>
60258         test-rename.h: fix compilation failure
60259         * tests/test-rename.h (test_rename): Add omitted "}".
60261 2010-11-17  Jim Meyering  <meyering@redhat.com>
60263         maint.mk: add a URL discussing the no-@acronym policy
60264         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
60266 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
60268         ftoastr: depend on snprintf, improve comments
60269         * lib/ftoastr.c: Also mention Loitsch's draft.
60270         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
60271         needed in the current implementation, but it might simplify
60272         speeding up the code later.
60273         * modules/ftoastr: Depend on snprintf; this improves portability.
60274         Suggested by Bruno Haible in the same email.
60276         ftoastr: port to hosts lacking strtof and strtold
60277         Problem reported by Bruno Haible in
60278         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
60279         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
60280         environment and strtold (and presumably strtof) are not available.
60281         * modules/ftoastr (Files): Add m4/c-strtod.m4.
60282         (configure.ac): Require gl_C99_STRTOLD.
60284 2010-11-18  Bruno Haible  <bruno@clisp.org>
60286         c-strtold: Avoid link error on AIX 7.
60287         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
60288         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
60289         (gl_C_STRTOLD): Test whether strtold_l exists.
60290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60292 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60294         intprops: new macro INT_BITS_STRLEN_BOUND
60295         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
60296         ftoastr.h.  This exposes an internal of intprops.h that was formerly
60297         not exposed.  Also, it uses a slightly tighter bound than before;
60298         though this makes no practical difference, we might as well be as
60299         tight as we easily can.
60301         ftoastr: new module, for lossless conversion of floats to short strings
60302         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
60303         * modules/ftoastr: New files.
60305 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60307         bootstrap: port to Solaris sed
60308         * build-aux/bootstrap (get_version): Port to Solaris sed.
60309         See Ralf Wildenhues's note in
60310         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
60312 2010-11-14  Jim Meyering  <meyering@redhat.com>
60314         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
60315         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
60316         and move definition closer to sole use.
60318 2010-11-13  Jim Meyering  <meyering@redhat.com>
60320         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
60321         Now we require at least autoconf-2.59, which means the work-around
60322         is no longer needed.
60323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
60324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60326         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60329 2010-11-13  Bruno Haible  <bruno@clisp.org>
60331         rename, renameat: Avoid test failures at NFS mounted locations.
60332         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
60333         functions.
60334         (test_rename): Use assert_nonexistent.
60335         * tests/test-rename.c: Include <dirent.h>.
60336         * tests/test-renameat.c: Likewise.
60337         Reported by Gary V. Vaughan <gary@gnu.org>.
60339         rename, renameat: Document Linux bug with NFS
60340         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
60341         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
60342         * doc/posix-functions/renameat.texi: Likewise.
60343         Suggested by Eric Blake.
60345 2010-11-13  Bruno Haible  <bruno@clisp.org>
60347         rename test: Add comments.
60348         * tests/test-rename.h (test_rename): Add structure and comments.
60350 2010-11-13  Eric Blake  <eblake@redhat.com>
60352         maintainer-makefile: cover a few more files
60353         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
60354         scripts generated within C files, for libvirt.
60356 2010-11-13  Bruno Haible  <bruno@clisp.org>
60358         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
60359         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
60360         character, return the number of bytes that belong together, not always
60361         1.
60362         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
60363         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
60364         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
60365         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
60366         number of bytes of an invalid character.
60367         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
60368         (main): Invoke it.
60369         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
60370         results.
60371         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
60372         malformed byte sequences.
60373         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
60374         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
60375         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
60376         Reported by Ben Pfaff and Paolo Bonzini.
60378 2010-11-13  Bruno Haible  <bruno@clisp.org>
60380         openat: Work around glibc bug with fchownat() and empty file names.
60381         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60382         (gl_FUNC_FCHOWNAT): Invoke it.
60383         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60384         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60385         Reported by Gary V. Vaughan <gary@gnu.org>.
60387 2010-11-13  Bruno Haible  <bruno@clisp.org>
60389         openat: Ensure autoconf macro ordering.
60390         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60391         gl_USE_SYSTEM_EXTENSIONS.
60392         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60394 2010-11-13  Bruno Haible  <bruno@clisp.org>
60396         Update comments.
60397         * lib/unistr/u8-check.c: Update file name in comments.
60398         * lib/unistr/u8-mblen.c: Likewise.
60399         * lib/unistr/u8-prev.c: Likewise.
60400         * lib/unistr/u8-strmblen.c: Likewise.
60401         * lib/unistr/u8-strmbtouc.c: Likewise.
60403 2010-11-13  Jim Meyering  <meyering@redhat.com>
60405         tests: avoid test failure on Solaris 10 due to lack of PATH export
60406         * tests/test-update-copyright.sh: Don't forget to export PATH.
60408         init.sh: ensure that IFS is defined, just in case...
60409         * tests/init.sh (setup_): Ensure that IFS is defined,
60410         so that saving and restoring it works as expected.  This
60411         appears to be useful at least for an old version of dash
60412         from a long time ago (RH 6).  See here for details:
60413         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60415         maint.mk: tighten "test a == b" check
60416         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60417         test to files that contain something like #!/bin/sh.
60418         Without this, coreutils would get two false positives in
60419         the comments of C source files.
60421 2010-11-12  Eric Blake  <eblake@redhat.com>
60423         bootstrap: fix typo in previous attempt
60424         * build-aux/bootstrap (buildreq): Correct the grouping.
60425         Reported by Paul Eggert.
60427         maintainer-makefile: prohibit test x == x
60428         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60429         Based on a report by Matthias Bolte.
60431         bootstrap: allow FreeBSD gzip
60432         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60433         which has no '.' and goes to stderr.
60434         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60435         Reported by Matthias Bolte.
60437         maintainer-makefile: check for i18n setup
60438         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60439         will likely work.
60441 2010-11-12  Bruno Haible  <bruno@clisp.org>
60443         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60444         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60445         * lib/nanosleep.c (nanosleep): Likewise.
60447 2010-11-11  Bruno Haible  <bruno@clisp.org>
60449         fcntl-h: Fix for use of C++ on glibc systems.
60450         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60451         also on glibc systems in C++ mode.
60452         Reported by Gary V. Vaughan <gary@gnu.org>.
60454 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60456         mknod: avoid false failure with dash
60457         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60459 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60461         unlink: Fix "is it should" typo in diagnostic.
60462         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60463         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60465 2010-11-11  Bruno Haible  <bruno@clisp.org>
60467         Tests for module 'strerror_r-posix'.
60468         * modules/strerror_r-posix-tests: New file.
60469         * tests/test-strerror_r.c: New file.
60470         * tests/test-string-c++.cc: Check the signature of strerror_r.
60472         New module 'strerror_r-posix'.
60473         * lib/string.in.h (strerror_r): New declaration.
60474         * lib/strerror_r.c: New file.
60475         * m4/strerror_r.m4: New file.
60476         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60477         of strerror_r.
60478         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60479         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60480         * modules/strerror_r-posix: New file.
60481         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60482         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60483         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60484         portability problems.
60486 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60488         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60489         line is also considered for output. Quoted function name in shell
60490         command, so temporary files for functions like MyClass::operator()
60491         are removed correctly without errors.
60493 2010-11-09  Bruno Haible  <bruno@clisp.org>
60495         * doc/posix-functions/strerror.texi: List more failing platforms.
60497         * doc/posix-functions/strerror.texi: Add a comment.
60499 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60501         fdopendir: fix bug on MacOS X when low on file descriptors
60503         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60504         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60505         All callers changed.
60506         (fdopendir): Invoke save_cwd at the top level, not after using
60507         multiple dup() calls to use up file descriptors.  Then retry
60508         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60509         less than the maximum number of open file descriptors, because
60510         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60511         on Mac OS X 10.6.4 for tar 1.24
60512         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60513         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60514         and for tar 1.25
60515         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60517 2010-11-07  Bruno Haible  <bruno@clisp.org>
60519         vasnprintf: Support I flag on glibc systems.
60520         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60521         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60522         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60523         snprintf function.
60524         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60525         glibc systems.
60526         * tests/test-vasnprintf-posix3.c: New file.
60527         * modules/vasnprintf-posix-tests (Files): Add it.
60528         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60530 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60532         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60533         * MODULES.html.sh: For compiler warnings, use name
60534         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60536 2010-11-05  Eric Blake  <eblake@redhat.com>
60538         ceil, floor: avoid spurious failure with icc
60539         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60540         [denormals-as-zero] when optimizing without -mieee-fp option.
60541         * tests/test-floorf2.c (floorf_reference): Likewise.
60542         * tests/test-ceilf1.c (dummy): New function.
60543         (main): Use it to outsmart icc's optimization.
60544         * tests/test-floorf1.c (dummy, main): Likewise.
60546         tests: require working signbit
60547         * modules/ceilf-tests (Depends-on): Add signbit.
60548         * modules/ceill-tests (Depends-on): Likewise.
60549         * modules/floorf-tests (Depends-on): Likewise.
60550         * modules/floorl-tests (Depends-on): Likewise.
60551         * modules/round-tests (Depends-on): Likewise.
60552         * modules/roundf-tests (Depends-on): Likewise.
60553         * modules/roundl-tests (Depends-on): Likewise.
60554         * modules/trunc-tests (Depends-on): Likewise.
60555         * modules/truncf-tests (Depends-on): Likewise.
60556         * modules/truncl-tests (Depends-on): Likewise.
60558         strtod: work around icc bug
60559         * lib/strtod.c (minus_zero): Define to working value.
60560         (strtod): Use it to avoid icc bug.
60562         copysign: enhance tests
60563         * modules/copysign-tests (Files): Add minus-zero.h.
60564         * tests/test-copysign.c (main): Also test zeros.
60566 2010-11-04  Eric Blake  <eblake@redhat.com>
60568         ceil, floor, round, trunc: enhance tests of -0
60569         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60570         * tests/test-ceill.c (main): Likewise.
60571         * tests/test-floorf1.c (main): Likewise.
60572         * tests/test-floorl.c (main): Likewise.
60573         * tests/test-round1.c (main): Likewise.
60574         * tests/test-roundf1.c (main): Likewise.
60575         * tests/test-roundl.c (main): Likewise.
60576         * tests/test-trunc1.c (main): Likewise.
60577         * tests/test-truncf1.c (main): Likewise.
60578         * tests/test-truncl.c (main): Likewise.
60580 2010-11-04  Eric Blake  <eblake@redhat.com>
60582         frexp, tests: work around ICC bug with -zero
60583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60584         works with more compilers.
60585         * tests/minus-zero.h: New file.
60586         * modules/ceilf-tests (Files): Include it.
60587         * modules/ceill-tests (Files): Likewise.
60588         * modules/floorf-tests (Files): Likewise.
60589         * modules/floorl-tests (Files): Likewise.
60590         * modules/frexp-nolibm-tests (Files): Likewise.
60591         * modules/frexp-tests (Files): Likewise.
60592         * modules/frexpl-nolibm-tests (Files): Likewise.
60593         * modules/frexpl-tests (Files): Likewise.
60594         * modules/isnan-tests (Files): Likewise.
60595         * modules/isnand-nolibm-tests (Files): Likewise.
60596         * modules/isnand-tests (Files): Likewise.
60597         * modules/isnanf-nolibm-tests (Files): Likewise.
60598         * modules/isnanf-tests (Files): Likewise.
60599         * modules/isnanl-nolibm-tests (Files): Likewise.
60600         * modules/isnanl-tests (Files): Likewise.
60601         * modules/round-tests (Files): Likewise.
60602         * modules/roundf-tests (Files): Likewise.
60603         * modules/roundl-tests (Files): Likewise.
60604         * modules/ldexpl-tests (Files): Likewise.
60605         * modules/signbit-tests (Files): Likewise.
60606         * modules/snprintf-posix-tests (Files): Likewise.
60607         * modules/sprintf-posix-tests (Files): Likewise.
60608         * modules/strtod-tests (Files): Likewise.
60609         * modules/trunc-tests (Files): Likewise.
60610         * modules/truncf-tests (Files): Likewise.
60611         * modules/truncl-tests (Files): Likewise.
60612         * modules/vsnprintf-posix-tests (Files): Likewise.
60613         * modules/vsprintf-posix-tests (Files): Likewise.
60614         * modules/vasnprintf-posix-tests (Files): Likewise.
60615         * modules/vasprintf-posix-tests (Files): Likewise.
60616         * tests/test-ceilf1.c (main): Use it.
60617         * tests/test-ceill.c (main): Likewise.
60618         * tests/test-floorf1.c (main): Likewise.
60619         * tests/test-floorl.c (main): Likewise.
60620         * tests/test-frexp.c (main): Likewise.
60621         * tests/test-frexpl.c (main): Likewise.
60622         * tests/test-isnan.c (main): Likewise.
60623         * tests/test-isnand.h (main): Likewise.
60624         * tests/test-isnanf.h (main): Likewise.
60625         * tests/test-isnanl.h (main): Likewise.
60626         * tests/test-ldexpl.c (main): Likewise.
60627         * tests/test-round.c (main): Likewise.
60628         * tests/test-roundf.c (main): Likewise.
60629         * tests/test-roundl.c (main): Likewise.
60630         * tests/test-signbit.c (test_signbitf, test_signbitd)
60631         (test_signbitl): Likewise.
60632         * tests/test-snprintf-posix.h (test_function): Likewise.
60633         * tests/test-sprintf-posix.h (test_function): Likewise.
60634         * tests/test-strtod.c (main): Likewise.
60635         * tests/test-trunc1.c (main): Likewise.
60636         * tests/test-truncf1.c (main): Likewise.
60637         * tests/test-truncl.c (main): Likewise.
60639         isnanl: work around icc bug
60640         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60642 2010-11-03  Eric Blake  <eblake@redhat.com>
60644         tests: fix compiler warnings
60645         * tests/test-getopt.h (test_getopt): Fix condition.
60646         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60647         * tests/test-pipe2.c (main): Likewise.
60648         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60650         utimens: fix broken m4 test
60651         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60653 2010-10-28  Bruno Haible  <bruno@clisp.org>
60655         posix_spawn*, getdtablesize: Relax license.
60656         * modules/posix_spawn (License): Change to LGPLv2+.
60657         * modules/posix_spawnp (License): Likewise.
60658         * modules/posix_spawn-internal (License): Likewise.
60659         * modules/posix_spawnattr_init (License): Likewise.
60660         * modules/posix_spawnattr_getflags (License): Likewise.
60661         * modules/posix_spawnattr_setflags (License): Likewise.
60662         * modules/posix_spawnattr_getpgroup (License): Likewise.
60663         * modules/posix_spawnattr_setpgroup (License): Likewise.
60664         * modules/posix_spawnattr_getschedparam (License): Likewise.
60665         * modules/posix_spawnattr_setschedparam (License): Likewise.
60666         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60667         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60668         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60669         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60670         * modules/posix_spawnattr_getsigmask (License): Likewise.
60671         * modules/posix_spawnattr_setsigmask (License): Likewise.
60672         * modules/posix_spawnattr_destroy (License): Likewise.
60673         * modules/posix_spawn_file_actions_init (License): Likewise.
60674         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60675         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60676         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60677         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60678         * modules/getdtablesize (License): Likewise.
60679         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60681 2010-10-26  Bruno Haible  <bruno@clisp.org>
60683         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60684         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60685         Cygwin and mingw.
60686         Suggested by Eric Blake.
60688 2010-10-26  Bruno Haible  <bruno@clisp.org>
60690         stdio: Work around compilation error due to renameat() on Solaris 10.
60691         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60692         * lib/renameat.c: Don't include <unistd.h> here.
60693         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60694         Reported by Paul Eggert and Eric Blake.
60696 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60698         renameat: port to Solaris 10, which declares renameat in unistd.h
60700         * lib/renameat.c: Include unistd.h before stdio.h, because
60701         Solaris 10 declares renameat in unistd.h.  Problem encountered
60702         when building GNU tar 1.24 on Solaris 10.
60704 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60706         fdopendir: fix C89 compilation
60707         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60708         compilers.
60710 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60712         inttostr: simplify by removing unnecessary redundancy
60713         * lib/anytostr.c: Don't include verify.h.
60714         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60715         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60716         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60717         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60718         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60719         Likewise.
60720         * modules/inttostr (Depends-on): Remove 'verify'.
60722 2010-10-23  Bruno Haible  <bruno@clisp.org>
60724         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60725         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60726         Reported by Eric Blake.
60728 2010-10-23  Bruno Haible  <bruno@clisp.org>
60730         Tests: Fix LOCALE_JA on MirBSD 10.
60731         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60732         to an UTF-8 locale.
60733         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60734         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60735         Reported by Eric Blake.
60737 2010-10-21  Bruno Haible  <bruno@clisp.org>
60739         nl_langinfo test: Avoid test failure on NetBSD 5.
60740         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60741         Reported by Eric Blake.
60743 2010-10-21  Eric Blake  <eblake@redhat.com>
60745         c-stack: work around libsigsegv 2.8 bug
60746         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60747         overflow on at least PowerPC64.
60749 2010-10-17  Bruno Haible  <bruno@clisp.org>
60751         userspec: Drop redundant file.
60752         * modules/userspec (Files): Remove lib/inttostr.h.
60754 2010-10-17  Bruno Haible  <bruno@clisp.org>
60756         nl_langinfo tests: Silence some warnings.
60757         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60758         Reported by Jim Meyering.
60760 2010-10-17  Bruno Haible  <bruno@clisp.org>
60762         Make use of GCC's attribute __alloc_size__.
60763         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60764         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60765         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60766         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60767         __alloc_size__.
60768         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60769         Suggested by Jim Meyering.
60771 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60773         bootstrap: anchor .gitignore entries.
60774         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60775         with...
60776         (insert_vc_ignore): ... this new function, which prepends `/' to
60777         all .gitignore entries before passing them to
60778         insert_sorted_if_absent.
60780 2010-10-16  Bruno Haible  <bruno@clisp.org>
60782         nextafter: Fix configure check.
60783         * modules/nextafter (configure.ac): Correct expected prototype.
60785 2010-10-16  Bruno Haible  <bruno@clisp.org>
60787         termios: Update documentation.
60788         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60790 2010-10-16  Bruno Haible  <bruno@clisp.org>
60792         tests: Make them compile with TinyCC.
60793         * tests/test-strstr.c (main): Remove parentheses around array
60794         initializer.
60796 2010-10-15  Eric Blake  <eblake@redhat.com>
60798         ignore-value: make header idempotent
60799         * lib/ignore-value.h: Add double-inclusion guards.
60800         Reported by Stefan Berger.
60802 2010-10-15  Jim Meyering  <meyering@redhat.com>
60804         GNUmakefile: handle "stable" target, not "major"
60805         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
60806         lists in maint.mk and announce-gen.  Without this, "make stable"
60807         would fail to ensure that $(VERSION) is up to date.
60809 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
60811         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
60812         & co.
60814 2010-10-14  Bruno Haible  <bruno@clisp.org>
60816         vasnprintf: Don't set errno to 0.
60817         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60818         block that sets it to 0.
60819         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60821 2010-10-14  Bruno Haible  <bruno@clisp.org>
60823         socketlib: Fix.
60824         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60825         gl_PREREQ_SYS_H_WINSOCK2.
60826         Reported by Ian Beckwith <ianb@erislabs.net>.
60828 2010-10-13  Jim Meyering  <meyering@redhat.com>
60830         test-select-stdin.c: avoid warn_unused_result warnings
60831         * tests/test-select-stdin.c: Include "macros.h".
60832         ASSERT that read and fflush succeed.
60834 2010-10-13  Jim Meyering  <meyering@redhat.com>
60836         git-version-gen: do require git-VC'd files in cwd
60837         * build-aux/git-version-gen: Reject a git version string
60838         if there are no commits associated with the current directory.
60839         This avoids an unlikely false-positive (unrelated dir whose parent
60840         repository also contains a tag matching v*), as pointed out
60841         by Giuseppe Scrivano in
60842         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60844 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60846         argv-iter: omit nonconforming declaration
60847         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60848         enum arg_iter_err declaration, which doesn't conform to C99.
60849         Solaris 10 cc warns about this.
60851 2010-10-13  Eric Blake  <eblake@redhat.com>
60853         termios: fix compilation on mingw
60854         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60855         (gl_TERMIOS_H): Adjust it on mingw.
60856         * modules/termios (Makefile.am): Substitute new key.
60857         * lib/termios.in.h (includes): Make include_next conditional.
60858         * doc/posix-headers/termios.texi (termios.h): Update
60859         documentation.
60860         Reported by Daniel P. Berrange.
60862 2010-10-13  Jim Meyering  <meyering@redhat.com>
60864         git-version-gen: don't require that .git/ be in the current dir
60865         * build-aux/git-version-gen: Adjust this script so that it works
60866         when run from any working directory beneath the top-level .git/-
60867         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60870         test-select: avoid warn_unused_result warnings
60871         * tests/test-select.c: Include "macros.h".
60872         ASSERT that each call to read, write, and pipe succeeds.
60873         While not technically required, also check each "close".
60874         * modules/select-tests (Files): Add tests/macros.h.
60876         test-symlinkat: remove declaration of unused local
60877         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60879         test-inttostr: avoid shadowing warnings
60880         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60881         and use malloc rather than the stack for the same reason as
60882         mentioned in the comment justifying the other allocation.
60884 2010-10-11  Bruno Haible  <bruno@clisp.org>
60886         stdlib: Allow multiple gnulib generated replacements to coexist.
60887         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60888         Reported by Sam Steingold <sds@gnu.org>.
60890 2010-10-11  Jim Meyering  <meyering@redhat.com>
60892         fix a documentation typo
60893         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60895 2010-10-11  Eric Blake  <eblake@redhat.com>
60897         futimens: work around Solaris 11 bug
60898         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60899         * tests/test-futimens.h (test_futimens): Enhance, rather than
60900         weaken test.
60901         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60903 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60905         Indentation.
60906         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60907         higher-level operators more to the left.
60909 2010-10-11  Jim Meyering  <meyering@redhat.com>
60911         test-futimens: avoid unwarranted test failure on Solaris 5.11
60912         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60913         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60914         because it tries to dereference the NULL name argument.
60916 2010-10-11  Bruno Haible  <bruno@clisp.org>
60918         Indentation.
60919         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60920         indentation.
60922 2010-10-11  Jim Meyering  <meyering@redhat.com>
60924         spawn.in.h: make indentation consistent with parentheses
60925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60926         Make indentation consistent with parentheses.
60928 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60930         Fix mismatched parens in previous commit
60931         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60932         parens.
60934 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60936         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60938         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60939         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60940         * lib/malloca.c: Include "verify.h".
60941         (verify1): Remove, replacing with a verify call.
60942         * lib/relocwrapper.c (verify1): Likewise.
60943         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60944         Likewise.
60945         * modules/malloca (Depends-on): Add 'verify'.
60946         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60947         * modules/vasnprintf (Depends-on): Add 'verify'.
60948         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60956         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60958         Formerly the style was sometimes 2*X - 1, because the C standard
60959         was wrongly thought to disallow ?: in integral constant expressions.
60960         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60961         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60962         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60963         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60964         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60965         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60966         verify that time_t cannot be floating.
60968 2010-10-08  Eric Blake  <eblake@redhat.com>
60970         time: enforce recent POSIX ruling that time_t is integral
60971         * lib/time.in.h (__time_t_must_be_integral): Detect any
60972         problematic systems, allowing the rest of gnulib to assume POSIX.
60974 2010-10-08  Jim Meyering  <meyering@redhat.com>
60976         fdopendir: fix a bug on systems lacking openat and /proc support
60977         OpenBSD 4.7 is one such system.  The most noticeable effect was
60978         failure of any application making nontrivial use of fts: rm, du,
60979         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60980           ./rm: traversal failed: `a': Bad file descriptor
60981         Debugging that, you see that even though FD 6 was closed just
60982         prior to the opendir call in fd_clone_opendir, its resulting
60983         dir->dd_fd was 8, rather than the expected value of 6:
60985         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60986         93                close (fd);
60987         (gdb) n
60988         94                dir = fd_clone_opendir (dupfd);
60989         (gdb) n
60990         95                saved_errno = errno;
60991         (gdb) p dir->dd_fd
60992         $11 = 8
60994         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60995         The problem is that on OpenBSD, fd_clone_opendir has to resort
60996         to using the old-style save/restore CWD mechanism, due to its
60997         lack of openat/proc support, and *that* would steal the FD (6)
60998         that opendir was supposed to use.
61000         The fix is to squirrel away the desired FD so that save_cwd uses a
61001         different one, and then free the dest FD right before calling opendir.
61002         That guarantees opendir will use the required file descriptor.
61004         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
61006 2010-10-08  Bruno Haible  <bruno@clisp.org>
61008         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
61009         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
61011 2010-10-08  Bruno Haible  <bruno@clisp.org>
61013         nanosleep: Make replacement POSIX compliant.
61014         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
61015         is out of range.
61016         Reported by Jim Meyering.
61018 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61020         bootstrap: add hook for altering gnulib.mk, for Bison
61021         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
61022         the Bison bootstrapping process can rewrite file names and variables
61023         in this file before later parts of 'bootstrap' use the file.
61024         Bison wants to include lib/gnulib.mk from the top-level makefile,
61025         so it needs the file names in this file to be relative to the top
61026         level, not relative to lib; plus it needs variable names to be
61027         rewritten.
61028         (slurp): Use the new function.
61030         bootstrap: reformat for readability
61031         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
61033 2010-10-08  Eric Blake  <eblake@redhat.com>
61035         docs: update cygwin progress
61036         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
61037         1.7.7.
61038         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
61039         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
61040         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
61041         * doc/posix-functions/carg.texi (carg): Likewise.
61042         * doc/posix-functions/cargf.texi (cargf): Likewise.
61043         * doc/posix-functions/casin.texi (casin): Likewise.
61044         * doc/posix-functions/casinf.texi (casinf): Likewise.
61045         * doc/posix-functions/casinh.texi (casinh): Likewise.
61046         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
61047         * doc/posix-functions/catan.texi (catan): Likewise.
61048         * doc/posix-functions/catanf.texi (catanf): Likewise.
61049         * doc/posix-functions/catanh.texi (catanh): Likewise.
61050         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
61051         * doc/posix-functions/ccos.texi (ccos): Likewise.
61052         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
61053         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
61054         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
61055         * doc/posix-functions/cexp.texi (cexp): Likewise.
61056         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
61057         * doc/posix-functions/cimag.texi (cimag): Likewise.
61058         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
61059         * doc/posix-functions/clog.texi (clog): Likewise.
61060         * doc/posix-functions/clogf.texi (clogf): Likewise.
61061         * doc/posix-functions/conj.texi (conj): Likewise.
61062         * doc/posix-functions/conjf.texi (conjf): Likewise.
61063         * doc/posix-functions/cpow.texi (cpow): Likewise.
61064         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
61065         * doc/posix-functions/cproj.texi (cproj): Likewise.
61066         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
61067         * doc/posix-functions/creal.texi (creal): Likewise.
61068         * doc/posix-functions/crealf.texi (crealf): Likewise.
61069         * doc/posix-functions/csin.texi (csin): Likewise.
61070         * doc/posix-functions/csinf.texi (csinf): Likewise.
61071         * doc/posix-functions/csinh.texi (csinh): Likewise.
61072         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
61073         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
61074         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
61075         * doc/posix-functions/ctan.texi (ctan): Likewise.
61076         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
61077         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
61078         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
61079         * doc/posix-headers/complex.texi (complex.h): Likewise.
61081 2010-10-07  Jim Meyering  <meyering@redhat.com>
61083         parse-datetime: avoid compilation failure on OpenBSD 4.7
61084         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
61085         This works around a compilation failure on OpenBSD 4.7:
61086         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
61088 2010-10-07  Eric Blake  <eblake@redhat.com>
61090         docs: update cygwin progress
61091         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
61092         1.7.6.
61093         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
61094         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
61095         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
61096         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
61097         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
61098         Likewise.
61099         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
61100         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
61101         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
61102         Likewise.
61103         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
61104         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
61105         Likewise.
61106         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
61107         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
61108         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
61109         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
61110         Likewise.
61111         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
61112         Likewise.
61113         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
61115         docs: update parse-datetime history
61116         * doc/parse-datetime.texi (Authors of parse_datetime): Better
61117         documentation of this function's history and alternatives.
61119         cygwin: use more robust version check
61120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
61121         exclude an eventual cygwin 1.9.1.
61122         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61124         (gl_FUNC_STRCASESTR): Likewise.
61125         Reported by Bruno Haible.
61127 2010-10-06  Bruno Haible  <bruno@clisp.org>
61129         string, sys_select: Avoid #including large headers unless necessary.
61130         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
61131         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
61132         OSF/1, BeOS, Haiku.
61133         Reported by Jim Meyering.
61135 2010-10-05  Eric Blake  <eblake@redhat.com>
61137         memmem, strstr, strcasestr: fix bug with long periodic needle
61138         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
61139         periodic needle having false positive.
61140         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
61141         and cygwin 1.7.7.
61142         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
61143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61144         (gl_FUNC_STRCASESTR): Likewise.
61145         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61146         * tests/test-memmem.c (main): Expose the bug.
61147         * tests/test-strcasestr.c (main): Likewise.
61148         * tests/test-strstr.c (main): Likewise.
61149         * tests/test-c-strcasestr.c (main): Likewise.
61150         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
61151         * doc/posix-functions/strstr.texi (strstr): Likewise.
61152         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61153         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
61155 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61157         parse-datetime: do some more renaming
61158         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
61159         parse_datetime, not get_date.  Mention the renaming.
61160         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
61161         in comments.
61162         * m4/bison.m4: Likewise.
61164 2010-10-05  Eric Blake  <eblake@redhat.com>
61166         parse-datetime: better name than get_date
61167         * NEWS: Reword the deprecation notice.
61168         * modules/get_date: Rename to modules/parse-datetime.
61169         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
61170         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
61171         * lib/get_date.y: Rename to lib/parse-datetime.y.
61172         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
61173         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
61174         * doc/getdate.texi: Provide fallback wrapper.
61175         * lib/getdate.h: Move guts, and wrap...
61176         * lib/parse-datetime.h: ...new file.
61177         * lib/parse-datetime.y (get_date): Rename...
61178         (parse_datetime): ...to this.
61179         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
61180         (gl_PARSE_DATETIME): ...to this.
61181         * doc/posix-functions/getdate.texi (get_date): Provide fallback
61182         documentation.
61183         * modules/getdate (Files): Provide fallback docs and header.
61184         (Notice, Depends-on): Update references.
61185         * tests/test-parse-datetime.c: Likewise.
61186         * DEPENDENCIES: Likewise.
61187         * MODULES.html.sh (Date and time <time.h>): Likewise.
61188         * doc/parse-datetime.texi (Date input formats)
61189         (Authors of parse_datetime): Likewise.
61190         * modules/parse-datetime (Files, configure.ac, Makefile.am)
61191         (Include): Likewise.
61192         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
61193         * gnulib-tool: Likewise.
61194         * m4/bison.m4 (gl_BISON): Likewise.
61195         Suggested by Bruno Haible.
61197 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61199         more ports to Solaris tr, which needs [] around ranges
61200         * gnulib-tool: Solaris tr needs [] around ranges.
61201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61202         * tests/test-pipe-filter-gi1.c (main): Likewise.
61203         * tests/test-pipe-filter-ii1.c (main): Likewise.
61205 2010-10-05  Eric Blake  <eblake@redhat.com>
61207         bootstrap: fix Solaris regression
61208         * build-aux/bootstrap (check_versions): Solaris tr still needs []
61209         around ranges.
61210         Reported by Pádraig Brady.
61212         bootstrap: work with pkg-config
61213         * build-aux/bootstrap (check_versions): Also transliterate - in
61214         prerequisite name.
61215         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
61216         prerequisites that were already found, to avoid confusion.
61217         Reported by Justin Clift.
61219         faccessat: remove unused wrappers
61220         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
61221         presence of these wrappers dragged in -lgen on Solaris.
61222         Reported by Clemens Brogi; fix suggested by Paul Eggert.
61224 2010-10-05  Jim Meyering  <meyering@redhat.com>
61226         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
61227         * Makefile (sc_pragma_columns): New syntax-check rule.
61229 2010-10-04  Bruno Haible  <bruno@clisp.org>
61231         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
61232         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
61233         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
61234         Reported by Bruce Korb and Eric Blake.
61236 2010-10-04  Bruno Haible  <bruno@clisp.org>
61238         threadlib: Make option --with-libpth-prefix work.
61239         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
61240         use $LIBPTH, not just -lpth.
61242 2010-10-04  Bruno Haible  <bruno@clisp.org>
61244         Avoid line length limitation from HP NonStop system header files.
61245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
61246         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
61247         * lib/ctype.in.h: Likewise.
61248         * lib/dirent.in.h: Likewise.
61249         * lib/errno.in.h: Likewise.
61250         * lib/fcntl.in.h: Likewise.
61251         * lib/float.in.h: Likewise.
61252         * lib/getopt.in.h: Likewise.
61253         * lib/iconv.in.h: Likewise.
61254         * lib/inttypes.in.h: Likewise.
61255         * lib/langinfo.in.h: Likewise.
61256         * lib/locale.in.h: Likewise.
61257         * lib/math.in.h: Likewise.
61258         * lib/netdb.in.h: Likewise.
61259         * lib/netinet_in.in.h: Likewise.
61260         * lib/poll.in.h: Likewise.
61261         * lib/pthread.in.h: Likewise.
61262         * lib/pty.in.h: Likewise.
61263         * lib/sched.in.h: Likewise.
61264         * lib/se-selinux.in.h: Likewise.
61265         * lib/search.in.h: Likewise.
61266         * lib/signal.in.h: Likewise.
61267         * lib/spawn.in.h: Likewise.
61268         * lib/stdarg.in.h: Likewise.
61269         * lib/stddef.in.h: Likewise.
61270         * lib/stdint.in.h: Likewise.
61271         * lib/stdio.in.h: Likewise.
61272         * lib/stdlib.in.h: Likewise.
61273         * lib/string.in.h: Likewise.
61274         * lib/strings.in.h: Likewise.
61275         * lib/sys_file.in.h: Likewise.
61276         * lib/sys_ioctl.in.h: Likewise.
61277         * lib/sys_select.in.h: Likewise.
61278         * lib/sys_socket.in.h: Likewise.
61279         * lib/sys_stat.in.h: Likewise.
61280         * lib/sys_time.in.h: Likewise.
61281         * lib/sys_times.in.h: Likewise.
61282         * lib/sys_utsname.in.h: Likewise.
61283         * lib/sys_wait.in.h: Likewise.
61284         * lib/sysexits.in.h: Likewise.
61285         * lib/termios.in.h: Likewise.
61286         * lib/time.in.h: Likewise.
61287         * lib/unistd.in.h: Likewise.
61288         * lib/wchar.in.h: Likewise.
61289         * lib/wctype.in.h: Likewise.
61290         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
61291         * modules/ctype (Makefile.am): Likewise.
61292         * modules/dirent (Makefile.am): Likewise.
61293         * modules/errno (Makefile.am): Likewise.
61294         * modules/fcntl-h (Makefile.am): Likewise.
61295         * modules/float (Makefile.am): Likewise.
61296         * modules/getopt-posix (Makefile.am): Likewise.
61297         * modules/iconv-h (Makefile.am): Likewise.
61298         * modules/inttypes (Makefile.am): Likewise.
61299         * modules/langinfo (Makefile.am): Likewise.
61300         * modules/locale (Makefile.am): Likewise.
61301         * modules/math (Makefile.am): Likewise.
61302         * modules/netdb (Makefile.am): Likewise.
61303         * modules/netinet_in (Makefile.am): Likewise.
61304         * modules/poll-h (Makefile.am): Likewise.
61305         * modules/pthread (Makefile.am): Likewise.
61306         * modules/pty (Makefile.am): Likewise.
61307         * modules/sched (Makefile.am): Likewise.
61308         * modules/search (Makefile.am): Likewise.
61309         * modules/selinux-h (Makefile.am): Likewise.
61310         * modules/signal (Makefile.am): Likewise.
61311         * modules/spawn (Makefile.am): Likewise.
61312         * modules/stdarg (Makefile.am): Likewise.
61313         * modules/stddef (Makefile.am): Likewise.
61314         * modules/stdint (Makefile.am): Likewise.
61315         * modules/stdio (Makefile.am): Likewise.
61316         * modules/stdlib (Makefile.am): Likewise.
61317         * modules/string (Makefile.am): Likewise.
61318         * modules/strings (Makefile.am): Likewise.
61319         * modules/sys_file (Makefile.am): Likewise.
61320         * modules/sys_ioctl (Makefile.am): Likewise.
61321         * modules/sys_select (Makefile.am): Likewise.
61322         * modules/sys_socket (Makefile.am): Likewise.
61323         * modules/sys_stat (Makefile.am): Likewise.
61324         * modules/sys_time (Makefile.am): Likewise.
61325         * modules/sys_times (Makefile.am): Likewise.
61326         * modules/sys_utsname (Makefile.am): Likewise.
61327         * modules/sys_wait (Makefile.am): Likewise.
61328         * modules/sysexits (Makefile.am): Likewise.
61329         * modules/termios (Makefile.am): Likewise.
61330         * modules/time (Makefile.am): Likewise.
61331         * modules/unistd (Makefile.am): Likewise.
61332         * modules/wchar (Makefile.am): Likewise.
61333         * modules/wctype (Makefile.am): Likewise.
61335 2010-10-04  Bruno Haible  <bruno@clisp.org>
61337         read-file tests: Avoid a test failure on NonStop Kernel.
61338         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
61339         a regular file.
61340         Reported by Joachim Schmitz <schmitz@hp.com>.
61342 2010-10-03  Bruno Haible  <bruno@clisp.org>
61344         gnulib-tool: Fixes for --create-testdir with --libtool.
61345         * gnulib-tool (func_get_automake_snippet): Don't augment
61346         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
61347         an executable.
61348         (func_create_testdir): Handle module 'alloca' like func_import.
61349         Reported by Bruce Korb <bruce.korb@gmail.com>.
61351 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61353         Avoid some lines longer than 80 characters.
61354         * lib/stdint.in.h: Break long comment lines.
61355         * lib/math.in.h: Likewise.
61356         (_GL_NUM_UINT_WORDS): New macro, for readability.
61357         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
61358         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
61359         * lib/stdlib.in.h: Likewise.
61360         * lib/spawn.in.h: Likewise.
61361         * lib/sys_socket.in.h: Update an URL.
61362         * lib/sys_stat.in.h: Break long line.
61364 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
61366         Improve pmccabe2html.
61367         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
61368         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
61369         when the sources change. Remove the line in the HTML about "Used
61370         ranges" (which implied that there might be other unused ranges),
61371         rename "Resume" to "Summary" (easier to understand for more users).
61372         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
61373         styles, and some unnecessary blank lines.
61375 2010-10-03  Bruno Haible  <bruno@clisp.org>
61376             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
61378         acl: Add support for ACLs on NonStop Kernel.
61379         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61380         Check whether the function aclsort() exists.
61381         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61382         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61383         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61384         (acl_nontrivial [HAVE_ACLSORT]: New function.
61385         (file_has_acl): Implement for NonStop Kernel.
61386         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61387         (qset_acl): Implement for NonStop Kernel.
61388         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61389         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61390         (main): Implement for NonStop Kernel.
61391         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61392         Kernel. Handle this flavor.
61393         * tests/test-set-mode-acl.sh: Likewise.
61394         * tests/test-copy-acl.sh: Likewise.
61395         * tests/test-copy-file.sh: Likewise.
61397 2010-10-03  Bruno Haible  <bruno@clisp.org>
61399         Info about ACLs on NonStop Kernel.
61400         * doc/acl-resources.txt: Add info about NonStop Kernel.
61401         References by Joachim Schmitz <schmitz@hp.com>.
61403 2010-10-02  Bruno Haible  <bruno@clisp.org>
61405         Define missing EDQUOT on NonStop Kernel.
61406         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61407         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61409         missing.
61410         * doc/posix-headers/errno.texi: Mention the NSK bug.
61411         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61412         Reported by Joachim Schmitz <schmitz@hp.com>.
61414 2010-10-02  Bruno Haible  <bruno@clisp.org>
61416         Update doc for POSIX:2008.
61417         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61418         Update URL of POSIX specification.
61420 2010-10-02  Bruno Haible  <bruno@clisp.org>
61422         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61423         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61424         from gnulib, not from Automake.
61426 2010-10-02  Bruno Haible  <bruno@clisp.org>
61428         New module 'system-posix'.
61429         * modules/system-posix: New file.
61430         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61431         module is present.
61432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61433         GNULIB_SYSTEM_POSIX.
61434         * modules/stdlib (Depends-on): Remove sys_wait.
61435         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61436         * doc/posix-functions/system.texi: Mention the new module.
61437         * doc/posix-headers/stdlib.texi: Likewise.
61438         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61439         define test_sys_wait_macros to a no-op.
61440         Reported by Sam Steingold <sds@gnu.org>.
61442 2010-09-30  Bruno Haible  <bruno@clisp.org>
61444         More renaming from 'getdate' to 'get_date'.
61445         * doc/get_date.texi: Renamed from doc/getdate.texi.
61446         * modules/get_date (Files): Update.
61447         * MODULES.html.sh (Date and time <time.h>): Update.
61448         * DEPENDENCIES: Update.
61449         * gnulib-tool: Update comment.
61450         * m4/bison.m4 (gl_BISON): Likewise.
61451         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61453 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61455         bootstrap: support ACLOCAL_FLAGS during aclocal
61456         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61457         can add additional -I dir for third-party .m4 files.
61459 2010-09-30  Eric Blake  <eblake@redhat.com>
61461         bootstrap: use glibtoolize on MacOS
61462         * build-aux/bootstrap (check_versions): Convert libtool into
61463         libtoolize.
61464         (tool search): Move libtool check earlier, and look for
61465         glibtoolize for MacOS.
61466         (gnulib_tool_options): Auto-add --libtool when appropriate.
61467         Reported by Justin Clift.
61469         poll: fix typo that broke test on MacOS
61470         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61471         Reported by Justin Clift.
61473         getdate: rename to get_date
61474         Note: getdate.h is not renamed, to minimize client impact.
61475         * modules/getdate: Mark obsolete.  Move old contents...
61476         * modules/get_date: ...to new module name.
61477         * modules/getdate-tests: Move...
61478         * modules/get_date-tests: ...here.
61479         * m4/getdate.m4: Move...
61480         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61481         * lib/getdate.y: Move...
61482         * lib/get_date.y: ...here.
61483         * tests/test-getdate.c: Move...
61484         * tests/test-get_date.c: ...here.
61485         * doc/posix-functions/getdate.texi (getdate): Update name.
61486         * NEWS: Mention the change.
61488 2010-09-29  Bruno Haible  <bruno@clisp.org>
61490         Separate the module 'waitpid' from the module 'sys_wait'.
61491         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61492         present.
61493         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61494         gl_MODULE_INDICATOR_FOR_TESTS.
61495         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61496         * modules/sys_wait (Depends-on): Remove waitpid.
61497         (Makefile.am): Substitute GNULIB_WAITPID.
61498         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61499         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61500         signature only if the 'waitpid' module is present.
61501         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61502         * NEWS: Mention the change.
61503         * modules/grantpt (Depends-on): Add waitpid.
61504         * modules/wait-process (Depends-on): Likewise.
61506 2010-09-29  Bruno Haible  <bruno@clisp.org>
61508         More tests for module 'sys_wait'.
61509         * modules/sys_wait-c++-tests: New file.
61510         * tests/test-sys_wait-c++.cc: New file.
61511         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61512         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61514 2010-09-29  Bruno Haible  <bruno@clisp.org>
61516         New module 'waitpid'.
61517         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61518         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61519         Don't include <process.h>.
61520         (waitpid): Declare only, using modern idiom.
61521         * m4/waitpid.m4: New file.
61522         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61523         * modules/waitpid: New file.
61524         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61525         (Makefile.am): Update.
61526         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61528 2010-09-28  Bruno Haible  <bruno@clisp.org>
61530         poll: Assume ANSI C.
61531         * lib/poll.c (poll): Use an ANSI C declaration.
61533 2010-09-28  Bruno Haible  <bruno@clisp.org>
61535         poll-h: Create poll.h on all platforms.
61536         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61537         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61538         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61539         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61540         (gl_REPLACE_POLL_H): Don't set POLL_H.
61541         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61542         * modules/poll-h (Depends-on): Add include_next.
61543         (Makefile.am): Create poll.h unconditionally. Substitute also
61544         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61546 2010-09-28  Bruno Haible  <bruno@clisp.org>
61548         Tests for module 'poll-h'.
61549         * modules/poll-h-c++-tests: New file.
61550         * tests/test-poll-h-c++.cc: New file.
61552         Tests for module 'poll-h'.
61553         * modules/poll-h-tests: New file.
61554         * tests/test-poll-h.c: New file.
61556 2010-09-28  Bruno Haible  <bruno@clisp.org>
61558         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61559         * modules/poll-h (Depends-on): Add 'extensions'.
61561 2010-09-28  Bruno Haible  <bruno@clisp.org>
61563         New module 'poll-h'.
61564         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61565         (poll): Use modern idiom.
61566         * modules/poll-h: New file.
61567         * modules/poll (Files): Remove lib/poll.in.h.
61568         (Depends-on): Add poll-h.
61569         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61570         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61571         * m4/poll_h.m4: New file.
61572         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61573         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61574         and invoke gl_REPLACE_POLL_H.
61575         * lib/poll.c: Use common idiom.
61576         * tests/test-poll.c: Likewise.
61577         * doc/posix-headers/poll.texi: Mention the poll-h module.
61578         Suggested by Eric Blake.
61580 2010-09-26  Bruno Haible  <bruno@clisp.org>
61582         sys_wait: Implement WSTOPSIG.
61583         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61584         Reported by Simon Josefsson.
61586 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61588         stdlib, sys_wait: Avoid compilation error on mingw.
61589         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61591 2010-09-26  Bruno Haible  <bruno@clisp.org>
61593         stdlib tests: Avoid code duplication.
61594         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61595         * modules/sys_wait-tests (Files): Likewise.
61596         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61597         * tests/test-stdlib.c: Include test-sys_wait.h.
61598         (main): Invoke test_sys_wait_macros.
61599         * tests/test-sys_wait.c: Include test-sys_wait.h.
61600         (main): Invoke test_sys_wait_macros.
61602 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61604         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61605         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61606         sure Windows sockets are working before calling getaddrinfo.
61607         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61608         * doc/gnulib.texi (Windows sockets): Fix typo.
61610 2010-09-25  Bruno Haible  <bruno@clisp.org>
61612         Tests for module 'regex-quote'.
61613         * modules/regex-quote-tests: New file.
61614         * tests/test-regex-quote.c: New file.
61616         New module 'regex-quote'.
61617         * lib/regex-quote.h: New file.
61618         * lib/regex-quote.c: New file.
61619         * modules/regex-quote: New file.
61620         Suggested by Reuben Thomas <rrt@sc3d.org>.
61622 2010-09-24  Bruno Haible  <bruno@clisp.org>
61624         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61625         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61627 2010-09-23  Bruno Haible  <bruno@clisp.org>
61629         setenv: Relax license.
61630         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61631         Blake.
61632         Requested by Eric Blake.
61634 2010-09-22  Bruno Haible  <bruno@clisp.org>
61636         termios: Relax license.
61637         * modules/termios (License): Change to LGPLv2+.
61638         Requested by Eric Blake.
61640 2010-09-22  Bruno Haible  <bruno@clisp.org>
61642         threadlib: Allow the package to change the default to 'no'.
61643         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61644         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61645         Reported by Paul Eggert.
61647 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61648             Bruno Haible  <bruno@clisp.org>
61650         Fix endless loop in mbmemcasecoll.
61651         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61652         byte.
61653         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61655 2010-09-22  Bruno Haible  <bruno@clisp.org>
61657         Tests for module 'memcoll'.
61658         * modules/memcoll-tests: New file.
61659         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61661         memcoll, xmemcoll: Clarify size vs. length.
61662         * modules/memcoll.c (memcoll0): Clarify specification.
61663         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61664         passed to collate_error.
61666 2010-09-22  Bruno Haible  <bruno@clisp.org>
61668         Tests for module 'memcasecmp'.
61669         * modules/memcasecmp-tests: New file.
61670         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61672 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61674         * lib/pthread.in.h: Add split double-inclusion guard, and include
61675         system <pthread.h> if there is one.  Use @@-style as in other
61676         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61677         pthread.h doesn't.
61678         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61679         (pthread_mutexattr_settype, pthread_mutex_trylock):
61680         New static inline functions, if there's no system <pthread.h>.
61681         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61682         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61683         Approximate with mutexes if the system lacks spinlocks, as in
61684         MacOS.
61685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61686         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61687         @@-style.  Check for spinlocks separately.
61688         (gl_PTHREAD_DEFAULTS): New macro.
61689         * modules/pthread: Redo to use a more typical style for in.h files.
61691 2010-09-21  Eric Blake  <eblake@redhat.com>
61693         net_if: enhance tests
61694         * tests/test-net_if.c (main): Move signature checks earlier.
61695         Print failures to stderr.
61696         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61697         Document the bug that we do not yet fix.
61699 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61701         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61702         about gnulib, not GSS.
61704 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61706         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61707         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61708         for Emacs.
61709         * build-aux/pmccabe2html: Make Makefile.am example code more
61710         cut-and-paste friendly.
61712 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61714         * tests/test-net_if.c: New file.
61715         * modules/net_if-tests: New file.
61717 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61719         pthread: add pthread_spin_destroy
61720         * lib/pthread.in.h (pthread_spin_destroy): New function.
61722 2010-09-19  Bruno Haible  <bruno@clisp.org>
61724         gnulib-tool: Fix --help output.
61725         * gnulib-tool (func_usage): Fix help message.
61726         Reported by Reuben Thomas <rrt@sc3d.org>.
61728 2010-09-18  Jim Meyering  <meyering@redhat.com>
61730         maint.mk: avoid unexpanded \n in two diagnostics
61731         * top/maint.mk (sc_prohibit_always_true_header_tests):
61732         Don't use a literal \n in a halt=... assignment.  It would not be
61733         expanded, and the two \n bytes would appear in the diagnostic output
61734         rather than the desired newline.  Use halt=$$(printf ... instead.
61735         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61737 2010-09-18  Bruno Haible  <bruno@clisp.org>
61739         netinet_in: Doc tweak.
61740         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61741         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61743 2010-09-18  Jim Meyering  <meyering@redhat.com>
61745         init.sh: correct an outdated comment
61746         * tests/init.sh (create_exe_shims_):  s/function/alias/
61748         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61749         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61750         a file named "*.exe" is removed between the glob expansion and the
61751         processing of that oddly named file.
61753 2010-09-17  Eric Blake  <eblake@redhat.com>
61755         mirbsd: add some more support
61756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61757         in BSD family.
61758         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61759         devices as OpenBSD.
61760         * m4/host-os.m4 (mirbsd): Add MirBSD.
61762         tests: fix unportable assumption on sys/wait.h
61763         * tests/test-sys_wait.c (main): Relax test.
61764         * tests/test-stdlib.c (main): Likewise.
61766         init.sh: accommodate directory with no .exes
61767         * tests/init.sh: Accomodate directory containing only scripts.
61769         tests: avoid compiler warning
61770         * tests/test-stdlib.c (main): Use the variable.
61772         fdutimens, fdutimensat: update signature, again
61773         * lib/utimens.h (gl_futimens): Delete, and move signature...
61774         (fdutimens): ...here.
61775         (fdutimensat): Rearrange signature.
61776         (lutimensat): Rename variable for clarity.
61777         * lib/fdutimensat.c (fdutimensat): Update signature.
61778         * lib/utimens.c (fdutimens): Likewise.
61779         (gl_futimens): Delete.
61780         (utimens, lutimens): Update callers.
61781         * lib/futimens.c (futimens): Likewise.
61782         * tests/test-fdutimensat.c: Likewise.
61783         * tests/test-utimens.c: Likewise.
61784         * tests/test-futimens.h: Update comment.
61785         * NEWS: Mention this.
61786         Suggested by Paul Eggert.
61788 2010-09-17  Bruno Haible  <bruno@clisp.org>
61790         Take over the maintenance of some older macros from Autoconf.
61791         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61792         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
61793         GNU Autoconf.
61794         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
61795         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
61797 2010-09-17  Eric Blake  <eblake@redhat.com>
61799         fdutimensat: drop atflag validation
61800         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
61801         with valid fd, to close a race scenario where futimens is
61802         unsupported and FILE was replaced by a symlink.
61803         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
61804         accordingly.
61805         Suggested by Paul Eggert.
61807 2010-09-16  Bruno Haible  <bruno@clisp.org>
61809         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
61810         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
61812 2010-09-16  Bruno Haible  <bruno@clisp.org>
61814         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
61815         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
61816         login_tty exists.
61817         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61819 2010-09-16  Bruno Haible  <bruno@clisp.org>
61821         login_tty: Make the replacement code work on BSD systems.
61822         * lib/login_tty.c: Include <sys/ioctl.h>.
61823         (login_tty): Use ioctl TIOCSCTTY when available.
61824         * modules/login_tty (Depends-on): Add sys_ioctl.
61825         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61827 2010-09-16  Bruno Haible  <bruno@clisp.org>
61829         login_tty: Stricter unit test.
61830         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61831         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61832         and tcgetsid() after login_tty.
61833         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61835 2010-09-16  Bruno Haible  <bruno@clisp.org>
61837         New module 'tcgetsid'.
61838         * lib/tcgetsid.c: New file.
61839         * m4/tcgetsid.m4: New file.
61840         * modules/tcgetsid: New file.
61841         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61842         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61843         GNULIB_TCGETSID, HAVE_TCGETSID.
61844         * lib/termios.in.h: Include <sys/types.h>.
61845         (tcgetsid): New declaration.
61846         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61847         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61848         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61849         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61851 2010-09-16  Bruno Haible  <bruno@clisp.org>
61853         Tests for module 'termios'.
61854         * modules/termios-c++-tests: New file.
61855         * modules/termios-tests: New file.
61856         * tests/test-termios-c++.cc: New file.
61857         * tests/test-termios.c: New file.
61859         New module 'termios'.
61860         * modules/termios: New file.
61861         * lib/termios.in.h: New file.
61862         * m4/termios_h.m4: New file.
61863         * doc/posix-headers/termios.texi: Mention the new module.
61865 2010-09-16  Eric Blake  <eblake@redhat.com>
61867         fdutimensat: add an atflag parameter
61868         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61869         * lib/utimens.h (fdutimensat): Update prototype.
61870         * tests/test-fdutimensat.c: Adjust test to match.
61871         * NEWS: Document the change.
61872         Suggested by Paul Eggert.
61874 2010-09-16  Bruno Haible  <bruno@clisp.org>
61876         Fix typos in comments.
61877         * lib/striconveh.h: Fix typo in comment.
61878         * lib/login_tty.c (login_tty): Likewise.
61880 2010-09-15  Bruno Haible  <bruno@clisp.org>
61882         stdlib: clarify MirBSD WEXITSTATUS bug
61883         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61884         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61886 2010-09-15  Eric Blake  <eblake@redhat.com>
61888         stdlib: work around MirBSD WEXITSTATUS bug
61889         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61890         * modules/stdlib (Depends-on): Add sys_wait.
61891         * tests/test-sys_wait.c (main): Enhance test.
61892         * tests/test-stdlib.c (main): Likewise.
61893         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61895         docs: mention MacOS issue with WEXITSTATUS(constant)
61896         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61897         issue.
61898         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61900         strnlen: add tests
61901         * modules/strnlen-tests: New file.
61902         * tests/test-strnlen.c: Likewise.
61904 2010-09-14  Bruno Haible  <bruno@clisp.org>
61906         unistr/base: Avoid link errors when module 'libunistring' is also used.
61907         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61908         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61909         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61910         Declare also when HAVE_LIBUNISTRING is set.
61911         Reported by Pádraig Brady <P@draigbrady.com>.
61913 2010-09-14  Eric Blake  <eblake@redhat.com>
61915         test-rawmemchr: make more robust
61916         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61917         (Depends-on, configure.ac): Add needed prerequisites to use it.
61918         * modules/memchr-tests (Files, Depends-on, configure.ac):
61919         Likewise, to avoid implicit reliance on memchr module prereqs.
61920         * tests/test-memchr.c (main): Ensure proper masking.
61921         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61922         reads.
61924         memchr: detect glibc Alpha bug
61925         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61926         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61927         Alpha.
61928         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61929         * tests/test-memchr.c (main): Enhance test.
61930         Reported by Nelson H. F. Beebe.
61932 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61934         fts, getcwd, glob: audit for dirfd returning -1
61935         * lib/fts.c (opendir): Remove #define; no longer used.
61936         (opendirat): New arg PDIR_FD.  All callers changed.
61937         (fts_build, _opendir2): Use new opendirat to avoid the need for
61938         dirfd, or for checking whether dirfd returns a negative value.
61939         Don't use opendir; always use openat followed by fdopendir.
61940         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61941         it.
61942         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61943         returns -1 here.
61944         * modules/fts (Depends-on): Remove dirfd.
61945         * modules/getcwd (Depends-on): Likewise.
61947 2010-09-13  Eric Blake  <eblake@redhat.com>
61949         float: fix broken MirBSD header
61950         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61951         * doc/posix-headers/float.texi (float.h): Document it.
61953 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61955         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61956         * lib/fts.c (opendirat): New arg extra_flags.
61957         (__opendir2): Use it to avoid following symlinks when opening
61958         a directory, if symlinks are not supposed to be followed.  See
61959         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61961         fdopendir: preserve argument fd before returning
61962         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61963         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61964         (fdopendir): Use them, arranging for FD to be open to the same
61965         directory that it was when it started.  (It might be temporarily
61966         closed while fdopendir is running, so this not thread- or
61967         signal-safe.)  Be careful to do the right thing even when file
61968         descriptors are scarce and dup fails with errno == EMFILE.  See
61969         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61971 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61973         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61974         * NEWS: Document change.
61975         * m4/regex.m4: Disable test for regoff_t size.
61977 2010-09-13  Jim Meyering  <meyering@redhat.com>
61979         fts: don't operate on an invalid file descriptor after failed dup
61980         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61981         negative file descriptor.
61983 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61985         savedir: add streamsavedir, deprecate fdsavedir
61986         * NEWS: Mention deprecation of fdsavedir.
61987         * lib/savedir.c (streamsavedir): New extern function, whose name
61988         ends in "savedir" to be consistent with the others.  This differs
61989         from savedirstream in that it doesn't close its argument.  The
61990         next version of GNU tar will use this instead of fdsavedir, to
61991         avoid some race conditions and conserve file descriptors.
61992         (savedirstream): Reimplement as a wrapper around streamsavedir.
61993         (fdsavedir): Add a comment deprecating this function.  As far as
61994         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61995         * lib/savedir.h (streamsavedir): New decl.
61996         (fdsavedir): Add a comment deprecating this.
61998 2010-09-10  Bruno Haible  <bruno@clisp.org>
62000         langinfo: Fix last commit.
62001         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
62002         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
62003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62005 2010-09-10  Bruno Haible  <bruno@clisp.org>
62007         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
62008         * lib/progreloc.c (O_EXEC): Define fallback.
62010 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
62012         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
62013         * NEWS: Document recent changes to fcntl-h.
62014         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
62015         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
62016         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
62017         Similarly for O_SEARCH; this last was already true, but not documented.
62018         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
62019         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
62020         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
62021         Likewise.
62022         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
62023         is zero, not whether it is defined.
62024         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
62025         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
62026         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
62028 2010-09-10  Bruno Haible  <bruno@clisp.org>
62030         langinfo, nl_langinfo: Fix for IRIX 5.3.
62031         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
62032         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
62033         HAVE_LANGINFO_YESEXPR.
62034         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
62035         HAVE_LANGINFO_YESEXPR.
62036         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
62037         HAVE_LANGINFO_T_FMT_AMPM is 0.
62038         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
62039         HAVE_LANGINFO_YESEXPR is 0.
62040         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
62041         NOEXPR.
62042         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
62043         * doc/posix-functions/nl_langinfo.texi: Likewise.
62044         Reported by Eric Blake.
62046 2010-09-10  Bruno Haible  <bruno@clisp.org>
62048         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
62049         * doc/glibc-functions/login_tty.texi: Mention the include file problem
62050         on FreeBSD 8.0 and OpenBSD 4.6.
62051         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
62052         * m4/pty_h.m4 (gl_PTY_H): Likewise.
62053         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
62054         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
62055         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
62056         ac_includes_default.
62057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62059 2010-09-09  Eric Blake  <eblake@redhat.com>
62061         strsignal: work around NetBSD bug
62062         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
62063         * lib/string.in.h (includes): Likewise.
62064         * doc/posix-functions/strsignal.texi (strsignal): Document the
62065         bug.
62066         Reported by Nelson H. F. Beebe.
62068         gnulib-tool: work with NetBSD /bin/sh
62069         * gnulib-tool (func_cache_var, func_cache_lookup_module)
62070         (func_get_description, func_get_comment, func_get_status)
62071         (func_get_notice, func_get_applicability, func_get_filelist)
62072         (func_get_dependencies, func_get_autoconf_early_snippet)
62073         (func_get_autoconf_snippet, func_get_automake_snippet)
62074         (func_get_include_directive, func_get_link_directive)
62075         (func_get_license, func_get_maintainer, func_import): Avoid
62076         shell syntax errors from parsing syntax extensions.
62078 2010-09-09  Bruno Haible  <bruno@clisp.org>
62080         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62081         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
62082         a reliable way to determine whether the 'alias' command works.
62084 2010-09-08  Jim Meyering  <meyering@redhat.com>
62086         init.sh: penalize a set-x-impaired shell; don't disqualify it
62087         * tests/init.sh: Too many shells corrupt application stderr when
62088         you set -x, so we can't afford to disqualify them, since at least
62089         on Irix-6.5, that would disqualify all bourne shells.
62090         Instead, use a two-pass approach.
62091         On the first pass, try to find a shell that meets the stricter
62092         condition that set -x does not corrupt stderr.
62093         If no shell meets the stricter condition, retest each candidate
62094         shell, but without that extra condition.  Finally, when
62095         VERBOSE=yes is requested and set -x might cause trouble, simply
62096         issue a warning and refrain from enabling debug output.
62098 2010-09-08  Eric Blake  <eblake@redhat.com>
62100         unsetenv: fix OpenBSD bug
62101         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
62102         * doc/posix-functions/unsetenv.texi (unsetenv): Update
62103         documentation.
62104         Reported by Jim Meyering.
62106         strtod: work around IRIX 6.5 bug
62107         * lib/strtod.c (strtod): Reparse number on shorter string if
62108         exponent parse was invalid.
62109         * tests/test-strtod.c (main): Add check for "0x1p 2".
62110         Reported by Tom G. Christensen.
62112         getopt: optimize previous patch
62113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
62114         empty variable.  Speed up awk script.
62115         Reported by Paolo Bonzini.
62117 2010-09-08  Jim Meyering  <meyering@redhat.com>
62119         test.sh: disqualify shells for which set -x corrupts stderr
62120         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
62121         and OpenBSD 4.7.  They make it so with "set -x", environment settings
62122         appear in stderr output.  For example, this command:
62123             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
62124         prints "P=1" on those two systems:
62126 2010-09-08  Bruno Haible  <bruno@clisp.org>
62128         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62129         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
62130         commands, because some shells ignore redirections when there is an
62131         error in the command lookup.
62132         Reported by Eric Blake.
62134 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
62136         * lib/regex.h: Fix a mention of `regex_compile' (should be
62137         `re_compile_pattern').
62138         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
62139         (re_set_registers): Correct name of parameter in comment.
62141         * doc/regex.texi: Add documentation for missing syntax flags.
62142         Remove commented-out documentation of defunct syntax option
62143         RE_NO_EMPTY_ALTS.
62144         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
62145         Add documentation of re_set_registers.
62146         Document trick to re-use a pattern buffer by setting fastmap manually.
62147         Update documentation of struct re_pattern_buffer per public members.
62148         Uncomment documentation of equivalence class operators and
62149         collating symbol operators, since they are now implemented,
62150         Explain leftmost-longest matching in relation to alternatives.
62151         Tidy documentation of substring matching.
62152         Remove POSIX documentation, which is done better in
62153         glibc, and refer the reader there. Keep BSD API documentation, as
62154         that is not readily available elsewhere.
62156 2010-09-07  Eric Blake  <eblake@redhat.com>
62158         getopt: handle POSIXLY_CORRECT set but not exported
62159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
62160         export state of POSIXLY_CORRECT, due to bash set -o posix.
62161         Reported by Dustin J. Mitchell.
62163 2010-09-05  Bruno Haible  <bruno@clisp.org>
62165         gnulib-tool: Highlight the changed options.
62166         * gnulib-tool (func_usage): Display the --import, --add-import,
62167         --remove-import explanations in bold font.
62169 2010-09-06  Karl Berry  <karl@gnu.org>
62171         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
62173 2010-09-05  Bruno Haible  <bruno@clisp.org>
62175         uniwidth/width: Update comment.
62176         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
62177         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
62179 2010-09-05  Bruno Haible  <bruno@clisp.org>
62181         isinf, isnan: Relax license.
62182         * modules/isinf (License): Change from GPL to LGPL, with consent from
62183         Ben Pfaff.
62184         * modules/isnan (License): Likewise.
62185         Requested by Ludovic Courtès.
62187 2010-09-04  Bruno Haible  <bruno@clisp.org>
62189         gnulib-tool: Help migration from --import to --add-import or --update.
62190         * gnulib-tool: Emit a verbose error message when --import is used
62191         without any module name.
62193 2010-09-04  Bruno Haible  <bruno@clisp.org>
62195         Update doc about gnulib-tool.
62196         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
62197         'gnulib-tool --update' in more detail.
62198         Reported by Eric Blake.
62200 2010-09-04  Bruno Haible  <bruno@clisp.org>
62202         gnulib-tool: Change --import. New options --add/remove-import.
62203         * gnulib-tool: New options --add-import, --remove-import.
62204         (func_usage): Document them.
62205         (have_associative): Define always.
62206         (func_import): In import mode, don't merge the specified settings with
62207         the cached settings. Implement remove-import mode.
62208         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
62209         Explain when to use them versus --import.
62210         (Simple update): Use --add-import instead of --import.
62211         * NEWS: Mention the change.
62213 2010-09-04  Bruno Haible  <bruno@clisp.org>
62215         * doc/gnulib-tool.texi (Initial import): Update paragraph about
62216         separate gnulib.mk.
62218 2010-09-04  Bruno Haible  <bruno@clisp.org>
62220         gnulib-tool: Don't talk about CVS any more.
62221         * gnulib-tool (func_usage, func_import): Write "version control"
62222         instead of CVS.
62224 2010-09-04  Jim Meyering  <meyering@redhat.com>
62226         maint.mk: avoid obscure sc_copyright_check failure in coreutils
62227         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
62228         false positives (whose names may be ill-chosen) when searching
62229         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
62230         would cause a false-positive.
62232         avoid coreutils "make distcheck" failure
62233         Coreutils tests with an absolute build directory name that contains
62234         a space.  Not quoting this directory name caused a failure.
62235         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
62236         * tests/test-vc-list-files-cvs.sh: Likewise.
62238 2010-09-04  Bruno Haible  <bruno@clisp.org>
62240         gnulib-tool: Avoid error when run in a package without Makefile.am.
62241         * gnulib-tool: When collecting the m4dirs in a package that does not
62242         have a Makefile.am, eliminate those directories that contain no
62243         gnulib-cache.m4. Fix expression that counts these directories.
62245 2010-09-04  Bruno Haible  <bruno@clisp.org>
62247         update-copyright test: Improve output when perl is missing or too old.
62248         * tests/test-update-copyright.sh: Move test of Perl version down after
62249         the test whether Perl exists. Provide an explanation relating Perl's
62250         error message to Automake's SKIP: message.
62252 2010-09-04  Bruno Haible  <bruno@clisp.org>
62254         Don't augment PATH in TESTS_ENVIRONMENT.
62255         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
62256         set abs_aux_dir instead of augmenting PATH.
62257         * modules/vc-list-files-tests (Makefile.am): Likewise.
62258         * tests/test-update-copyright.sh: Augment PATH here.
62259         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
62260         path_prepend_.
62261         * tests/test-vc-list-files-git.sh: Likewise.
62263 2010-09-04  Jim Meyering  <meyering@redhat.com>
62265         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
62266         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
62268 2010-09-04  Bruno Haible  <bruno@clisp.org>
62270         strdup: Fix compilation error in C++ mode.
62271         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
62272         the macro.
62274 2010-09-04  Bruno Haible  <bruno@clisp.org>
62276         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
62277         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
62278         macro into a function.
62279         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62281 2010-09-04  Bruno Haible  <bruno@clisp.org>
62283         Set PATH_SEPARATOR the same way autoconf does.
62284         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
62285         the value of PATH_SEPARATOR the same way autoconf-generated configure
62286         scripts do.
62287         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
62288         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62290 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62292         Set PATH_SEPARATOR the same way autoconf does.
62293         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
62294         the same way autoconf-generated configure scripts do.
62295         * posix-modules: Likewise.
62297 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62299         hash: fix safe_hasher const typo
62300         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
62301         const; otherwise, there is a type error later.
62303 2010-09-02  Jim Meyering  <meyering@redhat.com>
62305         test-update-copyright.sh: require perl 5.8.0
62306         * tests/test-update-copyright.sh: Require 5.8.0,
62307         which Tom G. Christensen has confirmed is adequate,
62308         while 5.6.1 is not.
62310 2010-09-02  Eric Blake  <eblake@redhat.com>
62312         tests: init.sh improvements for re-exec'ing with zsh
62313         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
62314         -vx through shell re-exec.
62315         Reported by Tom G. Christensen.
62317         wctype: fix typo in previous commit
62318         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
62319         Reported by Ludovic Courtès.
62321 2010-09-02  Jim Meyering  <meyering@redhat.com>
62323         test-update-copyright.sh: skip test if Perl is too old
62324         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
62325         Reported by Tom G. Christensen.
62327 2010-09-02  Bruno Haible  <bruno@clisp.org>
62329         wctype: Avoid compilation error on IRIX 6.5.30.
62330         * lib/wctype.in.h (iswblank): Declare with a replacement if
62331         REPLACE_ISWBLANK is set.
62332         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
62333         declared. Set REPLACE_ISWBLANK.
62334         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
62335         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
62336         * doc/posix-headers/wctype.texi: Likewise.
62337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62339 2010-09-01  Bruno Haible  <bruno@clisp.org>
62341         New module 'socketlib'.
62342         * modules/socketlib: New file.
62343         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
62344         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
62345         * modules/sockets (Depends-on): Add socketlib.
62346         Suggested by Sam Steingold <sds@gnu.org>.
62348 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62350         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
62352         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
62353         when one needs search access to a directory but not read access.
62354         On systems where it is available, it works in some cases where
62355         O_RDONLY does not, namely on directories that are searchable but
62356         not readable, and which need only to be searchable.  If O_SEARCH
62357         is not available, fall back to the traditional method of using
62358         O_RDONLY.
62360         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
62361         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
62362         when opening a directory that needs only to be searchable.
62363         * lib/chdir-safer.c (chdir_no_follow): Likewise.
62364         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
62365         * lib/openat-proc.c (openat_proc_name): Likewise.
62366         * lib/openat.c (openat_needs_fchdir): Likewise.
62367         * lib/save-cwd.c (save_cwd): Likewise.
62368         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
62370 2010-08-28  Bruno Haible  <bruno@clisp.org>
62372         New module 'host-cpu-c-abi'.
62373         * modules/host-cpu-c-abi: New file.
62374         * m4/host-cpu-c-abi.m4: New file, based on part of
62375         clisp/src/m4/general.m4.
62376         Requested by Sam Steingold <sds@gnu.org>.
62378 2010-08-31  Eric Blake  <eblake@redhat.com>
62379         and Jim Meyering  <meyering@redhat.com>
62381         hash: factor, and guard against misbehaving hasher function
62382         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62383         of table->hasher's return value.  Also protect against a hash value
62384         so large that adding it to table->bucket results in a NULL pointer.
62385         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62386         Use it in place of open-coded check-and-abort.
62388 2010-08-30  Bruno Haible  <bruno@clisp.org>
62390         hash: silence spurious clang warning
62391         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62392         Reported by Eric Blake.
62394 2010-08-30  Eric Blake  <eblake@redhat.com>
62396         strstr, memmem, strcasestr: avoid leaked shell message
62397         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62398         FreeBSD.
62399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62402         tests: silence clang warning
62403         * tests/test-malloca.c (do_allocation): Avoid dead store.
62405 2010-08-29  Bruno Haible  <bruno@clisp.org>
62407         gettext: Fix recent mistake.
62408         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62410 2010-08-29  Bruno Haible  <bruno@clisp.org>
62412         selinux-h: Offer a --without-selinux option.
62413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62414         --without-selinux was specified, skip all tests and define
62415         HAVE_SELINUX_SELINUX_H to 0.
62416         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62417         set LIB_SELINUX to empty.
62418         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62419         gl_LIBSELINUX. If --without-selinux was specified, replace
62420         selinux/context.h.
62421         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62423 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62424             Bruno Haible  <bruno@clisp.org>
62426         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62427         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62428         of HAVE_REALLOC.
62429         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62430         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62431         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62432         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62434 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62435             Bruno Haible  <bruno@clisp.org>
62437         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62438         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62439         HAVE_CALLOC.
62440         * lib/xmalloc.c: Update accordingly.
62441         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62442         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62443         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62445 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62446             Bruno Haible  <bruno@clisp.org>
62448         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62449         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62450         HAVE_MALLOC.
62451         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62452         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62453         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62455 2010-08-29  Bruno Haible  <bruno@clisp.org>
62457         Update modules list.
62458         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62459         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62460         (String handling <string.h>): Add astrxfrm.
62461         (File system functions): Add readlinkat.
62463 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62465         Tests for module 'realloc-gnu'.
62466         * modules/realloc-gnu-tests: New file.
62467         * tests/test-realloc-gnu.c: New file.
62469         Tests for module 'calloc-gnu'.
62470         * modules/calloc-gnu-tests: New file.
62471         * tests/test-calloc-gnu.c: New file.
62473         Tests for module 'malloc-gnu'.
62474         * modules/malloc-gnu-tests: New file.
62475         * tests/test-malloc-gnu.c: New file.
62477 2010-08-28  Bruno Haible  <bruno@clisp.org>
62479         Rename module 'realloc' -> 'realloc-gnu'.
62480         * modules/realloc-gnu: New file, copied from modules/realloc.
62481         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62482         obsolete.
62483         * modules/mgetgroups (Depends-on): Update.
62484         * doc/posix-functions/realloc.texi: Update.
62485         * NEWS: Mention the change.
62487         Rename module 'calloc' -> 'calloc-gnu'.
62488         * modules/calloc-gnu: New file, copied from modules/calloc.
62489         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62490         obsolete.
62491         * doc/posix-functions/calloc.texi: Update.
62492         * NEWS: Mention the change.
62494         Rename module 'malloc' -> 'malloc-gnu'.
62495         * modules/malloc-gnu: New file, copied from modules/malloc.
62496         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62497         obsolete.
62498         * modules/argp (Depends-on): Update.
62499         * modules/regex (Depends-on): Update.
62500         * doc/posix-functions/malloc.texi: Update.
62501         * NEWS: Mention the change.
62503 2010-08-28  Eric Blake  <eblake@redhat.com>
62505         pread, pwrite: add missing dependency
62506         * modules/pread (Depends-on): Add extensions.
62507         * modules/pwrite (Depends-on): Likewise.
62509 2010-08-28  Bruno Haible  <bruno@clisp.org>
62511         unistr/u*-strchr: Fix tests dependencies.
62512         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62513         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62514         Reported by Ian Beckwith <ianb@erislabs.net>.
62516 2010-08-28  Bruno Haible  <bruno@clisp.org>
62518         read-file: Don't occupy too much unused memory.
62519         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62521 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62522             Eric Blake  <eblake@redhat.com>
62523             Bruno Haible  <bruno@clisp.org>
62525         read-file: Avoid memory reallocations with regular files.
62526         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62527         (fread_file): With regular files, use the remaining length as the
62528         initial buffer size.  Check against overflow.
62529         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62530         sys_stat.
62532 2010-08-28  Bruno Haible  <bruno@clisp.org>
62534         ftello: Relax license.
62535         * modules/ftello (License): Relax to LGPLv2+.
62536         Reported by Eric Blake.
62538 2010-08-28  Bruno Haible  <bruno@clisp.org>
62540         Avoid relocwrapper link errors due to gnulib replacement functions.
62541         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62542         function.
62543         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62545 2010-08-28  Bruno Haible  <bruno@clisp.org>
62547         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62548         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62549         defined.
62550         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62551         Suggested by Eric Blake.
62553 2010-08-28  Bruno Haible  <bruno@clisp.org>
62555         sys_socket, netdb: Ensure socklen_t gets defined.
62556         * modules/sys_socket (Depends-on): Add socklen.
62557         * modules/netdb (Depends-on): Likewise.
62558         * modules/getaddrinfo (Depends-on): Remove socklen.
62559         * modules/getsockopt (Depends-on): Likewise.
62560         * modules/setsockopt (Depends-on): Likewise.
62561         * tests/test-sys_socket.c: Check that socklen_t is defined.
62562         * tests/test-netdb.c: Likewise.
62563         * m4/socklen.m4: Update comments.
62564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62566 2010-08-27  Eric Blake  <eblake@redhat.com>
62568         login_tty: add missing dependency
62569         * modules/login_tty (Depends-on): Add pty.
62571 2010-08-26  Eric Blake  <eblake@redhat.com>
62573         lib-symbol-versions: fix m4 quoting
62574         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62575         format for AC_LINK_IFELSE.
62577         glob: fix compile test
62578         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62580         btowc: fix missing file
62581         * modules/btowc (Files): Also ship locale-fr.m4.
62583         lseek: fix link test
62584         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62585         AC_LINK_IFELSE.
62587         include_next: silence autoconf 2.68 warning
62588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62589         AC_COMPILE_IFELSE as special.
62590         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62591         autoconf < 2.68.
62593         acl: fix compilation test
62594         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62595         AC_COMPILE_IFELSE.
62597 2010-08-26  Bruno Haible  <bruno@clisp.org>
62599         Modernize AC_TRY_RUN invocations.
62600         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62602         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62603         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62604         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62605         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62606         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62608         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62609         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62611         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62612         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62613         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62615         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62616         gl_MBRLEN_NUL_RETVAL): Likewise.
62617         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62618         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62619         Likewise.
62620         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62621         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62622         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62623         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62624         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62625         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62626         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62627         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62628         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62629         Likewise.
62630         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62631         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62633         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62635         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62636         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62637         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62638         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62641 2010-08-26  Bruno Haible  <bruno@clisp.org>
62643         Modernize AC_TRY_LINK invocations.
62644         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62645         AC_TRY_LINK.
62646         * m4/argp.m4 (gl_ARGP): Likewise.
62647         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62648         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62649         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62650         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62651         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62652         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62653         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62654         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62655         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62656         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62657         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62658         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62659         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62660         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62661         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62662         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62663         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62664         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62665         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62666         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62667         Likewise.
62668         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62669         Likewise.
62670         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62671         Likewise.
62672         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62673         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62674         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62675         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62676         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62677         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62678         * m4/servent.m4 (gl_SERVENT): Likewise.
62679         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62680         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62681         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62682         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62683         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62684         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62685         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62686         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62687         * modules/tsearch-tests (configure.ac): Likewise.
62689 2010-08-26  Bruno Haible  <bruno@clisp.org>
62691         Modernize AC_TRY_COMPILE invocations.
62692         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62693         AC_TRY_COMPILE.
62694         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62695         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62696         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62697         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62698         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62699         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62700         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62701         * m4/lock.m4 (gl_LOCK): Likewise.
62702         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62703         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62704         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62706         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62707         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62708         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62710         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62711         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62712         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62714         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62715         extraneous semicolon.
62717 2010-08-26  Jim Meyering  <meyering@redhat.com>
62719         stat-time: relax license LGPL
62720         * modules/stat-time (License): Change from GPL to LGPL,
62721         with consent from all contributors, for use in libguile.
62722         Requested by Ludovic Courtès.
62724 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62726         poll: return immediately on POLLHUP.
62727         * lib/poll.c (poll): Always set timeout before wait_timeout is
62728         computed.
62730 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62732         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62733         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62734         rmdir ("dir/.//"), unlinkat.
62736 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62738         stdbool: avoid spurious failure with modern xlc
62739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62741 2010-08-24  Bruno Haible  <bruno@clisp.org>
62743         getloadavg: simplify code
62744         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62745         gl_have_func. Update comments.
62747 2010-08-24  Eric Blake  <eblake@redhat.com>
62749         getloadavg: don't define SVR4 on cygwin
62750         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62751         only define SVR4 when -lkvm is required.
62752         Reported by Yaakov Selkowitz.
62754 2010-08-24  Bruno Haible  <bruno@clisp.org>
62756         priv-set: fix comment
62757         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62759 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62761         priv-set: fix comments
62762         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62763         to match code, as suggested by David Bartley in:
62764         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62766 2010-08-23  Eric Blake  <eblake@redhat.com>
62768         stdbool: avoid rejecting clang
62769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62770         * tests/test-stdbool.c: Enable more tests if using the system
62771         <stdbool.h> instead of the gnulib replacement.
62772         (main): Move xlc bug test to a runtime test for all compilers.
62773         Reported by Anders Kaseorg.
62775         argz: fix shell quoting issue
62776         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62777         Reported by Charles Wilson.
62779 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62780             Erik Faye-Lund <kusmabite@gmail.com>
62782         poll, select: handle ERROR_BROKEN_PIPE.
62783         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62784         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62785         * lib/select.c (win32_compute_revents): Do not mark a pipe
62786         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62788 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62790         fts: allow compilation with C++
62791         * lib/fts_.h: Specify extern "C" linkage with C++.
62793 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62795         Fix gnulib-tool sed script de-commentation for AIX sed.
62796         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
62797         sed.
62799 2010-08-17  Eric Blake  <eblake@redhat.com>
62801         test-stddef: test for (some) offsetof bugs
62802         * tests/test-stddef.c: Enhance test to ensure correct type of
62803         offsetof.
62804         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
62805         that we are not fixing at this time.
62807 2010-08-15  Bruno Haible  <bruno@clisp.org>
62809         stpncpy: Allow stpncpy to be defined as a macro.
62810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
62811         if it's already correctly declared.
62812         * lib/string.in.h (stpncpy): Undefine before redefining.
62813         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
62815 2010-08-14  Bruno Haible  <bruno@clisp.org>
62817         Rename module 'memxfrm' to 'amemxfrm'.
62818         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62819         (amemxfrm): Renamed from memxfrm.
62820         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62821         (amemxfrm): Renamed from memxfrm.
62822         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62823         * NEWS: Mention the change.
62824         * MODULES.html.sh (String handling <string.h>): Update.
62825         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62826         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62827         * lib/unicase/u16-casexfrm.c: Likewise.
62828         * lib/unicase/u32-casexfrm.c: Likewise.
62829         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62830         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62831         * lib/uninorm/u16-normxfrm.c: Likewise.
62832         * lib/uninorm/u32-normxfrm.c: Likewise.
62833         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62834         memxfrm.
62835         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62836         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62837         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62838         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62839         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62840         Suggested by Paul Eggert.
62842 2010-08-14  Bruno Haible  <bruno@clisp.org>
62844         Tests for module 'astrxfrm'.
62845         * modules/astrxfrm-tests: New file.
62846         * tests/test-astrxfrm.c: New file.
62848         New module 'astrxfrm'.
62849         * lib/astrxfrm.h: New file.
62850         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62851         * modules/astrxfrm: New file.
62853 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62855         regex: Tweak doc.
62856         * doc/regex.texi (Overview): Don't mention regex.c.
62857         (GNU Regular Expression Compiling): Likewise.
62858         (Match-end-of-line Operator): Mention 'not_eol'.
62860 2010-08-14  Brian Gough  <bjg@gnu.org>
62861             Bruno Haible  <bruno@clisp.org>
62863         git-merge-changelog: add doc relating to use with bzr and hg.
62864         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62866 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62868         pthread: fix pthread.h creation for srcdir != builddir
62869         * modules/pthread (Makefile.am): Fix the rule to work also in a
62870         non-srcdir build.
62872 2010-08-13  Karl Berry  <karl@gnu.org>
62874         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62875         * doc/posix-*/*: force line break before @url of POSIX
62876         specifications.
62877         Suggested by Werner Lemberg.
62879 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62881         strtod: fix const diagnostic
62882         * lib/strtod.c (strtod): Don't assign const char * to char *,
62883         as this elicits a warning from GCC when warnings are enabled.
62885 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62886         and Eric Blake  <eblake@redhat.com>
62888         copy-acl: ignore ENOTSUP on HP-UX
62889         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62890         so that it is available for HP-UX.
62891         * lib/copy-acl.c (qcopy_acl): Use it.
62892         Reported by Patrick M. Callahan.
62894 2010-08-10  Eric Blake  <eblake@redhat.com>
62896         open, chown: relax license
62897         * modules/open (License): Change to LGPLv2+, with consent by all
62898         authors, for use in augeas.
62899         * modules/chown (License): Likewise.
62900         * modules/lchown (Likewise): Likewise.
62901         Requested by Adam Stokes.
62903 2010-08-09  Karl Berry  <karl@gnu.org>
62905         * build-aux/ar-lib: new file, import from Automake.
62906         * config/srclist.txt: autocheck for updates.
62908 2010-08-09  Eric Blake  <eblake@redhat.com>
62910         readlinkat: adjust client modules
62911         * modules/areadlinkat (Depends-on): Use readlinkat, not
62912         symlinkat.
62913         * modules/areadlinkat-with-size (Depends-on): Likewise.
62915         mknod: be more vocal about danger of running tests as root
62916         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62917         root, since that is just asking for problems.
62918         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62920         readlinkat: split into its own module
62921         * modules/symlinkat: Split readlinkat...
62922         * modules/readlinkat: ...into separate module.
62923         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62924         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62925         * lib/symlinkat.c (readlinkat): Move...
62926         * lib/readlinkat.c: ...into new file.
62927         * modules/symlinkat-tests: Split readlinkat test...
62928         * modules/readlinkat-tests: ...into separate module.
62929         * tests/test-symlinkat.c: Split...
62930         * tests/test-readlinkat.c: ...into new file.
62931         * NEWS: Document the split.
62932         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62933         * lib/unistd.in.h (readlinkat): Likewise.
62934         Suggested by Bruno Haible.
62936 2010-08-08  Bruno Haible  <bruno@clisp.org>
62938         memxfrm: Speed up.
62939         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62940         that usually only one call to strxfrm is necessary for each string
62941         part.
62942         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62944 2010-08-07  Karl Berry  <karl@gnu.org>
62946         * doc/posix-headers/limits.texi,
62947         * doc/posix-functions/malloc.texi,
62948         * doc/posix-functions/strsignal.texi: missing @item.
62949         * doc/ld-version-script.texi: spurious leading i.
62950         * doc/regex.texi (Interval Operators): no commas inside @var.
62952 2010-08-01  Bruno Haible  <bruno@clisp.org>
62954         Integrate the regex documentation.
62955         * doc/gnulib.texi: Define 'cn' index.
62956         (Regular expressions): New a chapter that includes regex.texi and
62957         regexprops-generic.texi.
62958         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62959         syntax.
62961         Whitespace cleanup.
62962         * doc/regex.texi: Remove trailing spaces.
62964         Add regex documentation.
62965         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62966         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62967         Written by Kathy A. Hargreaves and Karl Berry.
62969 2010-08-01  Bruno Haible  <bruno@clisp.org>
62971         link: Update documentation.
62972         * doc/posix-functions/link.texi: Update regarding Solaris.
62974 2010-07-31  Bruno Haible  <bruno@clisp.org>
62976         Update modules list.
62977         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62978         (String handling <string.h>): Add memcmp2, memxfrm.
62979         (Container data structures): Add xlist, xsublist, xoset.
62980         (Core language properties): Add alignof, unused-parameter.
62981         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62982         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62983         (Unibyte characters <ctype.h>): New section.
62984         (String handling <string.h>): New section.
62985         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62986         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62987         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62988         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62989         tan, tanh, tanl, y0, y1, yn.
62990         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62991         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62992         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62993         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62994         unlockpt, vdprintf, vdprintf-posix.
62995         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62996         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62997         xconcat-filename.
62998         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62999         getdtablesize, pipe2, pipe2-safer.
63000         (Security): New section.
63001         (Networking functions): Add accept4.
63002         (Signal handling): Add sigpipe.
63003         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
63004         mbmemcasecoll.
63005         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
63006         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
63007         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
63008         pipe-filter-ii.
63009         (Misc): Add argp-version-etc, login_tty, parse-duration.
63011 2010-07-31  Bruno Haible  <bruno@clisp.org>
63013         Improve doc in MODULES.html.
63014         * modules/linkat (Description): Add the word "function".
63015         * modules/mkfifo (Description): Likewise.
63016         * modules/mknod (Description): Likewise.
63017         * modules/remove (Description): Likewise.
63018         * modules/renameat (Description): Likewise.
63019         * modules/stat (Description): Likewise.
63020         * modules/symlink (Description): Likewise.
63021         * modules/unlink (Description): Likewise.
63023 2010-07-31  Bruno Haible  <bruno@clisp.org>
63025         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
63026         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
63027         option --enable/disable-c++ instead of --enable/disable-cxx.
63028         * NEWS: Mention the change.
63030 2010-07-31  Bruno Haible  <bruno@clisp.org>
63032         readlink, areadlink: Relax test a bit.
63033         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
63034         alternative to ENOTDIR.
63035         * tests/test-areadlink.h (test_areadlink): Likewise.
63036         Reported by Rainer Tammer.
63038 2010-07-31  Bruno Haible  <bruno@clisp.org>
63040         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
63041         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
63042         character, perform the search using U_STRCHR.
63043         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
63044         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
63045         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
63046         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
63047         Suggested by Paolo Bonzini.
63049 2010-07-31  Bruno Haible  <bruno@clisp.org>
63051         unistr/u*-strstr: Fix dependencies.
63052         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
63053         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
63054         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
63056 2010-07-31  Bruno Haible  <bruno@clisp.org>
63058         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
63059         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
63060         the beginning of the loop.
63061         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
63062         cases in 'switch' statement.
63064         unistr/u8-strchr: Fix several bugs.
63065         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
63066         the string. When not found, return NULL, not a pointer near the end.
63068         More tests for unistr/u8-strchr.
63069         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
63070         that the function does not read past the first occurrence of the byte
63071         being searched.
63072         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
63073         * tests/unistr/test-u16-strchr.c (main): New function.
63074         * tests/unistr/test-u32-strchr.c (main): New function.
63076 2010-07-31  Bruno Haible  <bruno@clisp.org>
63078         posix-modules: Ignore backup files of documentation files.
63079         * posix-modules: grep only through files named *.texi.
63081 2010-07-31  Bruno Haible  <bruno@clisp.org>
63083         symlinkat: Fix documentation.
63084         * doc/posix-functions/readlinkat.texi: Fix module name.
63086 2010-07-31  Bruno Haible  <bruno@clisp.org>
63088         fchownat: Replace also when chown has the trailing slash bug.
63089         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
63090         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
63091         introduced on 2010-04-10.
63092         Reported by Rainer Tammer.
63094 2010-07-31  Bruno Haible  <bruno@clisp.org>
63096         linkat: Work around AIX 7.1 bug.
63097         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
63098         whether linkat handles trailing slash correctly. If not, replace linkat
63099         and define LINKAT_TRAILING_SLASH_BUG.
63100         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
63101         check whether (fd1,file1) points to a directory if file1 or file2 ends
63102         in a slash. Code taken from lib/link.c.
63103         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
63104         Reported by Rainer Tammer.
63106 2010-07-31  Bruno Haible  <bruno@clisp.org>
63108         Correctly determine whether pow is available in libc on AIX 7 with xlc.
63109         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
63110         This disables an xlc optimization that was causing wrong test results.
63111         Reported by Rainer Tammer.
63113 2010-07-31  Bruno Haible  <bruno@clisp.org>
63115         iconv: Work around AIX 6.1..7.1 bug.
63116         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
63117         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
63118         cross-compiling, guess no on all versions of AIX.
63119         Reported by Rainer Tammer.
63121 2010-07-31  Bruno Haible  <bruno@clisp.org>
63123         readlink: Relax test a bit.
63124         * tests/test-readlink.h (test_readlink): Allow different errno value
63125         when readlink is called with a file name that ends in / and refers to
63126         a file.
63127         Suggested by Eric Blake.
63128         Reported by Rainer Tammer.
63130 2010-07-31  Bruno Haible  <bruno@clisp.org>
63132         copysign: Does not require -lm on glibc systems.
63133         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
63134         gl_COMMON_DOUBLE_MATHFUNC.
63135         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
63137 2010-07-31  Bruno Haible  <bruno@clisp.org>
63139         duplocale: Work around AIX 7.1 bug.
63140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
63141         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
63142         * lib/duplocale.c (rpl_duplocale): Update comment.
63143         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
63144         Reported by Rainer Tammer.
63146 2010-07-30  Bruno Haible  <bruno@clisp.org>
63148         dirfd: Avoid link error on AIX 7.1.
63149         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
63150         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
63151         exist, set REPLACE_DIRFD.
63152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
63153         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
63154         * doc/posix-functions/dirfd.texi: Update.
63155         Reported by Rainer Tammer.
63157 2010-07-30  Eric Blake  <eblake@redhat.com>
63159         strtod: next round of AIX fixes
63160         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
63161         exponent.
63162         * tests/test-strtod.c (main): Enhance tests.
63163         * doc/posix-functions/strtod.texi (strtod): Document next bug.
63164         Reported by Rainer Tammer.
63166         futimens: fix configure check
63167         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
63168         Reported by Bruno Haible.
63170 2010-07-30  Bruno Haible  <bruno@clisp.org>
63172         getline: Update regarding AIX.
63173         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
63174         Reported by Rainer Tammer.
63176 2010-07-30  Bruno Haible  <bruno@clisp.org>
63178         wcwidth: Drop replacement on AIX 7.
63179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
63180         AIX 7.
63181         Reported by Rainer Tammer.
63183 2010-07-30  Bruno Haible  <bruno@clisp.org>
63185         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
63186         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
63187         a 'char *'.
63188         Reported by Rainer Tammer.
63190 2010-07-30  Bruno Haible  <bruno@clisp.org>
63192         unlink: Update regarding AIX.
63193         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
63194         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
63195         Reported by Rainer Tammer.
63197 2010-07-30  Bruno Haible  <bruno@clisp.org>
63199         symlink: Update regarding AIX.
63200         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
63201         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
63202         Reported by Rainer Tammer.
63204 2010-07-30  Bruno Haible  <bruno@clisp.org>
63206         strndup: Update regarding AIX.
63207         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
63208         AIX 7.
63209         Reported by Rainer Tammer.
63211 2010-07-30  Bruno Haible  <bruno@clisp.org>
63213         stat: Update regarding AIX.
63214         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
63215         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
63216         Reported by Rainer Tammer.
63218 2010-07-30  Bruno Haible  <bruno@clisp.org>
63220         truncl: Fix autoconf test.
63221         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
63222         whether truncl works.
63223         Reported by Rainer Tammer.
63225 2010-07-30  Bruno Haible  <bruno@clisp.org>
63227         round: Update regarding AIX.
63228         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
63229         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
63230         Reported by Rainer Tammer.
63232 2010-07-30  Bruno Haible  <bruno@clisp.org>
63234         rename: Update regarding AIX.
63235         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
63236         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
63237         Reported by Rainer Tammer.
63239 2010-07-30  Bruno Haible  <bruno@clisp.org>
63241         printf.m4: Update regarding AIX.
63242         * m4/printf.m4: Update comments regarding AIX.
63243         Reported by Rainer Tammer.
63245 2010-07-30  Bruno Haible  <bruno@clisp.org>
63247         iconv: Update regarding AIX.
63248         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
63249         AIX 7.
63250         Reported by Rainer Tammer.
63252 2010-07-30  Bruno Haible  <bruno@clisp.org>
63254         getopt: Update regarding AIX.
63255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
63256         no on AIX.
63257         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
63258         Reported by Rainer Tammer.
63260 2010-07-30  Bruno Haible  <bruno@clisp.org>
63262         ldexpl; Update regarding AIX.
63263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
63264         on AIX 7.
63265         Reported by Rainer Tammer.
63267 2010-07-30  Bruno Haible  <bruno@clisp.org>
63269         frexpl: Update regarding AIX.
63270         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
63271         on AIX 7.
63272         Reported by Rainer Tammer.
63274 2010-07-30  Bruno Haible  <bruno@clisp.org>
63276         open, fopen: Update regarding AIX.
63277         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
63278         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63279         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
63280         * doc/posix-functions/fopen.texi: Likewise.
63281         Reported by Rainer Tammer.
63283 2010-07-30  Bruno Haible  <bruno@clisp.org>
63285         chown: Update doc regarding AIX.
63286         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
63287         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
63288         Reported by Rainer Tammer.
63290 2010-07-30  Eric Blake  <eblake@redhat.com>
63292         strtod: fix bug in replacement function on AIX
63293         * lib/strtod.c (strtod): Special case broken "0x" parse in
63294         underlying strtod.
63295         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
63296         * doc/posix-functions/strtod.texi (strtod): Likewise.
63297         Reported by Rainer Tammer.
63299 2010-07-30  Bruno Haible  <bruno@clisp.org>
63301         mbrlen: Fix cross-compilation guess for AIX.
63302         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
63303         guess. Leftover from 2008-12-22.
63305 2010-07-30  Bruno Haible  <bruno@clisp.org>
63307         mbrtowc: Fix cross-compilation guess for AIX.
63308         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
63309         guess. Leftover from 2008-12-21.
63311 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
63313         init.sh: work around trap limitation of some shells
63314         * tests/init.sh (setup_): Move exit trap outside of shell function.
63316 2010-07-29  Eric Blake  <eblake@redhat.com>
63318         strtod: aid debugging
63319         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
63320         understanding why strtod is rejected.
63322 2010-07-28  Bruno Haible  <bruno@clisp.org>
63324         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
63325         * lib/unistr/u8-chr.c: Include <string.h>.
63326         * tests/unistr/test-u8-chr.c: Likewise.
63327         * tests/unistr/test-u16-chr.c: Likewise.
63328         * tests/unistr/test-u32-chr.c: Likewise.
63329         * tests/unistr/test-u8-strchr.c: Likewise.
63330         * tests/unistr/test-u16-strchr.c: Likewise.
63331         * tests/unistr/test-u32-strchr.c: Likewise.
63332         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
63333         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
63334         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
63335         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
63337 2010-07-28  Bruno Haible  <bruno@clisp.org>
63339         Use spaces for indentation, not tabs.
63340         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
63342 2010-07-27  Bruno Haible  <bruno@clisp.org>
63344         mbspcasecmp: Fix function specification.
63345         * lib/string.in.h (mbspcasecmp): Fix specification comment.
63346         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
63347         Reported by Eric Blake <eblake@redhat.com>.
63349 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
63351         timespec: use cast and not conditional, as truncation isn't possible
63352         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
63353         instead of a conditional.  Comment about the situation in more detail.
63354         This undoes most of the 2009-10-29 patch.
63356 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
63358         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
63359         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
63360         * lib/unistr/u8-strchr.c: Likewise.
63361         * modules/unistr/u8-chr: Depend on memchr.
63363         unistr/u*-strchr: add tests
63364         * modules/unistr/u8-strchr-tests: New file.
63365         * modules/unistr/u16-strchr-tests: New file.
63366         * modules/unistr/u32-strchr-tests: New file.
63367         * tests/unistr/test-strchr.h: New file.
63368         * tests/unistr/test-u8-strchr.c: New file.
63369         * tests/unistr/test-u16-strchr.c: New file.
63370         * tests/unistr/test-u32-strchr.c: New file.
63372         unistr/u*-chr: test multibyte sequences more
63373         * tests/unistr/test-chr.h: Do complete testing of the characters in the
63374         test vector.
63375         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
63376         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
63377         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
63379         unistr/u*-chr: test multibyte sequences
63380         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63382         unistr/u*-chr: prepare for multibyte tests
63383         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63384         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63385         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63386         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63387         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63388         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63390 2010-07-18  Bruno Haible  <bruno@clisp.org>
63392         unistr/u8-strchr: Optimize non-ASCII argument case.
63393         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63394         because the first byte often matches anyway.
63395         Reported by Pádraig Brady <P@draigbrady.com>.
63397 2010-07-15  Karl Berry  <karl@gnu.org>
63399         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63401 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63403         getcwd: on Solaris, work better if ancestors are inaccessible
63404         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63405         buffer and size, try again with a large buffer.  This works better
63406         on Solaris, since its getcwd succeeds even if the path to the root
63407         is inaccessible, and this is helpful in common cases such as .zfs
63408         hidden directories.  Problem reported by J Chapman Flack in
63409         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63410         Use system getcwd if it's declared, not merely if it's partly
63411         working; use the partly-working test only to avoid needless effort
63412         if the system getcwd fails.
63413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63414         comment that was already obsolete and is now even more obsolete.
63415         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63416         now might call strdup.
63418 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63420         pthread: Add enough so that coreutils/src/sort.c compiles.
63421         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63422         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63423         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63424         Include <sys/types.h>, in case it defines pthread_t.
63425         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63426         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63427         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63428         (pthread_rwlockattr_t, pthread_spinlock_t):
63429         New typedefs, if HAVE_PTHREAD_T is not defined.
63430         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63431         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63432         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63433         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63434         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63435         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63436         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63437         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63438         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63439         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63440         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63441         New macros.
63442         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63443         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63444         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63445         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63446         (pthread_spin_unlock): New dummy functions.
63447         (pthread_create): Return EAGAIN; don't set errno.
63448         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63449         require AC_C_INLINE.
63450         * modules/pthread (Depends-on): Add sched, time.
63451         (pthread.h): Use AM_V_GEN.
63453 2010-07-13  Bruno Haible  <bruno@clisp.org>
63455         striconveh: Don't malloc memory if the result buffer is sufficient.
63456         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63457         buffer if its size is sufficient.
63458         Reported by Ludovic Courtès <ludo@gnu.org>.
63460 2010-07-13  Bruno Haible  <bruno@clisp.org>
63462         strtod: Add safety check.
63463         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63465 2010-07-12  Bruno Haible  <bruno@clisp.org>
63467         Unify tests that set gl_cv_func_ldexpl_no_libm.
63468         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63469         gl_FUNC_LDEXPL.
63470         (gl_FUNC_LDEXPL): Invoke it.
63471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63473 2010-07-12  Bruno Haible  <bruno@clisp.org>
63475         Unify tests that set gl_cv_func_ldexp_no_libm.
63476         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63477         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63478         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63479         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63480         * modules/strtod (Files): Add m4/ldexp.m4.
63482 2010-07-12  Bruno Haible  <bruno@clisp.org>
63484         Unify tests that set gl_cv_func_frexpl_no_libm.
63485         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63486         gl_FUNC_FREXPL_NO_LIBM.
63487         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63488         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63490 2010-07-12  Bruno Haible  <bruno@clisp.org>
63492         Unify tests that set gl_cv_func_frexp_no_libm.
63493         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63494         gl_FUNC_FREXP_NO_LIBM.
63495         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63496         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63498 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63500         memcoll: clarify sizes versus lengths, document better, and tweak perf
63501         * lib/memcoll.c (strcoll_loop, memcoll0):
63502         Improve quality of descriptive comments.  Name variables
63503         consistently as to whether they are lengths (which do not include
63504         terminating null) versus sizes (which do).
63505         * lib/xmemcoll.c (xmemcoll0): Likewise.
63506         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63507         returned when s1size == 0; this is easier to compile and saves
63508         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63510 2010-07-12  Bruno Haible  <bruno@clisp.org>
63512         Tests for module '_Exit'.
63513         * modules/_Exit-tests: New file.
63514         * tests/test-_Exit.sh: New file.
63515         * tests/test-_Exit.c: New file.
63517         New module '_Exit'.
63518         * lib/stdlib.in.h (__attribute__): New macro.
63519         (_Exit): New declaration.
63520         * lib/_Exit.c: New file.
63521         * m4/_Exit.m4: New file.
63522         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63523         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63524         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63525         * modules/_Exit: New file.
63526         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63527         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63529 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63531         strtod: make it more-accurate typically, and don't require libm
63532         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63533         Include limits.h.  Don't include string.h.
63534         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63535         (locale_isspace): New function, so that no casts are needed to
63536         check whether *s is a space.
63537         (ldexp): Provide an unused dummy if not available.
63538         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63539         (strtod): Use them.  This implementation prefers to use the
63540         underlying strtod if available, falling back on our own code
63541         only to fix known bugs.  This is more likely to produce an
63542         accurate result.  Also, it avoids the use of libm functions.
63543         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63544         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63545         was absent, but it caused a test failure with coreutils.
63546         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63547         with libm.
63548         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63549         * modules/strtod-tests (Makefile.am): Likewise.
63551 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63552             Bruno Haible  <bruno@clisp.org>
63554         unistr/u8-strchr: Optimize ASCII argument case.
63555         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63557 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63559         (x)memcoll: minor tweaks
63560         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63561         is after the type that it qualifies.
63562         (memcoll0): Likewise.
63563         * lib/memcoll.h (memcoll0): Likewise.
63564         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63565         * lib/xmemcoll.h (xmemcoll0): Likewise.
63566         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63567         differs from memcoll in that the NUL byte is part of the argument.
63568         Omit the abort-checks, as performance is a real issue here.  Plus,
63569         the checks were wrong anyway (an off-by-one error).  Omit local
63570         variable 'diff', as it's a bit clearer that way.
63571         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63572         no longer needed.
63574 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63576         (x)memcoll: speedup when input is known to be NUL delimited
63577         * lib/memcoll.c: Include stdlib.
63578         (memcoll0): New function.
63579         (strcoll_loop): New function, refactored for use in both memcoll
63580         and memcoll0.
63581         * lib/memcoll.h (memcoll0): Add prototype.
63582         * lib/xmemcoll.c (xmemcoll0): New function.
63583         (collate_error): New function, refactored for use in both xmemcoll
63584         and xmemcoll0.
63585         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63586         * m4/memcoll.m4: add inline invocation.
63588 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63590         * build-aux/bootstrap: Remove any local translations
63591         from the translation project synchronization directory,
63592         so that local only translations are not distributed.
63594 2010-07-04  Bruno Haible  <bruno@clisp.org>
63596         fsusage: Clarify which code applies to which platforms.
63597         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63598         platform.
63599         * lib/fsusage.c (get_fs_usage): Likewise.
63601 2010-07-04  Bruno Haible  <bruno@clisp.org>
63603         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63604         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63605         Reported by Martin Lambers <marlam@marlam.de>.
63607 2010-07-04  Jim Meyering  <meyering@redhat.com>
63609         hash: once again explicitly disallow insertion of NULL
63610         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63611         inserting a NULL pointer cannot work with these functions.
63612         Add a comment with details.
63613         This reverts part of the 2010-07-01 commit, 5bef1a35
63614         "hash: extend module to deal with non-pointer keys".
63616 2010-07-01  Bruno Haible  <bruno@clisp.org>
63618         stdbool: Update doc.
63619         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63620         Info from Christian Weisgerber <naddy@mips.inka.de>.
63622 2010-07-01  Jim Meyering  <meyering@redhat.com>
63624         hash: extend module to deal with non-pointer keys
63625         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63626         but that allows insertion of non-pointer entries.
63627         Do not disallow an ENTRY value of NULL.
63628         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63629         * lib/hash.h (hash_insert0): Declare.
63631 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63633         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63634         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63635         not present (i.e. with autoconf 2.59 and when using gettextize, not
63636         gnulib), require AC_GNU_SOURCE instead.
63638 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63640         idpriv-drop: Fix tests.
63641         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63642         not to the test-idpriv-droptemp program.
63644 2010-06-29  Bruno Haible  <bruno@clisp.org>
63646         string: Fix syntax error with g++ 2.96.
63647         * lib/string.in.h (__pure__): Remove definition.
63648         (_GL_ATTRIBUTE_PURE): New macro.
63649         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63650         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63651         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63653 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63655         unitypes: Fix bug introduced on 2010-05-18.
63656         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63658 2010-06-22  Eric Blake  <eblake@redhat.com>
63660         memmem: slight optimization
63661         * lib/str-two-way.h (critical_factorization): Update comments.
63662         Reduce work during factorization phase.
63663         Reported by Carlos Bueno <carlos@bueno.org>.
63665 2010-06-21  Bruno Haible  <bruno@clisp.org>
63667         Fix HAVE_CALLOC_POSIX misnomer.
63668         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63669         !HAVE_CALLOC_POSIX.
63670         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63671         HAVE_CALLOC_POSIX.
63672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63673         instead of HAVE_CALLOC_POSIX.
63674         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63675         HAVE_CALLOC_POSIX.
63677         Use modern idiom for calloc() replacement.
63678         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63679         AC_FUNC_CALLOC.
63680         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63681         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63682         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63683         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63684         (gl_REPLACE_CALLOC): New macro.
63686 2010-06-21  Bruno Haible  <bruno@clisp.org>
63688         Fix HAVE_REALLOC_POSIX misnomer.
63689         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63690         !HAVE_REALLOC_POSIX.
63691         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63692         HAVE_REALLOC_POSIX.
63693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63694         instead of HAVE_REALLOC_POSIX.
63695         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63696         HAVE_REALLOC_POSIX.
63698         Use modern idiom for realloc() replacement.
63699         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63700         AC_FUNC_REALLOC.
63701         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63702         Autoconf's AC_FUNC_REALLOC.
63703         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63704         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63705         (gl_REPLACE_REALLOC): New macro.
63706         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63708 2010-06-21  Bruno Haible  <bruno@clisp.org>
63710         Fix HAVE_MALLOC_POSIX misnomer.
63711         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63712         !HAVE_MALLOC_POSIX.
63713         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63714         HAVE_MALLOC_POSIX.
63715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63716         instead of HAVE_MALLOC_POSIX.
63717         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63718         HAVE_MALLOC_POSIX.
63720         Use modern idiom for malloc() replacement.
63721         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63722         AC_FUNC_MALLOC.
63723         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63724         Autoconf's AC_FUNC_MALLOC.
63725         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63726         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63727         (gl_REPLACE_MALLOC): New macro.
63728         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63730 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63732         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63733         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63734         This macro takes 3 arguments, not 4.
63736 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63738         ipv6: fix detection under mingw
63739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63740         in6_addr.
63742 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63744         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63745         that strtod() works when cross-compiling to a glibc version known
63746         to work.
63748 2010-06-15  Bruno Haible  <bruno@clisp.org>
63750         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63752 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63754         select: Correct timeout.
63755         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63757 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63759         git-version-gen: init shell var to avoid env var influence
63760         * build-aux/git-version-gen (v): Init shell var to empty.
63762 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63764         priv-set: Don't assume that priv.h exists merely because getppriv does.
63765         See Jan Andersen's bug report about AIX 5L in
63766         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63767         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63768         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63769         * lib/priv-set.h: Likewise.
63770         * tests/test-priv-set.c: Likewise.
63772 2010-06-13  Bruno Haible  <bruno@clisp.org>
63774         relocatable: Make it easier to test whether to install wrappers.
63775         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63776         RELOCATABLE_VIA_WRAPPER.
63778 2010-06-13  Bruno Haible  <bruno@clisp.org>
63780         gnulib-tool: Display specified modules and dependencies differently.
63781         * gnulib-tool (func_show_module_list): New function.
63782         (func_import, func_create_testdir): Invoke it.
63783         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63785 2010-06-13  Bruno Haible  <bruno@clisp.org>
63787         gnulib-tool: Align code of func_import and func_create_testdir.
63788         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63789         specified_modules.
63791 2010-06-12  Jim Meyering  <meyering@redhat.com>
63793         test-inttostr: avoid spurious failure on Solaris 9
63794         * tests/test-inttostr.c (main): Skip the test when snprintf fails
63795         to accept "%ju".  Reported by Bruno Haible.
63797 2010-06-11  Jim Meyering  <meyering@redhat.com>
63799         test-sys_socket: mark variables as used more readably
63800         * tests/test-sys_socket.c (main): Mark otherwise unused variables
63801         as "used" explicitly via (void) statement casts.  This is more
63802         readable than using them in an artificial return expression.
63803         Suggestion from Bruno Haible.
63805 2010-06-11  Bruno Haible  <bruno@clisp.org>
63807         Avoid some more warnings from "gcc -Wwrite-strings".
63808         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
63809         to 'const char *'.
63810         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
63811         * tests/test-c-strcasestr.c (main): Likewise.
63812         * tests/test-mbscasestr1.c (main): Likewise.
63813         * tests/test-mbscasestr2.c (main): Likewise.
63814         * tests/test-memmem.c (main): Likewise.
63815         * tests/test-strstr.c (main): Likewise.
63816         * tests/test-strcasestr.c (main): Likewise.
63818 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63820         init.sh: change framework_failure_ to fail with status 99, not 1
63821         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63822         automake's parallel-tests rule that this is an unexpected failure,
63823         even if the test is listed in XFAIL_TESTS.
63825 2010-06-11  Jim Meyering  <meyering@redhat.com>
63827         test-inttostr: avoid warnings about 4-6KB literal strings
63828         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63829         Include "macros.h", for its definition of ASSERT.
63830         (CK): s/assert/ASSERT/
63831         * modules/inttostr-tests (Files): Add macros.h.
63833         init.sh: don't use $ME_ or skip_ before they are defined
63834         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63835         their first uses.  Also hoist their companions: warn_, fail_,
63836         framework_failure_, $stderr_fileno.  Prompted by a patch from
63837         Stefano Lattarini.
63839         test-sys_socket: avoid set-but-not-used warnings from gcc
63840         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63841         avoid warning about set-but-not-used variables.
63843         test-xvasprintf: avoid 'const' discard warnings
63844         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63845         "const" when assigning from literal strings.
63846         (test_xasprintf): Add "void" in function argument list to placate
63847         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63849         tests: avoid compilation warnings in argmatch and exclude tests...
63850         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63851         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63852         Since it always exits, declare with the "noreturn" attribute.
63853         * tests/test-argmatch.c: Likewise.
63855         tests: avoid 'const' discard warnings in mbsstr tests
63856         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63857         * tests/test-mbsstr2.c (main): Likewise.
63859         test-verify: avoid warning from gcc's -Wmissing-declarations
63860         * tests/test-verify.c (function): Declare to be static.
63862         test-inttostr.c: include <string.h> for use of strcmp
63863         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63865         test-linkat: avoid failed assertion on "other" architectures
63866         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63867         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63868         sparc: https://bugs.launchpad.net/bugs/591968
63870 2010-06-11  Jim Meyering  <meyering@redhat.com>
63872         printf.m4: avoid autoconf's "Expanded Before Required" warning
63873         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63874         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63875         autoconf warning.
63877 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63879         Replacement header templates are now named with ".in", not "_".
63880         * doc/gnulib-intro.texi: Correct.
63882 2010-06-10  Jim Meyering  <meyering@redhat.com>
63884         inttostr-tests: depend on snprintf, not snprintf-posix
63885         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63886         snprintf-posix, to avoid this aclocal failure:
63887           missing file gnulib-tests/vasnprintf.c
63888           configure.ac:45: error: expected source file, required through \
63889           AC_LIBSOURCES, not found
63891 2010-06-10  Jim Meyering  <meyering@redhat.com>
63893         inttostr: add a new function, inttostr, and tests
63894         The namesake function was not available.  The existence of the
63895         template file, inttostr.c makes its addition nontrivial.
63896         * lib/anytostr.c: Rename from inttostr.c.
63897         (anytostr): Rename from inttostr.
63898         * lib/inttostr.c: New file.
63899         * modules/inttostr (Files): Add anytostr.c.
63900         (Makefile.am): Set lib_SOURCES instead of ...
63901         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63902         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63903         * lib/offtostr.c: Likewise.
63904         * lib/uinttostr.c: Likewise.
63905         * lib/umaxtostr.c: Likewise.
63906         * modules/inttostr-tests: New file.
63907         * tests/test-inttostr.c: New file.  Test these functions.
63909 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63910             Bruno Haible  <bruno@clisp.org>
63912         Add "Extending Gnulib" chapter to manual.
63913         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63914         chapter.
63915         (Extending Gnulib): New chapter.
63916         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63917         chapter.
63919 2010-06-09  Bruno Haible  <bruno@clisp.org>
63921         Avoid relocwrapper link errors due to gnulib replacement functions.
63922         * lib/areadlink.c: Use the system's malloc, realloc functions.
63923         (areadlink): Set errno to ENOMEM explicitly.
63924         * modules/areadlink (Depends-on): Remove malloc-posix.
63925         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63927 2010-06-09  Bruno Haible  <bruno@clisp.org>
63929         Avoid relocwrapper link errors due to gnulib replacement functions.
63930         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63931         * lib/malloca.c: Likewise.
63932         * lib/relocatable.c: Likewise.
63933         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63934         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63935         * lib/setenv.c: Use the system's malloc, realloc functions.
63936         * lib/strerror.c: Use the system's sprintf function.
63937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63939 2010-06-04  Bruno Haible  <bruno@clisp.org>
63941         Prefer documented low-level autoconf macro names.
63942         * m4/lib-link.m4: Use m4_translit instead of translit.
63943         * m4/environ.m4: Likewise.
63944         * m4/mathfunc.m4: Likewise.
63945         * m4/onceonly.m4: Likewise.
63946         * m4/stdint.m4: Likewise.
63947         Suggested by Eric Blake.
63949 2010-06-04  Martin Lambers  <marlam@marlam.de>
63950             Bruno Haible  <bruno@clisp.org>
63952         havelib: Allow library names with '+' characters.
63953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63954         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63956 2010-06-09  Bruno Haible  <bruno@clisp.org>
63958         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63959         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63960         realloc failed.
63962 2010-06-08  Peter Simons  <simons@cryp.to>
63964         maint.mk: make the news-check rule more configurable
63965         * top/maint.mk (news-check-lines-spec): New variable.
63966         (news-check): Use "sed -n 1,10p" in place of "head".
63968 2010-06-07  Jim Meyering  <meyering@redhat.com>
63970         do-release-commit-and-tag: fix typo in --help
63971         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63973         regex: avoid new dead-code warning with gcc-4.6.0
63974         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63975         if-block containing a while-loop.  It's been unused for at least
63976         5 years.
63978 2010-06-05  Bruno Haible  <bruno@clisp.org>
63980         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63981         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63983 2010-06-04  Bruno Haible  <bruno@clisp.org>
63985         Update to GNU gettext 0.18.1.
63986         * modules/gettext (configure.ac): Require gettext infrastructure from
63987         version 0.18.1.
63989 2010-06-03  Bruno Haible  <bruno@clisp.org>
63991         Don't use AC_LIBOBJ with file names in subdirectories.
63992         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63993         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63994         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63995         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63996         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63997         gl_LIBUNISTRING_LIBSOURCE.
63998         (Makefile.am): Augment lib_SOURCES here, conditionally.
63999         * NEWS: Drop requirement for Automake option 'subdir-objects'.
64001 2010-06-03  Bruno Haible  <bruno@clisp.org>
64003         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
64004         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
64005         expansion does not end with a newline.
64006         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
64007         unnecessary newline.
64009 2010-06-03  Bruno Haible  <bruno@clisp.org>
64011         Reduce dependencies.
64012         * tests/test-quotearg.h: New file, extracted from
64013         tests/test-quotearg.c.
64014         * tests/test-quotearg-simple.c: New file, extracted from
64015         tests/test-quotearg.c.
64016         * tests/test-quotearg.c: Don't include <ctype.h>.
64017         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
64018         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
64019         use_quote_double_quotes, use_quotearg_colon): Moved to
64020         tests/test-quotearg.h.
64021         (results_g, flag_results, custom_quotes, custom_results): Moved
64022         to tests/test-quotearg-simple.c.
64023         (main): Moved the part that does not depend on gettext to
64024         tests/test-quotearg-simple.c. Return 77 if the test cannot be
64025         performed.
64026         * modules/quotearg-simple: New file.
64027         * modules/quotearg-simple-tests: New file.
64028         * modules/quotearg (Depends-on): Add quotearg-simple.
64029         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
64030         (Files): Add tests/test-quotearg.h.
64031         Reported by Paolo Bonzini.
64033 2010-06-03  Bruno Haible  <bruno@clisp.org>
64035         Reduce dependencies.
64036         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
64038 2010-06-03  Bruno Haible  <bruno@clisp.org>
64040         time: Undefine more broken macros.
64041         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
64042         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
64043         Reported by Eric Blake.
64045 2010-06-03  Bruno Haible  <bruno@clisp.org>
64047         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
64048         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
64049         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
64050         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
64051         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
64052         Reported by Ludovic Courtès <ludo@gnu.org>.
64054 2010-06-02  Eric Blake  <eblake@redhat.com>
64056         time: work with mingw + pthreads-win32 library
64057         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
64058         if timespec is defined only in pthread.h.
64059         * modules/time (Makefile.am): Substitute it.
64060         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
64061         <pthread.h>, when needed.
64062         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
64063         from the library.
64065 2010-05-31  Bruno Haible  <bruno@clisp.org>
64067         Avoid expanding two macros in the wrong order.
64068         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
64069         gl_LIBUNISTRING if it is defined.
64070         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
64071         autoconf >= 2.64.
64072         Reported by Ludovic Courtès <ludo@gnu.org>.
64074 2010-05-27  Jim Meyering  <meyering@redhat.com>
64076         maint.mk: also prohibit "#undef" of always-defined symbols
64077         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
64078         Allow more than one space before the symbol name.
64079         (sc_prohibit_always-defined_macros): Use grep's -E, now that
64080         the regexp uses alternation.
64082 2010-05-26  Eric Blake  <eblake@redhat.com>
64084         maint.mk: avoid echo -e
64085         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
64086         Convert all uses of echo -* to printf.
64087         Reported by Matthias Bolte.
64089 2010-05-25  Bruno Haible  <bruno@clisp.org>
64091         Update to GNU gettext 0.18, part 2.
64092         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
64093         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
64095 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64097         Add missing include in test-pwrite.c.
64098         * tests/test-pwrite.c: Include string.h, for strcmp.
64100 2010-05-24  Bruno Haible  <bruno@clisp.org>
64102         * NEWS: Mention requirement for Automake option 'subdir-objects'.
64104 2010-05-24  Bruno Haible  <bruno@clisp.org>
64106         Don't use conversion with transliteration in u{8,16,32}_strcoll.
64107         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
64108         iconveh_error argument.
64109         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
64110         U_STRCONV_TO_LOCALE.
64111         * lib/unistr/u16-strcoll.c: Likewise.
64112         * lib/unistr/u32-strcoll.c: Likewise.
64113         * modules/unistr/u8-strcoll (Depends-on): Add
64114         uniconv/u8-strconv-to-enc, localcharset. Remove
64115         uniconv/u8-strconv-to-locale.
64116         (configure.ac): Bump version number.
64117         * modules/unistr/u16-strcoll (Depends-on): Add
64118         uniconv/u16-strconv-to-enc, localcharset. Remove
64119         uniconv/u16-strconv-to-locale.
64120         (configure.ac): Bump version number.
64121         * modules/unistr/u32-strcoll (Depends-on): Add
64122         uniconv/u32-strconv-to-enc, localcharset. Remove
64123         uniconv/u32-strconv-to-locale.
64124         (configure.ac): Bump version number.
64126 2010-05-24  Bruno Haible  <bruno@clisp.org>
64128         Avoid a test failure on NetBSD 5.0.
64129         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
64130         an iconv() bug.
64132 2010-05-24  Bruno Haible  <bruno@clisp.org>
64134         Adjust #include directive style.
64135         * modules/regex (Includes): Recommend to write <regex.h>.
64137 2010-05-24  Bruno Haible  <bruno@clisp.org>
64139         regex: Don't require alloca.
64140         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
64141         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
64142         only inside if (0).
64144 2010-05-23  Jim Meyering  <meyering@redhat.com>
64146         test-renameat.c: include <sys/stat.h>
64147         * tests/test-renameat.c: Include <sys/stat.h>; required for
64148         definition of S_IS* macros.
64150 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
64152         Update maintainer documentation for 'relocatable-prog' module.
64153         * doc/relocatable-maint.texi: Update.
64154         Comments by Bruno Haible.
64156 2010-05-23  Bruno Haible  <bruno@clisp.org>
64158         git-merge-changelog: Enable --split-merged-entry by default.
64159         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
64160         (usage): Don't mention this option any more.
64161         Reported by Ralf Wildenhues.
64163 2010-05-23  Jim Meyering  <meyering@redhat.com>
64165         test-pwrite: do not leave behind a test file named "out"
64166         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
64167         The trivial-looking use of init.sh is really necessary.
64168         It ensures that the temporary file, "out", is created in
64169         a temporary directory, and removed upon termination.
64170         * tests/test-pwrite.sh: Re-add file.
64171         * modules/pwrite-tests: Reference it.
64173 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64175         Fix output redirection buglet in init.sh.
64176         * tests/init.sh: Fix redirection of stderr.
64178 2010-05-20  Simon Josefsson  <simon@josefsson.org>
64180         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
64182 2010-05-17  Simon Josefsson  <simon@josefsson.org>
64184         * modules/valgrind-tests: New file.
64185         * m4/valgrind-tests.m4: New file.
64186         * doc/valgrind-tests.texi: New file.
64187         * doc/gnulib.texi (Running self-tests under valgrind): New
64188         section.
64190 2010-05-19  Bruno Haible  <bruno@clisp.org>
64192         Clean up dead code in recent commit.
64193         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
64194         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
64195         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
64196         Suggested by Paolo Bonzini.
64198 2010-05-19  Bruno Haible  <bruno@clisp.org>
64200         Avoid valgrind error reports from libunistring.
64201         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
64202         * modules/libunistring (Files): Add it.
64203         * modules/libunistring-optional (Files): Likewise.
64205 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
64206             Bruno Haible  <bruno@clisp.org>
64208         New module 'libunistring-optional'.
64209         * modules/libunistring-optional: New file.
64210         * m4/libunistring-base.m4: New file.
64211         * m4/libunistring-optional.m4: New file.
64212         * lib/unicase.in.h: Renamed from lib/unicase.h.
64213         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
64214         * lib/unictype.in.h: Renamed from lib/unictype.h.
64215         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
64216         * lib/uniname.in.h: Renamed from lib/uniname.h.
64217         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
64218         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
64219         * lib/unistr.in.h: Renamed from lib/unistr.h.
64220         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
64221         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
64222         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
64223         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
64224         gl_LIBUNISTRING. If the library was found, determine the installed
64225         version and set LIBUNISTRING_VERSION.
64226         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
64227         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
64228         handle a configuration option --with-included-libunistring.
64229         * modules/libunistring (Files): Add m4/absolute-header.m4.
64230         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
64231         Add m4/libunistring-base.m4.
64232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64233         (Makefile.am): Build unicase.h from unicase.in.h.
64234         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
64235         Add m4/libunistring-base.m4.
64236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64237         (Makefile.am): Build uniconv.h from uniconv.in.h.
64238         * modules/unictype/base (Files): Use unictype.in.h instead of
64239         unictype.h. Add m4/libunistring-base.m4.
64240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64241         (Makefile.am): Build unictype.h from unictype.in.h.
64242         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
64243         Add m4/libunistring-base.m4.
64244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64245         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
64246         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
64247         Add m4/libunistring-base.m4.
64248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64249         (Makefile.am): Build uniname.h from uniname.in.h.
64250         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
64251         Add m4/libunistring-base.m4.
64252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64253         (Makefile.am): Build uninorm.h from uninorm.in.h.
64254         * modules/unistdio/base (Files): Use unistdio.in.h instead of
64255         unistdio.h. Add m4/libunistring-base.m4.
64256         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64257         (Makefile.am): Build unistdio.h from unistdio.in.h.
64258         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
64259         Add m4/libunistring-base.m4.
64260         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64261         (Makefile.am): Build unistr.h from unistr.in.h.
64262         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
64263         Add m4/libunistring-base.m4.
64264         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64265         (Makefile.am): Build unitypes.h from unitypes.in.h.
64266         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
64267         Add m4/libunistring-base.m4.
64268         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64269         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
64270         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
64271         uniwidth.h. Add m4/libunistring-base.m4.
64272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64273         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
64274         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
64275         instead of augmenting lib_SOURCES.
64276         * modules/unicase/empty-suffix-context: Likewise.
64277         * modules/unicase/locale-language: Likewise.
64278         * modules/unicase/tolower: Likewise.
64279         * modules/unicase/totitle: Likewise.
64280         * modules/unicase/toupper: Likewise.
64281         * modules/unicase/u8-casecmp: Likewise.
64282         * modules/unicase/u8-casecoll: Likewise.
64283         * modules/unicase/u8-casefold: Likewise.
64284         * modules/unicase/u8-casexfrm: Likewise.
64285         * modules/unicase/u8-ct-casefold: Likewise.
64286         * modules/unicase/u8-ct-tolower: Likewise.
64287         * modules/unicase/u8-ct-totitle: Likewise.
64288         * modules/unicase/u8-ct-toupper: Likewise.
64289         * modules/unicase/u8-is-cased: Likewise.
64290         * modules/unicase/u8-is-casefolded: Likewise.
64291         * modules/unicase/u8-is-lowercase: Likewise.
64292         * modules/unicase/u8-is-titlecase: Likewise.
64293         * modules/unicase/u8-is-uppercase: Likewise.
64294         * modules/unicase/u8-prefix-context: Likewise.
64295         * modules/unicase/u8-suffix-context: Likewise.
64296         * modules/unicase/u8-tolower: Likewise.
64297         * modules/unicase/u8-totitle: Likewise.
64298         * modules/unicase/u8-toupper: Likewise.
64299         * modules/unicase/u16-casecmp: Likewise.
64300         * modules/unicase/u16-casecoll: Likewise.
64301         * modules/unicase/u16-casefold: Likewise.
64302         * modules/unicase/u16-casexfrm: Likewise.
64303         * modules/unicase/u16-ct-casefold: Likewise.
64304         * modules/unicase/u16-ct-tolower: Likewise.
64305         * modules/unicase/u16-ct-totitle: Likewise.
64306         * modules/unicase/u16-ct-toupper: Likewise.
64307         * modules/unicase/u16-is-cased: Likewise.
64308         * modules/unicase/u16-is-casefolded: Likewise.
64309         * modules/unicase/u16-is-lowercase: Likewise.
64310         * modules/unicase/u16-is-titlecase: Likewise.
64311         * modules/unicase/u16-is-uppercase: Likewise.
64312         * modules/unicase/u16-prefix-context: Likewise.
64313         * modules/unicase/u16-suffix-context: Likewise.
64314         * modules/unicase/u16-tolower: Likewise.
64315         * modules/unicase/u16-totitle: Likewise.
64316         * modules/unicase/u16-toupper: Likewise.
64317         * modules/unicase/u32-casecmp: Likewise.
64318         * modules/unicase/u32-casecoll: Likewise.
64319         * modules/unicase/u32-casefold: Likewise.
64320         * modules/unicase/u32-casexfrm: Likewise.
64321         * modules/unicase/u32-ct-casefold: Likewise.
64322         * modules/unicase/u32-ct-tolower: Likewise.
64323         * modules/unicase/u32-ct-totitle: Likewise.
64324         * modules/unicase/u32-ct-toupper: Likewise.
64325         * modules/unicase/u32-is-cased: Likewise.
64326         * modules/unicase/u32-is-casefolded: Likewise.
64327         * modules/unicase/u32-is-lowercase: Likewise.
64328         * modules/unicase/u32-is-titlecase: Likewise.
64329         * modules/unicase/u32-is-uppercase: Likewise.
64330         * modules/unicase/u32-prefix-context: Likewise.
64331         * modules/unicase/u32-suffix-context: Likewise.
64332         * modules/unicase/u32-tolower: Likewise.
64333         * modules/unicase/u32-totitle: Likewise.
64334         * modules/unicase/u32-toupper: Likewise.
64335         * modules/unicase/ulc-casecmp: Likewise.
64336         * modules/unicase/ulc-casecoll: Likewise.
64337         * modules/unicase/ulc-casexfrm: Likewise.
64338         * modules/uniconv/u8-conv-from-enc: Likewise.
64339         * modules/uniconv/u8-conv-to-enc: Likewise.
64340         * modules/uniconv/u8-strconv-from-enc: Likewise.
64341         * modules/uniconv/u8-strconv-from-locale: Likewise.
64342         * modules/uniconv/u8-strconv-to-enc: Likewise.
64343         * modules/uniconv/u8-strconv-to-locale: Likewise.
64344         * modules/uniconv/u16-conv-from-enc: Likewise.
64345         * modules/uniconv/u16-conv-to-enc: Likewise.
64346         * modules/uniconv/u16-strconv-from-enc: Likewise.
64347         * modules/uniconv/u16-strconv-from-locale: Likewise.
64348         * modules/uniconv/u16-strconv-to-enc: Likewise.
64349         * modules/uniconv/u16-strconv-to-locale: Likewise.
64350         * modules/uniconv/u32-conv-from-enc: Likewise.
64351         * modules/uniconv/u32-conv-to-enc: Likewise.
64352         * modules/uniconv/u32-strconv-from-enc: Likewise.
64353         * modules/uniconv/u32-strconv-from-locale: Likewise.
64354         * modules/uniconv/u32-strconv-to-enc: Likewise.
64355         * modules/uniconv/u32-strconv-to-locale: Likewise.
64356         * modules/unictype/bidicategory-byname: Likewise.
64357         * modules/unictype/bidicategory-name: Likewise.
64358         * modules/unictype/bidicategory-of: Likewise.
64359         * modules/unictype/bidicategory-test: Likewise.
64360         * modules/unictype/block-list: Likewise.
64361         * modules/unictype/block-test: Likewise.
64362         * modules/unictype/category-C: Likewise.
64363         * modules/unictype/category-Cc: Likewise.
64364         * modules/unictype/category-Cf: Likewise.
64365         * modules/unictype/category-Cn: Likewise.
64366         * modules/unictype/category-Co: Likewise.
64367         * modules/unictype/category-Cs: Likewise.
64368         * modules/unictype/category-L: Likewise.
64369         * modules/unictype/category-Ll: Likewise.
64370         * modules/unictype/category-Lm: Likewise.
64371         * modules/unictype/category-Lo: Likewise.
64372         * modules/unictype/category-Lt: Likewise.
64373         * modules/unictype/category-Lu: Likewise.
64374         * modules/unictype/category-M: Likewise.
64375         * modules/unictype/category-Mc: Likewise.
64376         * modules/unictype/category-Me: Likewise.
64377         * modules/unictype/category-Mn: Likewise.
64378         * modules/unictype/category-N: Likewise.
64379         * modules/unictype/category-Nd: Likewise.
64380         * modules/unictype/category-Nl: Likewise.
64381         * modules/unictype/category-No: Likewise.
64382         * modules/unictype/category-P: Likewise.
64383         * modules/unictype/category-Pc: Likewise.
64384         * modules/unictype/category-Pd: Likewise.
64385         * modules/unictype/category-Pe: Likewise.
64386         * modules/unictype/category-Pf: Likewise.
64387         * modules/unictype/category-Pi: Likewise.
64388         * modules/unictype/category-Po: Likewise.
64389         * modules/unictype/category-Ps: Likewise.
64390         * modules/unictype/category-S: Likewise.
64391         * modules/unictype/category-Sc: Likewise.
64392         * modules/unictype/category-Sk: Likewise.
64393         * modules/unictype/category-Sm: Likewise.
64394         * modules/unictype/category-So: Likewise.
64395         * modules/unictype/category-Z: Likewise.
64396         * modules/unictype/category-Zl: Likewise.
64397         * modules/unictype/category-Zp: Likewise.
64398         * modules/unictype/category-Zs: Likewise.
64399         * modules/unictype/category-and: Likewise.
64400         * modules/unictype/category-and-not: Likewise.
64401         * modules/unictype/category-byname: Likewise.
64402         * modules/unictype/category-name: Likewise.
64403         * modules/unictype/category-none: Likewise.
64404         * modules/unictype/category-of: Likewise.
64405         * modules/unictype/category-or: Likewise.
64406         * modules/unictype/category-test: Likewise.
64407         * modules/unictype/combining-class: Likewise.
64408         * modules/unictype/ctype-alnum: Likewise.
64409         * modules/unictype/ctype-alpha: Likewise.
64410         * modules/unictype/ctype-blank: Likewise.
64411         * modules/unictype/ctype-cntrl: Likewise.
64412         * modules/unictype/ctype-digit: Likewise.
64413         * modules/unictype/ctype-graph: Likewise.
64414         * modules/unictype/ctype-lower: Likewise.
64415         * modules/unictype/ctype-print: Likewise.
64416         * modules/unictype/ctype-punct: Likewise.
64417         * modules/unictype/ctype-space: Likewise.
64418         * modules/unictype/ctype-upper: Likewise.
64419         * modules/unictype/ctype-xdigit: Likewise.
64420         * modules/unictype/decimal-digit: Likewise.
64421         * modules/unictype/digit: Likewise.
64422         * modules/unictype/mirror: Likewise.
64423         * modules/unictype/numeric: Likewise.
64424         * modules/unictype/property-alphabetic: Likewise.
64425         * modules/unictype/property-ascii-hex-digit: Likewise.
64426         * modules/unictype/property-bidi-arabic-digit: Likewise.
64427         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64428         * modules/unictype/property-bidi-block-separator: Likewise.
64429         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64430         * modules/unictype/property-bidi-common-separator: Likewise.
64431         * modules/unictype/property-bidi-control: Likewise.
64432         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64433         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64434         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64435         * modules/unictype/property-bidi-european-digit: Likewise.
64436         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64437         * modules/unictype/property-bidi-left-to-right: Likewise.
64438         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64439         * modules/unictype/property-bidi-other-neutral: Likewise.
64440         * modules/unictype/property-bidi-pdf: Likewise.
64441         * modules/unictype/property-bidi-segment-separator: Likewise.
64442         * modules/unictype/property-bidi-whitespace: Likewise.
64443         * modules/unictype/property-byname: Likewise.
64444         * modules/unictype/property-combining: Likewise.
64445         * modules/unictype/property-composite: Likewise.
64446         * modules/unictype/property-currency-symbol: Likewise.
64447         * modules/unictype/property-dash: Likewise.
64448         * modules/unictype/property-decimal-digit: Likewise.
64449         * modules/unictype/property-default-ignorable-code-point: Likewise.
64450         * modules/unictype/property-deprecated: Likewise.
64451         * modules/unictype/property-diacritic: Likewise.
64452         * modules/unictype/property-extender: Likewise.
64453         * modules/unictype/property-format-control: Likewise.
64454         * modules/unictype/property-grapheme-base: Likewise.
64455         * modules/unictype/property-grapheme-extend: Likewise.
64456         * modules/unictype/property-grapheme-link: Likewise.
64457         * modules/unictype/property-hex-digit: Likewise.
64458         * modules/unictype/property-hyphen: Likewise.
64459         * modules/unictype/property-id-continue: Likewise.
64460         * modules/unictype/property-id-start: Likewise.
64461         * modules/unictype/property-ideographic: Likewise.
64462         * modules/unictype/property-ids-binary-operator: Likewise.
64463         * modules/unictype/property-ids-trinary-operator: Likewise.
64464         * modules/unictype/property-ignorable-control: Likewise.
64465         * modules/unictype/property-iso-control: Likewise.
64466         * modules/unictype/property-join-control: Likewise.
64467         * modules/unictype/property-left-of-pair: Likewise.
64468         * modules/unictype/property-line-separator: Likewise.
64469         * modules/unictype/property-logical-order-exception: Likewise.
64470         * modules/unictype/property-lowercase: Likewise.
64471         * modules/unictype/property-math: Likewise.
64472         * modules/unictype/property-non-break: Likewise.
64473         * modules/unictype/property-not-a-character: Likewise.
64474         * modules/unictype/property-numeric: Likewise.
64475         * modules/unictype/property-other-alphabetic: Likewise.
64476         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64477         * modules/unictype/property-other-grapheme-extend: Likewise.
64478         * modules/unictype/property-other-id-continue: Likewise.
64479         * modules/unictype/property-other-id-start: Likewise.
64480         * modules/unictype/property-other-lowercase: Likewise.
64481         * modules/unictype/property-other-math: Likewise.
64482         * modules/unictype/property-other-uppercase: Likewise.
64483         * modules/unictype/property-paired-punctuation: Likewise.
64484         * modules/unictype/property-paragraph-separator: Likewise.
64485         * modules/unictype/property-pattern-syntax: Likewise.
64486         * modules/unictype/property-pattern-white-space: Likewise.
64487         * modules/unictype/property-private-use: Likewise.
64488         * modules/unictype/property-punctuation: Likewise.
64489         * modules/unictype/property-quotation-mark: Likewise.
64490         * modules/unictype/property-radical: Likewise.
64491         * modules/unictype/property-sentence-terminal: Likewise.
64492         * modules/unictype/property-soft-dotted: Likewise.
64493         * modules/unictype/property-space: Likewise.
64494         * modules/unictype/property-terminal-punctuation: Likewise.
64495         * modules/unictype/property-test: Likewise.
64496         * modules/unictype/property-titlecase: Likewise.
64497         * modules/unictype/property-unassigned-code-value: Likewise.
64498         * modules/unictype/property-unified-ideograph: Likewise.
64499         * modules/unictype/property-uppercase: Likewise.
64500         * modules/unictype/property-variation-selector: Likewise.
64501         * modules/unictype/property-white-space: Likewise.
64502         * modules/unictype/property-xid-continue: Likewise.
64503         * modules/unictype/property-xid-start: Likewise.
64504         * modules/unictype/property-zero-width: Likewise.
64505         * modules/unictype/scripts: Likewise.
64506         * modules/unictype/syntax-c-ident: Likewise.
64507         * modules/unictype/syntax-c-whitespace: Likewise.
64508         * modules/unictype/syntax-java-ident: Likewise.
64509         * modules/unictype/syntax-java-whitespace: Likewise.
64510         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64511         * modules/unilbrk/u8-width-linebreaks: Likewise.
64512         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64513         * modules/unilbrk/u16-width-linebreaks: Likewise.
64514         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64515         * modules/unilbrk/u32-width-linebreaks: Likewise.
64516         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64517         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64518         * modules/uniname/uniname: Likewise.
64519         * modules/uninorm/canonical-decomposition: Likewise.
64520         * modules/uninorm/composition: Likewise.
64521         * modules/uninorm/decomposing-form: Likewise.
64522         * modules/uninorm/decomposition: Likewise.
64523         * modules/uninorm/filter: Likewise.
64524         * modules/uninorm/nfc: Likewise.
64525         * modules/uninorm/nfd: Likewise.
64526         * modules/uninorm/nfkc: Likewise.
64527         * modules/uninorm/nfkd: Likewise.
64528         * modules/uninorm/u8-normalize: Likewise.
64529         * modules/uninorm/u8-normcmp: Likewise.
64530         * modules/uninorm/u8-normcoll: Likewise.
64531         * modules/uninorm/u8-normxfrm: Likewise.
64532         * modules/uninorm/u16-normalize: Likewise.
64533         * modules/uninorm/u16-normcmp: Likewise.
64534         * modules/uninorm/u16-normcoll: Likewise.
64535         * modules/uninorm/u16-normxfrm: Likewise.
64536         * modules/uninorm/u32-normalize: Likewise.
64537         * modules/uninorm/u32-normcmp: Likewise.
64538         * modules/uninorm/u32-normcoll: Likewise.
64539         * modules/uninorm/u32-normxfrm: Likewise.
64540         * modules/unistdio/u8-asnprintf: Likewise.
64541         * modules/unistdio/u8-asprintf: Likewise.
64542         * modules/unistdio/u8-snprintf: Likewise.
64543         * modules/unistdio/u8-sprintf: Likewise.
64544         * modules/unistdio/u8-u8-asnprintf: Likewise.
64545         * modules/unistdio/u8-u8-asprintf: Likewise.
64546         * modules/unistdio/u8-u8-snprintf: Likewise.
64547         * modules/unistdio/u8-u8-sprintf: Likewise.
64548         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64549         * modules/unistdio/u8-u8-vasprintf: Likewise.
64550         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64551         * modules/unistdio/u8-u8-vsprintf: Likewise.
64552         * modules/unistdio/u8-vasnprintf: Likewise.
64553         * modules/unistdio/u8-vasprintf: Likewise.
64554         * modules/unistdio/u8-vsnprintf: Likewise.
64555         * modules/unistdio/u8-vsprintf: Likewise.
64556         * modules/unistdio/u16-asnprintf: Likewise.
64557         * modules/unistdio/u16-asprintf: Likewise.
64558         * modules/unistdio/u16-snprintf: Likewise.
64559         * modules/unistdio/u16-sprintf: Likewise.
64560         * modules/unistdio/u16-u16-asnprintf: Likewise.
64561         * modules/unistdio/u16-u16-asprintf: Likewise.
64562         * modules/unistdio/u16-u16-snprintf: Likewise.
64563         * modules/unistdio/u16-u16-sprintf: Likewise.
64564         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64565         * modules/unistdio/u16-u16-vasprintf: Likewise.
64566         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64567         * modules/unistdio/u16-u16-vsprintf: Likewise.
64568         * modules/unistdio/u16-vasnprintf: Likewise.
64569         * modules/unistdio/u16-vasprintf: Likewise.
64570         * modules/unistdio/u16-vsnprintf: Likewise.
64571         * modules/unistdio/u16-vsprintf: Likewise.
64572         * modules/unistdio/u32-asnprintf: Likewise.
64573         * modules/unistdio/u32-asprintf: Likewise.
64574         * modules/unistdio/u32-snprintf: Likewise.
64575         * modules/unistdio/u32-sprintf: Likewise.
64576         * modules/unistdio/u32-u32-asnprintf: Likewise.
64577         * modules/unistdio/u32-u32-asprintf: Likewise.
64578         * modules/unistdio/u32-u32-snprintf: Likewise.
64579         * modules/unistdio/u32-u32-sprintf: Likewise.
64580         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64581         * modules/unistdio/u32-u32-vasprintf: Likewise.
64582         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64583         * modules/unistdio/u32-u32-vsprintf: Likewise.
64584         * modules/unistdio/u32-vasnprintf: Likewise.
64585         * modules/unistdio/u32-vasprintf: Likewise.
64586         * modules/unistdio/u32-vsnprintf: Likewise.
64587         * modules/unistdio/u32-vsprintf: Likewise.
64588         * modules/unistdio/ulc-asnprintf: Likewise.
64589         * modules/unistdio/ulc-asprintf: Likewise.
64590         * modules/unistdio/ulc-fprintf: Likewise.
64591         * modules/unistdio/ulc-snprintf: Likewise.
64592         * modules/unistdio/ulc-sprintf: Likewise.
64593         * modules/unistdio/ulc-vasnprintf: Likewise.
64594         * modules/unistdio/ulc-vasprintf: Likewise.
64595         * modules/unistdio/ulc-vfprintf: Likewise.
64596         * modules/unistdio/ulc-vsnprintf: Likewise.
64597         * modules/unistdio/ulc-vsprintf: Likewise.
64598         * modules/unistr/u8-check: Likewise.
64599         * modules/unistr/u8-chr: Likewise.
64600         * modules/unistr/u8-cmp: Likewise.
64601         * modules/unistr/u8-cmp2: Likewise.
64602         * modules/unistr/u8-cpy: Likewise.
64603         * modules/unistr/u8-cpy-alloc: Likewise.
64604         * modules/unistr/u8-endswith: Likewise.
64605         * modules/unistr/u8-mblen: Likewise.
64606         * modules/unistr/u8-mbsnlen: Likewise.
64607         * modules/unistr/u8-mbtouc: Likewise.
64608         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64609         * modules/unistr/u8-mbtoucr: Likewise.
64610         * modules/unistr/u8-move: Likewise.
64611         * modules/unistr/u8-next: Likewise.
64612         * modules/unistr/u8-prev: Likewise.
64613         * modules/unistr/u8-set: Likewise.
64614         * modules/unistr/u8-startswith: Likewise.
64615         * modules/unistr/u8-stpcpy: Likewise.
64616         * modules/unistr/u8-stpncpy: Likewise.
64617         * modules/unistr/u8-strcat: Likewise.
64618         * modules/unistr/u8-strchr: Likewise.
64619         * modules/unistr/u8-strcmp: Likewise.
64620         * modules/unistr/u8-strcoll: Likewise.
64621         * modules/unistr/u8-strcpy: Likewise.
64622         * modules/unistr/u8-strcspn: Likewise.
64623         * modules/unistr/u8-strdup: Likewise.
64624         * modules/unistr/u8-strlen: Likewise.
64625         * modules/unistr/u8-strmblen: Likewise.
64626         * modules/unistr/u8-strmbtouc: Likewise.
64627         * modules/unistr/u8-strncat: Likewise.
64628         * modules/unistr/u8-strncmp: Likewise.
64629         * modules/unistr/u8-strncpy: Likewise.
64630         * modules/unistr/u8-strnlen: Likewise.
64631         * modules/unistr/u8-strpbrk: Likewise.
64632         * modules/unistr/u8-strrchr: Likewise.
64633         * modules/unistr/u8-strspn: Likewise.
64634         * modules/unistr/u8-strstr: Likewise.
64635         * modules/unistr/u8-strtok: Likewise.
64636         * modules/unistr/u8-to-u16: Likewise.
64637         * modules/unistr/u8-to-u32: Likewise.
64638         * modules/unistr/u8-uctomb: Likewise.
64639         * modules/unistr/u16-check: Likewise.
64640         * modules/unistr/u16-chr: Likewise.
64641         * modules/unistr/u16-cmp: Likewise.
64642         * modules/unistr/u16-cmp2: Likewise.
64643         * modules/unistr/u16-cpy: Likewise.
64644         * modules/unistr/u16-cpy-alloc: Likewise.
64645         * modules/unistr/u16-endswith: Likewise.
64646         * modules/unistr/u16-mblen: Likewise.
64647         * modules/unistr/u16-mbsnlen: Likewise.
64648         * modules/unistr/u16-mbtouc: Likewise.
64649         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64650         * modules/unistr/u16-mbtoucr: Likewise.
64651         * modules/unistr/u16-move: Likewise.
64652         * modules/unistr/u16-next: Likewise.
64653         * modules/unistr/u16-prev: Likewise.
64654         * modules/unistr/u16-set: Likewise.
64655         * modules/unistr/u16-startswith: Likewise.
64656         * modules/unistr/u16-stpcpy: Likewise.
64657         * modules/unistr/u16-stpncpy: Likewise.
64658         * modules/unistr/u16-strcat: Likewise.
64659         * modules/unistr/u16-strchr: Likewise.
64660         * modules/unistr/u16-strcmp: Likewise.
64661         * modules/unistr/u16-strcoll: Likewise.
64662         * modules/unistr/u16-strcpy: Likewise.
64663         * modules/unistr/u16-strcspn: Likewise.
64664         * modules/unistr/u16-strdup: Likewise.
64665         * modules/unistr/u16-strlen: Likewise.
64666         * modules/unistr/u16-strmblen: Likewise.
64667         * modules/unistr/u16-strmbtouc: Likewise.
64668         * modules/unistr/u16-strncat: Likewise.
64669         * modules/unistr/u16-strncmp: Likewise.
64670         * modules/unistr/u16-strncpy: Likewise.
64671         * modules/unistr/u16-strnlen: Likewise.
64672         * modules/unistr/u16-strpbrk: Likewise.
64673         * modules/unistr/u16-strrchr: Likewise.
64674         * modules/unistr/u16-strspn: Likewise.
64675         * modules/unistr/u16-strstr: Likewise.
64676         * modules/unistr/u16-strtok: Likewise.
64677         * modules/unistr/u16-to-u32: Likewise.
64678         * modules/unistr/u16-to-u8: Likewise.
64679         * modules/unistr/u16-uctomb: Likewise.
64680         * modules/unistr/u32-check: Likewise.
64681         * modules/unistr/u32-chr: Likewise.
64682         * modules/unistr/u32-cmp: Likewise.
64683         * modules/unistr/u32-cmp2: Likewise.
64684         * modules/unistr/u32-cpy: Likewise.
64685         * modules/unistr/u32-cpy-alloc: Likewise.
64686         * modules/unistr/u32-endswith: Likewise.
64687         * modules/unistr/u32-mblen: Likewise.
64688         * modules/unistr/u32-mbsnlen: Likewise.
64689         * modules/unistr/u32-mbtouc: Likewise.
64690         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64691         * modules/unistr/u32-mbtoucr: Likewise.
64692         * modules/unistr/u32-move: Likewise.
64693         * modules/unistr/u32-next: Likewise.
64694         * modules/unistr/u32-prev: Likewise.
64695         * modules/unistr/u32-set: Likewise.
64696         * modules/unistr/u32-startswith: Likewise.
64697         * modules/unistr/u32-stpcpy: Likewise.
64698         * modules/unistr/u32-stpncpy: Likewise.
64699         * modules/unistr/u32-strcat: Likewise.
64700         * modules/unistr/u32-strchr: Likewise.
64701         * modules/unistr/u32-strcmp: Likewise.
64702         * modules/unistr/u32-strcoll: Likewise.
64703         * modules/unistr/u32-strcpy: Likewise.
64704         * modules/unistr/u32-strcspn: Likewise.
64705         * modules/unistr/u32-strdup: Likewise.
64706         * modules/unistr/u32-strlen: Likewise.
64707         * modules/unistr/u32-strmblen: Likewise.
64708         * modules/unistr/u32-strmbtouc: Likewise.
64709         * modules/unistr/u32-strncat: Likewise.
64710         * modules/unistr/u32-strncmp: Likewise.
64711         * modules/unistr/u32-strncpy: Likewise.
64712         * modules/unistr/u32-strnlen: Likewise.
64713         * modules/unistr/u32-strpbrk: Likewise.
64714         * modules/unistr/u32-strrchr: Likewise.
64715         * modules/unistr/u32-strspn: Likewise.
64716         * modules/unistr/u32-strstr: Likewise.
64717         * modules/unistr/u32-strtok: Likewise.
64718         * modules/unistr/u32-to-u16: Likewise.
64719         * modules/unistr/u32-to-u8: Likewise.
64720         * modules/unistr/u32-uctomb: Likewise.
64721         * modules/uniwbrk/u8-wordbreaks: Likewise.
64722         * modules/uniwbrk/u16-wordbreaks: Likewise.
64723         * modules/uniwbrk/u32-wordbreaks: Likewise.
64724         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64725         * modules/uniwbrk/wordbreak-property: Likewise.
64726         * modules/uniwidth/u8-strwidth: Likewise.
64727         * modules/uniwidth/u8-width: Likewise.
64728         * modules/uniwidth/u16-strwidth: Likewise.
64729         * modules/uniwidth/u16-width: Likewise.
64730         * modules/uniwidth/u32-strwidth: Likewise.
64731         * modules/uniwidth/u32-width: Likewise.
64732         * modules/uniwidth/width: Likewise.
64733         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64734         with $(LIBUNISTRING).
64735         * modules/unicase/ignorable-tests: Likewise.
64736         * modules/unicase/locale-language-tests: Likewise.
64737         * modules/unicase/tolower-tests: Likewise.
64738         * modules/unicase/totitle-tests: Likewise.
64739         * modules/unicase/toupper-tests: Likewise.
64740         * modules/unicase/u8-casecmp-tests: Likewise.
64741         * modules/unicase/u8-casecoll-tests: Likewise.
64742         * modules/unicase/u8-casefold-tests: Likewise.
64743         * modules/unicase/u8-is-cased-tests: Likewise.
64744         * modules/unicase/u8-is-casefolded-tests: Likewise.
64745         * modules/unicase/u8-is-lowercase-tests: Likewise.
64746         * modules/unicase/u8-is-titlecase-tests: Likewise.
64747         * modules/unicase/u8-is-uppercase-tests: Likewise.
64748         * modules/unicase/u8-tolower-tests: Likewise.
64749         * modules/unicase/u8-totitle-tests: Likewise.
64750         * modules/unicase/u8-toupper-tests: Likewise.
64751         * modules/unicase/u16-casecmp-tests: Likewise.
64752         * modules/unicase/u16-casecoll-tests: Likewise.
64753         * modules/unicase/u16-casefold-tests: Likewise.
64754         * modules/unicase/u16-is-cased-tests: Likewise.
64755         * modules/unicase/u16-is-casefolded-tests: Likewise.
64756         * modules/unicase/u16-is-lowercase-tests: Likewise.
64757         * modules/unicase/u16-is-titlecase-tests: Likewise.
64758         * modules/unicase/u16-is-uppercase-tests: Likewise.
64759         * modules/unicase/u16-tolower-tests: Likewise.
64760         * modules/unicase/u16-totitle-tests: Likewise.
64761         * modules/unicase/u16-toupper-tests: Likewise.
64762         * modules/unicase/u32-casecmp-tests: Likewise.
64763         * modules/unicase/u32-casecoll-tests: Likewise.
64764         * modules/unicase/u32-casefold-tests: Likewise.
64765         * modules/unicase/u32-is-cased-tests: Likewise.
64766         * modules/unicase/u32-is-casefolded-tests: Likewise.
64767         * modules/unicase/u32-is-lowercase-tests: Likewise.
64768         * modules/unicase/u32-is-titlecase-tests: Likewise.
64769         * modules/unicase/u32-is-uppercase-tests: Likewise.
64770         * modules/unicase/u32-tolower-tests: Likewise.
64771         * modules/unicase/u32-totitle-tests: Likewise.
64772         * modules/unicase/u32-toupper-tests: Likewise.
64773         * modules/unicase/ulc-casecmp-tests: Likewise.
64774         * modules/unicase/ulc-casecoll-tests: Likewise.
64775         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64776         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64777         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64778         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64779         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64780         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64781         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64782         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64783         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64784         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64785         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64786         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64787         * modules/unictype/bidicategory-byname-tests: Likewise.
64788         * modules/unictype/bidicategory-name-tests: Likewise.
64789         * modules/unictype/bidicategory-of-tests: Likewise.
64790         * modules/unictype/bidicategory-test-tests: Likewise.
64791         * modules/unictype/block-list-tests: Likewise.
64792         * modules/unictype/block-of-tests: Likewise.
64793         * modules/unictype/block-test-tests: Likewise.
64794         * modules/unictype/category-C-tests: Likewise.
64795         * modules/unictype/category-Cc-tests: Likewise.
64796         * modules/unictype/category-Cf-tests: Likewise.
64797         * modules/unictype/category-Cn-tests: Likewise.
64798         * modules/unictype/category-Co-tests: Likewise.
64799         * modules/unictype/category-Cs-tests: Likewise.
64800         * modules/unictype/category-L-tests: Likewise.
64801         * modules/unictype/category-Ll-tests: Likewise.
64802         * modules/unictype/category-Lm-tests: Likewise.
64803         * modules/unictype/category-Lo-tests: Likewise.
64804         * modules/unictype/category-Lt-tests: Likewise.
64805         * modules/unictype/category-Lu-tests: Likewise.
64806         * modules/unictype/category-M-tests: Likewise.
64807         * modules/unictype/category-Mc-tests: Likewise.
64808         * modules/unictype/category-Me-tests: Likewise.
64809         * modules/unictype/category-Mn-tests: Likewise.
64810         * modules/unictype/category-N-tests: Likewise.
64811         * modules/unictype/category-Nd-tests: Likewise.
64812         * modules/unictype/category-Nl-tests: Likewise.
64813         * modules/unictype/category-No-tests: Likewise.
64814         * modules/unictype/category-P-tests: Likewise.
64815         * modules/unictype/category-Pc-tests: Likewise.
64816         * modules/unictype/category-Pd-tests: Likewise.
64817         * modules/unictype/category-Pe-tests: Likewise.
64818         * modules/unictype/category-Pf-tests: Likewise.
64819         * modules/unictype/category-Pi-tests: Likewise.
64820         * modules/unictype/category-Po-tests: Likewise.
64821         * modules/unictype/category-Ps-tests: Likewise.
64822         * modules/unictype/category-S-tests: Likewise.
64823         * modules/unictype/category-Sc-tests: Likewise.
64824         * modules/unictype/category-Sk-tests: Likewise.
64825         * modules/unictype/category-Sm-tests: Likewise.
64826         * modules/unictype/category-So-tests: Likewise.
64827         * modules/unictype/category-Z-tests: Likewise.
64828         * modules/unictype/category-Zl-tests: Likewise.
64829         * modules/unictype/category-Zp-tests: Likewise.
64830         * modules/unictype/category-Zs-tests: Likewise.
64831         * modules/unictype/category-and-not-tests: Likewise.
64832         * modules/unictype/category-and-tests: Likewise.
64833         * modules/unictype/category-byname-tests: Likewise.
64834         * modules/unictype/category-name-tests: Likewise.
64835         * modules/unictype/category-none-tests: Likewise.
64836         * modules/unictype/category-of-tests: Likewise.
64837         * modules/unictype/category-or-tests: Likewise.
64838         * modules/unictype/category-test-withtable-tests: Likewise.
64839         * modules/unictype/combining-class-tests: Likewise.
64840         * modules/unictype/ctype-alnum-tests: Likewise.
64841         * modules/unictype/ctype-alpha-tests: Likewise.
64842         * modules/unictype/ctype-blank-tests: Likewise.
64843         * modules/unictype/ctype-cntrl-tests: Likewise.
64844         * modules/unictype/ctype-digit-tests: Likewise.
64845         * modules/unictype/ctype-graph-tests: Likewise.
64846         * modules/unictype/ctype-lower-tests: Likewise.
64847         * modules/unictype/ctype-print-tests: Likewise.
64848         * modules/unictype/ctype-punct-tests: Likewise.
64849         * modules/unictype/ctype-space-tests: Likewise.
64850         * modules/unictype/ctype-upper-tests: Likewise.
64851         * modules/unictype/ctype-xdigit-tests: Likewise.
64852         * modules/unictype/decimal-digit-tests: Likewise.
64853         * modules/unictype/digit-tests: Likewise.
64854         * modules/unictype/mirror-tests: Likewise.
64855         * modules/unictype/numeric-tests: Likewise.
64856         * modules/unictype/property-alphabetic-tests: Likewise.
64857         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64858         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64859         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64860         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64861         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64862         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64863         * modules/unictype/property-bidi-control-tests: Likewise.
64864         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64865         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64866         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64867         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64868         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64869         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64870         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64871         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64872         * modules/unictype/property-bidi-pdf-tests: Likewise.
64873         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64874         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64875         * modules/unictype/property-byname-tests: Likewise.
64876         * modules/unictype/property-combining-tests: Likewise.
64877         * modules/unictype/property-composite-tests: Likewise.
64878         * modules/unictype/property-currency-symbol-tests: Likewise.
64879         * modules/unictype/property-dash-tests: Likewise.
64880         * modules/unictype/property-decimal-digit-tests: Likewise.
64881         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64882         * modules/unictype/property-deprecated-tests: Likewise.
64883         * modules/unictype/property-diacritic-tests: Likewise.
64884         * modules/unictype/property-extender-tests: Likewise.
64885         * modules/unictype/property-format-control-tests: Likewise.
64886         * modules/unictype/property-grapheme-base-tests: Likewise.
64887         * modules/unictype/property-grapheme-extend-tests: Likewise.
64888         * modules/unictype/property-grapheme-link-tests: Likewise.
64889         * modules/unictype/property-hex-digit-tests: Likewise.
64890         * modules/unictype/property-hyphen-tests: Likewise.
64891         * modules/unictype/property-id-continue-tests: Likewise.
64892         * modules/unictype/property-id-start-tests: Likewise.
64893         * modules/unictype/property-ideographic-tests: Likewise.
64894         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64895         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64896         * modules/unictype/property-ignorable-control-tests: Likewise.
64897         * modules/unictype/property-iso-control-tests: Likewise.
64898         * modules/unictype/property-join-control-tests: Likewise.
64899         * modules/unictype/property-left-of-pair-tests: Likewise.
64900         * modules/unictype/property-line-separator-tests: Likewise.
64901         * modules/unictype/property-logical-order-exception-tests: Likewise.
64902         * modules/unictype/property-lowercase-tests: Likewise.
64903         * modules/unictype/property-math-tests: Likewise.
64904         * modules/unictype/property-non-break-tests: Likewise.
64905         * modules/unictype/property-not-a-character-tests: Likewise.
64906         * modules/unictype/property-numeric-tests: Likewise.
64907         * modules/unictype/property-other-alphabetic-tests: Likewise.
64908         * modules/unictype/property-other-default-ignorable-code-point-tests:
64909         Likewise.
64910         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64911         * modules/unictype/property-other-id-continue-tests: Likewise.
64912         * modules/unictype/property-other-id-start-tests: Likewise.
64913         * modules/unictype/property-other-lowercase-tests: Likewise.
64914         * modules/unictype/property-other-math-tests: Likewise.
64915         * modules/unictype/property-other-uppercase-tests: Likewise.
64916         * modules/unictype/property-paired-punctuation-tests: Likewise.
64917         * modules/unictype/property-paragraph-separator-tests: Likewise.
64918         * modules/unictype/property-pattern-syntax-tests: Likewise.
64919         * modules/unictype/property-pattern-white-space-tests: Likewise.
64920         * modules/unictype/property-private-use-tests: Likewise.
64921         * modules/unictype/property-punctuation-tests: Likewise.
64922         * modules/unictype/property-quotation-mark-tests: Likewise.
64923         * modules/unictype/property-radical-tests: Likewise.
64924         * modules/unictype/property-sentence-terminal-tests: Likewise.
64925         * modules/unictype/property-soft-dotted-tests: Likewise.
64926         * modules/unictype/property-space-tests: Likewise.
64927         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64928         * modules/unictype/property-test-tests: Likewise.
64929         * modules/unictype/property-titlecase-tests: Likewise.
64930         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64931         * modules/unictype/property-unified-ideograph-tests: Likewise.
64932         * modules/unictype/property-uppercase-tests: Likewise.
64933         * modules/unictype/property-variation-selector-tests: Likewise.
64934         * modules/unictype/property-white-space-tests: Likewise.
64935         * modules/unictype/property-xid-continue-tests: Likewise.
64936         * modules/unictype/property-xid-start-tests: Likewise.
64937         * modules/unictype/property-zero-width-tests: Likewise.
64938         * modules/unictype/scripts-tests: Likewise.
64939         * modules/unictype/syntax-c-ident-tests: Likewise.
64940         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64941         * modules/unictype/syntax-java-ident-tests: Likewise.
64942         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64943         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64944         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64945         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64946         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64947         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64948         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64949         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64950         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64951         * modules/uniname/uniname-tests: Likewise.
64952         * modules/uninorm/canonical-decomposition-tests: Likewise.
64953         * modules/uninorm/compat-decomposition-tests: Likewise.
64954         * modules/uninorm/composition-tests: Likewise.
64955         * modules/uninorm/decomposing-form-tests: Likewise.
64956         * modules/uninorm/decomposition-tests: Likewise.
64957         * modules/uninorm/filter-tests: Likewise.
64958         * modules/uninorm/nfc-tests: Likewise.
64959         * modules/uninorm/nfd-tests: Likewise.
64960         * modules/uninorm/nfkc-tests: Likewise.
64961         * modules/uninorm/nfkd-tests: Likewise.
64962         * modules/uninorm/u8-normcmp-tests: Likewise.
64963         * modules/uninorm/u8-normcoll-tests: Likewise.
64964         * modules/uninorm/u16-normcmp-tests: Likewise.
64965         * modules/uninorm/u16-normcoll-tests: Likewise.
64966         * modules/uninorm/u32-normcmp-tests: Likewise.
64967         * modules/uninorm/u32-normcoll-tests: Likewise.
64968         * modules/unistdio/u8-asnprintf-tests: Likewise.
64969         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64970         * modules/unistdio/u8-vasprintf-tests: Likewise.
64971         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64972         * modules/unistdio/u8-vsprintf-tests: Likewise.
64973         * modules/unistdio/u16-asnprintf-tests: Likewise.
64974         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64975         * modules/unistdio/u16-vasprintf-tests: Likewise.
64976         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64977         * modules/unistdio/u16-vsprintf-tests: Likewise.
64978         * modules/unistdio/u32-asnprintf-tests: Likewise.
64979         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64980         * modules/unistdio/u32-vasprintf-tests: Likewise.
64981         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64982         * modules/unistdio/u32-vsprintf-tests: Likewise.
64983         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64984         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64985         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64986         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64987         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64988         * modules/unistr/u8-check-tests: Likewise.
64989         * modules/unistr/u8-chr-tests: Likewise.
64990         * modules/unistr/u8-cmp-tests: Likewise.
64991         * modules/unistr/u8-cmp2-tests: Likewise.
64992         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64993         * modules/unistr/u8-cpy-tests: Likewise.
64994         * modules/unistr/u8-mblen-tests: Likewise.
64995         * modules/unistr/u8-mbsnlen-tests: Likewise.
64996         * modules/unistr/u8-mbtouc-tests: Likewise.
64997         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64998         * modules/unistr/u8-mbtoucr-tests: Likewise.
64999         * modules/unistr/u8-move-tests: Likewise.
65000         * modules/unistr/u8-next-tests: Likewise.
65001         * modules/unistr/u8-prev-tests: Likewise.
65002         * modules/unistr/u8-set-tests: Likewise.
65003         * modules/unistr/u8-stpcpy-tests: Likewise.
65004         * modules/unistr/u8-stpncpy-tests: Likewise.
65005         * modules/unistr/u8-strcat-tests: Likewise.
65006         * modules/unistr/u8-strcmp-tests: Likewise.
65007         * modules/unistr/u8-strcoll-tests: Likewise.
65008         * modules/unistr/u8-strcpy-tests: Likewise.
65009         * modules/unistr/u8-strdup-tests: Likewise.
65010         * modules/unistr/u8-strlen-tests: Likewise.
65011         * modules/unistr/u8-strmblen-tests: Likewise.
65012         * modules/unistr/u8-strmbtouc-tests: Likewise.
65013         * modules/unistr/u8-strncat-tests: Likewise.
65014         * modules/unistr/u8-strncmp-tests: Likewise.
65015         * modules/unistr/u8-strncpy-tests: Likewise.
65016         * modules/unistr/u8-strnlen-tests: Likewise.
65017         * modules/unistr/u8-to-u16-tests: Likewise.
65018         * modules/unistr/u8-to-u32-tests: Likewise.
65019         * modules/unistr/u8-uctomb-tests: Likewise.
65020         * modules/unistr/u16-check-tests: Likewise.
65021         * modules/unistr/u16-chr-tests: Likewise.
65022         * modules/unistr/u16-cmp-tests: Likewise.
65023         * modules/unistr/u16-cmp2-tests: Likewise.
65024         * modules/unistr/u16-cpy-alloc-tests: Likewise.
65025         * modules/unistr/u16-cpy-tests: Likewise.
65026         * modules/unistr/u16-mblen-tests: Likewise.
65027         * modules/unistr/u16-mbsnlen-tests: Likewise.
65028         * modules/unistr/u16-mbtouc-tests: Likewise.
65029         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
65030         * modules/unistr/u16-mbtoucr-tests: Likewise.
65031         * modules/unistr/u16-move-tests: Likewise.
65032         * modules/unistr/u16-next-tests: Likewise.
65033         * modules/unistr/u16-prev-tests: Likewise.
65034         * modules/unistr/u16-set-tests: Likewise.
65035         * modules/unistr/u16-stpcpy-tests: Likewise.
65036         * modules/unistr/u16-stpncpy-tests: Likewise.
65037         * modules/unistr/u16-strcat-tests: Likewise.
65038         * modules/unistr/u16-strcmp-tests: Likewise.
65039         * modules/unistr/u16-strcoll-tests: Likewise.
65040         * modules/unistr/u16-strcpy-tests: Likewise.
65041         * modules/unistr/u16-strdup-tests: Likewise.
65042         * modules/unistr/u16-strlen-tests: Likewise.
65043         * modules/unistr/u16-strmblen-tests: Likewise.
65044         * modules/unistr/u16-strmbtouc-tests: Likewise.
65045         * modules/unistr/u16-strncat-tests: Likewise.
65046         * modules/unistr/u16-strncmp-tests: Likewise.
65047         * modules/unistr/u16-strncpy-tests: Likewise.
65048         * modules/unistr/u16-strnlen-tests: Likewise.
65049         * modules/unistr/u16-to-u32-tests: Likewise.
65050         * modules/unistr/u16-to-u8-tests: Likewise.
65051         * modules/unistr/u16-uctomb-tests: Likewise.
65052         * modules/unistr/u32-check-tests: Likewise.
65053         * modules/unistr/u32-chr-tests: Likewise.
65054         * modules/unistr/u32-cmp-tests: Likewise.
65055         * modules/unistr/u32-cmp2-tests: Likewise.
65056         * modules/unistr/u32-cpy-alloc-tests: Likewise.
65057         * modules/unistr/u32-cpy-tests: Likewise.
65058         * modules/unistr/u32-mblen-tests: Likewise.
65059         * modules/unistr/u32-mbsnlen-tests: Likewise.
65060         * modules/unistr/u32-mbtouc-tests: Likewise.
65061         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
65062         * modules/unistr/u32-mbtoucr-tests: Likewise.
65063         * modules/unistr/u32-move-tests: Likewise.
65064         * modules/unistr/u32-next-tests: Likewise.
65065         * modules/unistr/u32-prev-tests: Likewise.
65066         * modules/unistr/u32-set-tests: Likewise.
65067         * modules/unistr/u32-stpcpy-tests: Likewise.
65068         * modules/unistr/u32-stpncpy-tests: Likewise.
65069         * modules/unistr/u32-strcat-tests: Likewise.
65070         * modules/unistr/u32-strcmp-tests: Likewise.
65071         * modules/unistr/u32-strcoll-tests: Likewise.
65072         * modules/unistr/u32-strcpy-tests: Likewise.
65073         * modules/unistr/u32-strdup-tests: Likewise.
65074         * modules/unistr/u32-strlen-tests: Likewise.
65075         * modules/unistr/u32-strmblen-tests: Likewise.
65076         * modules/unistr/u32-strmbtouc-tests: Likewise.
65077         * modules/unistr/u32-strncat-tests: Likewise.
65078         * modules/unistr/u32-strncmp-tests: Likewise.
65079         * modules/unistr/u32-strncpy-tests: Likewise.
65080         * modules/unistr/u32-strnlen-tests: Likewise.
65081         * modules/unistr/u32-to-u16-tests: Likewise.
65082         * modules/unistr/u32-to-u8-tests: Likewise.
65083         * modules/unistr/u32-uctomb-tests: Likewise.
65084         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
65085         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
65086         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
65087         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
65088         * modules/uniwidth/u8-strwidth-tests: Likewise.
65089         * modules/uniwidth/u8-width-tests: Likewise.
65090         * modules/uniwidth/u16-strwidth-tests: Likewise.
65091         * modules/uniwidth/u16-width-tests: Likewise.
65092         * modules/uniwidth/u32-strwidth-tests: Likewise.
65093         * modules/uniwidth/u32-width-tests: Likewise.
65094         * modules/uniwidth/width-tests: Likewise.
65096 2010-05-18  Richard Jones  <rjones@redhat.com>
65098         doc: users.txt: list hivex
65099         * users.txt: Add hivex.
65101 2010-05-18  Richard Jones  <rjones@redhat.com>
65103         doc: users.txt: list febootstrap
65104         * users.txt: Add febootstrap.
65106 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
65108         bootstrap: fix an error when gnulib is not used as a git submodule
65109         * build-aux/bootstrap (gnulib_path): If its length is zero then
65110         assign "gnulib" to it.
65111         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
65113 2010-05-16  Bruno Haible  <bruno@clisp.org>
65115         Avoid autoconf warnings about AM_ICONV.
65116         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
65117         2.64.
65119 2010-05-16  Bruno Haible  <bruno@clisp.org>
65121         absolute-header: Make the macro usable in more situations.
65122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
65123         from gl_ABSOLUTE_HEADER.
65124         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
65126 2010-05-16  James Youngman  <jay@gnu.org>
65128         doc: update users.txt
65129         * users.txt: Add CSSC.
65131 2010-05-16  Jim Meyering  <meyering@redhat.com>
65133         init.sh: fix an error in the previous change; add more comments
65134         * tests/init.sh: Compare exit code in loop against 9, not 2.
65135         Patch by Bruno Haible.
65136         Make the two tests more similar by adding an empty "then" clause.
65137         Add comments.
65139         init.sh: avoid unnecessary shell re-exec
65140         * tests/init.sh: Improve the re-exec-required check to first test the
65141         current shell.  If it passes the test, do not search for a shell that
65142         does pass, and do not re-exec.  This test is particularly contorted to
65143         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
65144         of $(...) evokes a syntax error and causes immediate shell exit with
65145         status 2.  Bruno Haible reported that the re-exec made it impossible
65146         to single-step through any init.sh-using script.
65148 2010-05-16  Bruno Haible  <bruno@clisp.org>
65150         Fix collision between gnulib's and libintl's printf replacements.
65151         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
65152         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
65153         (printf): When using GNU C, map the __printf__ function to rpl_printf
65154         via __asm__. When not using GNU C, define rpl_printf instead of
65155         __printf__.
65156         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
65157         commit.
65158         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
65159         commit.
65160         * m4/asm-underscore.m4: New file.
65161         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
65162         * modules/stdio (Files): Add m4/asm-underscore.m4.
65163         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
65164         Reported by Ben Pfaff.
65166 2010-05-16  Bruno Haible  <bruno@clisp.org>
65168         verify: Avoid skipping the test on openSUSE 11.0.
65169         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
65171 2010-05-13  Bruno Haible  <bruno@clisp.org>
65173         Avoid useless warnings from G++.
65174         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
65175         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
65176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65178 2010-05-11  Jim Meyering  <meyering@redhat.com>
65180         maint.mk: tweak preceding change
65181         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
65182         regexps tighter by anchoring at EOL, and make the new group "shy"
65183         for slightly decreased overhead.
65185 2010-05-11  Eric Blake  <eblake@redhat.com>
65187         maint.mk: gnulib doesn't guarantee NSIG
65188         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
65190 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65192         test-pwrite.c: Remove unused variable declaration.
65193         * tests/test-pwrite.c (main): Remove read_buf declaration.
65195         Remove useless test-pwrite.sh file.
65196         * tests/test-pwrite.sh: Delete file.
65197         * modules/pwrite-tests: Remove references.
65198         Reported by Bruno Haible.
65200 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65202         init.sh: fix a typo
65203         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
65205 2010-05-10  Jim Meyering  <meyering@redhat.com>
65207         maint.mk: avoid using a temporary file in the always-defined-macros check
65208         * top/maint.mk (.re-defmac): Remove rule.
65209         (gl_trap_): Remove definition.
65210         (sc_prohibit_always-defined_macros): Rewrite not to create and
65211         depend on a temporary file.  Instead, depend on GNU grep's ability
65212         to read a list of regular expressions from stdin when given "-f -".
65214 2010-05-09  Bruno Haible  <bruno@clisp.org>
65216         Update to GNU gettext 0.18, part 1.
65217         * m4/gettext.m4: Update to GNU gettext 0.18.
65218         * m4/intl.m4: Likewise.
65219         * m4/po.m4: Likewise.
65220         * modules/gettext (Files): Add m4/fcntl-o.m4.
65221         (configure.ac): Require gettext infrastructure from version 0.18.
65223 2010-05-09  Jim Meyering  <meyering@redhat.com>
65225         init.sh: enable MALLOC_PERTURB_
65226         * tests/init.sh: Enable glibc's malloc-perturbing option.
65228         maint.mk: improve sc_cross_check_PATH_usage_in_tests
65229         With my recent change in init.sh from the two-line form:
65230             -#   : ${srcdir=.}
65231             -#   . "$srcdir/init.sh"; path_prepend_ .
65232             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
65233         I noticed that using the one-line form would cause this test
65234         to fail with a false-positive, or to stop working altogether,
65235         depending on whether help-version changed or all the tests did.
65236         * top/maint.mk (_hv_regex): Remove this definition.
65237         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
65238         (_hv_regex_strong): Use a stronger regex to check for conformance.
65239         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
65240         Give a separate diagnostic for lack of conforming use.
65242         maint.mk: prohibit definition of symbols defined by gnulib
65243         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
65244         definition of symbols defined by gnulib.
65246 2010-05-09  Bruno Haible  <bruno@clisp.org>
65248         acl: Avoid test failure on Cygwin-hosted mingw.
65249         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
65251 2010-05-09  Bruno Haible  <bruno@clisp.org>
65253         error: Use system's fcntl function.
65254         * lib/error.c (fcntl): Undefine.
65256 2010-05-09  Jim Meyering  <meyering@redhat.com>
65258         verify: adjust formatting to be more consistent
65259         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
65260         argument-list '('s, and after one comma.
65262 2010-05-09  Bruno Haible  <bruno@clisp.org>
65264         error: More reliable output on mingw.
65265         * lib/error.c: Include <windows.h>.
65266         (is_open): New function.
65267         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
65268         defined.
65270 2010-05-09  Bruno Haible  <bruno@clisp.org>
65272         vasnprintf: Fix syntax errors in libintl build on mingw.
65273         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
65274         pad_ourselves and prec_ourselves after use.
65276 2010-05-08  Bruno Haible  <bruno@clisp.org>
65278         * lib/config.charset: Update comments for Cygwin 1.7.
65279         * lib/localcharset.c: Likewise.
65281 2010-05-07  Jim Meyering  <meyering@redhat.com>
65283         init.sh: improve comments
65284         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
65285         . "${srcdir=.}/init.sh"; path_prepend_ .
65286         Add a note about path_prepend_ and the alternative of using
65287         TESTS_ENVIRONMENT.
65289 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
65291         exclude: Unescape hashed patterns in wildcard mode.
65292         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
65293         to the hash list.
65294         * tests/test-exclude8.sh: New test case.
65295         * modules/exclude-tests: Add new test.
65297 2010-05-05  Eric Blake  <eblake@redhat.com>
65299         verify: automate tests
65300         * modules/verify-tests: New module.
65301         * tests/test-verify.sh: New file.
65302         * tests/test-verify.c: Guard each negative test with a unique id.
65303         Also avoid warning about unused left hand of comma expressions.
65305 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65307         Further improvements to verify.h, suggested by Eric Blake.
65308         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
65309         the GL_* versions, to avoid collision with OpenGL.
65310         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
65311         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
65312         than testing merely whether it's defined.
65314         Modify verify.h to pacify gcc -Wredundant_decls.
65315         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
65316         These use the prefix "GL_" since they're likely to be useful elsewhere.
65317         We may need to break them out into a different .h file.
65318         (__COUNTER__): Define to 0 if the compiler doesn't support it.
65319         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
65320         of verify_function__.
65322 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65324         Tests for module pwrite.
65325         * modules/pwrite-tests: New file.
65326         * tests/test-pwrite.sh: New file.
65327         * tests/test-pwrite.c: New file.
65329         New module pwrite.
65330         * lib/unistd.in.h (pwrite): New declaration.
65331         * lib/pwrite.c: New file, from glibc with modifications.
65332         * m4/pwrite.m4: New file.
65333         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
65334         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
65335         REPLACE_PWRITE.
65336         * modules/pwrite: New file.
65337         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
65338         REPLACE_PWRITE.
65339         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
65340         * doc/posix-functions/pwrite.texi: Mention the new module.
65342 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65344         pread: Update documentation.
65345         * doc/posix-functions/pread.texi: Mention the 'pread' module.
65347 2010-05-04  Eric Blake  <eblake@redhat.com>
65349         docs: update cygwin progress
65350         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
65351         this bug.
65352         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
65353         Added in cygwin 1.7.2.
65354         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
65355         Likewise.
65356         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
65357         Likewise.
65358         * doc/glibc-functions/dup3.texi (dup3): Likewise.
65359         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
65360         * doc/glibc-functions/accept4.texi (accept4): Likewise.
65361         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
65362         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
65363         Mention nproc module.
65364         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
65365         bug in cygwin 1.7.5 addition.
65366         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
65367         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
65368         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
65369         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
65370         1.7.5.
65371         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
65372         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
65373         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
65374         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
65375         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
65376         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
65377         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
65378         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
65379         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65380         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65381         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65382         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65383         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65384         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65385         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65386         Likewise.
65387         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65388         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65389         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65390         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65391         Likewise.
65392         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65393         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65394         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65395         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65396         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65397         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65398         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65399         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65400         Likewise.
65401         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65402         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65403         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65404         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65405         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65406         Likewise.
65407         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65408         Likewise.
65409         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65410         Likewise.
65411         * doc/glibc-functions/xdrrec_endofrecord.texi
65412         (xdrrec_endofrecord): Likewise.
65413         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65414         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65415         Likewise.
65416         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65417         Likewise.
65419 2010-05-04  Jim Meyering  <meyering@redhat.com>
65421         gendocs.sh: make its "-s FILE" option more useful
65422         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65423         $PACKAGE to reflect the probably-different basename of "FILE".
65425 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65427         bootstrap: don't ignore download_po_files failure
65428         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65429         failure.
65431 2010-05-03  Jim Meyering  <meyering@redhat.com>
65433         maint.mk: allow to pass options to gendocs.sh
65434         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65435         (gendocs_options_): New overridable variable.
65437         gnu-web-doc-update: don't ignore configure or build failure
65438         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65440         announce-gen: backslash-escape '@'s in --help output
65441         * build-aux/announce-gen: Fix syntax errors.
65443         maint.mk, announce-gen: allow project-specific announcement mail headers
65444         * top/maint.mk (translation_project_): Define default.
65445         (announcement_Cc_, announcement_mail_headers_): Likewise.
65446         (announcement): Invoke announce-gen with new --mail-headers option.
65447         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65449         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65450         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65451         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65452         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65453         line in the "err2" output file when running "make check" in verbose
65454         mode (i.e., with set -x enabled).
65456 2010-05-03  Bruno Haible  <bruno@clisp.org>
65458         wctob: Fix for weird platforms.
65459         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65460         argument value.
65462 2010-05-03  Jim Meyering  <meyering@redhat.com>
65464         maint.mk: prohibit unwarranted use of <strings.h>
65465         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65466         strings.h in a file that does not also use strcasecmp, strncasecmp,
65467         ffs or ffsll.
65469         maint.mk: remove obsolete comments
65470         * top/maint.mk: Remove stale, commented-out rules.
65472 2010-05-02  Bruno Haible  <bruno@clisp.org>
65474         wcwidth: Declare also when it's aliased.
65475         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65476         macro.
65478 2010-05-02  Bruno Haible  <bruno@clisp.org>
65480         Fix regression from 2010-04-25.
65481         * gnulib-tool (func_modules_transitive_closure): Check the status of
65482         all modules, not only of the tests that are of the form foo-tests where
65483         foo is a module.
65485 2010-05-02  Bruno Haible  <bruno@clisp.org>
65487         wctob: Work around nasty Cygwin 1.7.2 bug.
65488         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65489         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65491 2010-05-01  Bruno Haible  <bruno@clisp.org>
65493         fpurge: Sharper test.
65494         * tests/test-fpurge.c (main): Add one more ftell check.
65495         * modules/fpurge-tests (Depends-on): Add ftell.
65496         Suggested by Eric Blake.
65498 2010-05-01  Bruno Haible  <bruno@clisp.org>
65500         ftello: Another test.
65501         * tests/test-ftello3.c: New file.
65502         * modules/ftello-tests (Files): Add it.
65503         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65504         MOSTLYCLEANFILES.
65506         ftell: Another test.
65507         * tests/test-ftell3.c: New file.
65508         * modules/ftell-tests (Files): Add it.
65509         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65510         MOSTLYCLEANFILES.
65512 2010-05-01  Bruno Haible  <bruno@clisp.org>
65514         ftell, ftello: Work around Solaris bug.
65515         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65516         * lib/ftello.c: Include stdio-impl.h.
65517         (ftello): On Solaris, when _IOWRT is set, compute the result without
65518         looking at _IOREAD.
65519         * modules/ftello (Files): Add lib/stdio-impl.h.
65520         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65521         * doc/posix-functions/ftello.texi: Likewise.
65522         Reported by Eric Blake.
65524 2010-05-01  Bruno Haible  <bruno@clisp.org>
65526         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65527         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65528         the _IOWRT flag is also set.
65530 2010-05-01  Bruno Haible  <bruno@clisp.org>
65532         Fix doc about a HP-UX stdio bug.
65533         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65534         * doc/posix-functions/ftello.texi: Likewise.
65536 2010-05-01  Bruno Haible  <bruno@clisp.org>
65538         lseek test: Fix failure on Solaris.
65539         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65540         output.
65542 2010-04-30  Jim Meyering  <meyering@redhat.com>
65544         bootstrap: don't ignore failure to generate po*/Makevars
65545         * build-aux/bootstrap (with_gettext): Don't ignore failure
65546         to create po/Makevars or runtime-po/Makevars.
65548 2010-04-29  Eric Blake  <eblake@redhat.com>
65550         headers: relax license to LGPLv2+
65551         * modules/fcntl-h (License): Relax license.
65552         * modules/getopt-posix (License): Likewise.
65553         * modules/locale (License): Likewise.
65554         * modules/math (License): Likewise.
65555         * modules/pty (License): Likewise.
65556         * modules/sched (License): Likewise.
65557         * modules/search (License): Likewise.
65558         * modules/spawn (License): Likewise.
65559         * modules/stdarg (License): Likewise.
65560         * modules/sysexits (License): Likewise.
65562 2010-04-29  Jim Meyering  <meyering@redhat.com>
65564         inttypes: relax license to LGPLv2+
65565         * modules/inttypes (License): Relax license.
65567 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65569         * top/maint.mk (indent): Run twice to produce idempotent results.
65571 2010-04-28  Bruno Haible  <bruno@clisp.org>
65573         getdate: Generate getdate.c in the source directory.
65574         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65575         MOSTLYCLEANFILES.
65576         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65578 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65580         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65581         is not declared as a const *; avoid warnings in that case.
65583 2010-04-28  Eric Blake  <eblake@redhat.com>
65585         canonicalize-lgpl: avoid compiler warning
65586         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65587         declaration' / 'extraneous semicolon' warning with some compilers.
65588         Reported by Andreas Gruenbacher.
65590 2010-04-28  Jim Meyering  <meyering@redhat.com>
65592         init.sh: ensure a more reliable exit status when exiting via trap
65593         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65594         Inspired by patches from Dmitry V. Levin.
65595         Also trap on signal 3 (SIGQUIT).
65597 2010-04-27  Bruno Haible  <bruno@clisp.org>
65599         Update doc about utimes().
65600         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65601         'utimens' module.
65602         Reported by Andreas Gruenbacher <agruen@suse.de>.
65604 2010-04-27  Eric Blake  <eblake@redhat.com>
65606         full-read, full-write: relax license
65607         * modules/full-read (License): Drop to LGPLv2+.
65608         * modules/full-write (License): Likewise.
65609         * modules/safe-read (License): Likewise.
65610         * modules/safe-write (License): Likewise.
65612         pthread: mention library for linking
65613         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65615 2010-04-27  Jim Meyering  <meyering@redhat.com>
65617         maint.mk: fix a bug introduced in last change
65618         * top/maint.mk (gl_assured_headers_): Now that all names are on
65619         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65620         is not anchored to end of word, it should be adequate.
65622         maint.mk: avoid side-effect in latest syntax-check
65623         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65624         to run commands via $(shell...), and hence to incur cost only when
65625         the new rule is actually run.
65627         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65628         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65629         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65630         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65631         (gl_assured_headers_, az_, AZ_): Define.
65632         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65634 2010-04-26  Jim Meyering  <jim@meyering.net>
65635             Bruno Haible  <bruno@clisp.org>
65637         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65638         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65639         Prompted by an exchange with Gilles Espinasse.
65641 2010-04-26  Jim Meyering  <meyering@redhat.com>
65643         git-version-gen: aesthetic tweak
65644         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65645         so that the command remains on a single line.
65647 2010-04-26  Eric Blake  <eblake@redhat.com>
65649         git-version-gen: allow use on EBCDIC hosts
65650         * build-aux/git-version-gen (dirty): Use literal rather than tying
65651         ourselves to ascii.
65652         Reported by Steve Goetze.
65654 2010-04-25  Bruno Haible  <bruno@clisp.org>
65656         netdb: Add support for GNULIB_POSIXCHECK.
65657         * lib/netdb.in.h: Include warn-on-use.h.
65658         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65659         functions are used when GNULIB_POSIXCHECK is defined and the
65660         getaddrinfo module is not in use.
65661         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65662         freeaddrinfo, gai_strerror, getnameinfo are declared.
65663         * modules/netdb (Depends-on): Add warn-on-use.
65664         (Makefile.am): Include warn-on-use.h in netdb.h.
65666 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65668         build: avoid "make check" failure without .git/ directory
65669         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65670         there is no .git/ directory.
65672 2010-04-25  Bruno Haible  <bruno@clisp.org>
65674         ptsname: Fix misuse of ttyname_r.
65675         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65676         of errno.
65678 2010-04-25  Bruno Haible  <bruno@clisp.org>
65680         ttyname_r: Make it work on Solaris 10.
65681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65682         if the system function has the POSIX declaration. Test whether the
65683         function fails if the buffer is less than 128 bytes large.
65684         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65685         system's ttyname_r function. Provide a reasonably large buffer.
65686         * modules/ttyname_r (Depends-on): Add extensions.
65687         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65689 2010-04-25  Bruno Haible  <bruno@clisp.org>
65691         Use the 'extensions' module for some more functions on Solaris.
65692         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65693         module.
65694         * doc/posix-functions/ctime_r.texi: Likewise.
65695         * doc/posix-functions/getgrgid_r.texi: Likewise.
65696         * doc/posix-functions/getgrnam_r.texi: Likewise.
65697         * doc/posix-functions/getpwnam_r.texi: Likewise.
65698         * doc/posix-functions/getpwuid_r.texi: Likewise.
65699         * doc/posix-functions/readdir_r.texi: Likewise.
65700         * doc/posix-functions/sigwait.texi: Likewise.
65701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65702         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65704 2010-04-25  Bruno Haible  <bruno@clisp.org>
65706         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65707         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65708         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65709         * lib/ttyname_r.c: Include <limits.h>.
65710         (ttyname_r): Define using the system's ttyname_r function, if it exists
65711         and not on Solaris.
65712         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65713         set.
65714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65715         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65716         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65717         Reported by Simon Josefsson.
65719 2010-04-25  Bruno Haible  <bruno@clisp.org>
65721         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65722         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65723         * doc/posix-functions/ctime_r.texi: Likewise.
65724         * doc/posix-functions/getgrgid_r.texi: Likewise.
65725         * doc/posix-functions/getgrnam_r.texi: Likewise.
65726         * doc/posix-functions/getlogin_r.texi: Likewise.
65727         * doc/posix-functions/getpwnam_r.texi: Likewise.
65728         * doc/posix-functions/getpwuid_r.texi: Likewise.
65729         * doc/posix-functions/readdir_r.texi: Likewise.
65730         * doc/posix-functions/sigwait.texi: Likewise.
65731         * doc/posix-functions/ttyname_r.texi: Likewise.
65732         Reported by Simon Josefsson.
65734 2010-04-25  Bruno Haible  <bruno@clisp.org>
65736         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65737         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65738         also to --create-testdir.
65739         (func_acceptable): Don't consider the status of *-tests modules here.
65740         (func_modules_transitive_closure): Consider it here, before including a
65741         test module.
65742         (func_import, func_create_testdir): Set inc_all_direct_tests,
65743         inc_all_indirect_tests.
65744         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65745         --create-testdir and --create-megatestdir.
65747 2010-04-25  Bruno Haible  <bruno@clisp.org>
65749         gnulib-tool: Add --without-*-tests options.
65750         * gnulib-tool (func_usage): Document the --without-*-tests options.
65751         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65752         excl_unportable_tests): New variables.
65753         Fail if they are specified with --import or --update.
65754         (func_acceptable): Respect the excl_*_tests variables.
65755         (func_import): Set the excl_*_tests variables to empty.
65757 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65758             Bruno Haible  <bruno@clisp.org>
65760         Work around a MacOS X 10.4 bug with openpty.
65761         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65762         * tests/test-openpty.c (main): Close the master side explicitly.
65764 2010-04-25  Bruno Haible  <bruno@clisp.org>
65766         strnlen: Fix a C++ test error on MacOS X and Solaris.
65767         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65768         the function is not declared.
65769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65770         Simon Josefsson.
65772 2010-04-24  Bruno Haible  <bruno@clisp.org>
65774         Avoid a gcc warning.
65775         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65776         of correct type for %08lx directive.
65777         Reported by Eric Blake.
65779 2010-04-24  Bruno Haible  <bruno@clisp.org>
65781         vasnprintf: Correct errno value in case of out-of-memory.
65782         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65783         or sprintf. Use the errno value from SNPRINTF or sprintf.
65784         Reported by Ian Beckwith <ianb@erislabs.net>.
65786 2010-04-24  Bruno Haible  <bruno@clisp.org>
65788         ansi-c++-opt: Find correct compiler when cross-compiling.
65789         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65790         AC_CHECK_PROGS.
65791         Reported by Simon Josefsson.
65793 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
65795         vc-list-files: Add support for subversion
65796         * build-aux/vc-list-files: Use "svn list" to generate the list of
65797         files controlled by subversion.
65799 2010-04-23  Jim Meyering  <meyering@redhat.com>
65801         vc-list-files tests: convert to use init.sh
65802         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
65803         path_prepend_.
65804         Use Exit, not exit.
65805         Use skip_ rather than open coding it.
65806         Remove trap set-up and compare definitions.
65807         * tests/test-vc-list-files-git.sh: Likewise.
65808         * modules/vc-list-files-tests (Files): Add tests/init.sh.
65810 2010-04-22  Simon Josefsson  <simon@josefsson.org>
65812         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
65813         backup files.
65815 2010-04-21  Simon Josefsson  <simon@josefsson.org>
65817         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65819 2010-04-20  Eric Blake  <eblake@redhat.com>
65821         tests: be robust to ignored SIGPIPE
65822         * tests/test-select-in.sh: Consume all output.
65823         * tests/test-lseek.sh: Check correct exit status, while avoiding
65824         EPIPE.
65826 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65827             Bruno Haible  <bruno@clisp.org>
65829         visibility: Don't use -fvisibility if it leads to a warning.
65830         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65831         yes, don't pretend that visibility works if it leads to a warning.
65832         Reported by Mike Gran <spk121@yahoo.com>.
65834 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65836         * build-aux/bootstrap: Use "git -h" for testing for supported options
65837         instead of "git --help".  The short-form option only shows a summary,
65838         and doesn't layout the full man page.  Grep for the full option name
65839         in the summary, too.
65841 2010-04-19  Bruno Haible  <bruno@clisp.org>
65843         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65844         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65845         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65846         mention of RELOCATABLE_STRIP.
65847         Reported by Sylvain Beucler <beuc@beuc.net>.
65849 2010-04-19  Bruno Haible  <bruno@clisp.org>
65851         * lib/diffseq.h: Fix typo in comment.
65852         Reported by Eric Blake.
65854 2010-04-19  Bruno Haible  <bruno@clisp.org>
65856         ioctl: Move autoconf macro to a .m4 file.
65857         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65858         * modules/ioctl (Files): Add it.
65859         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65860         Reported by Ian Beckwith <ianb@erislabs.net>.
65862 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65863             Bruno Haible  <bruno@clisp.org>
65865         diffseq: Accommodate use-case with abstract arrays.
65866         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65867         is not defined.
65868         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65869         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65871 2010-04-18  Bruno Haible  <bruno@clisp.org>
65873         * doc/posix-headers/stdbool.texi: More precise wording.
65875 2010-04-17  Jim Meyering  <meyering@redhat.com>
65877         maint.mk: use gnu-style indentation in an embedded perl script
65878         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65879         Rename variable: s/two/last_two_bytes/
65881 2010-04-16  Eric Blake  <eblake@redhat.com>
65883         test-stdbool: skip test that fails with Solaris CC
65884         * tests/test-stdbool.c (f): Skip test that causes compilation
65885         error under buggy C++ compiler.
65886         * lib/stdbool.in.h: Document the limitation.
65887         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65889         setenv: allow compilation with C++
65890         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65891         register keyword.
65893         stdint: allow test to pass with C++
65894         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65896         getopt: allow compilation with C++
65897         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65898         struct.
65899         * lib/getopt.c (_getopt_internal_r): Use correct type.
65900         Reported by Dagobert Michelson, via Joel E. Denny.
65902 2010-04-16  Bruno Haible  <bruno@clisp.org>
65904         Override netdb.h always.
65905         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65906         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65907         Reported by Ludovic Courtès <ludo@gnu.org>.
65909 2010-04-15  Bruno Haible  <bruno@clisp.org>
65911         openpty: Fix mistake from 2010-03-21.
65912         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65913         Reported by Simon Josefsson.
65915 2010-04-15  Eric Blake  <eblake@redhat.com>
65917         test-forkpty: fix expected signature
65918         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65919         Reported by Simon Josefsson.
65921 2010-04-15  Jim Meyering  <meyering@redhat.com>
65923         maint.mk: texinfo_suffix_re_: correct the default regexp
65924         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65926         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65927         make it configurable via texinfo_suffix_re_.
65929 2010-04-14  Eric Blake  <eblake@redhat.com>
65931         strtok_r: relax license to LGPLv2+
65932         * modules/strtok_r (License): Relax license.
65933         Reported by Matthias Bolte.
65935 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65937         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65938         version 1.4.4 by default instead of requiring the libgcrypt
65939         version used during build.  This makes it possible to use the
65940         application with older but still binary compatible libgcrypt
65941         versions.
65943 2010-04-13  Eric Blake  <eblake@redhat.com>
65945         getopt-gnu: match recent glibc fixes and posix ruling
65946         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65947         '+' handling, when requesting extensions.
65948         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65949         'W;' handling.
65950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65951         * doc/posix-functions/getopt.texi (getopt): Document this.
65952         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65953         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65954         Likewise.
65956         getopt: merge bug fixes from glibc
65957         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65958         diagnostics.  Honor '+:' correctly.  Reject ';'.
65960         getopt-posix: detect MacOS bug
65961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65962         optind when missing a required argument.
65963         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65964         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65965         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65966         Likewise.
65968         getopt-posix: avoid spurious failure on Solaris
65969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65970         an indicator that setting optind=1 is sufficient for reset.
65972         getopt-posix: avoid spurious failure on FreeBSD
65973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65974         in POSIX mode, since the m4 test uses it.
65976         gnulib-tool: silence warning on BSD sh
65977         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65979 2010-04-13  Jim Meyering  <meyering@redhat.com>
65981         doc: users.txt: GNU patch now uses gnulib
65982         * users.txt: Add patch.
65984 2010-04-12  Jim Meyering  <meyering@redhat.com>
65986         maint.mk: generate more concise timing data for syntax-check rules
65987         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65988         " done" from each line that reports a syntax-check test duration.
65990 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65992         git-version-gen: use "git update-index..." rather than "git status"
65993         * build-aux/git-version-gen: Use git update-index --refresh, not
65994         "git status".  With some versions of git, "git status" would fail
65995         to update the index and result in an unwarranted "-dirty" suffix.
65997 2010-04-11  Jim Meyering  <meyering@redhat.com>
65999         openat: correct formatting (no semantic change)
66000         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
66001         Suggested by Bruno Haible.
66003 2010-04-11  Bruno Haible  <bruno@clisp.org>
66005         Stricter declaration checking in testdirs.
66006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66007         If for_tests is true, augment AM_CPPFLAGS to define
66008         GNULIB_STRICT_CHECKING.
66009         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
66010         GNULIB_STRICT_CHECKING is defined, verify that the function is
66011         declared.
66013 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
66014             Bruno Haible  <bruno@clisp.org>
66016         libunistring: Improve configure output.
66017         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
66018         Don't say "consider installing GNU libunistring" when checking again
66019         with libiconv.
66021 2010-04-11  Bruno Haible  <bruno@clisp.org>
66023         libunistring: Correct value of $LTLIBUNISTRING.
66024         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
66025         correct the value of $LTLIBUNISTRING.
66027 2010-04-11  Bruno Haible  <bruno@clisp.org>
66029         havelib: Add static libraries to LIBS in the right order.
66030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
66031         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
66033 2010-04-11  Bruno Haible  <bruno@clisp.org>
66035         libunistring: Detect libunistring also when it depends on libiconv.
66036         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
66037         the second AC_LIB_HAVE_LINKFLAGS invocation.
66039 2010-04-11  James Youngman  <jay@gnu.org>
66041         close-stream: declare local scalars to be "const"
66042         * lib/close-stream.c (close_stream): Make boolean variables const
66043         to document the fact that we set but do not change them.
66045 2010-04-11  Bruno Haible  <bruno@clisp.org>
66047         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
66049 2010-04-11  Jim Meyering  <meyering@redhat.com>
66051         maint.mk: don't include dist-check.mk
66052         * top/maint.mk: Remove bogus include directive.
66054         maint.mk: improve empty-line-at-EOF check
66055         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
66056         solution, rather than tail+Perl-based one.  The latter would read
66057         a few kilobytes from the end of each file, and did not handle empty
66058         files properly.
66060         maint.mk: print the elapsed time for each syntax-check rule
66061         * top/maint.mk (sc_m_rules_): Save start time in a file.
66062         (sc_z_rules_): New rules: remove temp file and print elapsed time.
66063         (local-check): Interpose the .z rules
66065 2010-04-11  Jim Meyering  <meyering@redhat.com>
66067         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
66068         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
66069         empty file with one that ends in an empty line.
66071 2010-04-10  Bruno Haible  <bruno@clisp.org>
66073         mkdir: Make it work on mingw64.
66074         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
66075         * lib/mkdir.c: Update comment.
66076         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
66078 2010-04-10  Bruno Haible  <bruno@clisp.org>
66080         Don't override improved macro from newer autoconf.
66081         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
66082         autoconf >= 2.62.
66083         Reported by Joel E. Denny <jdenny@clemson.edu>.
66085 2010-04-10  Jim Meyering  <meyering@redhat.com>
66087         maint.mk: new syntax-check rule: prohibit empty lines at end of file
66088         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
66090         maint.mk: correct a diagnostic
66091         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
66092         in diagnostic; now use $prohibit.
66094 2010-04-10  Bruno Haible  <address@hidden>
66096         fchownat: Fix a C++ test error on Solaris 8.
66097         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
66098         the function does not exist.
66100 2010-04-10  Bruno Haible  <bruno@clisp.org>
66102         vasnprintf: Add more tests.
66103         * tests/test-vasnprintf-posix.c: Include <errno.h>.
66104         (test_function): Test converting an invalid wide string.
66106         vasnprintf: Correct handling of unconvertible wide string arguments.
66107         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
66108         VASNPRINTF.
66109         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
66110         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
66111         smaller than the expected maximum need for the directive. Set errno to
66112         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
66113         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
66114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
66115         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
66116         * modules/vasnprintf (Files): Add m4/printf.m4.
66117         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66119 2010-04-10  Bruno Haible  <bruno@clisp.org>
66121         vasnprintf: Fix crash in %ls directive.
66122         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
66123         string is passed as argument to %ls, with no precision and no width.
66124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66126 2010-04-10  Bruno Haible  <bruno@clisp.org>
66128         vasnprintf: Fix multiple test failures on mingw.
66129         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
66130         _snprintf, or snwprintf, not _snwprintf.
66132 2010-04-10  Bruno Haible  <bruno@clisp.org>
66134         write: Fix a C++ test error on mingw.
66135         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
66137 2010-04-10  Bruno Haible  <bruno@clisp.org>
66139         vasnprintf test: Reduce code duplication.
66140         * tests/test-vasnprintf.c (test_function): New function, extracted from
66141         test_vasnprintf.
66142         (test_vasnprintf, test_asnprintf): Invoke it.
66144 2010-04-10  Bruno Haible  <bruno@clisp.org>
66146         strnlen: Fix warning in C++ mode on MacOS X.
66147         * lib/string.in.h (strnlen): Use the modern idiom.
66148         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
66149         defining strnlen as a macro already in <config.h>.
66150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66151         REPLACE_STRNLEN.
66152         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
66153         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66155 2010-04-08  James Youngman  <jay@gnu.org>
66157         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
66158         the example.
66160 2010-04-09  Jim Meyering  <meyering@redhat.com>
66162         maint.mk: print better diagnostic when there is no $(_hv_file)
66163         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
66164         announce that when $(_hv_file) (aka help-version) does not exist.
66166         init.sh: run tr in the "C" locale to avoid multibyte interpretation
66167         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
66168         not try to interpret its random input bytes.  Jarno Rajahalme reported
66169         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
66170         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
66171         (mktempd_): Likewise, just in case.
66173         ftruncate: add two years to projected module removal date: 2012
66174         * m4/ftruncate.m4: Adjust comments.
66176         ftruncate: mark module as obsolete; even MinGW provides it, now
66177         * modules/ftruncate (Status): Obsolete.
66178         (Notice): Say that.
66179         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
66180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
66182 2010-04-08  Bruno Haible  <bruno@clisp.org>
66184         Fix side effects from tests-related modules.
66185         * modules/dprintf-posix (Comment): New section.
66186         * modules/fprintf-posix (Comment): Likewise.
66187         * modules/obstack-printf-posix (Comment): Likewise.
66188         * modules/printf-posix (Comment): Likewise.
66189         * modules/snprintf-posix (Comment): Likewise.
66190         * modules/sprintf-posix (Comment): Likewise.
66191         * modules/vasnprintf-posix (Comment): Likewise.
66192         * modules/vasprintf-posix (Comment): Likewise.
66193         * modules/vdprintf-posix (Comment): Likewise.
66194         * modules/vfprintf-posix (Comment): Likewise.
66195         * modules/vprintf-posix (Comment): Likewise.
66196         * modules/vsnprintf-posix (Comment): Likewise.
66197         * modules/vsprintf-posix (Comment): Likewise.
66198         * modules/xprintf-posix (Comment): Likewise.
66199         * modules/xvasprintf-posix (Comment): Likewise.
66200         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
66201         * modules/floorf-tests (Depends-on): Likewise.
66202         * modules/round-tests (Depends-on): Likewise.
66203         * modules/roundf-tests (Depends-on): Likewise.
66204         * modules/trunc-tests (Depends-on): Likewise.
66205         * modules/truncf-tests (Depends-on): Likewise.
66206         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
66207         'fprintf-posix' module is not present.
66208         * tests/test-floorf2.c (check): Likewise.
66209         * tests/test-trunc2.c (check): Likewise.
66210         * tests/test-truncf2.c (check): Likewise.
66211         * tests/test-round2.c (equal): Likewise.
66212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66214 2010-04-07  Karl Berry  <karl@gnu.org>
66216         * config/srclist.txt,
66217         * config/srclistvars.sh,
66218         * config/srclist-update: doc fixes.
66220 2010-04-07  Jim Meyering  <meyering@redhat.com>
66222         maint.mk: add a PATH crosschecking syntax-check rule
66223         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
66224         Useful if you use a test like the one in help-version (coreutils,
66225         diffutils, grep, gzip) that ensures $(VERSION) matches what is
66226         printed by prog --version.
66228 2010-04-06  Bruno Haible  <bruno@clisp.org>
66230         Fix link error on mingw.
66231         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
66232         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
66234 2010-04-06  Bruno Haible  <bruno@clisp.org>
66236         Assume rmdir exists.
66237         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
66239 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
66241         doc: update users.txt
66242         * users.txt: Add gcal.
66244 2010-04-06  Jim Meyering  <meyering@redhat.com>
66246         init.sh: simply unset TMPDIR rather than risking env -i
66247         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
66248         although it probably works fine on all Unix-based systems, some
66249         systems (Cygwin?) cannot tolerate a totally cleared environment.
66250         Suggestion from Eric Blake.
66252 2010-04-06  Jim Meyering  <meyering@redhat.com>
66254         init.sh: portability fix: use env's POSIX-specified -i option not -u
66255         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
66256         than unportable env -u.  Solaris 5.11's env lacks support for -u.
66258 2010-04-05  Bruno Haible  <bruno@clisp.org>
66260         btowc: Work around Cygwin 1.7.2 bug.
66261         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
66262         does not map NUL to 0.
66263         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
66265 2010-04-05  Bruno Haible  <bruno@clisp.org>
66267         Make the multithread modules work on Cygwin 1.7.2.
66268         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
66269         imported symbols can be declared weak, so that it returns "no" on
66270         Cygwin 1.7.2.
66272 2010-04-05  Bruno Haible  <bruno@clisp.org>
66274         Use the module 'strncat'.
66275         * modules/unistr/u8-strncat (Depends-on): Add strncat.
66277         Tests for module 'strncat'.
66278         * modules/strncat-tests: New file.
66279         * tests/test-strncat.c: New file.
66281         New module 'strncat'.
66282         * lib/string.in.h (strncat): New declaration.
66283         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
66284         * m4/strncat.m4: New file, based on m4/memchr.m4.
66285         * modules/strncat: New file.
66286         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
66287         is declared.
66288         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
66289         REPLACE_STRNCAT.
66290         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
66291         REPLACE_STRNCAT.
66292         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
66293         module.
66294         * tests/test-string-c++.cc: Check signature of strncat.
66296 2010-04-05  Jim Meyering  <meyering@redhat.com>
66298         xstrtoumax-tests: convert to use init.sh
66299         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
66300         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66301         Use Exit, not exit.
66302         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66304         xstrtoimax-tests: convert to use init.sh
66305         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
66306         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66307         Use Exit, not exit.
66308         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66310 2010-04-05  Bruno Haible  <bruno@clisp.org>
66312         sys_socket: Avoid #define replacements in C++ mode.
66313         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
66314         warning to the function if possible, rather than #defining the symbol
66315         to a dysfunctional alias.
66317 2010-04-05  Bruno Haible  <bruno@clisp.org>
66319         fseeko: Fix C++ test error on mingw.
66320         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
66321         gl_FUNC_FSEEKO.
66322         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
66323         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
66324         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
66325         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
66327 2010-04-05  Bruno Haible  <bruno@clisp.org>
66329         duplocale: Improve test output.
66330         * tests/test-duplocale.c (main): Print reason for skipped test.
66332 2010-04-05  Bruno Haible  <bruno@clisp.org>
66334         Assume rmdir exists.
66335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
66336         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
66338 2010-04-05  Bruno Haible  <bruno@clisp.org>
66340         Fix link error on Solaris 8 with cc.
66341         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
66343 2010-04-05  Bruno Haible  <bruno@clisp.org>
66345         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66346         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
66348 2010-04-05  Bruno Haible  <bruno@clisp.org>
66350         vasprintf: Update documentation.
66351         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
66353 2010-04-05  Bruno Haible  <bruno@clisp.org>
66355         ptsname: Improve test.
66356         * tests/test-ptsname.c (main): Also try the various master names of BSD
66357         systems.
66359 2010-04-05  Bruno Haible  <bruno@clisp.org>
66361         memchr: Avoid a possible C++ test error.
66362         * lib/string.in.h (memchr): Provide declaration if function is missing.
66363         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
66364         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
66365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
66366         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
66368 2010-04-05  Bruno Haible  <bruno@clisp.org>
66370         strtok_r: Improve idiom.
66371         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
66372         AC_LIBOBJ is used.
66374 2010-04-05  Bruno Haible  <bruno@clisp.org>
66376         strdup: Improve idiom.
66377         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
66378         AC_LIBOBJ is used.
66379         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66380         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66381         when AC_LIBOBJ is used.
66383 2010-04-05  Bruno Haible  <bruno@clisp.org>
66385         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66386         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66387         don't set REPLACE_MBSINIT to 1.
66388         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66389         don't set REPLACE_MBRTOWC to 1.
66390         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66391         exist, don't set REPLACE_MBSRTOWCS to 1.
66392         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66393         exist, don't set REPLACE_MBSNRTOWCS to 1.
66394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66395         don't set REPLACE_WCRTOMB to 1.
66396         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66397         exist, don't set REPLACE_WCSRTOMBS to 1.
66398         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66399         exist, don't set REPLACE_WCSNRTOMBS to 1.
66401 2010-04-05  Bruno Haible  <bruno@clisp.org>
66403         ldexpl: Improve idiom.
66404         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66405         make sure to set HAVE_DECL_LDEXPL to 0.
66407 2010-04-05  Jim Meyering  <meyering@redhat.com>
66409         xstrtol-tests: convert to use init.sh
66410         * modules/xstrtol-tests (Files): Add tests/init.sh.
66411         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66412         Use Exit, not exit.
66413         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66415         atexit-tests: convert to use init.sh
66416         * modules/atexit-tests (Files): Add tests/init.sh.
66417         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66418         Use Exit, not exit.
66419         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66421         init.sh: fix typo
66422         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66424         init.sh: make it easier for a test script to write to the tty, ...
66425         when using automake's parallel-tests mode.
66426         * tests/init.sh (stderr_fileno_): Define overridable variable.
66427         (warn_): New function, to use it.
66428         (fail_, skip_, framework_failure_): Use warn_.
66430 2010-04-04  Bruno Haible  <bruno@clisp.org>
66432         btowc: Avoid warning.
66433         * lib/btowc.c: Include <stdlib.h>.
66434         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66436 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66437             Bruno Haible  <bruno@clisp.org>
66439         wchar: Port to NetBSD 1.5.
66440         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66441         * lib/wctype.in.h (WEOF): Likewise.
66443 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66444             Bruno Haible  <bruno@clisp.org>
66446         Port extended stdio to NetBSD 1.5.
66447         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66448         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66449         older.
66451 2010-04-04  Bruno Haible  <bruno@clisp.org>
66453         string: Remove unused substitution.
66454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66455         HAVE_DECL_STRERROR.
66456         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66458 2010-04-04  Bruno Haible  <bruno@clisp.org>
66460         strtod: Avoid a possible C++ test error.
66461         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66462         set REPLACE_STRTOD.
66464 2010-04-04  Bruno Haible  <bruno@clisp.org>
66466         strerror: Update documentation.
66467         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66469 2010-04-04  Bruno Haible  <bruno@clisp.org>
66471         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66472         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66473         _GL_CXXALIAS_SYS_CAST.
66475 2010-04-04  Bruno Haible  <bruno@clisp.org>
66477         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66478         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66479         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66480         REPLACE_FREXPL to 1.
66481         * doc/posix-functions/frexpl.texi: Update documentation.
66483 2010-04-04  Bruno Haible  <bruno@clisp.org>
66485         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66486         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66488 2010-04-04  Bruno Haible  <bruno@clisp.org>
66490         Implement nanosleep for native Windows.
66491         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66493 2010-04-04  Bruno Haible  <bruno@clisp.org>
66495         math: Fix some C++ test errors on Solaris 8.
66496         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66498 2010-04-04  Bruno Haible  <bruno@clisp.org>
66500         math: Fix some C++ test errors on Cygwin.
66501         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66502         truncl): Provide declaration if the system does not have it.
66503         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66504         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66505         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66506         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66507         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66508         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66509         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66510         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66511         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66512         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66513         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66514         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66515         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66516         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66517         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66518         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66520         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66521         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66522         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66523         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66524         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66526 2010-04-04  Bruno Haible  <bruno@clisp.org>
66528         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66529         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66530         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66531         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66532         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66533         * m4/isinf.m4 (gl_ISINF): Likewise.
66534         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66536 2010-04-04  Bruno Haible  <bruno@clisp.org>
66538         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66541 2010-04-04  Bruno Haible  <bruno@clisp.org>
66543         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66544         * modules/tmpfile (configure.ac): Update.
66546         tmpfile: Fix C++ test error on mingw.
66547         * lib/stdio.in.h (tmpfile): New declaration.
66548         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66549         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66550         * modules/tmpfile (Depends-on): Add stdio.
66551         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66552         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66554         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66555         REPLACE_TMPFILE.
66556         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66558 2010-04-04  Bruno Haible  <bruno@clisp.org>
66560         ioctl: Fix C++ test error on mingw.
66561         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66562         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66563         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66565 2010-04-03  Bruno Haible  <bruno@clisp.org>
66567         wcwidth: Fix C++ test error on mingw.
66568         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66570         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66572 2010-04-03  Bruno Haible  <bruno@clisp.org>
66574         nanosleep: Fix C++ test error on mingw.
66575         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66576         * lib/time.in.h (nanosleep): Use modern idiom.
66577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66578         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66579         REPLACE_NANOSLEEP to 1.
66580         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66581         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66583 2010-04-03  Bruno Haible  <bruno@clisp.org>
66585         strptime: Fix C++ test error on mingw.
66586         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66587         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66588         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66589         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66590         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66591         not REPLACE_STRPTIME.
66592         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66593         REPLACE_STRPTIME.
66595 2010-04-03  Bruno Haible  <bruno@clisp.org>
66597         timegm: Fix C++ test error on mingw.
66598         * lib/time.in.h (timegm): Use modern idiom.
66599         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66600         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66602         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66604 2010-04-03  Bruno Haible  <bruno@clisp.org>
66606         timegm: Assume declaration if function exists.
66607         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66608         if it exists. Don't clobber ac_cv_func_timegm.
66610 2010-04-03  Bruno Haible  <bruno@clisp.org>
66612         time_r: Fix C++ test error on mingw.
66613         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66614         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66615         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66617         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66619 2010-04-03  Bruno Haible  <bruno@clisp.org>
66621         time_r: Minor updates.
66622         * modules/time_r (Description): Mention the provided functions.
66623         * lib/time_r.c: Don't include <string.h>.
66624         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66625         * doc/posix-functions/localtime_r.texi: Likewise.
66627 2010-04-03  Bruno Haible  <bruno@clisp.org>
66629         time: Fix regression introduced on 2010-03-08.
66630         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66631         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66633 2010-04-03  Jim Meyering  <meyering@redhat.com>
66635         maint.mk: don't silently disable project-specific syntax-check rules
66636         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66637         that they need to convert their project-specific syntax-check rules
66638         to use the new _sc_search_regexp.
66640 2010-04-03  Bruno Haible  <bruno@clisp.org>
66642         fchdir: Fix regression introduced on 2010-03-08.
66643         * lib/unistd.in.h (fchdir): Fix declaration.
66644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66646         REPLACE_FCHDIR.
66647         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66648         REPLACE_FCHDIR.
66650 2010-04-03  Bruno Haible  <bruno@clisp.org>
66652         getpagesize: Fix C++ test error on mingw.
66653         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66654         system does not declare the function.
66655         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66656         declared.
66657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66658         HAVE_DECL_GETPAGESIZE.
66659         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66661 2010-04-03  Bruno Haible  <bruno@clisp.org>
66663         stdio: Make C++ tests work on mingw.
66664         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66665         does not declare the function.
66667 2010-04-03  Bruno Haible  <bruno@clisp.org>
66669         ftello: Fix C++ test error on mingw.
66670         * lib/stdio.in.h (ftello): Use modern idiom.
66671         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66672         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66673         is missing and that it needs to be replaced.
66674         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66676         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66678 2010-04-03  Bruno Haible  <bruno@clisp.org>
66680         fseeko: Fix C++ test error on mingw.
66681         * lib/stdio.in.h (fseeko): Use modern idiom.
66682         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66684         is missing and that it needs to be replaced.
66685         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66687         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66689 2010-04-03  Bruno Haible  <bruno@clisp.org>
66691         mkstemp: Fix C++ test error on mingw.
66692         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66694         function is missing and that it needs to be replaced.
66695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66696         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66698 2010-04-03  Bruno Haible  <bruno@clisp.org>
66700         stpncpy: Fix C++ test error on mingw.
66701         * lib/string.in.h (stpncpy): Use modern idiom.
66702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66703         function is missing and that it needs to be replaced.
66704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66705         REPLACE_STPNCPY.
66706         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66708 2010-04-03  Bruno Haible  <bruno@clisp.org>
66710         sys_stat: Fix C++ test error on mingw.
66711         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66712         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66714 2010-04-03  Bruno Haible  <bruno@clisp.org>
66716         pty: Update doc.
66717         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66719 2010-04-03  Bruno Haible  <bruno@clisp.org>
66721         unistd: Fix C++ test error on mingw.
66722         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66724 2010-04-03  Bruno Haible  <bruno@clisp.org>
66726         Update doc regarding mingw.
66727         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66728         * doc/glibc-functions/login_tty.texi: Likewise.
66729         * doc/glibc-functions/forkpty.texi: Likewise.
66731 2010-04-03  Bruno Haible  <bruno@clisp.org>
66733         stdlib: Avoid compilation failure of c-strtold on mingw.
66734         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66736 2010-04-03  Bruno Haible  <bruno@clisp.org>
66738         locale: Make C++ tests work on Cygwin and mingw.
66739         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66740         cannot provide the function.
66741         Reported by Simon Josefsson.
66743 2010-04-03  Bruno Haible  <bruno@clisp.org>
66745         localename: Port to MacOS X 10.6.
66746         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66747         memory layout of the locales in MacOS X 10.6 as well.
66748         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66750 2010-04-02  Bruno Haible  <bruno@clisp.org>
66752         gnulib-tool: Ensure that long-running tests are executed last.
66753         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66754         running tests after the one for the other tests.
66756 2010-04-02  Bruno Haible  <bruno@clisp.org>
66758         gnulib-tool: Ensure the tests in the main directory are executed first.
66759         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66760         start with the current directory.
66762 2010-04-02  Bruno Haible  <bruno@clisp.org>
66764         Tests for module 'havelib', moved here from GNU gettext.
66765         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66766         modifications.
66767         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66768         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66769         with modifications.
66770         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66771         modifications.
66772         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66773         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66774         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66775         with modifications.
66776         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66777         with modifications.
66778         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66779         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66780         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66781         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66782         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66783         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66784         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66785         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66786         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66787         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66788         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66789         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66790         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66791         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66792         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
66793         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
66794         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
66795         with modifications.
66796         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
66797         with modifications.
66798         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
66799         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
66800         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
66801         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
66802         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
66803         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
66804         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
66805         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
66806         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
66807         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66808         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
66809         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
66810         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
66811         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
66812         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
66813         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
66814         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
66815         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
66816         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
66817         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66818         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66819         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66820         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66821         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66822         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66823         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66824         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66825         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66826         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66827         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66828         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66829         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66830         * tests/havelib/rpathx/rpathx.c: New file, from
66831         gettext/autoconf-lib-link.
66832         * tests/havelib/rpathx/Makefile.am: New file, from
66833         gettext/autoconf-lib-link.
66834         * tests/havelib/rpathx/configure.ac: New file, from
66835         gettext/autoconf-lib-link with modifications.
66836         * tests/havelib/rpathy/rpathy.c: New file, from
66837         gettext/autoconf-lib-link.
66838         * tests/havelib/rpathy/Makefile.am: New file, from
66839         gettext/autoconf-lib-link.
66840         * tests/havelib/rpathy/configure.ac: New file, from
66841         gettext/autoconf-lib-link with modifications.
66842         * tests/havelib/rpathz/rpathz.c: New file, from
66843         gettext/autoconf-lib-link.
66844         * tests/havelib/rpathz/Makefile.am: New file, from
66845         gettext/autoconf-lib-link.
66846         * tests/havelib/rpathz/configure.ac: New file, from
66847         gettext/autoconf-lib-link with modifications.
66848         * tests/havelib/rpathlx/usex.c: New file, from
66849         gettext/autoconf-lib-link.
66850         * tests/havelib/rpathlx/Makefile.am: New file, from
66851         gettext/autoconf-lib-link.
66852         * tests/havelib/rpathlx/configure.ac: New file, from
66853         gettext/autoconf-lib-link with modifications.
66854         * tests/havelib/rpathly/usey.c: New file, from
66855         gettext/autoconf-lib-link.
66856         * tests/havelib/rpathly/Makefile.am: New file, from
66857         gettext/autoconf-lib-link.
66858         * tests/havelib/rpathly/configure.ac: New file, from
66859         gettext/autoconf-lib-link with modifications.
66860         * tests/havelib/rpathlz/usez.c: New file, from
66861         gettext/autoconf-lib-link.
66862         * tests/havelib/rpathlz/Makefile.am: New file, from
66863         gettext/autoconf-lib-link.
66864         * tests/havelib/rpathlz/configure.ac: New file, from
66865         gettext/autoconf-lib-link with modifications.
66866         * tests/havelib/rpathlyx/usey.c: New file, from
66867         gettext/autoconf-lib-link.
66868         * tests/havelib/rpathlyx/Makefile.am: New file, from
66869         gettext/autoconf-lib-link.
66870         * tests/havelib/rpathlyx/configure.ac: New file, from
66871         gettext/autoconf-lib-link with modifications.
66872         * tests/havelib/rpathlzyx/usez.c: New file, from
66873         gettext/autoconf-lib-link.
66874         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66875         gettext/autoconf-lib-link.
66876         * tests/havelib/rpathlzyx/configure.ac: New file, from
66877         gettext/autoconf-lib-link with modifications.
66878         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66879         with modifications.
66881 2010-04-02  Bruno Haible  <bruno@clisp.org>
66883         gnulib-tool: Create distributed built sources also for the tests.
66884         * gnulib-tool (func_create_testdir): Also generate distributed built
66885         sources in the tests directory.
66887 2010-04-02  Bruno Haible  <bruno@clisp.org>
66889         gnulib-tool: Obey user's environment variables.
66890         * gnulib-tool (func_create_testdir): When creating built sources,
66891         respect the environment variables for autoconf, automake, etc. given by
66892         the user.
66894 2010-04-02  Bruno Haible  <bruno@clisp.org>
66896         gnulib-tool: Provide the value of --m4-base to modules.
66897         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66898         of gl_m4_base.
66900 2010-04-02  Eric Blake  <eblake@redhat.com>
66902         maint.mk: fix some fallout
66903         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66904         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66906 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66908         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66909         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66910         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66911         (sc_cast_of_x_alloc_return_value): Likewise.
66912         (sc_cast_of_alloca_return_value): Likewise.
66913         (sc_space_tab): Likewise.
66914         (sc_prohibit_atoi_atof): Likewise.
66915         (sc_prohibit_magic_number_exit): Likewise.
66916         (sc_error_exit_success): Likewise.
66917         (sc_file_system): Likewise.
66918         (sc_prohibit_have_config_h): Likewise.
66919         (sc_require_config_h): Likewise.
66920         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66921         (sc_obsolete_symbols): Likewise.
66922         (sc_changelog): Likewise.
66923         (sc_program_name): Likewise.
66924         (sc_the_the): Likewise.
66925         (sc_trailing_blank): Likewise.
66926         (sc_two_space_separator_in_usage): Likewise.
66927         (sc_useless_cpp_parens): Likewise.
66928         (sc_GPL_version): Likewise.
66929         (sc_GFDL_version): Likewise.
66930         (sc_texinfo_acronym): Likewise.
66931         (sc_prohibit_cvs_keyword): Likewise.
66932         (sc_prohibit_stat_st_blocks): Likewise.
66933         (sc_prohibit_S_IS_definition): Likewise.
66934         (sc_redundant_const): Likewise.
66935         (sc_makefile_TAB_only_indentation): Likewise.
66936         (sc_m4_quote_check): Likewise.
66937         (sc_makefile_path_separator_check): Likewise.
66938         (sc_copyright_check): Likewise.
66939         (sc_Wundef_boolean): Likewise.
66940         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66942         maint.mk: match 0 or more whitespace-before-function-call '('
66943         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66944         that have zero or two-and-more spaces between the function name
66945         and the open parenthesis.
66946         (sc_error_message_warn_fatal): Likewise.
66947         (sc_error_message_uppercase): Likewise.
66948         (sc_error_message_period): Likewise.
66950 2010-03-31  Eric Blake  <eblake@redhat.com>
66952         maint.mk: check for [ as well as test
66953         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66954         Based on a libvirt report by Matthias Bolte.
66956         gnumakefile: don't squelch _version output
66957         * top/GNUmakefile (_version): Create one-shot dependency rather
66958         than using $(shell) when version must be regenerated.
66959         (_autoreconf): Run verbosely, by default.
66961         sys_time: avoid compiler warnings
66962         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66963         unconditional, fixing regression from 2010-03-29.
66964         Reported by Simon Josefsson.
66966 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66968         maint.mk: s/_header_without_use/_sc_header_without_use/
66969         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66970         (sc_prohibit_assert_without_use): Use the new name.
66971         (sc_prohibit_close_stream_without_use): Likewise.
66972         (sc_prohibit_getopt_without_use): Likewise.
66973         (sc_prohibit_quotearg_without_use): Likewise.
66974         (sc_prohibit_quote_without_use): Likewise.
66975         (sc_prohibit_long_options_without_use): Likewise.
66976         (sc_prohibit_inttostr_without_use): Likewise.
66977         (sc_prohibit_ignore_value_without_use): Likewise.
66978         (sc_prohibit_error_without_use): Likewise.
66979         (sc_prohibit_xalloc_without_use): Likewise.
66980         (sc_prohibit_hash_without_use): Likewise.
66981         (sc_prohibit_hash_pjw_without_use): Likewise.
66982         (sc_prohibit_safe_read_without_use): Likewise.
66983         (sc_prohibit_argmatch_without_use): Likewise.
66984         (sc_prohibit_canonicalize_without_use): Likewise.
66985         (sc_prohibit_root_dev_ino_without_use): Likewise.
66986         (sc_prohibit_openat_without_use): Likewise.
66987         (sc_prohibit_c_ctype_without_use): Likewise.
66988         (sc_prohibit_signal_without_use): Likewise.
66989         (sc_prohibit_intprops_without_use): Likewise.
66991 2010-03-30  Eric Blake  <eblake@redhat.com>
66993         maint: improve module indicators
66994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66995         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66996         columns, and avoid extra macro expansion.
66998         fdopendir: work around FreeBSD bug
66999         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
67000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
67001         * modules/dirent (Makefile.am): Substitute it.
67002         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
67003         declaration.
67004         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
67005         fix.
67006         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67008 2010-03-29  Bruno Haible  <bruno@clisp.org>
67010         Emit #pragma system_header after the inclusion guard, not before.
67011         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
67012         guard that spans the entire file, not before. This enables an
67013         optimization in GCC's preprocessor.
67014         * lib/ctype.in.h: Likewise.
67015         * lib/dirent.in.h: Likewise.
67016         * lib/errno.in.h: Likewise.
67017         * lib/float.in.h: Likewise.
67018         * lib/getopt.in.h: Likewise.
67019         * lib/iconv.in.h: Likewise.
67020         * lib/langinfo.in.h: Likewise.
67021         * lib/locale.in.h: Likewise.
67022         * lib/math.in.h: Likewise.
67023         * lib/netdb.in.h: Likewise.
67024         * lib/netinet_in.in.h: Likewise.
67025         * lib/pty.in.h: Likewise.
67026         * lib/sched.in.h: Likewise.
67027         * lib/se-selinux.in.h: Likewise.
67028         * lib/search.in.h: Likewise.
67029         * lib/spawn.in.h: Likewise.
67030         * lib/stdarg.in.h: Likewise.
67031         * lib/stdint.in.h: Likewise.
67032         * lib/string.in.h: Likewise.
67033         * lib/strings.in.h: Likewise.
67034         * lib/sys_file.in.h: Likewise.
67035         * lib/sys_ioctl.in.h: Likewise.
67036         * lib/sys_time.in.h: Likewise.
67037         * lib/sys_times.in.h: Likewise.
67038         * lib/sys_utsname.in.h: Likewise.
67039         * lib/sys_wait.in.h: Likewise.
67040         * lib/sysexits.in.h: Likewise.
67041         * lib/wctype.in.h: Likewise.
67043 2010-03-28  James Youngman  <jay@gnu.org>
67045         save-cwd: don't leak a file descriptor when the caller execs.
67046         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
67047         saved file descriptor.
67048         * modules/save-cwd (Depends-on): Depend on cloexec.
67050 2010-03-29  Bruno Haible  <bruno@clisp.org>
67052         Remove vestiges of fts-lgpl module.
67053         * lib/fts_.h: Assume GNULIB_FTS is 1.
67054         * lib/fts.c: Likewise.
67055         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67057 2010-03-28  Bruno Haible  <bruno@clisp.org>
67059         Fix definition of tests witness macro.
67060         * gnulib-tool (func_import): Fix definition of witness macro.
67062 2010-03-28  Bruno Haible  <bruno@clisp.org>
67064         Fix ioctl's protoype on glibc systems.
67065         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
67066         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
67067         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
67068         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
67069         signature. If not, arrange to replace the ioctl function.
67070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
67071         REPLACE_IOCTL.
67072         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
67073         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
67074         Reported by Ludovic Courtès <ludo@gnu.org>.
67076 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
67078         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
67079         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
67080         made it so grep -r --include=GLOB* ... did not work.
67082 2010-03-26  Jim Meyering  <meyering@redhat.com>
67083             Eric Blake  <eblake@redhat.com>
67085         maint.mk: prohibit use of test's -o and -a operators
67086         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
67088 2010-03-28  Bruno Haible  <bruno@clisp.org>
67090         Remove unused GNULIB_XYZ macro definitions.
67091         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
67092         invocation.
67094 2010-03-28  Bruno Haible  <bruno@clisp.org>
67096         Mark privileged tests modules.
67097         * modules/idpriv-drop-tests (Status): New section.
67098         * modules/idpriv-droptemp-tests (Status): New section.
67100 2010-03-28  Bruno Haible  <bruno@clisp.org>
67102         Split C++ tests into separate tests modules.
67103         * modules/dirent-c++-tests: New file, extracted from
67104         modules/dirent-tests.
67105         * modules/dirent-tests: Depend on it.
67106         * modules/fcntl-h-c++-tests: New file, extracted from
67107         modules/fcntl-h-tests.
67108         * modules/fcntl-h-tests: Depend on it.
67109         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
67110         * modules/glob-tests: Depend on it.
67111         * modules/iconv-h-c++-tests: New file, extracted from
67112         modules/iconv-h-tests.
67113         * modules/iconv-h-tests: Depend on it.
67114         * modules/langinfo-c++-tests: New file, extracted from
67115         modules/langinfo-tests.
67116         * modules/langinfo-tests: Depend on it.
67117         * modules/locale-c++-tests: New file, extracted from
67118         modules/locale-tests.
67119         * modules/locale-tests: Depend on it.
67120         * modules/math-c++-tests: New file, extracted from modules/math-tests.
67121         * modules/math-tests: Depend on it.
67122         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
67123         * modules/pty-tests: Depend on it.
67124         * modules/search-c++-tests: New file, extracted from
67125         modules/search-tests.
67126         * modules/search-tests: Depend on it.
67127         * modules/signal-c++-tests: New file, extracted from
67128         modules/signal-tests.
67129         * modules/signal-tests: Depend on it.
67130         * modules/spawn-c++-tests: New file, extracted from
67131         modules/spawn-tests.
67132         * modules/spawn-tests: Depend on it.
67133         * modules/stdio-c++-tests: New file, extracted from
67134         modules/stdio-tests.
67135         * modules/stdio-tests: Depend on it.
67136         * modules/stdlib-c++-tests: New file, extracted from
67137         modules/stdlib-tests.
67138         * modules/stdlib-tests: Depend on it.
67139         * modules/string-c++-tests: New file, extracted from
67140         modules/string-tests.
67141         * modules/string-tests: Depend on it.
67142         * modules/sys_ioctl-c++-tests: New file, extracted from
67143         modules/sys_ioctl-tests.
67144         * modules/sys_ioctl-tests: Depend on it.
67145         * modules/sys_select-c++-tests: New file, extracted from
67146         modules/sys_select-tests.
67147         * modules/sys_select-tests: Depend on it.
67148         * modules/sys_socket-c++-tests: New file, extracted from
67149         modules/sys_socket-tests.
67150         * modules/sys_socket-tests: Depend on it.
67151         * modules/sys_stat-c++-tests: New file, extracted from
67152         modules/sys_stat-tests.
67153         * modules/sys_stat-tests: Depend on it.
67154         * modules/sys_time-c++-tests: New file, extracted from
67155         modules/sys_time-tests.
67156         * modules/sys_time-tests: Depend on it.
67157         * modules/time-c++-tests: New file, extracted from modules/time-tests.
67158         * modules/time-tests: Depend on it.
67159         * modules/unistd-c++-tests: New file, extracted from
67160         modules/unistd-tests.
67161         * modules/unistd-tests: Depend on it.
67162         * modules/wchar-c++-tests: New file, extracted from
67163         modules/wchar-tests.
67164         * modules/wchar-tests: Depend on it.
67165         * modules/wctype-c++-tests: New file, extracted from
67166         modules/wctype-tests.
67167         * modules/wctype-tests: Depend on it.
67168         Reported by Simon Josefsson.
67170 2010-03-28  Bruno Haible  <bruno@clisp.org>
67172         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
67173         * gnulib-tool (func_exists_module): New function, extracted from
67174         func_verify_module.
67175         (func_verify_module): Use it.
67176         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
67177         'foo' only if 'foo' exists.
67178         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
67179         module.
67181 2010-03-28  Bruno Haible  <bruno@clisp.org>
67183         gnulib-tool: Add support for special categories of tests.
67184         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
67185         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
67186         (func_usage): Document them.
67187         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
67188         inc_unportable_tests, inc_all_tests): New variables.
67189         (func_acceptable): Consider these variables.
67190         (func_modules_transitive_closure): Make it work when the 'Status' field
67191         consists of multiple words.
67192         (func_import): Store and restore the values of inc_cxx_tests,
67193         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
67194         inc_all_tests in gnulib-comp.m4.
67195         (func_create_testdir): Set inc_all_tests to true.
67196         * doc/gnulib.texi (Extra tests modules): New section.
67197         Suggested by Jim Meyering.
67199 2010-03-28  Bruno Haible  <bruno@clisp.org>
67201         ansi-c++-opt: Allow turning off the C++ build by default.
67202         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
67203         gl_CXX_CHOICE_DEFAULT_NO is defined.
67204         Requested by Eric Blake.
67206 2010-03-28  Bruno Haible  <bruno@clisp.org>
67208         unistd: Avoid #define replacements in C++ mode.
67209         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
67210         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
67211         setsockopt, shutdown, select): In C++, attach a warning to the function
67212         if possible, rather than #defining the symbol to a dysfunctional alias.
67213         Reported by John W. Eaton <jwe@gnu.org>.
67215 2010-03-28  Bruno Haible  <bruno@clisp.org>
67217         Fix link errors on mingw.
67218         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
67219         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
67220         $(LIBSOCKET).
67221         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
67222         $(LIBSOCKET).
67224 2010-03-28  Bruno Haible  <bruno@clisp.org>
67225             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67227         lib-ignore: Determine different options for different compilers.
67228         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
67229         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
67230         Add comments.
67231         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
67232         * NEWS: Mention the change.
67234 2010-03-27  Bruno Haible  <bruno@clisp.org>
67236         Remove unused GNULIB_XYZ macro definitions.
67237         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67238         * modules/fseek (configure.ac): Likewise.
67239         * modules/ioctl (configure.ac): Likewise.
67240         * modules/open (configure.ac): Likewise.
67241         * modules/stdlib-safer (configure.ac): Likewise.
67243 2010-03-27  Bruno Haible  <bruno@clisp.org>
67245         Add a remark about certain modules.
67246         * modules/malloc (Comment): New section.
67247         * modules/realloc (Comment): Likewise.
67248         * modules/sigpipe (Comment): Likewise.
67250 2010-03-27  Bruno Haible  <bruno@clisp.org>
67252         Resolve conflict between the two kinds of module indicators.
67253         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
67254         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
67255         * modules/canonicalize (configure.ac): Invoke
67256         gl_MODULE_INDICATOR_FOR_TESTS.
67257         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
67258         GNULIB_XYZ.
67259         * tests/test-dirent-c++.cc: Likewise.
67260         * tests/test-dirent-safer.c: Likewise.
67261         * tests/test-dup2.c: Likewise.
67262         * tests/test-fchdir.c: Likewise.
67263         * tests/test-fcntl-h-c++.cc: Likewise.
67264         * tests/test-getopt.c: Likewise.
67265         * tests/test-getopt.h: Likewise.
67266         * tests/test-langinfo-c++.cc: Likewise.
67267         * tests/test-locale-c++.cc: Likewise.
67268         * tests/test-math-c++.cc: Likewise.
67269         * tests/test-pty-c++.cc: Likewise.
67270         * tests/test-search-c++.cc: Likewise.
67271         * tests/test-signal-c++.cc: Likewise.
67272         * tests/test-spawn-c++.cc: Likewise.
67273         * tests/test-stdio-c++.cc: Likewise.
67274         * tests/test-stdlib-c++.cc: Likewise.
67275         * tests/test-string-c++.cc: Likewise.
67276         * tests/test-sys_ioctl-c++.cc: Likewise.
67277         * tests/test-sys_select-c++.cc: Likewise.
67278         * tests/test-sys_socket-c++.cc: Likewise.
67279         * tests/test-sys_stat-c++.cc: Likewise.
67280         * tests/test-sys_time-c++.cc: Likewise.
67281         * tests/test-time-c++.cc: Likewise.
67282         * tests/test-unistd-c++.cc: Likewise.
67283         * tests/test-wchar-c++.cc: Likewise.
67284         * tests/uninorm/test-u8-nfc.c: Likewise.
67285         * tests/uninorm/test-u8-nfd.c: Likewise.
67286         * tests/uninorm/test-u8-nfkc.c: Likewise.
67287         * tests/uninorm/test-u8-nfkd.c: Likewise.
67288         * tests/uninorm/test-u16-nfc.c: Likewise.
67289         * tests/uninorm/test-u16-nfd.c: Likewise.
67290         * tests/uninorm/test-u16-nfkc.c: Likewise.
67291         * tests/uninorm/test-u16-nfkd.c: Likewise.
67292         * tests/uninorm/test-u32-nfc.c: Likewise.
67293         * tests/uninorm/test-u32-nfc-big.c: Likewise.
67294         * tests/uninorm/test-u32-nfd.c: Likewise.
67295         * tests/uninorm/test-u32-nfd-big.c: Likewise.
67296         * tests/uninorm/test-u32-nfkc.c: Likewise.
67297         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
67298         * tests/uninorm/test-u32-nfkd.c: Likewise.
67299         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
67300         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67302 2010-03-27  Bruno Haible  <bruno@clisp.org>
67304         Distinguish two kinds of module indicators.
67305         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
67306         gl_MODULE_INDICATOR.
67307         (gl_MODULE_INDICATOR): New macro.
67308         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67309         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
67310         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67311         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67312         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67313         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67314         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67315         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67316         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67317         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67318         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67319         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67322         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67325         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67326         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67327         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67328         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67329         * modules/cloexec (configure.ac): Likewise.
67330         * modules/getopt-gnu (configure.ac): Likewise.
67331         * modules/uninorm/u8-normalize (configure.ac): Likewise.
67332         * modules/uninorm/u16-normalize (configure.ac): Likewise.
67333         * modules/uninorm/u32-normalize (configure.ac): Likewise.
67334         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
67336 2010-03-27  Bruno Haible  <bruno@clisp.org>
67338         New module description field 'Comment'.
67339         * gnulib-tool: New option --extract-comment.
67340         (func_usage): Document it.
67341         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
67342         (func_get_comment): New function.
67343         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
67345 2010-03-27  Bruno Haible  <bruno@clisp.org>
67347         Addendum to 2010-02-07 commit.
67348         * gnulib-tool (func_usage): Document --extract-applicability option.
67350 2010-03-27  Bruno Haible  <bruno@clisp.org>
67352         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
67353         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
67354         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
67355         rather than link errors.
67357 2010-03-27  Bruno Haible  <bruno@clisp.org>
67359         Avoid side effects from tests-related modules on the compilation of lib.
67360         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
67361         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
67362         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
67363         parameter. Emit into AM_CPPFLAGS a definition of the designated C
67364         macro.
67365         (func_import): Define a witness macro. Assign it a value that depends
67366         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
67367         tests-related modules.
67368         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
67369         Reported by Jim Meyering.
67371 2010-03-27  Bruno Haible  <bruno@clisp.org>
67373         Factorize common .m4 code.
67374         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
67375         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
67376         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
67377         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
67378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67379         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67380         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67381         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67382         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67384         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67385         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67386         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67387         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67388         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67389         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67390         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67391         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67393         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67394         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67396         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67397         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67398         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67399         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67400         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67401         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67403         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67404         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67405         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67407 2010-03-27  Bruno Haible  <bruno@clisp.org>
67409         Fix a compilation error on Cygwin with g++ >= 4.3.
67410         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67411         if it is undefined or if we alias it to chmod.
67412         (lstat): Don't warn about the use of this function if it is undefined
67413         or if we alias it to stat.
67414         Reported by Simon Josefsson.
67416 2010-03-27  Bruno Haible  <bruno@clisp.org>
67418         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67419         * modules/getlogin (configure.ac): Update.
67421         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67422         * modules/getlogin_r (configure.ac): Update.
67424         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67426         * modules/inet_ntop (configure.ac): Update.
67428         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67429         * modules/inet_pton (configure.ac): Update.
67431         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67432         * modules/mbslen (configure.ac): Update.
67434         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67435         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67436         * modules/forkpty (configure.ac): Update.
67437         * modules/openpty (configure.ac): Update.
67439 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67441         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67442         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67444 2010-03-25  Eric Blake  <eblake@redhat.com>
67446         maint: use pragma consistently across replacement headers
67447         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67448         * lib/dirent.in.h (system_header): Likewise.
67449         * lib/errno.in.h (system_header): Likewise.
67450         * lib/float.in.h (system_header): Likewise.
67451         * lib/getopt.in.h (system_header): Likewise.
67452         * lib/iconv.in.h (system_header): Likewise.
67453         * lib/inttypes.in.h (system_header): Likewise.
67454         * lib/langinfo.in.h (system_header): Likewise.
67455         * lib/locale.in.h (system_header): Likewise.
67456         * lib/math.in.h (system_header): Likewise.
67457         * lib/netdb.in.h (system_header): Likewise.
67458         * lib/netinet_in.in.h (system_header): Likewise.
67459         * lib/pty.in.h (system_header): Likewise.
67460         * lib/sched.in.h (system_header): Likewise.
67461         * lib/se-selinux.in.h (system_header): Likewise.
67462         * lib/search.in.h (system_header): Likewise.
67463         * lib/spawn.in.h (system_header): Likewise.
67464         * lib/stdarg.in.h (system_header): Likewise.
67465         * lib/stdint.in.h (system_header): Likewise.
67466         * lib/string.in.h (system_header): Likewise.
67467         * lib/strings.in.h (system_header): Likewise.
67468         * lib/sys_file.in.h (system_header): Likewise.
67469         * lib/sys_ioctl.in.h (system_header): Likewise.
67470         * lib/sys_socket.in.h (system_header): Likewise.
67471         * lib/sys_times.in.h (system_header): Likewise.
67472         * lib/sys_utsname.in.h (system_header): Likewise.
67473         * lib/sys_wait.in.h (system_header): Likewise.
67474         * lib/sysexits.in.h (system_header): Likewise.
67475         * lib/unistd.in.h (system_header): Likewise.
67476         * lib/wctype.in.h (system_header): Likewise.
67478         arpa/inet: fix mingw compilation warning
67479         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67480         Reported by Matthew Bolte.
67482 2010-03-25  Bruno Haible  <bruno@clisp.org>
67484         Avoid collision between gnulib wrapper and libintl wrapper.
67485         * lib/printf.c (printf): Don't define if a printf wrapper is already
67486         defined in intl/printf.c.
67487         Reported by Michel Boaventura <michel@michelboaventura.com>.
67489 2010-03-25  Bruno Haible  <bruno@clisp.org>
67491         Use ANSI C.
67492         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67494 2010-03-25  Bruno Haible  <bruno@clisp.org>
67496         Minor formatting changes.
67497         * lib/acosl.c: Insert space before function argument list.
67498         * lib/argz.c: Likewise.
67499         * lib/asinl.c: Likewise.
67500         * lib/expl.c: Likewise.
67501         * lib/gen-uni-tables.c: Likewise.
67502         * lib/gettext.h: Likewise.
67503         * lib/glthread/lock.h: Likewise.
67504         * lib/tanl.c: Likewise.
67505         * lib/uniname/uniname.c: Likewise.
67506         * tests/test-idpriv-drop.c: Likewise.
67507         * tests/test-idpriv-droptemp.c: Likewise.
67508         * tests/test-lock.c: Likewise.
67509         * tests/test-tls.c: Likewise.
67510         * lib/argp-help.c: Insert space before function-like macro argument
67511         list.
67512         * lib/memcmp.c: Likewise.
67513         * tests/test-base64.c: Likewise.
67514         * lib/localename.c: Insert space before sizeof's argument list.
67515         * lib/safe-alloc.h: Likewise.
67516         * lib/file-set.h: Insert space before macro argument list.
67517         * tests/test-argp.c: Likewise.
67518         * lib/argp-namefrob.h: Insert space before function parameter list.
67519         * lib/getaddrinfo.c: Likewise.
67520         * lib/netdb.in.h: Likewise.
67521         * lib/parse-duration.h: Likewise.
67522         * lib/parse-duration.c: Likewise.
67523         * lib/poll.c: Likewise.
67524         * lib/select.c: Likewise.
67525         * lib/trim.h: Likewise.
67526         * tests/test-usleep.c: Likewise.
67527         * lib/ldexpl.c: Insert space before function parameter list and before
67528         function argument list.
67529         * lib/logl.c: Likewise.
67530         * lib/sqrtl.c: Likewise.
67531         * lib/trim.c: Likewise.
67532         * lib/cosl.c: Use GNU style indentation. Insert space before function
67533         argument list.
67534         * lib/sinl.c: Likewise.
67535         * lib/tsearch.c: Insert space after 'for'.
67536         Reported by Jim Meyering.
67538 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67540         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67541         config header before grepping, as it's not present before
67542         autoreconf/configure are run.  Reported by Simon Josefsson.
67544 2010-03-23  Bruno Haible  <bruno@clisp.org>
67546         pt_chown: Make it work with automake < 1.11.
67547         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67548         Reported by Simon Josefsson.
67550 2010-03-23  Bruno Haible  <bruno@clisp.org>
67552         pt_chown: Don't depend on GPLed modules.
67553         * lib/pt_chown.c: Don't include idpriv.h.
67554         (main): Don't drop privileges.
67555         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67556         Reported by Simon Josefsson.
67558 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67560         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67561         suggestions from karl@freefriends.org (Karl Berry).
67563 2010-03-22  Eric Blake  <eblake@redhat.com>
67565         gethostname: further tweaks
67566         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67567         are overriding gethostname.
67568         Suggested by Bruno Haible.
67570 2010-03-21  Bruno Haible  <bruno@clisp.org>
67572         Fix comments.
67573         * lib/forkpty.c (rpl_forkpty): Fix comment.
67574         * lib/openpty.c (rpl_openpty): Likewise.
67575         Reported by Eric Blake.
67577 2010-03-22  Eric Blake  <eblake@redhat.com>
67579         gethostname: fix build on mingw
67580         * lib/unistd.in.h (includes): Work around fact that mingw
67581         <winsock2.h> re-includes <unistd.h>, by avoiding any
67582         redeclarations if we are being included by <winsock2.h>.
67583         Reported by Matthias Bolte.
67585 2010-03-21  Bruno Haible  <bruno@clisp.org>
67587         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67588         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67589         modifications.
67590         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67591         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67592         provide the replacement.
67593         * modules/forkpty (Depends-on): Add openpty, login_tty.
67594         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67595         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67596         * doc/glibc-functions/forkpty.texi: More supported platforms.
67597         * config/srclist.txt: Add forkpty.c (commented).
67599 2010-03-21  Bruno Haible  <bruno@clisp.org>
67601         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67602         (Makefile.am): Verify that PTY_LIB is defined.
67604         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67606 2010-03-21  Bruno Haible  <bruno@clisp.org>
67608         Tests for module 'login_tty'.
67609         * modules/login_tty-tests: New file.
67610         * tests/test-login_tty.c: New file.
67612         New module 'login_tty'.
67613         * lib/login_tty.c: New file.
67614         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67615         * modules/login_tty: New file.
67616         * doc/glibc-functions/login_tty.texi: Mention the new module.
67618 2010-03-21  Bruno Haible  <bruno@clisp.org>
67620         login_tty: Documentation.
67621         * doc/glibc-functions/login_tty.texi: New file.
67622         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67624 2010-03-21  Bruno Haible  <bruno@clisp.org>
67626         pty: Consistent macro naming.
67627         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67628         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67629         * modules/pty (configure.ac): Update.
67631 2010-03-21  Bruno Haible  <bruno@clisp.org>
67633         Tests for openpty: Make stricter.
67634         * tests/test-openpty.c (main): Add test of canonical processing and
67635         erase.
67636         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67638         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67639         * lib/openpty.c (openpty): New replacement function.
67640         * lib/pty.in.h: Include <termios.h>.
67641         (openpty): Update declaration. Add comments.
67642         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67643         is not declared, arrange to provide the replacement. Check for _getpty
67644         and posix_openpt.
67645         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67646         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67647         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67648         * modules/pty-tests (test_pty_c___LDADD): New variable.
67649         * doc/glibc-functions/openpty.texi: More supported platforms.
67651 2010-03-21  Bruno Haible  <bruno@clisp.org>
67653         setenv: Tweaks.
67654         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67655         the test program.
67656         * doc/posix-functions/setenv.texi: Update platforms list.
67658 2010-03-21  Bruno Haible  <bruno@clisp.org>
67660         New module 'unlockpt'.
67661         * lib/unlockpt.c: New file, from glibc with modifications.
67662         * m4/unlockpt.m4: New file.
67663         * modules/unlockpt: New file.
67664         * lib/stdlib.in.h (unlockpt): New declaration.
67665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67666         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67667         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67668         HAVE_UNLOCKPT.
67669         * doc/posix-functions/unlockpt.texi: Mention the new module.
67670         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67671         * config/srclist.txt: Add unlockpt.c (commented).
67673 2010-03-21  Jim Meyering  <meyering@redhat.com>
67675         maint.mk: prohibit inclusion of "intprops.h" without use
67676         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67678 2010-03-21  Bruno Haible  <bruno@clisp.org>
67680         New module 'grantpt'.
67681         * lib/grantpt.c: New file, from glibc with modifications.
67682         * m4/grantpt.m4: New file.
67683         * modules/grantpt: New file.
67684         * lib/stdlib.in.h (grantpt): New declaration.
67685         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67686         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67687         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67688         HAVE_GRANTPT.
67689         * doc/posix-functions/grantpt.texi: Mention the new module.
67690         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67691         * config/srclist.txt: Add grantpt.c (commented).
67693 2010-03-21  Bruno Haible  <bruno@clisp.org>
67695         New module 'pt_chown'.
67696         * lib/pt_chown.c: New file, from glibc with modifications.
67697         * lib/pty-private.h: New file, from glibc with modifications.
67698         * modules/pt_chown: New file.
67699         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67701 2010-03-21  Bruno Haible  <bruno@clisp.org>
67703         Tests for module 'ptsname'.
67704         * modules/ptsname-tests: New file.
67705         * tests/test-ptsname.c: New file.
67707         New module 'ptsname'.
67708         * lib/ptsname.c: New file, from glibc with modifications.
67709         * m4/ptsname.m4: New file.
67710         * modules/ptsname: New file.
67711         * lib/stdlib.in.h (ptsname): New declaration.
67712         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67713         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67714         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67715         HAVE_PTSNAME.
67716         * doc/posix-functions/ptsname.texi: Mention the new module.
67717         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67718         * config/srclist.txt: Add ptsname.c (commented).
67720 2010-03-21  Bruno Haible  <bruno@clisp.org>
67722         Tests for module 'ttyname_r'.
67723         * modules/ttyname_r-tests: New file.
67724         * tests/test-ttyname_r.c: New file.
67726         New module 'ttyname_r'.
67727         * lib/ttyname_r.c: New file.
67728         * m4/ttyname_r.m4: New file.
67729         * modules/ttyname_r: New file.
67730         * lib/unistd.in.h (ttyname_r): New declaration.
67731         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67732         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67733         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67734         HAVE_TTYNAME_R.
67735         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67736         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67738 2010-03-20  Bruno Haible  <bruno@clisp.org>
67740         signal: Undefine macro definitions in C++ mode.
67741         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67742         sigfillset): Undefine macro definitions from the system header in C++
67743         mode.
67744         Reported by John W. Eaton <jwe@gnu.org>.
67746 2010-03-20  Bruno Haible  <bruno@clisp.org>
67748         Ensure no #include statements inside extern "C" { ... }.
67749         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67750         contain #include statements.
67751         * lib/time.in.h: Likewise.
67753 2010-03-20  Bruno Haible  <bruno@clisp.org>
67755         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67756         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67757         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67758         Reported by John W. Eaton <jwe@gnu.org>.
67760 2010-03-20  Bruno Haible  <bruno@clisp.org>
67762         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67763         Reported by Jim Meyering.
67765 2010-03-20  Bruno Haible  <bruno@clisp.org>
67767         pipe: Set errno upon failure.
67768         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67769         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67770         errno value in error message.
67772 2010-03-20  Bruno Haible  <bruno@clisp.org>
67773             Jim Meyering  <meyering@redhat.com>
67775         lchown: Avoid "unused variable" warning.
67776         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67778 2010-03-20  Bruno Haible  <bruno@clisp.org>
67780         Work around unlink() bug on MacOS X 10.5.6.
67781         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67782         attempting to unlink a parent directory.
67783         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67784         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67785         activate for the replacement function.
67786         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67788 2010-03-20  Bruno Haible  <bruno@clisp.org>
67790         Fix link errors on Solaris 8.
67791         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67792         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
67794 2010-03-19  Jim Meyering  <meyering@redhat.com>
67796         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
67797         The _LIBC implementation of build_range_exp correctly honors the
67798         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
67799         However, the non-_LIBC implementation would ignore that syntax-bit
67800         flag and return REG_ERANGE unconditionally.
67801         This change makes it honor that flag.
67802         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
67803         Make two pointer parameters "const".
67804         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
67805         (parse_bracket_exp): Update caller.
67807         regex.m4: correct the reversed range endpoint ([b-a]) test
67808         * m4/regex.m4: When requiring that [b-a] evoke failure,
67809         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
67810         test pass once again for x86-based systems.
67812 2010-03-19  Bruno Haible  <bruno@clisp.org>
67814         scandir: Fix link error on Solaris 8.
67815         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
67816         macros.
67818 2010-03-19  Bruno Haible  <bruno@clisp.org>
67820         getusershell: Fix documentation.
67821         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67822         module.
67823         * doc/glibc-functions/setusershell.texi: Likewise.
67825         getusershell: Provide declaration, missing on Solaris 9.
67826         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67827         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67828         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67829         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67831         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67833         HAVE_GETUSERSHELL.
67834         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67836 2010-03-19  Bruno Haible  <bruno@clisp.org>
67838         wctype: Provide iswblank function.
67839         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67840         exists and is fine.
67841         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67842         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67843         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67844         * doc/posix-functions/iswblank.texi: Update.
67846 2010-03-19  Bruno Haible  <bruno@clisp.org>
67848         Tests of module 'pty' in C++ mode.
67849         * modules/pty-tests: New file.
67850         * tests/test-pty-c++.cc: New file.
67851         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67853 2010-03-19  Eric Blake  <eblake@redhat.com>
67855         logb: fix documentation
67856         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67857         1.5 declaration bug.
67859         forkpty, openpty: prefer glibc's const-safe prototype
67860         * lib/forkpty.c (rpl_forkpty): New file.
67861         * lib/openpty.c (rpl_openpty): Likewise.
67862         * modules/forkpty (Files): Distribute it.
67863         * modules/openpty (Files): Likewise.
67864         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67865         check...
67866         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67867         replacement for non-const BSD signature.
67868         * modules/pty (Makefile.am): Substitute witnesses.
67869         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67870         * tests/test-forkpty.c: Update signature check.
67871         * tests/test-openpty.c: Likewise.
67872         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67873         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67875         forkpty, openpty: split functions into new modules
67876         * modules/pty (Makefile.am): Substitute new witnesses.
67877         (Libraries): Move library detection...
67878         * modules/forkpty: ...into new module.
67879         * modules/openpty: Another new module.
67880         * modules/pty-tests: Rename and split...
67881         * modules/forkpty-tests: ...to this...
67882         * modules/openpty-tests: ...and this.
67883         * tests/test-pty.c: Rename and split...
67884         * tests/test-forkpty.c: ...to this...
67885         * tests/test-openpty.c: ...and this.
67886         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67887         (gl_PTY): Split library searching...
67888         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67889         (gl_FORKPTY, gl_OPENPTY): New macros.
67890         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67891         * NEWS: Mention the split.
67892         * MODULES.html.sh (Misc): Document the modules.
67893         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67894         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67896         pty: improve replacement header
67897         * lib/pty.in.h: New file.
67898         * modules/pty (Files): Ship it.
67899         (Makefile.am): Always build replacement.
67900         * m4/pty.m4: Rename...
67901         * m4/pty_h.m4: ...to this.
67902         (gl_PTY): Modernize setting of witness macros; update check of
67903         forkpty to take proper advantage of cache.
67904         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67906         getopt: avoid compiler warning
67907         * lib/getopt.c (attribute_hidden): Remove unused macro.
67909 2010-03-18  Bruno Haible  <bruno@clisp.org>
67911         Fix link errors on Solaris 8.
67912         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67913         * modules/search-tests (test_search_c___LDADD): Likewise.
67914         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67915         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67916         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67917         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67918         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67919         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67920         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67922 2010-03-18  Bruno Haible  <bruno@clisp.org>
67924         Fix bug introduced on 2010-03-14.
67925         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67926         (gl_SPAWN_H): Require it.
67927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67928         Reported by Simon Josefsson.
67930 2010-03-18  Bruno Haible  <bruno@clisp.org>
67932         Fix typo introduced on 2009-12-31.
67933         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67934         posix_spawn_file_actions_adddup2.
67936 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67937         and Eric Blake  <eblake@redhat.com>
67939         test-vc-list-files-git: make more robust
67940         * tests/test-vc-list-files-git.sh: Unset problematic environment
67941         variables.  Chain commands together.
67943 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67945         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67946         `AC_CHECK_DECL' invocation.
67948 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67950         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67951         appears before executable statements. Suggested by Petr Sumbera
67952         <Petr.Sumbera@Sun.COM>.
67954 2010-03-14  Bruno Haible  <bruno@clisp.org>
67956         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67957         portability problems. Instead use a simpler test.
67958         (main): Check that invalid arguments are rejected only on Linux.
67960 2010-03-14  Bruno Haible  <bruno@clisp.org>
67962         Fix bug introduced on 2009-12-31.
67963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67964         gl_PREREQ_SYS_H_WINSOCK2 always.
67965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67966         SYS_SOCKET_H variable.
67967         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67968         Update comments.
67969         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67970         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67971         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67972         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67973         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67975 2010-03-14  Bruno Haible  <bruno@clisp.org>
67977         Fix values returned by sinl, cosl.
67978         * lib/trigl.h: Add specification comments.
67979         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67980         that combines the values from the precomputed table with the values of
67981         the Chebyshev polynomials.
67983 2010-03-14  Bruno Haible  <bruno@clisp.org>
67985         Fix compilation error when modules 'posix_spawn[p]' are not used.
67986         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67989 2010-03-14  Bruno Haible  <bruno@clisp.org>
67991         Fix compilation error on mingw when module 'time_r' is not used.
67992         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67993         is 1.
67994         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67995         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67996         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67999 2010-03-14  Bruno Haible  <bruno@clisp.org>
68001         Fix compilation error with Sun C.
68002         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
68003         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
68004         instead of GCC specific ULONG_LONG_MAX.
68005         * lib/xstrtoll.c: Likewise.
68006         * lib/xstrtoull.c: Likewise.
68008 2010-03-13  Bruno Haible  <bruno@clisp.org>
68010         Allow the user to disable C++ code and tests.
68011         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
68012         (gl_PROG_ANSI_CXX): Require it.
68014 2010-03-13  Bruno Haible  <bruno@clisp.org>
68016         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
68017         cases.
68019 2010-03-13  Bruno Haible  <bruno@clisp.org>
68021         Test that gnulib does not break the standard C++ headers.
68022         * tests/test-locale-c++2.cc: New file.
68023         * modules/locale-tests (Files): Add it.
68024         (Makefile.am): Compile it for test-locale-c++.
68025         * tests/test-math-c++2.cc: New file.
68026         * modules/math-tests (Files): Add it.
68027         (Makefile.am): Compile it for test-math-c++.
68028         * tests/test-signal-c++2.cc: New file.
68029         * modules/signal-tests (Files): Add it.
68030         (Makefile.am): Compile it for test-signal-c++.
68031         * tests/test-stdio-c++2.cc: New file.
68032         * modules/stdio-tests (Files): Add it.
68033         (Makefile.am): Compile it for test-stdio-c++.
68034         * tests/test-stdlib-c++2.cc: New file.
68035         * modules/stdlib-tests (Files): Add it.
68036         (Makefile.am): Compile it for test-stdlib-c++.
68037         * tests/test-string-c++2.cc: New file.
68038         * modules/string-tests (Files): Add it.
68039         (Makefile.am): Compile it for test-string-c++.
68040         * tests/test-time-c++2.cc: New file.
68041         * modules/time-tests (Files): Add it.
68042         (Makefile.am): Compile it for test-time-c++.
68043         Reported by John W. Eaton <jwe@gnu.org>.
68045 2010-03-13  Bruno Haible  <bruno@clisp.org>
68047         * gnulib-tool (func_usage): Clarify which options are available for
68048         --create-testdir and --create-megatestdir.
68050 2010-03-13  Bruno Haible  <bruno@clisp.org>
68052         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
68053         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
68054         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
68055         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
68056         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
68057         when appropriate.
68058         Reported by Jim Meyering.
68060 2010-03-12  Simon Josefsson  <simon@josefsson.org>
68062         * gnulib-tool (func_import): Explain origin of code.
68064 2010-03-12  Bruno Haible  <bruno@clisp.org>
68066         Fix problem with automake's definition of CXXLINK.
68067         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
68068         Reported by Simon Josefsson and Ludovic Courtès.
68070 2010-03-12  Bruno Haible  <bruno@clisp.org>
68072         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
68073         stable releases.
68075 2010-03-11  Bruno Haible  <bruno@clisp.org>
68077         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
68078         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
68079         whether the system provides one variant or multiple variants of the
68080         function.
68081         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
68082         C++ compilers.
68083         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
68084         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
68085         Reported by Jim Meyering.
68087 2010-03-09  Simon Josefsson  <simon@josefsson.org>
68089         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
68091 2010-03-08  Bruno Haible  <bruno@clisp.org>
68093         gnulib-tool: Add support for --libtool in --create-testdir.
68094         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
68095         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
68097 2010-03-08  Eric Blake  <eblake@redhat.com>
68099         gnulib-tool.texi: mention possibility of git submodule
68100         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
68101         submodules.
68102         * doc/.gitignore: Ignore another generated file.
68104 2010-03-08  Karl Berry  <karl@gnu.org>
68106         * doc/gnulib-tool.texi (VCS Issues): Mention third option
68107         of committing gnulib files while skipping others.
68109 2010-03-07  Bruno Haible  <bruno@clisp.org>
68111         Tests of module 'wctype' in C++ mode.
68112         * tests/test-wctype-c++.cc: New file.
68113         * modules/wctype-tests (Files): Add it and tests/signature.h.
68114         (Depends-on): Add ansi-c++-opt.
68115         (Makefile.am): Arrange to compile and run test-wctype-c++.
68117         Tests of module 'wchar' in C++ mode.
68118         * tests/test-wchar-c++.cc: New file.
68119         * modules/wchar-tests (Files): Add it and tests/signature.h.
68120         (Depends-on): Add ansi-c++-opt.
68121         (Makefile.am): Arrange to compile and run test-wchar-c++.
68122         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
68123         gl_MODULE_INDICATOR.
68125         Tests of module 'unistd' in C++ mode.
68126         * tests/test-unistd-c++.cc: New file.
68127         * modules/unistd-tests (Files): Add it and tests/signature.h.
68128         (Depends-on): Add ansi-c++-opt.
68129         (Makefile.am): Arrange to compile and run test-unistd-c++.
68130         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
68131         gl_MODULE_INDICATOR.
68133         Tests of module 'time' in C++ mode.
68134         * tests/test-time-c++.cc: New file.
68135         * modules/time-tests (Files): Add it and tests/signature.h.
68136         (Depends-on): Add ansi-c++-opt.
68137         (Makefile.am): Arrange to compile and run test-time-c++.
68138         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68140         Tests of module 'sys_time' in C++ mode.
68141         * tests/test-sys_time-c++.cc: New file.
68142         * modules/sys_time-tests (Files): Add it and tests/signature.h.
68143         (Depends-on): Add ansi-c++-opt.
68144         (Makefile.am): Arrange to compile and run test-sys_time-c++.
68145         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
68146         gl_MODULE_INDICATOR.
68148         Tests of module 'sys_stat' in C++ mode.
68149         * tests/test-sys_stat-c++.cc: New file.
68150         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
68151         (Depends-on): Add ansi-c++-opt.
68152         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
68153         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
68154         gl_MODULE_INDICATOR.
68156         Tests of module 'sys_socket' in C++ mode.
68157         * tests/test-sys_socket-c++.cc: New file.
68158         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
68159         (Depends-on): Add ansi-c++-opt.
68160         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
68161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
68162         gl_MODULE_INDICATOR.
68164         Tests of module 'sys_select' in C++ mode.
68165         * tests/test-sys_select-c++.cc: New file.
68166         * modules/sys_select-tests (Files): Add it and tests/signature.h.
68167         (Depends-on): Add ansi-c++-opt.
68168         (Makefile.am): Arrange to compile and run test-sys_select-c++.
68169         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
68170         gl_MODULE_INDICATOR.
68172         Tests of module 'sys_ioctl' in C++ mode.
68173         * tests/test-sys_ioctl-c++.cc: New file.
68174         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
68175         (Depends-on): Add ansi-c++-opt.
68176         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
68177         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
68178         gl_MODULE_INDICATOR.
68180         Tests of module 'string' in C++ mode.
68181         * tests/test-string-c++.cc: New file.
68182         * modules/string-tests (Files): Add it and tests/signature.h.
68183         (Depends-on): Add ansi-c++-opt.
68184         (Makefile.am): Arrange to compile and run test-string-c++.
68185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
68186         gl_MODULE_INDICATOR.
68188         Tests of module 'stdlib' in C++ mode.
68189         * tests/test-stdlib-c++.cc: New file.
68190         * modules/stdlib-tests (Files): Add it and tests/signature.h.
68191         (Depends-on): Add ansi-c++-opt.
68192         (Makefile.am): Arrange to compile and run test-stdlib-c++.
68193         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
68194         gl_MODULE_INDICATOR.
68196         Tests of module 'stdio' in C++ mode.
68197         * tests/test-stdio-c++.cc: New file.
68198         * modules/stdio-tests (Files): Add it and tests/signature.h.
68199         (Depends-on): Add ansi-c++-opt.
68200         (Makefile.am): Arrange to compile and run test-stdio-c++.
68201         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
68202         gl_MODULE_INDICATOR.
68204         Tests of module 'spawn' in C++ mode.
68205         * tests/test-spawn-c++.cc: New file.
68206         * modules/spawn-tests (Files): Add it and tests/signature.h.
68207         (Depends-on): Add ansi-c++-opt.
68208         (Makefile.am): Arrange to compile and run test-spawn-c++.
68209         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
68210         gl_MODULE_INDICATOR.
68212         Tests of module 'signal' in C++ mode.
68213         * tests/test-signal-c++.cc: New file.
68214         * modules/signal-tests (Files): Add it and tests/signature.h.
68215         (Depends-on): Add ansi-c++-opt.
68216         (Makefile.am): Arrange to compile and run test-signal-c++.
68217         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
68218         gl_MODULE_INDICATOR.
68220         Tests of module 'search' in C++ mode.
68221         * tests/test-search-c++.cc: New file.
68222         * modules/search-tests (Files): Add it and tests/signature.h.
68223         (Depends-on): Add ansi-c++-opt.
68224         (Makefile.am): Arrange to compile and run test-search-c++.
68225         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
68226         gl_MODULE_INDICATOR.
68228         Tests of module 'math' in C++ mode.
68229         * tests/test-math-c++.cc: New file.
68230         * modules/math-tests (Files): Add it and tests/signature.h.
68231         (Depends-on): Add ansi-c++-opt.
68232         (Makefile.am): Arrange to compile and run test-math-c++.
68233         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68235         Tests of module 'locale' in C++ mode.
68236         * tests/test-locale-c++.cc: New file.
68237         * modules/locale-tests (Files): Add it and tests/signature.h.
68238         (Depends-on): Add ansi-c++-opt.
68239         (Makefile.am): Arrange to compile and run test-locale-c++.
68240         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
68241         gl_MODULE_INDICATOR.
68243         Tests of module 'langinfo' in C++ mode.
68244         * tests/test-langinfo-c++.cc: New file.
68245         * modules/langinfo-tests (Files): Add it and tests/signature.h.
68246         (Depends-on): Add ansi-c++-opt.
68247         (Makefile.am): Arrange to compile and run test-langinfo-c++.
68248         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
68249         gl_MODULE_INDICATOR.
68251         Tests of module 'iconv-h' in C++ mode.
68252         * tests/test-iconv-h-c++.cc: New file.
68253         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
68254         (Depends-on): Add ansi-c++-opt.
68255         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
68257         Tests of module 'glob' in C++ mode.
68258         * tests/test-glob-c++.cc: New file.
68259         * modules/glob-tests (Files): Add it.
68260         (Depends-on): Add ansi-c++-opt.
68261         (Makefile.am): Arrange to compile and run test-glob-c++.
68263         Tests of module 'fcntl-h' in C++ mode.
68264         * tests/test-fcntl-h-c++.cc: New file.
68265         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
68266         (Depends-on): Add ansi-c++-opt.
68267         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
68268         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
68269         gl_MODULE_INDICATOR.
68271         Tests of module 'dirent' in C++ mode.
68272         * tests/test-dirent-c++.cc: New file.
68273         * modules/dirent-tests (Files): Add it and tests/signature.h.
68274         (Depends-on): Add ansi-c++-opt.
68275         (Makefile.am): Arrange to compile and run test-dirent-c++.
68276         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68277         gl_MODULE_INDICATOR.
68279         New module 'ansi-c++-opt'.
68280         * modules/ansi-c++-opt: New file.
68281         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
68283         Document C++ namespace mode.
68284         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
68286         wctype: Avoid #define replacements in C++ mode.
68287         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
68288         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
68289         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
68290         In C++, define a namespaced alias symbol.
68291         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
68292         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
68293         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
68294         rule.
68296         wchar: Avoid #define replacements in C++ mode.
68297         * lib/wchar.in.h: Include c++defs.h.
68298         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
68299         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
68300         symbol.
68301         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
68302         * modules/wchar (Depends-on): Add c++defs.
68303         (Makefile.am): Update wchar.h rule.
68305         unistd: Avoid #define replacements in C++ mode.
68306         * lib/unistd.in.h: Include c++defs.h.
68307         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
68308         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
68309         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
68310         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
68311         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
68312         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
68313         symbol.
68314         (environ): Update.
68315         * modules/unistd (Depends-on): Add c++defs.
68316         (Makefile.am): Update unistd.h rule.
68318         time: Avoid #define replacements in C++ mode.
68319         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
68320         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
68321         define a namespaced alias symbol.
68322         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
68323         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
68324         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
68325         * modules/time (Depends-on): Add c++defs, warn-on-use.
68326         (Makefile.am): Update time.h rule.
68327         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68328         * modules/nanosleep (configure.ac): Likewise.
68329         * modules/strptime (configure.ac): Likewise.
68330         * modules/timegm (configure.ac): Likewise.
68332         sys_time: Avoid #define replacements in C++ mode.
68333         * lib/sys_time.in.h: Include c++defs.h.
68334         (gettimeofday): In C++, define a namespaced alias symbol.
68335         * modules/sys_time (Depends-on): Add c++defs.
68336         (Makefile.am): Update sys/time.h rule.
68338         sys_stat: Avoid #define replacements in C++ mode.
68339         * lib/sys_stat.in.h: Include c++defs.h.
68340         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
68341         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
68342         namespaced alias symbol.
68343         In C++, define a namespaced alias symbol.
68344         * modules/sys_stat (Depends-on): Add c++defs.
68345         (Makefile.am): Update sys/stat.h rule.
68347         sys_socket: Avoid #define replacements in C++ mode.
68348         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
68349         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
68350         definitions also when the system has a <sys/socket.h>.
68351         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68352         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
68353         In C++, define a namespaced alias symbol.
68354         * modules/sys_socket (Depends-on): Add c++defs.
68355         (Makefile.am): Update sys/socket.h rule.
68357         sys_select: Avoid #define replacements in C++ mode.
68358         * lib/sys_select.in.h: Include c++defs.h. Enable the function
68359         definitions also when the system has a <sys/select.h>.
68360         (select): In C++, define a namespaced alias symbol.
68361         * modules/sys_select (Depends-on): Add c++defs.
68362         (Makefile.am): Update sys/select.h rule.
68364         sys_ioctl: Avoid #define replacements in C++ mode.
68365         * lib/sys_ioctl.in.h: Include c++defs.h.
68366         (ioctl): In C++, define a namespaced alias symbol.
68367         * modules/sys_ioctl (Depends-on): Add c++defs.
68368         (Makefile.am): Update sys/ioctl.h rule.
68370         string: Avoid #define replacements in C++ mode.
68371         * lib/string.in.h: Include c++defs.h.
68372         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
68373         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68374         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68375         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
68376         strsignal, strverscmp): In C++, define a namespaced alias symbol.
68377         * modules/string (Depends-on): Add c++defs.
68378         (Makefile.am): Update string.h rule.
68380         stdlib: Avoid #define replacements in C++ mode.
68381         * lib/stdlib.in.h: Include c++defs.h.
68382         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68383         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68384         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68385         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68386         symbol.
68387         * modules/stdlib (Depends-on): Add c++defs.
68388         (Makefile.am): Update stdlib.h rule.
68390         stdio: Avoid #define replacements in C++ mode.
68391         * lib/stdio.in.h: Include c++defs.h.
68392         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68393         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68394         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68395         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68396         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68397         namespaced alias symbol.
68398         * modules/stdio (Depends-on): Add c++defs.
68399         (Makefile.am): Update stdio.h rule.
68401         spawn: Avoid #define replacements in C++ mode.
68402         * lib/spawn.in.h: Include c++defs.h.
68403         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68404         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68405         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68406         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68407         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68408         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68409         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68410         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68411         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68412         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68413         In C++, define a namespaced alias symbol.
68414         * modules/spawn (Depends-on): Add c++defs.
68415         (Makefile.am): Update spawn.h rule.
68417         signal: Avoid #define replacements in C++ mode.
68418         * lib/signal.in.h: Include c++defs.h.
68419         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68420         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68421         namespaced alias symbol.
68422         * modules/signal (Depends-on): Add c++defs.
68423         (Makefile.am): Update signal.h rule.
68425         search: Avoid #define replacements in C++ mode.
68426         * lib/search.in.h: Include c++defs.h.
68427         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68428         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68429         symbol.
68430         * modules/search (Depends-on): Add c++defs.
68431         (Makefile.am): Update search.h rule.
68433         math: Avoid #define replacements in C++ mode.
68434         * lib/math.in.h: Include c++defs.h.
68435         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68436         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68437         trunc, truncl): In C++, define a namespaced alias symbol.
68438         * modules/math (Depends-on): Add c++defs.
68439         (Makefile.am): Update math.h rule.
68441         locale: Avoid #define replacements in C++ mode.
68442         * lib/locale.in.h: Include c++defs.h.
68443         (duplocale): In C++, define a namespaced alias symbol.
68444         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68445         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68446         * modules/locale (Depends-on): Add c++defs.
68447         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68449         langinfo: Avoid #define replacements in C++ mode.
68450         * lib/langinfo.in.h: Include c++defs.h.
68451         (nl_langinfo): In C++, define a namespaced alias symbol.
68452         * modules/langinfo (Depends-on): Add c++defs.
68453         (Makefile.am): Update langinfo.h rule.
68455         iconv-h: Avoid #define replacements in C++ mode.
68456         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68457         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68458         symbol.
68459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68460         whenever iconv is present.
68461         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68462         (Makefile.am): Update iconv.h rule.
68464         glob: Avoid #define replacements in C++ mode.
68465         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68466         (_gl_glob_errfunc_fn): New type.
68467         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68468         symbol.
68469         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68470         (Makefile.am): Update glob.h rule.
68472         fcntl-h: Avoid #define replacements in C++ mode.
68473         * lib/fcntl.in.h: Include c++defs.h.
68474         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68475         * modules/fcntl-h (Depends-on): Add c++defs.
68476         (Makefile.am): Update fcntl.h rule.
68478         dirent: Avoid #define replacements in C++ mode.
68479         * lib/dirent.in.h: Include c++defs.h.
68480         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68481         namespaced alias symbol.
68482         (dirfd): Update declaration.
68483         * modules/dirent (Depends-on): Add c++defs.
68484         (Makefile.am): Update dirent.h rule.
68486         ctype: Make it usable in C++ code.
68487         * lib/ctype.in.h: Include c++defs.h.
68488         (isblank): Declare as extern "C".
68489         * modules/ctype (Depends-on): Add c++defs.
68490         (Makefile.am): Update ctype.h rule.
68492         New module 'c++defs'.
68493         * modules/c++defs: New file.
68494         * build-aux/c++defs.h: New file.
68495         Reported by John W. Eaton <jwe@gnu.org>.
68497 2010-03-07  Bruno Haible  <bruno@clisp.org>
68499         logb: Provide missing declaration for Cygwin.
68500         * lib/math.in.h (logb): New declaration.
68501         * m4/logb.m4: New file.
68502         * modules/logb (Files): Add m4/logb.m4.
68503         (Depends-on): Add math.
68504         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68505         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68507         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68508         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68510 2010-03-07  Bruno Haible  <bruno@clisp.org>
68512         Fix test-cond link error.
68513         * tests/test-cond.c: Include <stdio.h>.
68515 2010-03-07  Bruno Haible  <bruno@clisp.org>
68517         Fix test-dirent-safer link error.
68518         * modules/dirent-safer-tests (Makefile.am): Define
68519         test_dirent_safer_LDADD.
68521 2010-03-07  Bruno Haible  <bruno@clisp.org>
68523         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68524         among default module list.
68526 2010-03-07  Bruno Haible  <bruno@clisp.org>
68528         Fix link error on platforms with GNU libiconv.
68529         * modules/unistr/u8-strcoll-tests (Makefile): Define
68530         test_u8_strcoll_LDADD.
68531         * modules/unistr/u16-strcoll-tests (Makefile): Define
68532         test_u16_strcoll_LDADD.
68533         * modules/unistr/u32-strcoll-tests (Makefile): Define
68534         test_u32_strcoll_LDADD.
68536 2010-03-07  Bruno Haible  <bruno@clisp.org>
68538         Use POSIX declarations for socket functions.
68539         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68540         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68541         rpl_sendto): Change declaration to match POSIX.
68542         * lib/connect.c (rpl_connect): Likewise.
68543         * lib/accept.c (rpl_accept): Likewise.
68544         * lib/bind.c (rpl_bind): Likewise.
68545         * lib/getpeername.c (rpl_getpeername): Likewise.
68546         * lib/getsockname.c (rpl_getsockname): Likewise.
68547         * lib/recv.c (rpl_recv): Likewise.
68548         * lib/send.c (rpl_send): Likewise.
68549         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68550         * lib/sendto.c (rpl_sendto): Likewise.
68552 2010-03-06  Bruno Haible  <bruno@clisp.org>
68554         Clarify access, euidaccess, faccessat.
68555         * doc/posix-functions/faccessat.texi: Mention security problem under
68556         "Other problems", not "Portability problems".
68557         * doc/posix-functions/access.texi: Likewise. Mention a related security
68558         problem.
68559         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68560         * lib/euidaccess.c: Add comments about platforms.
68561         * lib/unistd.in.h (access, euidaccess): Add warnings.
68563 2010-03-07  Bruno Haible  <bruno@clisp.org>
68565         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68566         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68567         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68568         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68569         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68570         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68571         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68572         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68573         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68574         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68575         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68576         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68577         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68578         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68579         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68580         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68581         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68582         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68583         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68584         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68585         Likewise.
68586         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68587         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68588         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68589         Likewise.
68590         * tests/test-spawn.c (main): Make it work when
68591         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68593 2010-03-07  Bruno Haible  <bruno@clisp.org>
68595         Fix incorrect Makefile.am generation in German locale.
68596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68597         Execute sed command with character range in C locale.
68599 2010-03-06  Bruno Haible  <bruno@clisp.org>
68601         Tests for module 'iconv-h'.
68602         * modules/iconv-h-tests: New file.
68603         * tests/test-iconv-h.c: New file.
68605         New module 'iconv-h'.
68606         * modules/iconv-h: New file.
68607         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68608         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68609         (configure.ac): Remove gl_ICONV_H.
68610         (Makefile.am): Remove rule for iconv.h.
68612 2010-03-06  Bruno Haible  <bruno@clisp.org>
68614         More consistent naming of *.m4 files.
68615         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68616         * modules/wctype (Files): Update.
68618         More consistent naming of *.m4 files.
68619         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68620         * modules/wchar (Files): Update.
68622 2010-03-06  Jim Meyering  <meyering@redhat.com>
68624         euidaccess: relax license to LGPLv2+
68625         * modules/euidaccess (License): Relax to LGPLv2+.
68627 2010-03-06  Bruno Haible  <bruno@clisp.org>
68629         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68630         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68631         (Makefile.am): Augment lib_SOURCES instead.
68633 2010-03-04  Jim Meyering  <meyering@redhat.com>
68635         utime: remove obsolete module
68636         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68637         unnecessary for years, and has been marked as obsolete for 10 months.
68638         * modules/utime: Remove file.
68639         * lib/utime.c: Remove file.
68640         * m4/utime.m4: Remove file.
68641         * m4/utimes-null.m4: Remove file.
68642         * doc/posix-functions/utime.texi (utime): Remove reference to
68643         the module.  Move the sole "fixed by gnulib" item into the
68644         "problems not fixed by Gnulib" list.
68645         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68647 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68649         * modules/exit (License): Relax license to LGPLv2+.
68650         (Status): Mark as obsolete.
68651         * NEWS: Mention deprecated 'exit' module.
68652         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68653         of now obsolete 'exit'.
68655 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68657         fts-lgpl: remove unused module
68658         * modules/fts-lgpl: Remove.
68659         * MODULES.html.sh (func_all_modules): Adjust.
68660         * check-module (find_included_lib_files): Adjust.
68661         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68663 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68665         copy-acl: enhance Solaris ACL error handling
68666         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68667         * lib/set-mode-acl.c (qset_acl): Likewise.
68669 2010-03-02  Bruno Haible  <bruno@clisp.org>
68671         spawn: Don't override the system defined values on FreeBSD 8.
68672         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68673         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68674         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68675         if HAVE_POSIX_SPAWN is 1.
68676         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68678 2010-03-01  Bruno Haible  <bruno@clisp.org>
68680         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68681         regarding Automake.
68683 2010-02-25  Bruno Haible  <bruno@clisp.org>
68685         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68686         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68687         setting, not afterwards.
68688         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68690 2010-02-24  Eric Blake  <eblake@redhat.com>
68692         bootstrap, git-version-gen: use timestamp
68693         * build-aux/git-version-gen (scriptversion): Force UTC.
68694         * build-aux/bootstrap (scriptversion): New variable.
68696         bootstrap: allow older git
68697         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68698         older than 1.6.4.  Requested by the libvirt project.
68700 2010-02-23  Eric Blake  <eblake@redhat.com>
68702         warn-on-use: work with old autoconf
68703         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68704         AS_VAR semantics of autoconf 2.60.
68705         Reported by Bruno Haible.
68707         bootstrap: improve some comments
68708         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68709         clarification comments.
68711         gettimeofday: provide correct function
68712         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68713         when replacement is declared, otherwise provide gettimeofday.
68714         Reported by Michael Goffioul.
68716 2010-02-23  Jim Meyering  <meyering@redhat.com>
68718         lib-ignore: relax license to "unlimited", not LGPLv2+
68719         * modules/lib-ignore (License): Relax to "unlimited".
68721 2010-02-23  Jim Meyering  <meyering@redhat.com>
68723         lib-ignore: relax license to LGPLv2+
68724         * modules/lib-ignore (License): Relax to LGPLv2+.
68726 2010-02-22  Eric Blake  <eblake@redhat.com>
68728         lseek: avoid bash 3.2 broken pipe bug
68729         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68730         warning from bash 3.2.
68731         Reported by Ben Pfaff, with analysis from Bruno Haible.
68733         bootstrap: support non-FSF copyright holder
68734         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68735         bootstrap.conf override of COPYRIGHT_HOLDER.
68736         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68738         bootstrap: interoperate with gettext 0.14.1
68739         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68741         bootstrap: allow for alternate submodule location
68742         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68743         hardcoding submodule location.
68744         (gnulib_mk): Allow direct use of Makefile.am.
68746         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68747         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68748         rather than reconfiguring where the submodule points.
68750         gettimeofday: restore support for platforms that lack function
68751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68752         replacement if function is missing.
68753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68754         * modules/sys_time (Makefile.am): Substitute it.
68755         * lib/sys_time.in.h (gettimeofday): Check it.
68756         Reported by Michael Goffioul.
68758 2010-02-21  Bruno Haible  <bruno@clisp.org>
68760         * lib/stdio.in.h (obstack_printf): Fix typo.
68762 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68764         vc-list-files: use bzr ls's -R option
68765         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68766         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68768 2010-02-21  Jim Meyering  <meyering@redhat.com>
68770         init.sh: fix EXEEXT shims to work also for names like test-prog
68771         * tests/init.sh: Re-exec a better shell, when needed.
68772         If the current shell lacks support for posix $(...), an init.sh-using
68773         test will now try to find a shell that supports that.  If EXEEXT is
68774         nonempty, we also require support for hyphen-in-alias-name and shell
68775         substitutions like ${var#glob}.  Failure to find such a shell results
68776         in a skipped test.
68778 2010-02-21  Bruno Haible  <bruno@clisp.org>
68780         Really work around "broken pipe" error message from bash 3.2.
68781         * gnulib-tool (func_reset_sigpipe): Remove function.
68782         (echo): In bash 3.2, define to a function that uses printf.
68783         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68785 2010-02-20  Bruno Haible  <bruno@clisp.org>
68787         Restore support for automake 1.9.6 with autoconf 2.61.
68788         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68789         Reported by James Youngman <jay@gnu.org>.
68791 2010-02-20  Bruno Haible  <bruno@clisp.org>
68793         Improve *printf warning condition.
68794         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
68795         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
68796         and the function is overridden due to SIGPIPE emulation.
68798 2010-02-20  Bruno Haible  <bruno@clisp.org>
68800         * lib/stdio.in.h: Tweak comments.
68802 2010-02-19  Bruno Haible  <bruno@clisp.org>
68804         Make it easier to find modules. New gnulib-tool option '--find'.
68805         * gnulib-tool: New option --find.
68806         (func_usage): Document it.
68807         (func_sanitize_modulelist): New function, extracted from
68808         func_all_modules.
68809         (func_all_modules): Invoke it.
68810         * doc/gnulib-tool.texi (Which modules?): New node.
68812 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
68814         * lib/sys_select.in.h: Provide select replacement even if
68815         sys/select.h exists on a system, for Interix.
68817 2010-02-18  Jim Meyering  <meyering@redhat.com>
68819         init.sh: don't use $(...) just yet
68820         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68821         to accommodate e.g., Solaris' /bin/sh.
68823 2010-02-17  Bruno Haible  <bruno@clisp.org>
68825         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68826         Reported by Ludovic Courtès <ludo@gnu.org>.
68828 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68830         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68831         linking with -lintl.
68833 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68835         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68836         if not provided by the system's netdb.h.  Reported by
68837         ludo@gnu.org (Ludovic Courtès).
68839 2010-02-15  Jim Meyering  <meyering@redhat.com>
68841         init.sh: improve portability and efficiency
68842         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68843         "dummy" in a for loop.
68844         Use '!', not '^' to select the complement of a character set used
68845         in a "case" statement.
68846         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68847         Suggestions from Eric Blake.
68849         init.sh: automatically accommodate programs with the .exe suffix
68850         Automatically arrange for an invocation of "prog" to execute the
68851         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68852         may use the simpler "prog", yet still work when built on a system
68853         that requires specifying the added suffix.
68854         Do this by constructing a function named "prog" that invokes
68855         "prog.exe" for each .exe file in selected directories.
68856         * tests/init.sh (find_exe_basenames_): New function.
68857         (create_exe_shim_functions_): New function.
68858         (path_prepend_): Use it.
68860         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68861         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68862         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68864 2010-02-14  Jim Meyering  <meyering@redhat.com>
68866         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68867         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68868         (sc_prohibit_hash_pjw_without_use): New rule.
68870         maint.mk: allow the default upload destination dir to be overridden
68871         * top/maint.mk (upload_dest_dir_): Define with a default that
68872         preserves the status quo.
68873         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68874         Reported by Peter Simons.
68876         maint.mk: prohibit inclusion of "hash.h" without_use
68877         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68879 2010-02-10  Jim Meyering  <meyering@redhat.com>
68881         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68882         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68884 2010-02-09  Eric Blake  <ebb9@byu.net>
68885         and Bruno Haible  <bruno@clisp.org>
68887         obstack-printf-posix: ensure declaration
68888         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68889         extracted from gl_FUNC_OBSTACK_PRINTF.
68890         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68891         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68892         Likewise.
68893         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68894         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68895         0.
68897 2010-02-08  Bruno Haible  <bruno@clisp.org>
68899         gnulib-tool: Fix typo in 2010-02-07 commit.
68900         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68901         Reported by Eric Blake.
68903 2010-02-07  Bruno Haible  <bruno@clisp.org>
68905         gnulib-tool: Fix up caching patches.
68906         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68907         option --no-cache. Use associative arrays when supported by the shell.
68908         (sed_comments): New variable.
68909         (modcache): Renamed from do_cache.
68910         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68911         abbreviate unnecessarily.
68912         (have_associative): New variable.
68913         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68914         way also for ksh and zsh.
68915         (func_init_sed_convert_to_cache_statements): New function, extracted
68916         from func_cache_lookup_module. Add support for associative arrays.
68917         Don't set the c_MODULE_cached variable here. Ignore all lines before
68918         the first field header. Remove only the final newline, not all trailing
68919         newlines. Support empty fields correctly. Limit the use of 'eval' to
68920         assignments.
68921         (func_get_description, func_get_status, func_get_notice,
68922         func_get_applicability, func_get_filelist, func_get_dependencies,
68923         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68924         func_get_automake_snippet, func_get_include_directive,
68925         func_get_link_directive, func_get_license, func_get_maintainer):
68926         Update documentation. List the unoptimized code first. Add support for
68927         associative arrays. Limit the use of 'eval' to assignments.
68928         (func_get_applicability): Undo stylistic pessimisations.
68929         (func_get_automake_snippet, func_get_include_directive): Reduce code
68930         duplication.
68931         (func_modules_transitive_closure, func_modules_add_dummy,
68932         func_modules_notice, func_modules_to_filelist, func_add_file,
68933         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68934         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68935         func_create_testdir, func_create_megatestdir): Update documentation.
68937 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68939         * gnulib-tool (func_cache_lookup_module): Store the module name
68940         belonging to the cache variable; error out if two different
68941         module names map to the same cache variable name.
68943 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68945         gnulib-tool: Make caching optional.
68946         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68947         Update matching short versions of --no-changelog.
68948         (func_usage): Update.
68949         (sed_extract_cache_prog): Renamed from ...
68950         (sed_extract_prog): ... this; revert to old extraction script.
68951         (func_get_description, func_get_status)
68952         (func_get_notice, func_get_applicability, func_get_filelist)
68953         (func_get_dependencies, func_get_autoconf_early_snippet)
68954         (func_get_autoconf_snippet, func_get_automake_snippet)
68955         (func_get_include_directive, func_get_link_directive)
68956         (func_get_license, func_get_maintainer): If $do_cache is false,
68957         use old, non-caching extraction scripts.
68958         Suggestion by Bruno Haible.
68960 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68962         gnulib-tool: cache module metainformation.
68963         * gnulib-tool (sed_extract_prog): Match newline before each
68964         header, and rewrite header to a shell variable suffix.
68965         (func_cache_var, func_cache_lookup_module): New functions,
68966         to turn a module name into a cache variable prefix, and to
68967         look up and cache module metainformation.
68968         (func_get_description, func_get_status)
68969         (func_get_notice, func_get_applicability, func_get_filelist)
68970         (func_get_dependencies, func_get_autoconf_early_snippet)
68971         (func_get_autoconf_snippet, func_get_automake_snippet)
68972         (func_get_include_directive, func_get_link_directive)
68973         (func_get_license, func_get_maintainer): Use
68974         func_cache_lookup_module.
68976 2010-02-07  Bruno Haible  <bruno@clisp.org>
68978         fnctl: Fix missing dependency.
68979         * modules/fcntl (Depends-on): Add getdtablesize.
68980         Reported by John W. Eaton <jwe@gnu.org>.
68982 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68984         Argp: fix recognition of short alias options.
68986         * lib/argp-parse.c (convert_options): Fix improper use of
68987         `|' between character values.
68988         * tests/test-argp.c (group1_option): New alias option
68989         --read (-r).
68990         (group1_parser): Special handling for 'r'.
68991         (test15): New test case.
68992         (test_fun): Add test15.
68993         * tests/test-argp-2.sh: Update expected --help and --usage
68994         outputs.
68996 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68998         * tests/test-argp.c: Fix indentation.
69000 2010-02-04  Eric Blake  <ebb9@byu.net>
69002         gettimeofday: expose type of second argument
69003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
69004         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
69005         * tests/test-gettimeofday.c: Use it to silence warning.
69006         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
69007         the issue.
69009 2010-02-03  Jim Meyering  <meyering@redhat.com>
69011         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
69012         * lib/regcomp.c (TYPE_SIGNED): Define.
69013         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
69015         regcomp.c: avoid a new -Wshadow warning
69016         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
69018 2010-02-01  Jim Meyering  <meyering@redhat.com>
69020         removing useless parentheses in cpp #define directives
69021         For motivation, see commit c0221df4, "define STREQ(a,b)
69022         consistently, removing useless parentheses"
69023         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
69024         * lib/mountlist.c (MNT_IGNORE): Likewise.
69025         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
69027 2010-02-01  Eric Blake  <ebb9@byu.net>
69029         sys_time: use link-warning
69030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
69031         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
69032         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
69033         * modules/sys_time (Depends-on): Add warn-on-use.
69034         (Makefile.am): Always build replacement.
69035         (configure.ac): Update substitutions.
69036         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
69037         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
69038         bother with SYS_TIME_H.
69039         * modules/gettimeofday (configure.ac): Declare indicator.
69040         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
69041         in use.
69043         closein-tests: silence compiler warning
69044         * tests/test-closein.c (main): Ignore fread result.
69045         * modules/closein-tests (Depends-on): Add ignore-value.
69047         tests: silence warning about system return
69048         * tests/test-areadlink-with-size.c (main): Ignore system result.
69049         * tests/test-areadlink.c (main): Likewise.
69050         * tests/test-areadlinkat-with-size.c (main): Likewise.
69051         * tests/test-areadlinkat.c (main): Likewise.
69052         * tests/test-canonicalize-lgpl.c (main): Likewise.
69053         * tests/test-canonicalize.c (main): Likewise.
69054         * tests/test-chown.c (main): Likewise.
69055         * tests/test-fchownat.c (main): Likewise.
69056         * tests/test-fdutimensat.c (main): Likewise.
69057         * tests/test-fstatat.c (main): Likewise.
69058         * tests/test-futimens.c (main): Likewise.
69059         * tests/test-lchown.c (main): Likewise.
69060         * tests/test-link.c (main): Likewise.
69061         * tests/test-linkat.c (main): Likewise.
69062         * tests/test-lstat.c (main): Likewise.
69063         * tests/test-mkdir.c (main): Likewise.
69064         * tests/test-mkdirat.c (main): Likewise.
69065         * tests/test-mkfifo.c (main): Likewise.
69066         * tests/test-mkfifoat.c (main): Likewise.
69067         * tests/test-mknod.c (main): Likewise.
69068         * tests/test-readlink.c (main): Likewise.
69069         * tests/test-remove.c (main): Likewise.
69070         * tests/test-rename.c (main): Likewise.
69071         * tests/test-renameat.c (main): Likewise.
69072         * tests/test-rmdir.c (main): Likewise.
69073         * tests/test-symlink.c (main): Likewise.
69074         * tests/test-symlinkat.c (main): Likewise.
69075         * tests/test-unlink.c (main): Likewise.
69076         * tests/test-unlinkat.c (main): Likewise.
69077         * tests/test-utimens.c (main): Likewise.
69078         * tests/test-utimensat.c (main): Likewise.
69079         * modules/areadlink-tests (Depends-on): Add ignore-value.
69080         * modules/areadlink-with-size-tests (Depends-on): Likewise.
69081         * modules/areadlinkat-tests (Depends-on): Likewise.
69082         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
69083         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69084         * modules/canonicalize-tests (Depends-on): Likewise.
69085         * modules/chown-tests (Depends-on): Likewise.
69086         * modules/fdutimensat-tests (Depends-on): Likewise.
69087         * modules/futimens-tests (Depends-on): Likewise.
69088         * modules/lchown-tests (Depends-on): Likewise.
69089         * modules/link-tests (Depends-on): Likewise.
69090         * modules/linkat-tests (Depends-on): Likewise.
69091         * modules/lstat-tests (Depends-on): Likewise.
69092         * modules/mkdir-tests (Depends-on): Likewise.
69093         * modules/mkfifo-tests (Depends-on): Likewise.
69094         * modules/mkfifoat-tests (Depends-on): Likewise.
69095         * modules/mknod-tests (Depends-on): Likewise.
69096         * modules/openat-tests (Depends-on): Likewise.
69097         * modules/readlink-tests (Depends-on): Likewise.
69098         * modules/remove-tests (Depends-on): Likewise.
69099         * modules/rename-tests (Depends-on): Likewise.
69100         * modules/renameat-tests (Depends-on): Likewise.
69101         * modules/rmdir-tests (Depends-on): Likewise.
69102         * modules/symlink-tests (Depends-on): Likewise.
69103         * modules/symlinkat-tests (Depends-on): Likewise.
69104         * modules/unlink-tests (Depends-on): Likewise.
69105         * modules/utimens-tests (Depends-on): Likewise.
69106         * modules/utimensat-tests (Depends-on): Likewise.
69108 2010-01-31  Bruno Haible  <bruno@clisp.org>
69110         Perform the same test for many <math.h> functions.
69111         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
69112         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
69113         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
69114         of gl_MATHFUNC.
69115         * modules/acos (configure.ac): Likewise.
69116         * modules/asin (configure.ac): Likewise.
69117         * modules/atan (configure.ac): Likewise.
69118         * modules/atan2 (configure.ac): Likewise.
69119         * modules/cbrt (configure.ac): Likewise.
69120         * modules/copysign (configure.ac): Likewise.
69121         * modules/cos (configure.ac): Likewise.
69122         * modules/cosh (configure.ac): Likewise.
69123         * modules/erf (configure.ac): Likewise.
69124         * modules/erfc (configure.ac): Likewise.
69125         * modules/exp (configure.ac): Likewise.
69126         * modules/fmod (configure.ac): Likewise.
69127         * modules/hypot (configure.ac): Likewise.
69128         * modules/j0 (configure.ac): Likewise.
69129         * modules/j1 (configure.ac): Likewise.
69130         * modules/jn (configure.ac): Likewise.
69131         * modules/lgamma (configure.ac): Likewise.
69132         * modules/log (configure.ac): Likewise.
69133         * modules/log10 (configure.ac): Likewise.
69134         * modules/log1p (configure.ac): Likewise.
69135         * modules/pow (configure.ac): Likewise.
69136         * modules/remainder (configure.ac): Likewise.
69137         * modules/sin (configure.ac): Likewise.
69138         * modules/sinh (configure.ac): Likewise.
69139         * modules/tan (configure.ac): Likewise.
69140         * modules/tanh (configure.ac): Likewise.
69141         * modules/y0 (configure.ac): Likewise.
69142         * modules/y1 (configure.ac): Likewise.
69143         * modules/yn (configure.ac): Likewise.
69144         Suggested by Paolo Bonzini.
69146 2010-01-31  Bruno Haible  <bruno@clisp.org>
69148         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
69150 2010-01-31  Bruno Haible  <bruno@clisp.org>
69152         Work around getdelim() bug on FreeBSD 8.0.
69153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
69154         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
69155         not work.
69156         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
69157         is 1.
69158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
69159         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
69160         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
69161         a non-zero size.
69162         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
69164 2010-01-31  Bruno Haible  <bruno@clisp.org>
69166         Work around getline() bug on FreeBSD 8.0.
69167         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
69168         and a non-zero size.
69169         * tests/test-getline.c (main): Likewise.
69170         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
69171         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
69173 2010-01-28  Eric Blake  <ebb9@byu.net>
69175         regex: fix build failure
69176         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
69177         platforms.
69179 2010-01-28  Jim Meyering  <meyering@redhat.com>
69181         regex: do not ignore memory allocation failure
69182         * lib/regex_internal.c (create_cd_newstate): Detect
69183         re_node_set_init_copy failure.   Extracted from glibc commit
69184         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69186         regex: sync more white-space changes from libc
69187         * lib/regex_internal.c: White-space only changes.
69188         * lib/regexec.c: Likewise.
69190         regex: add many uses of __attribute_warn_unused_result__
69191         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
69192         * lib/regexec.c: Likewise.
69193         Extracted from a messy glibc commit.
69195         regcomp.c: spelling and merge-artifact from glibc
69196         * lib/regcomp.c: Merge remainder of glibc's
69197         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69199         regcomp.c: sync white-space changes from glibc
69200         * lib/regcomp.c: Merge to accommodate white space
69201         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69203         regcomp.c: do not ignore internal return values
69204         * lib/regcomp.c: Do not ignore internal return values.
69205         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
69206         but without its white-space changes and spelling fixes.
69208         regex_internal.h: define __attribute_warn_unused_result__
69209         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
69211         maint: add a syntax-check rule to check for vulnerable Makefile.in
69212         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
69214 2010-01-27  Jim Meyering  <meyering@redhat.com>
69216         ncftpput-ftp: clean up spaces
69217         * build-aux/ncftpput-ftp: Make Copyright line consistent.
69218         Remove trailing blanks.
69220 2010-01-27  Simon Josefsson  <simon@josefsson.org>
69222         * build-aux/git-version-gen: Fix copyright statement.
69223         * build-aux/gnupload: Likewise.
69224         * tests/test-arcfour.c: Likewise.
69225         * tests/test-arctwo.c: Likewise.
69226         * tests/test-count-one-bits.c: Likewise.
69227         * tests/test-crc.c: Likewise.
69228         * tests/test-des.c: Likewise.
69229         * tests/test-gc-arcfour.c: Likewise.
69230         * tests/test-gc-arctwo.c: Likewise.
69231         * tests/test-gc-des.c: Likewise.
69232         * tests/test-gc-hmac-md5.c: Likewise.
69233         * tests/test-gc-hmac-sha1.c: Likewise.
69234         * tests/test-gc-md2.c: Likewise.
69235         * tests/test-gc-md4.c: Likewise.
69236         * tests/test-gc-md5.c: Likewise.
69237         * tests/test-gc-pbkdf2-sha1.c: Likewise.
69238         * tests/test-gc-rijndael.c: Likewise.
69239         * tests/test-gc-sha1.c: Likewise.
69240         * tests/test-gc.c: Likewise.
69241         * tests/test-gethostname.c: Likewise.
69242         * tests/test-gettimeofday.c: Likewise.
69243         * tests/test-hash.c: Likewise.
69244         * tests/test-hmac-md5.c: Likewise.
69245         * tests/test-hmac-sha1.c: Likewise.
69246         * tests/test-md2.c: Likewise.
69247         * tests/test-md4.c: Likewise.
69248         * tests/test-md5.c: Likewise.
69249         * tests/test-memchr.c: Likewise.
69250         * tests/test-memchr2.c: Likewise.
69251         * tests/test-memcmp.c: Likewise.
69252         * tests/test-memmem.c: Likewise.
69253         * tests/test-memrchr.c: Likewise.
69254         * tests/test-rawmemchr.c: Likewise.
69255         * tests/test-read-file.c: Likewise.
69256         * tests/test-rijndael.c: Likewise.
69257         * tests/test-sockets.c: Likewise.
69258         * tests/test-strchrnul.c: Likewise.
69259         * tests/test-strstr.c: Likewise.
69260         * tests/test-strtod.c: Likewise.
69261         * build-aux/ncftpput-ftp: Likewise.
69263 2010-01-26  Eric Blake  <ebb9@byu.net>
69265         ignore-value: update recommended header name
69266         * modules/ignore-value (Include): Only use <> for headers that
69267         exist in glibc.
69269 2010-01-26  Jim Meyering  <meyering@redhat.com>
69271         test-userspec.c: avoid compiler warnings
69272         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
69273         and "initialization discards qualifiers..." warnings.
69274         Put the first "uid" in its own scope, and make char* members "const".
69276 2010-01-25  Bruno Haible  <bruno@clisp.org>
69278         gnulib-tool: Make warning diagnostics consistent.
69279         * gnulib-tool (func_warning): New function.
69280         Use it everywhere where gnulib-tool produces output to stderr and it is
69281         not a fatal error.
69283 2010-01-25  Bruno Haible  <bruno@clisp.org>
69285         Fix test dependencies.
69286         * modules/xstrtol-tests (Depends-on): Add inttypes.
69287         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
69289 2010-01-25  Pádraig Brady  <P@draigBrady.com>
69291         syntax-check: detect incorrect boolean macro values in config.h
69292         * modules/maintainer-makefile (configure.ac): Parameterize the location
69293         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
69294         The logic is from Eric Blake and the location indicated by Jim Meyering.
69295         Note the more natural CONFIG_HEADER name is prohibited by automake
69296         for backwards compatibility reasons.
69297         * top/maint.mk (sc_Wundef_boolean): New rule.
69299 2010-01-25  Jim Meyering  <meyering@redhat.com>
69301         bootstrap: detect MacOS 10.6's shasum, too
69302         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
69303         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
69305 2010-01-23  Jim Meyering  <meyering@redhat.com>
69307         xstrtoll: new module
69308         * modules/xstrtoll: New file.
69309         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
69310         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
69311         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
69312         ./configure fails if you use this module and lack "long long".
69313         * modules/xstrtoll-tests: New module.
69314         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
69315         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
69316         new init.sh-based test framework.
69318 2010-01-24  Bruno Haible  <bruno@clisp.org>
69320         Tests for module 'yn'.
69321         * modules/yn-tests: New file.
69322         * tests/test-yn.c: New file.
69324         Tests for module 'y1'.
69325         * modules/y1-tests: New file.
69326         * tests/test-y1.c: New file.
69328         Tests for module 'y0'.
69329         * modules/y0-tests: New file.
69330         * tests/test-y0.c: New file.
69332         Tests for module 'tanh'.
69333         * modules/tanh-tests: New file.
69334         * tests/test-tanh.c: New file.
69336         Tests for module 'tan'.
69337         * modules/tan-tests: New file.
69338         * tests/test-tan.c: New file.
69340         Tests for module 'sqrt'.
69341         * modules/sqrt-tests: New file.
69342         * tests/test-sqrt.c: New file.
69344         Tests for module 'sinh'.
69345         * modules/sinh-tests: New file.
69346         * tests/test-sinh.c: New file.
69348         Tests for module 'sin'.
69349         * modules/sin-tests: New file.
69350         * tests/test-sin.c: New file.
69352         Tests for module 'rint'.
69353         * modules/rint-tests: New file.
69354         * tests/test-rint.c: New file.
69356         Tests for module 'remainder'.
69357         * modules/remainder-tests: New file.
69358         * tests/test-remainder.c: New file.
69360         Tests for module 'pow'.
69361         * modules/pow-tests: New file.
69362         * tests/test-pow.c: New file.
69364         Tests for module 'nextafter'.
69365         * modules/nextafter-tests: New file.
69366         * tests/test-nextafter.c: New file.
69368         Tests for module 'modf'.
69369         * modules/modf-tests: New file.
69370         * tests/test-modf.c: New file.
69372         Tests for module 'logb'.
69373         * modules/logb-tests: New file.
69374         * tests/test-logb.c: New file.
69376         Tests for module 'log1p'.
69377         * modules/log1p-tests: New file.
69378         * tests/test-log1p.c: New file.
69380         Tests for module 'log10'.
69381         * modules/log10-tests: New file.
69382         * tests/test-log10.c: New file.
69384         Tests for module 'log'.
69385         * modules/log-tests: New file.
69386         * tests/test-log.c: New file.
69388         Tests for module 'lgamma'.
69389         * modules/lgamma-tests: New file.
69390         * tests/test-lgamma.c: New file.
69392         Tests for module 'ldexp'.
69393         * modules/ldexp-tests: New file.
69394         * tests/test-ldexp.c: New file.
69396         Tests for module 'jn'.
69397         * modules/jn-tests: New file.
69398         * tests/test-jn.c: New file.
69400         Tests for module 'j1'.
69401         * modules/j1-tests: New file.
69402         * tests/test-j1.c: New file.
69404         Tests for module 'j0'.
69405         * modules/j0-tests: New file.
69406         * tests/test-j0.c: New file.
69408         Tests for module 'hypot'.
69409         * modules/hypot-tests: New file.
69410         * tests/test-hypot.c: New file.
69412         Tests for module 'fmod'.
69413         * modules/fmod-tests: New file.
69414         * tests/test-fmod.c: New file.
69416         Tests for module 'fabs'.
69417         * modules/fabs-tests: New file.
69418         * tests/test-fabs.c: New file.
69420         Tests for module 'exp'.
69421         * modules/exp-tests: New file.
69422         * tests/test-exp.c: New file.
69424         Tests for module 'erfc'.
69425         * modules/erfc-tests: New file.
69426         * tests/test-erfc.c: New file.
69428         Tests for module 'erf'.
69429         * modules/erf-tests: New file.
69430         * tests/test-erf.c: New file.
69432         Tests for module 'cosh'.
69433         * modules/cosh-tests: New file.
69434         * tests/test-cosh.c: New file.
69436         Tests for module 'cos'.
69437         * modules/cos-tests: New file.
69438         * tests/test-cos.c: New file.
69440         Tests for module 'copysign'.
69441         * modules/copysign-tests: New file.
69442         * tests/test-copysign.c: New file.
69444         Tests for module 'cbrt'.
69445         * modules/cbrt-tests: New file.
69446         * tests/test-cbrt.c: New file.
69448         Tests for module 'atan2'.
69449         * modules/atan2-tests: New file.
69450         * tests/test-atan2.c: New file.
69452         Tests for module 'atan'.
69453         * modules/atan-tests: New file.
69454         * tests/test-atan.c: New file.
69456         Tests for module 'asin'.
69457         * modules/asin-tests: New file.
69458         * tests/test-asin.c: New file.
69460         Tests for module 'acos'.
69461         * modules/acos-tests: New file.
69462         * tests/test-acos.c: New file.
69464 2010-01-24  Bruno Haible  <bruno@clisp.org>
69466         Fix tests for common <math.h> functions.
69467         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69468         code snippet that references the function pointer, rather than merely
69469         calling the function. Substitute the FUNC_LIBM variable.
69470         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69471         * modules/acos (configure.ac): Likewise.
69472         * modules/asin (configure.ac): Likewise.
69473         * modules/atan (configure.ac): Likewise.
69474         * modules/atan2 (configure.ac): Likewise.
69475         * modules/cbrt (configure.ac): Likewise.
69476         * modules/copysign (configure.ac): Likewise.
69477         * modules/cos (configure.ac): Likewise.
69478         * modules/cosh (configure.ac): Likewise.
69479         * modules/erf (configure.ac): Likewise.
69480         * modules/erfc (configure.ac): Likewise.
69481         * modules/exp (configure.ac): Likewise.
69482         * modules/fabs (configure.ac): Likewise.
69483         * modules/fmod (configure.ac): Likewise.
69484         * modules/hypot (configure.ac): Likewise.
69485         * modules/j0 (configure.ac): Likewise.
69486         * modules/j1 (configure.ac): Likewise.
69487         * modules/jn (configure.ac): Likewise.
69488         * modules/ldexp (configure.ac): Likewise.
69489         * modules/lgamma (configure.ac): Likewise.
69490         * modules/log (configure.ac): Likewise.
69491         * modules/log10 (configure.ac): Likewise.
69492         * modules/log1p (configure.ac): Likewise.
69493         * modules/logb (configure.ac): Likewise.
69494         * modules/modf (configure.ac): Likewise.
69495         * modules/nextafter (configure.ac): Likewise.
69496         * modules/pow (configure.ac): Likewise.
69497         * modules/remainder (configure.ac): Likewise.
69498         * modules/rint (configure.ac): Likewise.
69499         * modules/sin (configure.ac): Likewise.
69500         * modules/sinh (configure.ac): Likewise.
69501         * modules/tan (configure.ac): Likewise.
69502         * modules/tanh (configure.ac): Likewise.
69503         * modules/y0 (configure.ac): Likewise.
69504         * modules/y1 (configure.ac): Likewise.
69505         * modules/yn (configure.ac): Likewise.
69507 2010-01-24  Bruno Haible  <bruno@clisp.org>
69509         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69510         * tests/test-acosl.c (x): New variable.
69511         (main): Store argument in x and fetch it from x.
69512         * tests/test-asinl.c (x): New variable.
69513         (main): Store argument in x and fetch it from x.
69514         * tests/test-atanl.c (x): New variable.
69515         (main): Store argument in x and fetch it from x.
69516         * tests/test-cosl.c (x): New variable.
69517         (main): Store argument in x and fetch it from x.
69518         * tests/test-expl.c (x): New variable.
69519         (main): Store argument in x and fetch it from x.
69520         * tests/test-logl.c (x): New variable.
69521         (main): Store argument in x and fetch it from x.
69522         * tests/test-sinl.c (x): New variable.
69523         (main): Store argument in x and fetch it from x.
69524         * tests/test-sqrtl.c (x): New variable.
69525         (main): Store argument in x and fetch it from x.
69526         * tests/test-tanl.c (x): New variable.
69527         (main): Store argument in x and fetch it from x.
69529 2010-01-24  Bruno Haible  <bruno@clisp.org>
69531         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69532         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69533         assignments to the initial TESTS_ENVIRONMENT.
69534         * doc/gnulib.texi (Unit test modules): Document it.
69535         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69536         TESTS_ENVIRONMENT.
69537         * modules/btowc-tests (Makefile.am): Likewise.
69538         * modules/c-stack-tests (Makefile.am): Likewise.
69539         * modules/c-strcase-tests (Makefile.am): Likewise.
69540         * modules/copy-file-tests (Makefile.am): Likewise.
69541         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69542         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69543         * modules/mbrtowc-tests (Makefile.am): Likewise.
69544         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69545         * modules/mbscasestr-tests (Makefile.am): Likewise.
69546         * modules/mbschr-tests (Makefile.am): Likewise.
69547         * modules/mbscspn-tests (Makefile.am): Likewise.
69548         * modules/mbsinit-tests (Makefile.am): Likewise.
69549         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69550         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69551         * modules/mbspbrk-tests (Makefile.am): Likewise.
69552         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69553         * modules/mbsrchr-tests (Makefile.am): Likewise.
69554         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69555         * modules/mbsspn-tests (Makefile.am): Likewise.
69556         * modules/mbsstr-tests (Makefile.am): Likewise.
69557         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69558         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69559         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69560         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69561         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69562         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69563         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69564         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69565         * modules/wcrtomb-tests (Makefile.am): Likewise.
69566         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69567         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69568         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69569         assignments from TESTS_ENVIRONMENT.
69570         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69571         augmentation.
69572         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69573         * modules/atexit-tests (Makefile.am): Likewise.
69574         * modules/binary-io-tests (Makefile.am): Likewise.
69575         * modules/closein-tests (Makefile.am): Likewise.
69576         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69577         * modules/exclude-tests (Makefile.am): Likewise.
69578         * modules/fflush-tests (Makefile.am): Likewise.
69579         * modules/fpending-tests (Makefile.am): Likewise.
69580         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69581         * modules/freadahead-tests (Makefile.am): Likewise.
69582         * modules/freadptr-tests (Makefile.am): Likewise.
69583         * modules/freadseek-tests (Makefile.am): Likewise.
69584         * modules/fseek-tests (Makefile.am): Likewise.
69585         * modules/fseeko-tests (Makefile.am): Likewise.
69586         * modules/ftell-tests (Makefile.am): Likewise.
69587         * modules/ftello-tests (Makefile.am): Likewise.
69588         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69589         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69590         * modules/lseek-tests (Makefile.am): Likewise.
69591         * modules/parse-duration-tests (Makefile.am): Likewise.
69592         * modules/perror-tests (Makefile.am): Likewise.
69593         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69594         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69595         * modules/pipe-tests (Makefile.am): Likewise.
69596         * modules/pread-tests (Makefile.am): Likewise.
69597         * modules/printf-posix-tests (Makefile.am): Likewise.
69598         * modules/select-tests (Makefile.am): Likewise.
69599         * modules/sigpipe-tests (Makefile.am): Likewise.
69600         * modules/tsearch-tests (Makefile.am): Likewise.
69601         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69602         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69603         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69604         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69605         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69606         * modules/version-etc-tests (Makefile.am): Likewise.
69607         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69608         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69609         * modules/xalloc-die-tests (Makefile.am): Likewise.
69610         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69611         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69612         * modules/xstrtol-tests (Makefile.am): Likewise.
69613         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69614         * modules/yesno-tests (Makefile.am): Likewise.
69615         Suggested by Jim Meyering.
69617 2010-01-24  Bruno Haible  <bruno@clisp.org>
69619         More documentation.
69620         * doc/gnulib.texi (Writing modules): New chapter.
69621         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69622         the new chapter.
69624 2010-01-24  Jim Meyering  <meyering@redhat.com>
69626         maint.mk: do not prepend "./" after filtering
69627         * top/maint.mk (_prepend_srcdir_prefix): New variable
69628         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69629         "./" when $(srcdir) is ".".
69631         define STREQ(a,b) consistently, removing useless parentheses
69632         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69633         since the only risk is that "a" or "b" contains an unparenthesized
69634         comma, but if either did that, STREQ would have 3 or more arguments.
69635         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69636         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69637         * lib/hash-triple.c (STREQ): Likewise.
69638         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69639         * lib/getugroups.c (STREQ): Likewise.
69641 2010-01-23  Jim Meyering  <meyering@redhat.com>
69643         maint.mk: fix syntax-check in a non-srcdir build directory
69644         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69645         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69647 2010-01-22  Jim Meyering  <meyering@redhat.com>
69649         userspec: add unit tests
69650         * tests/test-userspec.c: New file.
69651         * modules/userspec-tests: Likewise.
69653 2010-01-21  Jim Meyering  <meyering@redhat.com>
69655         maint.mk: handle source file names containing "." robustly
69656         * top/maint.mk (_dot_escaped_srcdir): Define.
69657         (VC_LIST): Use it in LHS of sed substitution.
69659 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69661         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69662         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69663         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69664         from a non-srcdir build.
69666 2010-01-20  Eric Blake  <ebb9@byu.net>
69668         warn-on-use: use instead of link-warning
69669         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69670         * modules/unistd (Depends-on, Makefile.am): Likewise.
69671         * modules/arpa_inet (Depends-on): Replace link-warning with
69672         warn-on-use.
69673         (Makefile.am): Update rules accordingly.
69674         * modules/ctype (Depends-on, Makefile.am): Likewise.
69675         * modules/dirent (Depends-on, Makefile.am): Likewise.
69676         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69677         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69678         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69679         * modules/locale (Depends-on, Makefile.am): Likewise.
69680         * modules/math (Depends-on, Makefile.am): Likewise.
69681         * modules/search (Depends-on, Makefile.am): Likewise.
69682         * modules/signal (Depends-on, Makefile.am): Likewise.
69683         * modules/spawn (Depends-on, Makefile.am): Likewise.
69684         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69685         * modules/string (Depends-on, Makefile.am): Likewise.
69686         * modules/strings (Depends-on, Makefile.am): Likewise.
69687         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69688         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69689         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69690         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69691         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69692         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69693         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69694         * modules/wchar (Depends-on, Makefile.am): Likewise.
69695         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69696         should be poisoned.
69697         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69698         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69699         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69700         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69701         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69702         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69703         * m4/math_h.m4 (gl_MATH_H): Likewise.
69704         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69705         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69706         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69707         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69708         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69710         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69711         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69712         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69716         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69717         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69718         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69719         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69720         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69721         GL_LINK_WARNING.
69722         * lib/ctype.in.h: Likewise.
69723         * lib/dirent.in.h: Likewise.
69724         * lib/fcntl.in.h: Likewise.
69725         * lib/inttypes.in.h: Likewise.
69726         * lib/langinfo.in.h: Likewise.
69727         * lib/locale.in.h: Likewise.
69728         * lib/math.in.h: Likewise.
69729         * lib/search.in.h: Likewise.
69730         * lib/signal.in.h: Likewise.
69731         * lib/spawn.in.h: Likewise.
69732         * lib/stdio.in.h: Likewise.
69733         * lib/stdlib.in.h: Likewise.
69734         * lib/string.in.h: Likewise.
69735         * lib/strings.in.h: Likewise.
69736         * lib/sys_file.in.h: Likewise.
69737         * lib/sys_ioctl.in.h: Likewise.
69738         * lib/sys_select.in.h: Likewise.
69739         * lib/sys_socket.in.h: Likewise.
69740         * lib/sys_stat.in.h: Likewise.
69741         * lib/sys_times.in.h: Likewise.
69742         * lib/sys_utsname.in.h: Likewise.
69743         * lib/unistd.in.h: Likewise.
69744         * lib/wchar.in.h: Likewise.
69746 2010-01-20  Bruno Haible  <bruno@clisp.org>
69748         Avoid duplicate -lm.
69749         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69750         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69753         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69754         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69755         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69756         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69757         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69758         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69759         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69760         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69761         Reported by Paolo Bonzini.
69763 2010-01-19  Bruno Haible  <bruno@clisp.org>
69765         langinfo, nl_langinfo: Relicense under LGPLv2+.
69766         * modules/langinfo (License): Change to LGPLv2+.
69767         * modules/nl_langinfo (License): Likewise.
69768         Patch by David Lutterkort <lutter@redhat.com>.
69770 2010-01-19  Bruno Haible  <bruno@clisp.org>
69772         Avoid compilation error with cc on OSF/1 5.1.
69773         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69774         statement, not before.
69775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69777 2010-01-18  Bruno Haible  <bruno@clisp.org>
69779         Avoid a link error due to the __printf__ symbol.
69780         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69781         and 2.6.x.
69782         (__format__, __printf__): Remove definitions.
69783         * lib/argp-fmtstream.h: Likewise.
69784         * lib/argp.h: Likewise.
69785         * lib/error.h: Likewise.
69786         * lib/vasnprintf.h: Likewise.
69787         * lib/xprintf.h: Likewise.
69788         * lib/xvasprintf.h: Likewise.
69789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69791 2010-01-18  Bruno Haible  <bruno@clisp.org>
69793         Tests for module 'tanl'.
69794         * modules/tanl-tests: New file.
69795         * tests/test-tanl.c: New file.
69797         Tests for module 'sqrtl'.
69798         * modules/sqrtl-tests: New file.
69799         * tests/test-sqrtl.c: New file.
69801         Tests for module 'sinl'.
69802         * modules/sinl-tests: New file.
69803         * tests/test-sinl.c: New file.
69805         Tests for module 'logl'.
69806         * modules/logl-tests: New file.
69807         * tests/test-logl.c: New file.
69809         Tests for module 'expl'.
69810         * modules/expl-tests: New file.
69811         * tests/test-expl.c: New file.
69813         Tests for module 'cosl'.
69814         * modules/cosl-tests: New file.
69815         * tests/test-cosl.c: New file.
69817         Tests for module 'atanl'.
69818         * modules/atanl-tests: New file.
69819         * tests/test-atanl.c: New file.
69821         Tests for module 'asinl'.
69822         * modules/asinl-tests: New file.
69823         * tests/test-asinl.c: New file.
69825         Tests for module 'acosl'.
69826         * modules/acosl-tests: New file.
69827         * tests/test-acosl.c: New file.
69829         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69830         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69831         tanl): Use the standard gnulib idiom.
69832         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69833         * lib/sinl.c: Likewise.
69834         * lib/tanl.c: Don't include trigl.c.
69835         (kernel_tanl): Make static.
69836         * lib/sincosl.c: Include trigl.h first.
69837         * lib/trigl.c: Likewise.
69838         * m4/acosl.m4: New file.
69839         * m4/asinl.m4: New file.
69840         * m4/atanl.m4: New file.
69841         * m4/cosl.m4: New file.
69842         * m4/expl.m4: New file.
69843         * m4/logl.m4: New file.
69844         * m4/sinl.m4: New file.
69845         * m4/sqrtl.m4: New file.
69846         * m4/tanl.m4: New file.
69847         * m4/mathl.m4: Remove file.
69848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69849         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69850         Don't initialize GNULIB_MATHL.
69851         * modules/acosl: New file.
69852         * modules/asinl: New file.
69853         * modules/atanl: New file.
69854         * modules/cosl: New file.
69855         * modules/expl: New file.
69856         * modules/logl: New file.
69857         * modules/sinl: New file.
69858         * modules/sqrtl: New file.
69859         * modules/tanl: New file.
69860         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69861         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69862         substitute GNULIB_MATHL.
69863         * modules/mathl: Rewritten.
69864         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69865         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69866         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69867         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69868         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69869         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69870         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69871         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69872         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69874 2010-01-18  Bruno Haible  <bruno@clisp.org>
69876         sqrt: Make gl_FUNC_SQRT requirable.
69877         * m4/sqrt.m4: New file.
69878         * modules/sqrt (Files): Add it.
69879         (configure.ac): Invoke gl_FUNC_SQRT.
69881 2010-01-18  Bruno Haible  <bruno@clisp.org>
69883         New modules for common <math.h> functions.
69884         * m4/mathfunc.m4: New file.
69885         * modules/acos: New file.
69886         * modules/asin: New file.
69887         * modules/atan: New file.
69888         * modules/atan2: New file.
69889         * modules/cbrt: New file.
69890         * modules/copysign: New file.
69891         * modules/cos: New file.
69892         * modules/cosh: New file.
69893         * modules/erf: New file.
69894         * modules/erfc: New file.
69895         * modules/exp: New file.
69896         * modules/fabs: New file.
69897         * modules/fmod: New file.
69898         * modules/hypot: New file.
69899         * modules/j0: New file.
69900         * modules/j1: New file.
69901         * modules/jn: New file.
69902         * modules/ldexp: New file.
69903         * modules/lgamma: New file.
69904         * modules/log: New file.
69905         * modules/log10: New file.
69906         * modules/log1p: New file.
69907         * modules/logb: New file.
69908         * modules/modf: New file.
69909         * modules/nextafter: New file.
69910         * modules/pow: New file.
69911         * modules/remainder: New file.
69912         * modules/rint: New file.
69913         * modules/sin: New file.
69914         * modules/sinh: New file.
69915         * modules/sqrt: New file.
69916         * modules/tan: New file.
69917         * modules/tanh: New file.
69918         * modules/y0: New file.
69919         * modules/y1: New file.
69920         * modules/yn: New file.
69921         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69922         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69923         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69924         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69925         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69926         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69927         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69928         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69929         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69930         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69931         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69932         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69933         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69934         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69935         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69936         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69937         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69938         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69939         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69940         * doc/posix-functions/log.texi: Mention the 'log' module.
69941         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69942         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69943         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69944         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69945         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69946         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69947         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69948         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69949         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69950         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69951         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69952         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69953         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69954         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69955         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69956         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69958 2010-01-18  Jim Meyering  <meyering@redhat.com>
69960         ignore-value: relax license to LGPLv2+
69961         * modules/ignore-value (License): Relax to LGPLv2+.
69963         getdate: don't leak when TZ contains two or more '"'s
69964         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69965         double quote in TZ after the first one.
69967         readtokens: do not leak internal token_lengths buffer
69968         * lib/readtokens.c (readtokens): Free the local, lengths,
69969         when the supplied "token_lengths" parameter is NULL.
69971 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69973         Fix a couple of missing LIBTHREAD link failures on AIX.
69974         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69975         $(LIBTHREAD).
69976         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69978         Link test-poll against INET_PTON_LIB.
69979         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69980         for inet_pton on Solaris 10.
69982 2010-01-17  Bruno Haible  <bruno@clisp.org>
69984         unistdio/*-sprintf: Fix typo in module description.
69985         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69986         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69987         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69988         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69989         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69990         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69991         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69994 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69996         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69997         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69998         variables in shell case patterns, for AIX and HP-UX ksh.
70000         Split large sed scripts, for HP-UX sed.
70001         * modules/stdio: Split sed scripts around 50 sed commands,
70002         to avoid HP-UX limit of 99 commands, in the near future.
70003         * modules/string: Likewise.
70004         * modules/unistd: Likewise.
70006         gnulib-tool: avoid writing in the current directory.
70007         * gnulib-tool (func_emit_lib_Makefile_am)
70008         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
70009         not in the current directory, so concurrent gnulib-tool
70010         instances do not interfere.
70012 2010-01-16  Jim Meyering  <meyering@redhat.com>
70014         doc: update users.txt
70015         * users.txt: Add grep.
70016         (diffutils, gzip): Update URLs.
70018 2010-01-12  Bruno Haible  <bruno@clisp.org>
70020         posix_spawn: Avoid test failure on Cygwin.
70021         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
70022         characters.
70023         Reported by Simon Josefsson.
70025 2010-01-12  Bruno Haible  <bruno@clisp.org>
70027         * tests/test-cond.c (main): When skipping the test, show the reason.
70029 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70031         * lib/striconv.c (str_cd_iconv): Avoid if before free.
70033 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70035         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
70036         VC_LIST_ALWAYS_EXCLUDE_REGEX.
70038 2010-01-12  Eric Blake  <ebb9@byu.net>
70040         build: guarantee AS_VAR_IF
70041         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
70042         (gl_AS_VAR_IF): Move...
70043         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
70044         Reported by Simon Josefsson.
70046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70048         * lib/stdio.in.h: Fix typo.
70050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70052         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
70053         libgpg-error.
70055 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70057         * tests/test-xalloc-die.sh: Use $EXEEXT.
70059 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70060             Bruno Haible  <bruno@clisp.org>
70062         getlogin, getlogin_r: Avoid test failure.
70063         * tests/test-getlogin.c: Include <stdio.h>.
70064         (main): Skip the test when the function fails because stdin is not a
70065         tty.
70066         * tests/test-getlogin_r.c: Include <stdio.h>.
70067         (main): Skip the test when the function fails because stdin is not a
70068         tty.
70070 2010-01-11  Eric Blake  <ebb9@byu.net>
70072         tests: avoid more large file warnings
70073         * tests/test-fflush.c: Avoid warning about ftell use.
70074         * tests/test-fseek.c: Avoid warning about fseek use.
70076 2010-01-10  Bruno Haible  <bruno@clisp.org>
70078         nproc: Work better on Linux when /proc and /sys are not mounted.
70079         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
70080         as lower bound when, on glibc/Linux systems,
70081         sysconf (_SC_NPROCESSORS_CONF) returns 1.
70082         Suggested by Pádraig Brady <P@draigbrady.com>.
70083         Reported by Dmitry V. Levin <ldv@altlinux.org>.
70085         nproc: Refactor.
70086         * lib/nproc.c (num_processors_via_affinity_mask): New function,
70087         extracted from num_processors.
70088         (num_processors): Call it.
70090 2010-01-11  Jim Meyering  <meyering@redhat.com>
70092         utimecmp: avoid new warning from upcoming gcc-4.5.0
70093         * lib/utimecmp.c (BILLION): Define using #define rather than an
70094         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
70096 2010-01-11  Eric Blake  <ebb9@byu.net>
70098         math: add portability warnings for classification macros
70099         * modules/math (Depends-on): Add warn-on-use.
70100         (Makefile.am): Provide new substitutions.
70101         * m4/math_h.m4 (gl_MATH_H): Require inline.
70102         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
70103         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
70104         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
70105         implement warnings.
70107         unistd: warn on use of environ without module
70108         * modules/unistd (Depends-on): Add warn-on-use.
70109         (Makefile.am): Provide new substitutions.
70110         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
70111         * lib/unistd.in.h (environ): Wrap with a warning helper function.
70113         stdio: warn on suspicious uses
70114         * modules/stdio (Depends-on): Add warn-on-use.
70115         (Makefile.am): Provide new substitutions.
70116         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
70117         fseeko.
70118         * lib/stdio.in.h (gets): Always warn on use.
70119         (fseek, ftell): Adjust when warnings are issued, and honor
70120         _GL_NO_LARGE_FILES as a way to silence the warning.
70121         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
70122         any warning about large file offsets.
70123         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
70124         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
70125         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
70126         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
70127         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
70128         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
70129         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
70130         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
70132         warn-on-use: new module
70133         * modules/warn-on-use: New file.
70134         * build-aux/warn-on-use.h: Likewise.
70135         * m4/warn-on-use.m4: Likewise.
70136         * MODULES.html.sh (Support for building): Mention it.
70138 2010-01-10  Bruno Haible  <bruno@clisp.org>
70140         Tests for module 'unistr/u32-strdup'.
70141         * modules/unistr/u32-strdup-tests: New file.
70142         * tests/unistr/test-u32-strdup.c: New file.
70144         Tests for module 'unistr/u16-strdup'.
70145         * modules/unistr/u16-strdup-tests: New file.
70146         * tests/unistr/test-u16-strdup.c: New file.
70148         Tests for module 'unistr/u8-strdup'.
70149         * modules/unistr/u8-strdup-tests: New file.
70150         * tests/unistr/test-u8-strdup.c: New file.
70151         * tests/unistr/test-strdup.h: New file.
70153         Tests for module 'unistr/u32-strncmp'.
70154         * modules/unistr/u32-strncmp-tests: New file.
70155         * tests/unistr/test-u32-strncmp.c: New file.
70157         Tests for module 'unistr/u16-strncmp'.
70158         * modules/unistr/u16-strncmp-tests: New file.
70159         * tests/unistr/test-u16-strncmp.c: New file.
70161         Tests for module 'unistr/u8-strncmp'.
70162         * modules/unistr/u8-strncmp-tests: New file.
70163         * tests/unistr/test-u8-strncmp.c: New file.
70164         * tests/unistr/test-strncmp.h: New file.
70166         Tests for module 'unistr/u32-strcoll'.
70167         * modules/unistr/u32-strcoll-tests: New file.
70168         * tests/unistr/test-u32-strcoll.c: New file.
70170         Tests for module 'unistr/u16-strcoll'.
70171         * modules/unistr/u16-strcoll-tests: New file.
70172         * tests/unistr/test-u16-strcoll.c: New file.
70174         Tests for module 'unistr/u8-strcoll'.
70175         * modules/unistr/u8-strcoll-tests: New file.
70176         * tests/unistr/test-u8-strcoll.c: New file.
70178         Tests for module 'unistr/u32-strcmp'.
70179         * modules/unistr/u32-strcmp-tests: New file.
70180         * tests/unistr/test-u32-strcmp.c: New file.
70181         * tests/unistr/test-u32-strcmp.h: New file.
70183         Tests for module 'unistr/u16-strcmp'.
70184         * modules/unistr/u16-strcmp-tests: New file.
70185         * tests/unistr/test-u16-strcmp.c: New file.
70186         * tests/unistr/test-u16-strcmp.h: New file.
70188         Tests for module 'unistr/u8-strcmp'.
70189         * modules/unistr/u8-strcmp-tests: New file.
70190         * tests/unistr/test-u8-strcmp.c: New file.
70191         * tests/unistr/test-u8-strcmp.h: New file.
70192         * tests/unistr/test-strcmp.h: New file.
70194         Tests for module 'unistr/u32-strncat'.
70195         * modules/unistr/u32-strncat-tests: New file.
70196         * tests/unistr/test-u32-strncat.c: New file.
70198         Tests for module 'unistr/u16-strncat'.
70199         * modules/unistr/u16-strncat-tests: New file.
70200         * tests/unistr/test-u16-strncat.c: New file.
70202         Tests for module 'unistr/u8-strncat'.
70203         * modules/unistr/u8-strncat-tests: New file.
70204         * tests/unistr/test-u8-strncat.c: New file.
70205         * tests/unistr/test-strncat.h: New file.
70207         Tests for module 'unistr/u32-strcat'.
70208         * modules/unistr/u32-strcat-tests: New file.
70209         * tests/unistr/test-u32-strcat.c: New file.
70211         Tests for module 'unistr/u16-strcat'.
70212         * modules/unistr/u16-strcat-tests: New file.
70213         * tests/unistr/test-u16-strcat.c: New file.
70215         Tests for module 'unistr/u8-strcat'.
70216         * modules/unistr/u8-strcat-tests: New file.
70217         * tests/unistr/test-u8-strcat.c: New file.
70218         * tests/unistr/test-strcat.h: New file.
70220         Tests for module 'unistr/u32-stpncpy'.
70221         * modules/unistr/u32-stpncpy-tests: New file.
70222         * tests/unistr/test-u32-stpncpy.c: New file.
70224         Tests for module 'unistr/u16-stpncpy'.
70225         * modules/unistr/u16-stpncpy-tests: New file.
70226         * tests/unistr/test-u16-stpncpy.c: New file.
70228         Tests for module 'unistr/u8-stpncpy'.
70229         * modules/unistr/u8-stpncpy-tests: New file.
70230         * tests/unistr/test-u8-stpncpy.c: New file.
70231         * tests/unistr/test-stpncpy.h: New file.
70233         Tests for module 'unistr/u32-strncpy'.
70234         * modules/unistr/u32-strncpy-tests: New file.
70235         * tests/unistr/test-u32-strncpy.c: New file.
70237         Tests for module 'unistr/u16-strncpy'.
70238         * modules/unistr/u16-strncpy-tests: New file.
70239         * tests/unistr/test-u16-strncpy.c: New file.
70241         Tests for module 'unistr/u8-strncpy'.
70242         * modules/unistr/u8-strncpy-tests: New file.
70243         * tests/unistr/test-u8-strncpy.c: New file.
70244         * tests/unistr/test-strncpy.h: New file.
70246         Tests for module 'unistr/u32-stpcpy'.
70247         * modules/unistr/u32-stpcpy-tests: New file.
70248         * tests/unistr/test-u32-stpcpy.c: New file.
70250         Tests for module 'unistr/u16-stpcpy'.
70251         * modules/unistr/u16-stpcpy-tests: New file.
70252         * tests/unistr/test-u16-stpcpy.c: New file.
70254         Tests for module 'unistr/u8-stpcpy'.
70255         * modules/unistr/u8-stpcpy-tests: New file.
70256         * tests/unistr/test-u8-stpcpy.c: New file.
70257         * tests/unistr/test-stpcpy.h: New file.
70259         Tests for module 'unistr/u32-strcpy'.
70260         * modules/unistr/u32-strcpy-tests: New file.
70261         * tests/unistr/test-u32-strcpy.c: New file.
70263         Tests for module 'unistr/u16-strcpy'.
70264         * modules/unistr/u16-strcpy-tests: New file.
70265         * tests/unistr/test-u16-strcpy.c: New file.
70267         Tests for module 'unistr/u8-strcpy'.
70268         * modules/unistr/u8-strcpy-tests: New file.
70269         * tests/unistr/test-u8-strcpy.c: New file.
70270         * tests/unistr/test-strcpy.h: New file.
70272         Tests for module 'unistr/u32-strnlen'.
70273         * modules/unistr/u32-strnlen-tests: New file.
70274         * tests/unistr/test-u32-strnlen.c: New file.
70276         Tests for module 'unistr/u16-strnlen'.
70277         * modules/unistr/u16-strnlen-tests: New file.
70278         * tests/unistr/test-u16-strnlen.c: New file.
70280         Tests for module 'unistr/u8-strnlen'.
70281         * modules/unistr/u8-strnlen-tests: New file.
70282         * tests/unistr/test-u8-strnlen.c: New file.
70283         * tests/unistr/test-strnlen.h: New file.
70285         Tests for module 'unistr/u32-strlen'.
70286         * modules/unistr/u32-strlen-tests: New file.
70287         * tests/unistr/test-u32-strlen.c: New file.
70289         Tests for module 'unistr/u16-strlen'.
70290         * modules/unistr/u16-strlen-tests: New file.
70291         * tests/unistr/test-u16-strlen.c: New file.
70293         Tests for module 'unistr/u8-strlen'.
70294         * modules/unistr/u8-strlen-tests: New file.
70295         * tests/unistr/test-u8-strlen.c: New file.
70297         Tests for module 'unistr/u32-prev'.
70298         * modules/unistr/u32-prev-tests: New file.
70299         * tests/unistr/test-u32-prev.c: New file.
70301         Tests for module 'unistr/u16-prev'.
70302         * modules/unistr/u16-prev-tests: New file.
70303         * tests/unistr/test-u16-prev.c: New file.
70305         Tests for module 'unistr/u8-prev'.
70306         * modules/unistr/u8-prev-tests: New file.
70307         * tests/unistr/test-u8-prev.c: New file.
70309         Tests for module 'unistr/u32-next'.
70310         * modules/unistr/u32-next-tests: New file.
70311         * tests/unistr/test-u32-next.c: New file.
70313         Tests for module 'unistr/u16-next'.
70314         * modules/unistr/u16-next-tests: New file.
70315         * tests/unistr/test-u16-next.c: New file.
70317         Tests for module 'unistr/u8-next'.
70318         * modules/unistr/u8-next-tests: New file.
70319         * tests/unistr/test-u8-next.c: New file.
70321         Tests for module 'unistr/u32-strmbtouc'.
70322         * modules/unistr/u32-strmbtouc-tests: New file.
70323         * tests/unistr/test-u32-strmbtouc.c: New file.
70325         Tests for module 'unistr/u16-strmbtouc'.
70326         * modules/unistr/u16-strmbtouc-tests: New file.
70327         * tests/unistr/test-u16-strmbtouc.c: New file.
70329         Tests for module 'unistr/u8-strmbtouc'.
70330         * modules/unistr/u8-strmbtouc-tests: New file.
70331         * tests/unistr/test-u8-strmbtouc.c: New file.
70333         Tests for module 'unistr/u32-strmblen'.
70334         * modules/unistr/u32-strmblen-tests: New file.
70335         * tests/unistr/test-u32-strmblen.c: New file.
70337         Tests for module 'unistr/u16-strmblen'.
70338         * modules/unistr/u16-strmblen-tests: New file.
70339         * tests/unistr/test-u16-strmblen.c: New file.
70341         Tests for module 'unistr/u8-strmblen'.
70342         * modules/unistr/u8-strmblen-tests: New file.
70343         * tests/unistr/test-u8-strmblen.c: New file.
70345         Tests for module 'unistr/u32-cpy-alloc'.
70346         * modules/unistr/u32-cpy-alloc-tests: New file.
70347         * tests/unistr/test-u32-cpy-alloc.c: New file.
70349         Tests for module 'unistr/u16-cpy-alloc'.
70350         * modules/unistr/u16-cpy-alloc-tests: New file.
70351         * tests/unistr/test-u16-cpy-alloc.c: New file.
70353         Tests for module 'unistr/u8-cpy-alloc'.
70354         * modules/unistr/u8-cpy-alloc-tests: New file.
70355         * tests/unistr/test-u8-cpy-alloc.c: New file.
70356         * tests/unistr/test-cpy-alloc.h: New file.
70358         Tests for module 'unistr/u32-mbsnlen'.
70359         * modules/unistr/u32-mbsnlen-tests: New file.
70360         * tests/unistr/test-u32-mbsnlen.c: New file.
70362         Tests for module 'unistr/u16-mbsnlen'.
70363         * modules/unistr/u16-mbsnlen-tests: New file.
70364         * tests/unistr/test-u16-mbsnlen.c: New file.
70366         Tests for module 'unistr/u8-mbsnlen'.
70367         * modules/unistr/u8-mbsnlen-tests: New file.
70368         * tests/unistr/test-u8-mbsnlen.c: New file.
70370         Tests for module 'unistr/u32-chr'.
70371         * modules/unistr/u32-chr-tests: New file.
70372         * tests/unistr/test-u32-chr.c: New file.
70374         Tests for module 'unistr/u16-chr'.
70375         * modules/unistr/u16-chr-tests: New file.
70376         * tests/unistr/test-u16-chr.c: New file.
70378         Tests for module 'unistr/u8-chr'.
70379         * modules/unistr/u8-chr-tests: New file.
70380         * tests/unistr/test-u8-chr.c: New file.
70381         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70383         Tests for module 'unistr/u32-cmp2'.
70384         * modules/unistr/u32-cmp2-tests: New file.
70385         * tests/unistr/test-u32-cmp2.c: New file.
70387         Tests for module 'unistr/u16-cmp2'.
70388         * modules/unistr/u16-cmp2-tests: New file.
70389         * tests/unistr/test-u16-cmp2.c: New file.
70391         Tests for module 'unistr/u8-cmp2'.
70392         * modules/unistr/u8-cmp2-tests: New file.
70393         * tests/unistr/test-u8-cmp2.c: New file.
70394         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70396         Tests for module 'unistr/u32-cmp'.
70397         * modules/unistr/u32-cmp-tests: New file.
70398         * tests/unistr/test-u32-cmp.c: New file.
70400         Tests for module 'unistr/u16-cmp'.
70401         * modules/unistr/u16-cmp-tests: New file.
70402         * tests/unistr/test-u16-cmp.c: New file.
70404         Tests for module 'unistr/u8-cmp'.
70405         * modules/unistr/u8-cmp-tests: New file.
70406         * tests/unistr/test-u8-cmp.c: New file.
70407         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70409         Tests for module 'unistr/u32-set'.
70410         * modules/unistr/u32-set-tests: New file.
70411         * tests/unistr/test-u32-set.c: New file.
70413         Tests for module 'unistr/u16-set'.
70414         * modules/unistr/u16-set-tests: New file.
70415         * tests/unistr/test-u16-set.c: New file.
70417         Tests for module 'unistr/u8-set'.
70418         * modules/unistr/u8-set-tests: New file.
70419         * tests/unistr/test-u8-set.c: New file.
70420         * tests/unistr/test-set.h: New file.
70422         Tests for module 'unistr/u32-move'.
70423         * modules/unistr/u32-move-tests: New file.
70424         * tests/unistr/test-u32-move.c: New file.
70426         Tests for module 'unistr/u16-move'.
70427         * modules/unistr/u16-move-tests: New file.
70428         * tests/unistr/test-u16-move.c: New file.
70430         Tests for module 'unistr/u8-move'.
70431         * modules/unistr/u8-move-tests: New file.
70432         * tests/unistr/test-u8-move.c: New file.
70433         * tests/unistr/test-move.h: New file.
70435         Tests for module 'unistr/u32-cpy'.
70436         * modules/unistr/u32-cpy-tests: New file.
70437         * tests/unistr/test-u32-cpy.c: New file.
70439         Tests for module 'unistr/u16-cpy'.
70440         * modules/unistr/u16-cpy-tests: New file.
70441         * tests/unistr/test-u16-cpy.c: New file.
70443         Tests for module 'unistr/u8-cpy'.
70444         * modules/unistr/u8-cpy-tests: New file.
70445         * tests/unistr/test-u8-cpy.c: New file.
70446         * tests/unistr/test-cpy.h: New file.
70448 2010-01-09  Bruno Haible  <bruno@clisp.org>
70450         Tests for module 'unistr/u32-uctomb'.
70451         * modules/unistr/u32-uctomb-tests: New file.
70452         * tests/unistr/test-u32-uctomb.c: New file.
70454         Tests for module 'unistr/u16-uctomb'.
70455         * modules/unistr/u16-uctomb-tests: New file.
70456         * tests/unistr/test-u16-uctomb.c: New file.
70458         Tests for module 'unistr/u8-uctomb'.
70459         * modules/unistr/u8-uctomb-tests: New file.
70460         * tests/unistr/test-u8-uctomb.c: New file.
70462         Tests for module 'unistr/u32-mbtoucr'.
70463         * modules/unistr/u32-mbtoucr-tests: New file.
70464         * tests/unistr/test-u32-mbtoucr.c: New file.
70466         Tests for module 'unistr/u16-mbtoucr'.
70467         * modules/unistr/u16-mbtoucr-tests: New file.
70468         * tests/unistr/test-u16-mbtoucr.c: New file.
70470         Tests for module 'unistr/u8-mbtoucr'.
70471         * modules/unistr/u8-mbtoucr-tests: New file.
70472         * tests/unistr/test-u8-mbtoucr.c: New file.
70474         Tests for module 'unistr/u32-mbtouc'.
70475         * modules/unistr/u32-mbtouc-tests: New file.
70476         * tests/unistr/test-u32-mbtouc.c: New file.
70478         Tests for module 'unistr/u16-mbtouc'.
70479         * modules/unistr/u16-mbtouc-tests: New file.
70480         * tests/unistr/test-u16-mbtouc.c: New file.
70482         Tests for module 'unistr/u8-mbtouc'.
70483         * modules/unistr/u8-mbtouc-tests: New file.
70484         * tests/unistr/test-u8-mbtouc.c: New file.
70486         Tests for module 'unistr/u32-mbtouc-unsafe'.
70487         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70488         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70489         * tests/unistr/test-u32-mbtouc.h: New file.
70491         Tests for module 'unistr/u16-mbtouc-unsafe'.
70492         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70493         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70494         * tests/unistr/test-u16-mbtouc.h: New file.
70496         Tests for module 'unistr/u8-mbtouc-unsafe'.
70497         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70498         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70499         * tests/unistr/test-u8-mbtouc.h: New file.
70501         Tests for module 'unistr/u32-mblen'.
70502         * modules/unistr/u32-mblen-tests: New file.
70503         * tests/unistr/test-u32-mblen.c: New file.
70505         Tests for module 'unistr/u16-mblen'.
70506         * modules/unistr/u16-mblen-tests: New file.
70507         * tests/unistr/test-u16-mblen.c: New file.
70509         Tests for module 'unistr/u8-mblen'.
70510         * modules/unistr/u8-mblen-tests: New file.
70511         * tests/unistr/test-u8-mblen.c: New file.
70513         Tests for module 'unistr/u32-to-u16'.
70514         * modules/unistr/u32-to-u16-tests: New file.
70515         * tests/unistr/test-u32-to-u16.c: New file.
70517         Tests for module 'unistr/u32-to-u8'.
70518         * modules/unistr/u32-to-u8-tests: New file.
70519         * tests/unistr/test-u32-to-u8.c: New file.
70521         Tests for module 'unistr/u16-to-u32'.
70522         * modules/unistr/u16-to-u32-tests: New file.
70523         * tests/unistr/test-u16-to-u32.c: New file.
70525         Tests for module 'unistr/u16-to-u8'.
70526         * modules/unistr/u16-to-u8-tests: New file.
70527         * tests/unistr/test-u16-to-u8.c: New file.
70529         Tests for module 'unistr/u8-to-u32'.
70530         * modules/unistr/u8-to-u32-tests: New file.
70531         * tests/unistr/test-u8-to-u32.c: New file.
70533         Tests for module 'unistr/u8-to-u16'.
70534         * modules/unistr/u8-to-u16-tests: New file.
70535         * tests/unistr/test-u8-to-u16.c: New file.
70537         Tests for module 'unistr/u32-check'.
70538         * modules/unistr/u32-check-tests: New file.
70539         * tests/unistr/test-u32-check.c: New file.
70541         Tests for module 'unistr/u16-check'.
70542         * modules/unistr/u16-check-tests: New file.
70543         * tests/unistr/test-u16-check.c: New file.
70545         Tests for module 'unistr/u8-check'.
70546         * modules/unistr/u8-check-tests: New file.
70547         * tests/unistr/test-u8-check.c: New file.
70549         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70550         (category_equals): New function.
70551         (main): Add more tests.
70552         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70554         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70556 2010-01-10  Bruno Haible  <bruno@clisp.org>
70558         unistr/u*-strcoll: Try harder to distinguish different strings.
70559         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70560         compare s1 and s2 to see if they are different.
70562 2010-01-10  Bruno Haible  <bruno@clisp.org>
70564         unistr/u*-stpncpy: Fix the return value.
70565         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70566         description of the return value consistent with stpncpy in glibc.
70567         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70568         written non-NUL unit.
70570 2010-01-10  Bruno Haible  <bruno@clisp.org>
70572         unistr/u*-next: Add missing dependencies.
70573         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70574         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70575         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70577 2010-01-10  Bruno Haible  <bruno@clisp.org>
70579         unistr/u8-mbsnlen: Fix return value for incomplete character.
70580         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70581         u8_mblen.
70582         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70583         Remove unistr/u8-mblen.
70584         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70585         u16_mblen.
70586         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70587         Remove unistr/u16-mblen.
70589 2010-01-10  Bruno Haible  <bruno@clisp.org>
70591         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70592         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70593         Reported by Brian Gough <bjg@gnu.org> and
70594         Chris Clayton <chris2553@googlemail.com> via
70595         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70597 2010-01-09  Bruno Haible  <bruno@clisp.org>
70599         unistr/u16-to-u32: Reject invalid input.
70600         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70601         u16_mbtouc.
70602         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70603         Remove unistr/u16-mbtouc.
70605         unistr/u16-to-u8: Reject invalid input.
70606         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70607         u16_mbtouc.
70608         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70609         Remove unistr/u16-mbtouc.
70611         unistr/u8-to-u32: Reject invalid input.
70612         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70613         u8_mbtouc.
70614         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70615         Remove unistr/u8-mbtouc.
70617         unistr/u8-to-u16: Reject invalid input.
70618         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70619         u8_mbtouc.
70620         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70621         Remove unistr/u8-mbtouc.
70623 2010-01-09  Bruno Haible  <bruno@clisp.org>
70625         Tests for module 'getlogin'.
70626         * modules/getlogin-tests: New file.
70627         * tests/test-getlogin.c: New file.
70629         New module 'getlogin'.
70630         * lib/unistd.in.h (getlogin): New declaration.
70631         * lib/getlogin.c: New file.
70632         * m4/getlogin.m4: New file.
70633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70634         HAVE_GETLOGIN.
70635         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70636         HAVE_GETLOGIN.
70637         * modules/getlogin: New file.
70638         * doc/posix-functions/getlogin.texi: Mention the new module.
70639         Reported by John W. Eaton <jwe@gnu.org>.
70641 2010-01-09  Bruno Haible  <bruno@clisp.org>
70643         getlogin_r: Support for native Windows.
70644         * lib/getlogin_r.c: Include <windows.h>
70645         (getlogin_r): Implement for native Windows.
70646         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70647         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70648         via John W. Eaton <jwe@gnu.org>.
70650 2010-01-09  Bruno Haible  <bruno@clisp.org>
70652         getlogin_r: Small fixes.
70653         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70654         succeeds.
70655         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70656         before testing whether getlogin_r is declared. No need to set
70657         HAVE_DECL_GETLOGIN_R to 1.
70658         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70660 2010-01-09  Bruno Haible  <bruno@clisp.org>
70662         * lib/unistd.in.h (getlogin_r): Add comment.
70664 2010-01-09  Bruno Haible  <bruno@clisp.org>
70666         Tests for module 'getlogin_r'.
70667         * modules/getlogin_r-tests: New file.
70668         * tests/test-getlogin_r.c: New file.
70670 2010-01-09  Jim Meyering  <meyering@redhat.com>
70672         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70673         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70674         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70676 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70678         * lib/dup2.c (rpl_dup2): Improve comment.
70680 2010-01-08  Eric Blake  <ebb9@byu.net>
70682         maint.mk: allow packages to add makefile @@ exceptions
70683         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70684         (sc_makefile_check): Rename...
70685         (sc_makefile_at_at_check): ...to this, and use hook.
70687         dup2: work around mingw bug
70688         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70689         Reported by Simon Josefsson.
70691 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70693         glob: Fix C++ compilation.
70694         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70695         C++.
70697 2010-01-07  Bruno Haible  <bruno@clisp.org>
70699         Fix indentation of wctype.in.h, broken since 2007-01-06.
70700         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70702 2010-01-07  Bruno Haible  <bruno@clisp.org>
70704         mbslen: Avoid collision with system function.
70705         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70706         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70707         * m4/mbslen.m4: New file.
70708         * modules/mbslen (Files): Add it.
70709         (configure.ac): Invoke gl_MBSLEN.
70710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70711         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70713         via Ian Beckwith <ianb@erislabs.net>.
70715 2010-01-07  Bruno Haible  <bruno@clisp.org>
70717         dirent: Document the last fix.
70718         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70720 2010-01-07  Bruno Haible  <bruno@clisp.org>
70722         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70723         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70724         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70725         va_list are defined.
70726         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70727         Reported by Eric Blake.
70729 2010-01-07  Bruno Haible  <bruno@clisp.org>
70731         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70732         * modules/xlist (Depends-on): Add 'list',
70733         * modules/xoset (Depends-on): Add 'oset'.
70734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70736 2010-01-07  Bruno Haible  <bruno@clisp.org>
70738         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70739         * doc/posix-functions/strncasecmp.texi: Likewise.
70741 2010-01-07  Bruno Haible  <bruno@clisp.org>
70743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70745 2010-01-07  John W. Eaton  <jwe@octave.org>
70747         wctype: allow C++ use
70748         * lib/wctype.in.h: Add extern "C" block for C++.
70750 2010-01-06  Eric Blake  <ebb9@byu.net>
70752         maint.mk: detect incorrect GFDL usage
70753         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70755 2010-01-06  Jim Meyering  <meyering@redhat.com>
70756         and Eric Blake  <ebb9@byu.net>
70758         maint.mk: ignore multi-line copyright in NEWS
70759         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70761 2010-01-06  Eric Blake  <ebb9@byu.net>
70763         select: add missing dependency
70764         * modules/select-tests (Depends-on): Move sockets dependency...
70765         * modules/select (Depends-on): ...here.
70766         Reported by Ian Beckwith.
70768         doc: regenerate INSTALL
70769         * doc/INSTALL: Reflect recent autoconf update.
70770         * doc/INSTALL.ISO: Likewise.
70771         * doc/INSTALL.UTF-8: Likewise.
70773         pread: fix compilation on glibc
70774         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70775         Reported by Ralf Wildenhues.
70777         dirent: fix test failure
70778         * lib/dirent.in.h (includes): Guarantee ino_t.
70779         Reported by Ralf Wildenhues.
70781 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70783         linkat, renameat: avoid bad free
70784         * lib/at-func2.c (at_func2): Fix typo.
70785         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70787 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70789         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70790         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70791         to avoid failure of symlink test later.
70793 2010-01-06  Eric Blake  <ebb9@byu.net>
70795         stdio, unistd: guarantee ssize_t
70796         * lib/unistd.in.h (includes): Ensure that types required by POSIX
70797         2008 are exposed when needed.
70798         * lib/stdio.in.h (includes): Likewise.
70799         Reported by Ralf Wildenhues.
70801 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
70803         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
70804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
70805         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
70807 2010-01-06  Jim Meyering  <meyering@redhat.com>
70809         readtokens: this module *does* require xalloc.h
70810         It uses only functions that were omitted by the old syntax-check rule.
70811         * lib/readtokens.c: Include "xalloc.h" once again.
70812         * modules/readtokens (Depends-on): Add xalloc.
70813         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
70815 2010-01-05  Eric Blake  <ebb9@byu.net>
70817         maint: support 'make announcement' from a VPATH build
70818         * top/maint.mk (announcement): Look for correct NEWS file.
70820 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70822         utimens (fdutimens): ignore a negative FD, per contract
70823         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70824         when we have a valid file descriptor.  Otherwise, using a brand
70825         new glibc (with just-patched futimens that now fails with EBADF)
70826         would cause this function to fail with ENOSYS.
70827         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70828         See also http://bugzilla.redhat.com/552320.
70830 2010-01-05  Eric Blake  <ebb9@byu.net>
70832         strcase: document what it provides
70833         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70834         gnulib module.
70835         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70836         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70838 2010-01-05  Jim Meyering  <meyering@redhat.com>
70840         maint: remove useless inclusions of "xalloc.h"
70841         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70842         * lib/readtokens.c: Likewise.
70843         * lib/same.c: Likewise.
70844         * modules/getloadavg (Depends-on): Remove xalloc.
70845         * modules/readtokens: Likewise.
70846         * modules/same: Likewise.
70848         maint.mk: include 4 more function names in alloca.h-checking regexp
70849         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70850         regexp.  Before, we would give a false-positive (saying alloca.h
70851         is included unnecessarily) when the only uses involved omitted symbols.
70853         xalloc.h: use consistent formatting
70854         * lib/xalloc.h: Move declarations to start in the first column.
70856 2010-01-05  Eric Blake  <ebb9@byu.net>
70858         mkdir: avoid xalloc
70859         * lib/mkdir.c (includes): Drop unused header.
70860         Reported by John W. Eaton.
70862 2010-01-04  Jim Meyering  <meyering@redhat.com>
70864         nl_langinfo: avoid configure-time syntax error
70865         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70866         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70867         the empty string.  Don't let that provoke a shell syntax error.
70869         regcomp, regexec, fnmatch: avoid array bounds read error
70870         * lib/regcomp.c (build_equiv_class): From glibc:
70871         Use only the low 24 bits of a findidx return value as an index
70872         into the weights array.  Patch by Ulrich Drepper:
70873         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70874         * lib/regexec.c (check_node_accept_bytes): Likewise.
70875         * lib/fnmatch_loop.c (FCT): Likewise.
70877         regcomp: skip collseq lookup when there are no rules
70878         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70879         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70881         regcomp: recognize ill-formed { } expressions
70882         * lib/regcomp.c (parse_dup_op): From glibc:
70883         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70885         regcomp: fix typo in comment
70886         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70887         s/satisfy/satisfies/.
70889         regcomp: sync from glibc: remove dead store
70890         * lib/regcomp.c (duplicate_node_closure): Remove useless
70891         search_duplicated_node call and dead store.
70893         regcomp: sync from glibc; always use nl_langinfo
70894         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70895         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70896         * modules/regex (Depends-on): Add nl_langinfo.
70898 2010-01-04  Eric Blake  <ebb9@byu.net>
70900         fdopendir: fix configure test
70901         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70903 2010-01-01  Bruno Haible  <bruno@clisp.org>
70905         wchar: Remove unused configure check.
70906         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70908 2010-01-01  Eric Blake  <ebb9@byu.net>
70910         headers: make check of system header explicit
70911         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70912         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70913         ourselves.
70914         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70916         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70917         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70918         internals.
70919         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70920         missing.
70921         Suggested by Bruno Haible.
70923 2010-01-01  Jim Meyering  <meyering@redhat.com>
70925         ChangeLog: tweak to eliminate unnecessary copyright line
70926         * ChangeLog: Remove a copyright line that was mistakenly updated
70927         by today's update-copyright run.  Reported by Eric Blake.
70929         test-update-copyright: don't let envvar setting cause test failure
70930         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70932 2010-01-01  Bruno Haible  <bruno@clisp.org>
70934         localename: Avoid gcc warning.
70935         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70936         function if it is not used.
70938 2010-01-01  Jim Meyering  <meyering@redhat.com>
70940         update nearly all FSF copyright year lists to include 2010
70941         Use the same procedure as for 2009, outlined in
70942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70944         version-etc: set COPYRIGHT_YEAR to 2010
70945         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70947 2009-12-31  Eric Blake  <ebb9@byu.net>
70949         doc: correct availability of cygwin 1.5.x getopt
70950         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70951         variables.
70952         * doc/posix-functions/opterr.texi (opterr): Likewise.
70953         * doc/posix-functions/optind.texi (optind): Likewise.
70954         * doc/posix-functions/optopt.texi (optopt): Likewise.
70955         * doc/posix-functions/tzname.texi (tzname): Likewise.
70957         openat: update maintainer
70958         * modules/openat (Maintainer): Add myself.
70960         utimens: avoid shadowing warning
70961         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70962         buffers into one, to avoid shadowing, as well as avoiding a
70963         redundant stat.
70964         Reported by Jim Meyering.
70966         test-dup2: avoid compiler warning
70967         * tests/test-dup2.c (is_inheritable): Only define if used.
70969 2010-01-01  Bruno Haible  <bruno@clisp.org>
70971         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70972         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70973         defined, use wctomb instead of wcrtomb.
70975 2010-01-01  Bruno Haible  <bruno@clisp.org>
70977         iconv: Reject native Solaris iconv.
70978         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70979         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70981 2009-12-31  Bruno Haible  <bruno@clisp.org>
70983         * tests/test-signal.c (main): Remove test of 'SIG'.
70985 2009-12-31  Bruno Haible  <bruno@clisp.org>
70987         spawn: Fix incomplete fix.
70988         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70989         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70990         warnings for GNULIB_POSIXCHECK again.
70991         Reported by Eric Blake.
70993 2009-12-31  Bruno Haible  <bruno@clisp.org>
70995         Avoid namespace pollution on glibc systems.
70996         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70997         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70998         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70999         glibc systems.
71001 2009-12-31  Bruno Haible  <bruno@clisp.org>
71003         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
71004         (gl_REPLACE_WCHAR_H): Turn into a no-op.
71005         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
71006         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
71007         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
71008         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
71009         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
71011 2009-12-31  Bruno Haible  <bruno@clisp.org>
71013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71014         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
71015         afterwards.
71017 2009-12-31  Bruno Haible  <bruno@clisp.org>
71019         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
71020         SYS_UTSNAME_H.
71022 2009-12-31  Bruno Haible  <bruno@clisp.org>
71024         spawn: Fix misapplied patch.
71025         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71026         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71027         warnings for GNULIB_POSIXCHECK.
71029 2009-12-31  Bruno Haible  <bruno@clisp.org>
71031         times: Update after sys_times changed.
71032         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
71033         * modules/times (Files): Add it.
71034         (configure.ac): Invoke gl_FUNC_TIMES.
71036 2009-12-31  Bruno Haible  <bruno@clisp.org>
71038         Use AC_C_INLINE where necessary.
71039         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
71040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71042         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
71043         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71044         * m4/mbiter.m4 (gl_MBITER): Likewise.
71045         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71046         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71047         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
71048         * modules/u64 (configure.ac): Likewise.
71050 2009-12-31  Bruno Haible  <bruno@clisp.org>
71052         Use AC_C_INLINE instead of module 'inline' where possible.
71053         * modules/inline (Description): Clarify purpose.
71054         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
71055         * modules/count-one-bits (Depends-on): Remove inline.
71056         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
71057         * modules/openat (Depends-on): Remove inline.
71058         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
71059         instead of depending on module 'inline'.
71060         * modules/filevercmp (Depends-on, configure.ac): Likewise.
71061         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
71062         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
71063         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
71064         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
71065         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
71066         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
71067         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
71068         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
71069         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
71070         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
71071         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
71072         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
71073         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
71074         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
71075         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
71076         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
71077         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
71078         Likewise.
71079         * modules/unictype/property-ascii-hex-digit (Depends-on,
71080         configure.ac): Likewise.
71081         * modules/unictype/property-bidi-arabic-digit (Depends-on,
71082         configure.ac): Likewise.
71083         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
71084         configure.ac): Likewise.
71085         * modules/unictype/property-bidi-block-separator (Depends-on,
71086         configure.ac): Likewise.
71087         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
71088         configure.ac): Likewise.
71089         * modules/unictype/property-bidi-common-separator (Depends-on,
71090         configure.ac): Likewise.
71091         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
71092         Likewise.
71093         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
71094         configure.ac): Likewise.
71095         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
71096         configure.ac): Likewise.
71097         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
71098         configure.ac): Likewise.
71099         * modules/unictype/property-bidi-european-digit (Depends-on,
71100         configure.ac): Likewise.
71101         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
71102         configure.ac): Likewise.
71103         * modules/unictype/property-bidi-left-to-right (Depends-on,
71104         configure.ac): Likewise.
71105         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
71106         configure.ac): Likewise.
71107         * modules/unictype/property-bidi-other-neutral (Depends-on,
71108         configure.ac): Likewise.
71109         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
71110         Likewise.
71111         * modules/unictype/property-bidi-segment-separator (Depends-on,
71112         configure.ac): Likewise.
71113         * modules/unictype/property-bidi-whitespace (Depends-on,
71114         configure.ac): Likewise.
71115         * modules/unictype/property-combining (Depends-on, configure.ac):
71116         Likewise.
71117         * modules/unictype/property-composite (Depends-on, configure.ac):
71118         Likewise.
71119         * modules/unictype/property-currency-symbol (Depends-on,
71120         configure.ac): Likewise.
71121         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
71122         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
71123         Likewise.
71124         * modules/unictype/property-default-ignorable-code-point (Depends-on,
71125         configure.ac): Likewise.
71126         * modules/unictype/property-deprecated (Depends-on, configure.ac):
71127         Likewise.
71128         * modules/unictype/property-diacritic (Depends-on, configure.ac):
71129         Likewise.
71130         * modules/unictype/property-extender (Depends-on, configure.ac):
71131         Likewise.
71132         * modules/unictype/property-format-control (Depends-on, configure.ac):
71133         Likewise.
71134         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
71135         Likewise.
71136         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
71137         Likewise.
71138         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
71139         Likewise.
71140         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
71141         Likewise.
71142         * modules/unictype/property-hyphen (Depends-on, configure.ac):
71143         Likewise.
71144         * modules/unictype/property-id-continue (Depends-on, configure.ac):
71145         Likewise.
71146         * modules/unictype/property-id-start (Depends-on, configure.ac):
71147         Likewise.
71148         * modules/unictype/property-ideographic (Depends-on, configure.ac):
71149         Likewise.
71150         * modules/unictype/property-ids-binary-operator (Depends-on,
71151         configure.ac): Likewise.
71152         * modules/unictype/property-ids-trinary-operator (Depends-on,
71153         configure.ac): Likewise.
71154         * modules/unictype/property-ignorable-control (Depends-on,
71155         configure.ac): Likewise.
71156         * modules/unictype/property-iso-control (Depends-on, configure.ac):
71157         Likewise.
71158         * modules/unictype/property-join-control (Depends-on, configure.ac):
71159         Likewise.
71160         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
71161         Likewise.
71162         * modules/unictype/property-line-separator (Depends-on, configure.ac):
71163         Likewise.
71164         * modules/unictype/property-logical-order-exception (Depends-on,
71165         configure.ac): Likewise.
71166         * modules/unictype/property-lowercase (Depends-on, configure.ac):
71167         Likewise.
71168         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
71169         * modules/unictype/property-non-break (Depends-on, configure.ac):
71170         Likewise.
71171         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
71172         Likewise.
71173         * modules/unictype/property-numeric (Depends-on, configure.ac):
71174         Likewise.
71175         * modules/unictype/property-other-alphabetic (Depends-on,
71176         configure.ac): Likewise.
71177         * modules/unictype/property-other-default-ignorable-code-point
71178         (Depends-on, configure.ac): Likewise.
71179         * modules/unictype/property-other-grapheme-extend (Depends-on,
71180         configure.ac): Likewise.
71181         * modules/unictype/property-other-id-continue (Depends-on,
71182         configure.ac): Likewise.
71183         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
71184         Likewise.
71185         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
71186         Likewise.
71187         * modules/unictype/property-other-math (Depends-on, configure.ac):
71188         Likewise.
71189         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
71190         Likewise.
71191         * modules/unictype/property-paired-punctuation (Depends-on,
71192         configure.ac): Likewise.
71193         * modules/unictype/property-paragraph-separator (Depends-on,
71194         configure.ac): Likewise.
71195         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
71196         Likewise.
71197         * modules/unictype/property-pattern-white-space (Depends-on,
71198         configure.ac): Likewise.
71199         * modules/unictype/property-private-use (Depends-on, configure.ac):
71200         Likewise.
71201         * modules/unictype/property-punctuation (Depends-on, configure.ac):
71202         Likewise.
71203         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
71204         Likewise.
71205         * modules/unictype/property-radical (Depends-on, configure.ac):
71206         Likewise.
71207         * modules/unictype/property-sentence-terminal (Depends-on,
71208         configure.ac): Likewise.
71209         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
71210         Likewise.
71211         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
71212         * modules/unictype/property-terminal-punctuation (Depends-on,
71213         configure.ac): Likewise.
71214         * modules/unictype/property-titlecase (Depends-on, configure.ac):
71215         Likewise.
71216         * modules/unictype/property-unassigned-code-value (Depends-on,
71217         configure.ac): Likewise.
71218         * modules/unictype/property-unified-ideograph (Depends-on,
71219         configure.ac): Likewise.
71220         * modules/unictype/property-uppercase (Depends-on, configure.ac):
71221         Likewise.
71222         * modules/unictype/property-variation-selector (Depends-on,
71223         configure.ac): Likewise.
71224         * modules/unictype/property-white-space (Depends-on, configure.ac):
71225         Likewise.
71226         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
71227         Likewise.
71228         * modules/unictype/property-xid-start (Depends-on, configure.ac):
71229         Likewise.
71230         * modules/unictype/property-zero-width (Depends-on, configure.ac):
71231         Likewise.
71232         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
71233         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
71234         Likewise.
71236 2009-12-31  Bruno Haible  <bruno@clisp.org>
71238         Remove unnecessary AC_C_INLINE invocation.
71239         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
71240         since 2009-08-21.
71242 2009-12-31  Jim Meyering  <meyering@redhat.com>
71244         maint.mk: don't require explicit gpg_key_ID in cfg.mk
71245         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
71246         With this change, we can all remove the gpg_key_ID = ... definition
71247         from our respective cfg.mk files.
71249         maint.mk: create announcement template in ~/, not in /tmp
71250         * top/maint.mk (emit_upload_commands): Adjust.
71251         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
71252         Remove temporary file, .ci-msg.
71254 2009-12-31  Eric Blake  <ebb9@byu.net>
71256         link-warning: always build headers with link warnings
71257         * modules/arpa_inet (Makefile.am): Always build replacement
71258         header.
71259         * modules/ctype (Makefile.am): Likewise.
71260         * modules/dirent (Makefile.am): Likewise.
71261         * modules/inttypes (Makefile.am): Likewise.
71262         * modules/langinfo (Makefile.am): Likewise.
71263         * modules/locale (Makefile.am): Likewise.
71264         * modules/spawn (Makefile.am): Likewise.
71265         * modules/sys_file (Makefile.am): Likewise.
71266         * modules/sys_ioctl (Makefile.am): Likewise.
71267         * modules/sys_select (Makefile.am): Likewise.
71268         * modules/sys_socket (Makefile.am): Likewise.
71269         * modules/sys_times (Makefile.am): Likewise.
71270         * modules/sys_utsname (Makefile.am): Likewise.
71271         * modules/sys_wait (Makefile.am): Likewise.
71272         * modules/wchar (Makefile.am): Likewise.
71273         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
71274         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
71275         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
71276         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
71277         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
71278         Likewise.
71279         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71280         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71281         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
71282         Likewise.
71283         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
71284         Likewise.
71285         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
71286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
71287         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
71288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71289         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71290         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71291         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71292         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
71293         (gl_WCHAR_H_DEFAULTS): Likewise.
71295 2009-12-31  Eric Blake  <ebb9@byu.net>
71297         signal, spawn: use link warnings
71298         * lib/signal.in.h (sigset_t): Make unconditional.
71299         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
71300         (sigpending, sigprocmask, sigaction): Add link warnings.
71301         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
71302         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
71303         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
71304         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
71305         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
71306         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
71307         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
71308         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
71309         (posix_spawn_file_actions_destroy)
71310         (posix_spawn_file_actions_addopen)
71311         (posix_spawn_file_actions_addclose)
71312         (posix_spawn_file_actions_adddup2): Likewise.
71313         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
71314         * tests/test-signal.c (main): Enhance test.
71316         spawn: improve wrapper support
71317         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
71318         (gl_SPAWN_H_DEFAULTS): New defaults.
71319         * modules/spawn (Makefile.am): Substitute them.
71320         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
71321         Only declare if missing or broken.
71323         sys_times, sys_utsname: use include_next
71324         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
71325         header.
71326         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
71327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71328         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71329         * modules/sys_times (Depends-on): Add include_next.
71330         (Makefile.am): Substitute additional values.
71331         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71332         * lib/sys_times.in.h (includes): Include native header, if
71333         available.
71334         * lib/sys_utsname.in.h (includes): Likewise.
71335         * tests/test-sys_times.c (main): Enhance test.
71337         fdutimensat: revert prior patch
71338         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
71339         utimens.h.
71340         Reported by Bruno Haible.
71342 2009-12-30  Eric Blake  <ebb9@byu.net>
71344         sys_wait: drop link-warning dependency
71345         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
71346         link-warning efforts.
71347         * lib/sys_wait.in.h: Likewise.
71349         fdutimensat: remove bogus dependency
71350         * modules/fdutimensat (Depends-on): Drop inline.
71352         unistd: fix typo
71353         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
71355 2009-12-30  Bruno Haible  <bruno@clisp.org>
71357         Fix compilation error with Solaris cc.
71358         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
71359         * lib/unicase/u16-is-invariant.c: Likewise.
71360         * lib/unicase/u32-is-invariant.c: Likewise.
71361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71363 2009-12-30  Bruno Haible  <bruno@clisp.org>
71365         Fix test crash.
71366         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
71367         locales.
71368         Reported by Simon Josefsson <simon@josefsson.org>.
71370 2009-12-30  Bruno Haible  <bruno@clisp.org>
71372         Fix compilation error on most platforms.
71373         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
71374         Reported by Simon Josefsson <simon@josefsson.org>
71375         and Nelson H. F. Beebe <beebe@math.utah.edu>.
71377 2009-12-30  Eric Blake  <ebb9@byu.net>
71379         futimens, utimensat: work around ntfs-3g bug
71380         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71381         a ctime bug is present, and expand workaround to cover ntfs-3g.
71382         * lib/utimens.c (fdutimens, lutimens): Likewise.
71383         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71384         (validate_timespec): Adjust return value.
71385         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71386         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71387         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71389 2009-12-29  Eric Blake  <ebb9@byu.net>
71391         link-warning: make usage consistent
71392         * modules/ctype (Depends-on): Add link-warning.
71393         (Makefile.am): Update rules accordingly.
71394         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71395         * modules/locale (Depends-on, Makefile.am): Likewise.
71396         * modules/sys_file (Makefile.am): Likewise.
71397         * modules/getopt-posix (Makefile.am): Delete unused link warning
71398         efforts.
71399         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71400         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71401         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71402         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71404         stdio: remove unused variables
71405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71407         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71409         tests: test more substitute headers
71410         * modules/ctype-tests: New file.
71411         * modules/dirent-tests: Likewise.
71412         * modules/spawn-tests: Likewise.
71413         * modules/sys_file-tests: Likewise.
71414         * modules/sys_ioctl-tests: Likewise.
71415         * modules/sys_wait-tests: Likewise.
71416         * tests/test-ctype.c: Likewise.
71417         * tests/test-dirent.c: Likewise.
71418         * tests/test-spawn.c: Likewise.
71419         * tests/test-sys_file.c: Likewise.
71420         * tests/test-sys_ioctl.c: Likewise.
71421         * tests/test-sys_wait.c: Likewise.
71422         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71423         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71424         whether or not flock is in use.
71426         tests: remove License section from module
71427         * modules/arpa_inet-tests: Remove unneeded section.
71428         * modules/byteswap-tests: Likewise.
71429         * modules/ceilf-tests: Likewise.
71430         * modules/ceill-tests: Likewise.
71431         * modules/crypto/des-tests: Likewise.
71432         * modules/crypto/gc-arcfour-tests: Likewise.
71433         * modules/crypto/gc-arctwo-tests: Likewise.
71434         * modules/crypto/gc-des-tests: Likewise.
71435         * modules/crypto/gc-hmac-md5-tests: Likewise.
71436         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71437         * modules/crypto/gc-md2-tests: Likewise.
71438         * modules/crypto/gc-md4-tests: Likewise.
71439         * modules/crypto/gc-md5-tests: Likewise.
71440         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71441         * modules/crypto/gc-rijndael-tests: Likewise.
71442         * modules/crypto/gc-sha1-tests: Likewise.
71443         * modules/crypto/gc-tests: Likewise.
71444         * modules/crypto/md2-tests: Likewise.
71445         * modules/crypto/md4-tests: Likewise.
71446         * modules/fcntl-h-tests: Likewise.
71447         * modules/floorf-tests: Likewise.
71448         * modules/floorl-tests: Likewise.
71449         * modules/frexp-nolibm-tests: Likewise.
71450         * modules/frexp-tests: Likewise.
71451         * modules/frexpl-nolibm-tests: Likewise.
71452         * modules/frexpl-tests: Likewise.
71453         * modules/getaddrinfo-tests: Likewise.
71454         * modules/inttypes-tests: Likewise.
71455         * modules/isfinite-tests: Likewise.
71456         * modules/isinf-tests: Likewise.
71457         * modules/ldexpl-tests: Likewise.
71458         * modules/locale-tests: Likewise.
71459         * modules/math-tests: Likewise.
71460         * modules/netdb-tests: Likewise.
71461         * modules/netinet_in-tests: Likewise.
71462         * modules/printf-frexp-tests: Likewise.
71463         * modules/printf-frexpl-tests: Likewise.
71464         * modules/priv-set-tests: Likewise.
71465         * modules/random_r-tests: Likewise.
71466         * modules/round-tests: Likewise.
71467         * modules/roundf-tests: Likewise.
71468         * modules/roundl-tests: Likewise.
71469         * modules/search-tests: Likewise.
71470         * modules/select-tests: Likewise.
71471         * modules/signal-tests: Likewise.
71472         * modules/stdbool-tests: Likewise.
71473         * modules/stddef-tests: Likewise.
71474         * modules/stdint-tests: Likewise.
71475         * modules/stdio-tests: Likewise.
71476         * modules/stdlib-tests: Likewise.
71477         * modules/string-tests: Likewise.
71478         * modules/strings-tests: Likewise.
71479         * modules/sys_select-tests: Likewise.
71480         * modules/sys_socket-tests: Likewise.
71481         * modules/sys_stat-tests: Likewise.
71482         * modules/sys_time-tests: Likewise.
71483         * modules/sys_utsname-tests: Likewise.
71484         * modules/sysexits-tests: Likewise.
71485         * modules/time-tests: Likewise.
71486         * modules/trunc-tests: Likewise.
71487         * modules/truncf-tests: Likewise.
71488         * modules/truncl-tests: Likewise.
71489         * modules/tsearch-tests: Likewise.
71490         * modules/unistd-tests: Likewise.
71491         * modules/wchar-tests: Likewise.
71492         * modules/wctype-tests: Likewise.
71494         tests: fix license on several tests
71495         * tests/test-des.c: Update to GPLv3+.
71496         * tests/test-flock.c: Likewise.
71497         * tests/test-fsync.c: Likewise.
71498         * tests/test-futimens.h: Likewise.
71499         * tests/test-gc-arcfour.c: Likewise.
71500         * tests/test-gc-arctwo.c: Likewise.
71501         * tests/test-gc-des.c: Likewise.
71502         * tests/test-gc-hmac-md5.c: Likewise.
71503         * tests/test-gc-hmac-sha1.c: Likewise.
71504         * tests/test-gc-md2.c: Likewise.
71505         * tests/test-gc-md4.c: Likewise.
71506         * tests/test-gc-md5.c: Likewise.
71507         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71508         * tests/test-gc-rijndael.c: Likewise.
71509         * tests/test-gc-sha1.c: Likewise.
71510         * tests/test-gc.c: Likewise.
71511         * tests/test-getcwd.c: Likewise.
71512         * tests/test-link.c: Likewise.
71513         * tests/test-link.h: Likewise.
71514         * tests/test-lutimens.h: Likewise.
71515         * tests/test-md2.c: Likewise.
71516         * tests/test-md4.c: Likewise.
71517         * tests/test-mkdir.h: Likewise.
71518         * tests/test-rename.c: Likewise.
71519         * tests/test-rename.h: Likewise.
71520         * tests/test-safe-alloc.c: Likewise.
71521         * tests/test-utimens-common.h: Likewise.
71522         * tests/test-utimens.h: Likewise.
71524         maint: sync license texts
71525         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71526         * doc/gpl-3.0.texi: Revert copyright year update.
71527         * doc/lgpl-3.0.texi: Likewise.
71529 2009-12-29  Jim Meyering  <meyering@redhat.com>
71531         update nearly all FSF copyright year lists to include 2009
71532         The files named by the following are exempted:
71533             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71534               test -f "$dst" && { echo "$dst"; continue; }
71535               test -d "$dst" || continue
71536               echo "$dst"/$(basename "$src")
71537             done > exempt
71538             git ls-files tests/unictype >> exempt
71539         In the remaining files, convert to all-interval notation if
71540         - there is already at least one year interval like 2000-2003
71541         - the file is maintained by me
71542         - the file is in lib/uni*/, where that style already prevails
71543         Otherwise, use update-copyright's default.
71545 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71546         and Eric Blake  <ebb9@byu.net>
71548         tests: don't require debug system() to pass
71549         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71550         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71551         * tests/test-unlink.h (test_unlink_func): Likewise.
71552         * tests/test-fstatat.c (main): ...into callers.
71553         * tests/test-lstat.c (main): Likewise.
71554         * tests/test-rmdir.c (main): Likewise.
71555         * tests/test-unlink.c (main): Likewise.
71556         * tests/test-unlinkat.c (main): Likewise.
71557         * tests/test-areadlink-with-size.c (main): Don't require a
71558         debug-only system call to pass, aiding cross-testing to mingw.
71559         * tests/test-areadlink.c (main): Likewise.
71560         * tests/test-areadlinkat-with-size.c (main): Likewise.
71561         * tests/test-areadlinkat.c (main): Likewise.
71562         * tests/test-canonicalize-lgpl.c (main): Likewise.
71563         * tests/test-canonicalize.c (main): Likewise.
71564         * tests/test-chown.c (main): Likewise.
71565         * tests/test-fchownat.c (main): Likewise.
71566         * tests/test-lchown.c (main): Likewise.
71567         * tests/test-fdutimensat.c (main): Likewise.
71568         * tests/test-futimens.c (main): Likewise.
71569         * tests/test-link.c (main): Likewise.
71570         * tests/test-linkat.c (main): Likewise.
71571         * tests/test-mkdir.c (main): Likewise.
71572         * tests/test-mkdirat.c (main): Likewise.
71573         * tests/test-mkfifo.c (main): Likewise.
71574         * tests/test-mkfifoat.c (main): Likewise.
71575         * tests/test-mknod.c (main): Likewise.
71576         * tests/test-readlink.c (main): Likewise.
71577         * tests/test-remove.c (main): Likewise.
71578         * tests/test-rename.c (main): Likewise.
71579         * tests/test-renameat.c (main): Likewise.
71580         * tests/test-symlink.c (main): Likewise.
71581         * tests/test-symlinkat.c (main): Likewise.
71582         * tests/test-utimens.c (main): Likewise.
71583         * tests/test-utimensat.c (main): Likewise.
71585 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71587         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71588         on $(UNUSED_PARAMETER_H) to avoid build failure.
71590 2009-12-28  Jim Meyering  <meyering@redhat.com>
71592         update-copyright: you may specify a max. line length other than 72
71593         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71595         maint: use consistent FSF copyright line syntax
71596         * lib/posixtm.c: Add missing comma in FSF copyright line.
71597         * lib/posixtm.h: Likewise.
71598         * lib/getugroups.c: Add missing ", Inc.".
71600         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71601         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71602         FSF copyright line.  Remove trailing blanks.
71604 2009-12-28  Eric Blake  <ebb9@byu.net>
71606         test-dup2: reduce dependencies
71607         * modules/cloexec (Configure.ac): Set witness.
71608         * modules/dup2-tests (Depends-on): Drop cloexec.
71609         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71610         not present.
71611         Suggested by Bruno Haible.
71613 2009-12-26  Bruno Haible  <bruno@clisp.org>
71615         Remove an unneeded dependency.
71616         * modules/fseterr (Depends-on): Remove dup2.
71618 2009-12-26  Eric Blake  <ebb9@byu.net>
71620         tests: use macros.h in more places
71621         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71622         (ASSERT_STREAM): Provide default of stderr.
71623         * tests/test-dirent-safer.c: Include macros.h, using alternate
71624         stream for assertions.
71625         * tests/test-dup-safer.c: Likewise.
71626         * tests/test-freopen-safer.c: Likewise.
71627         * tests/test-getopt.c: Likewise.
71628         * tests/test-openat-safer.c: Likewise.
71629         * tests/test-pipe.c: Likewise.
71630         * tests/test-popen-safer.c: Likewise.
71631         * modules/dirent-safer-tests (Files): Include macros.h.
71632         * modules/unistd-safer-tests (Files): Likewise.
71633         * modules/freopen-safer-tests (Files): Likewise.
71634         * modules/getopt-posix-tests (Files): Likewise.
71635         * modules/openat-safer-tests (Files): Likewise.
71636         * modules/pipe-tests (Files): Likewise.
71638 2009-12-26  Bruno Haible  <bruno@clisp.org>
71640         javacomp-script: Portability fix.
71641         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71642         that it also works on Solaris.
71644 2009-12-26  Bruno Haible  <bruno@clisp.org>
71646         localename: Fix storage allocation of gl_locale_name_thread's result.
71647         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71648         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71649         all platforms that have 'uselocale'.
71650         (gl_locale_name_thread_unsafe): New function, extracted from
71651         gl_locale_name_thread.
71652         (gl_locale_name_thread): Call struniq on all platforms that have
71653         'uselocale'.
71654         * tests/test-localename.c (test_locale_name_thread): Check that the
71655         resulting strings are permanently allocated.
71656         * modules/localename-tests (Depends-on): Add strdup.
71658 2009-12-26  Bruno Haible  <bruno@clisp.org>
71660         * tests/test-localename.c (categories): Fill in the strings.
71662 2009-12-26  Jim Meyering  <meyering@redhat.com>
71664         isdir: complete the removal of m4/isdir.m4
71665         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71667         isdir: clean up, since at least grep still uses it
71668         * lib/isdir.c: Include "isdir.h".
71669         (S_ISDIR): Remove now-unneeded definition.
71670         * modules/isdir (Files): Add lib/isdir.h.
71671         * lib/isdir.h: New file, with declaration.
71672         * m4/isdir.m4: Remove file -- unneeded.
71674 2009-12-25  Bruno Haible  <bruno@clisp.org>
71676         selinux-h: Make generated .h files standalone.
71677         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71678         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71679         * lib/se-selinux.in.h: Likewise.
71680         * modules/selinux-h (Depends-on): Add unused-parameter.
71681         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71682         selinux/selinux.h and selinux/context.h.
71683         Suggested by Eric Blake.
71685 2009-12-25  Bruno Haible  <bruno@clisp.org>
71687         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71688         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71689         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71690         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71691         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71693 2009-12-24  Bruno Haible  <bruno@clisp.org>
71695         openat: Fix warning.
71696         * lib/openat-proc.c: Include <unistd.h>.
71698 2009-12-24  Bruno Haible  <bruno@clisp.org>
71700         New module 'unused-parameter'.
71701         * build-aux/unused-parameter.h: New file, extracted from earlier
71702         gnulib-common.m4.
71703         * modules/unused-parameter: New file.
71704         * lib/unistr.h: Include unused-parameter.h.
71705         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71706         _GL_UNUSED.
71707         * modules/unistr/base (Depends-on): Add unused-parameter.
71709 2009-12-24  Bruno Haible  <bruno@clisp.org>
71711         Add missing dependencies to 'extensions' module.
71712         * m4/extensions.m4: Add comment.
71713         * modules/accept4 (Depends-on): Add extensions.
71714         * modules/dup3 (Depends-on): Likewise.
71715         * modules/fcntl (Depends-on): Likewise.
71716         * modules/futimens (Depends-on): Likewise.
71717         * modules/mknod (Depends-on): Likewise.
71718         * modules/pipe2 (Depends-on): Likewise.
71719         * modules/stat-time (Depends-on): Likewise.
71720         * modules/strcasestr-simple (Depends-on): Likewise.
71721         * modules/strsignal (Depends-on): Likewise.
71722         * modules/utimensat (Depends-on): Likewise.
71723         * modules/localcharset (Depends-on): Likewise. Needed because of
71724         gl_FCNTL_O_FLAGS.
71725         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71726         AC_TYPE_MBSTATE_T.
71727         * modules/wcsnrtombs (Depends-on): Likewise.
71728         * modules/wcsrtombs (Depends-on): Likewise.
71730 2009-12-24  Bruno Haible  <bruno@clisp.org>
71732         binary-io: Avoid gcc warning due to SET_BINARY.
71733         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71734         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71736 2009-12-24  Bruno Haible  <bruno@clisp.org>
71738         Avoid future namespace pollution on glibc systems.
71739         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71740         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71741         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71742         glibc systems.
71744 2009-12-24  Bruno Haible  <bruno@clisp.org>
71746         Refactor common macros used in tests.
71747         * tests/macros.h: New file.
71748         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71749         and/or <stdlib.h>, if appropriate.
71750         (ASSERT, SIZEOF): Remove macros.
71751         * tests/test-areadlink-with-size.c: Likewise.
71752         * tests/test-areadlinkat.c: Likewise.
71753         * tests/test-areadlinkat-with-size.c: Likewise.
71754         * tests/test-argmatch.c: Likewise.
71755         * tests/test-argv-iter.c: Likewise.
71756         * tests/test-array-mergesort.c: Likewise.
71757         * tests/test-array_list.c: Likewise.
71758         * tests/test-array_oset.c: Likewise.
71759         * tests/test-avltree_list.c: Likewise.
71760         * tests/test-avltree_oset.c: Likewise.
71761         * tests/test-avltreehash_list.c: Likewise.
71762         * tests/test-base64.c: Likewise.
71763         * tests/test-binary-io.c: Likewise.
71764         * tests/test-bitrotate.c: Likewise.
71765         * tests/test-btowc.c: Likewise.
71766         * tests/test-byteswap.c: Likewise.
71767         * tests/test-c-ctype.c: Likewise.
71768         * tests/test-c-stack.c: Likewise.
71769         * tests/test-c-strcasecmp.c: Likewise.
71770         * tests/test-c-strcasestr.c: Likewise.
71771         * tests/test-c-strncasecmp.c: Likewise.
71772         * tests/test-c-strstr.c: Likewise.
71773         * tests/test-canonicalize-lgpl.c: Likewise.
71774         * tests/test-canonicalize.c: Likewise.
71775         * tests/test-carray_list.c: Likewise.
71776         * tests/test-ceilf1.c: Likewise.
71777         * tests/test-ceilf2.c: Likewise.
71778         * tests/test-ceill.c: Likewise.
71779         * tests/test-chown.c: Likewise.
71780         * tests/test-cloexec.c: Likewise.
71781         * tests/test-copy-acl.c: Likewise.
71782         * tests/test-copy-file.c: Likewise.
71783         * tests/test-count-one-bits.c: Likewise.
71784         * tests/test-dprintf-posix.c: Likewise.
71785         * tests/test-dup2.c: Likewise.
71786         * tests/test-dup3.c: Likewise.
71787         * tests/test-duplocale.c: Likewise.
71788         * tests/test-fbufmode.c: Likewise.
71789         * tests/test-fchdir.c: Likewise.
71790         * tests/test-fchownat.c: Likewise.
71791         * tests/test-fcntl-safer.c: Likewise.
71792         * tests/test-fcntl.c: Likewise.
71793         * tests/test-fdopendir.c: Likewise.
71794         * tests/test-fdutimensat.c: Likewise.
71795         * tests/test-fflush2.c: Likewise.
71796         * tests/test-file-has-acl.c: Likewise.
71797         * tests/test-filevercmp.c: Likewise.
71798         * tests/test-flock.c: Likewise.
71799         * tests/test-floorf1.c: Likewise.
71800         * tests/test-floorf2.c: Likewise.
71801         * tests/test-floorl.c: Likewise.
71802         * tests/test-fnmatch.c: Likewise.
71803         * tests/test-fopen.h: Likewise.
71804         * tests/test-fpending.c: Likewise.
71805         * tests/test-fprintf-posix.c: Likewise.
71806         * tests/test-fpurge.c: Likewise.
71807         * tests/test-freadable.c: Likewise.
71808         * tests/test-freadahead.c: Likewise.
71809         * tests/test-freading.c: Likewise.
71810         * tests/test-freadptr.c: Likewise.
71811         * tests/test-freadptr2.c: Likewise.
71812         * tests/test-freadseek.c: Likewise.
71813         * tests/test-freopen.c: Likewise.
71814         * tests/test-frexp.c: Likewise.
71815         * tests/test-frexpl.c: Likewise.
71816         * tests/test-fseek.c: Likewise.
71817         * tests/test-fseeko.c: Likewise.
71818         * tests/test-fstatat.c: Likewise.
71819         * tests/test-fstrcmp.c: Likewise.
71820         * tests/test-fsync.c: Likewise.
71821         * tests/test-ftell.c: Likewise.
71822         * tests/test-ftello.c: Likewise.
71823         * tests/test-func.c: Likewise.
71824         * tests/test-futimens.c: Likewise.
71825         * tests/test-fwritable.c: Likewise.
71826         * tests/test-fwriting.c: Likewise.
71827         * tests/test-getcwd.c: Likewise.
71828         * tests/test-getdate.c: Likewise.
71829         * tests/test-getdelim.c: Likewise.
71830         * tests/test-getdtablesize.c: Likewise.
71831         * tests/test-getgroups.c: Likewise.
71832         * tests/test-getline.c: Likewise.
71833         * tests/test-getndelim2.c: Likewise.
71834         * tests/test-glob.c: Likewise.
71835         * tests/test-hash.c: Likewise.
71836         * tests/test-i-ring.c: Likewise.
71837         * tests/test-iconv-utf.c: Likewise.
71838         * tests/test-iconv.c: Likewise.
71839         * tests/test-idpriv-drop.c: Likewise.
71840         * tests/test-idpriv-droptemp.c: Likewise.
71841         * tests/test-inet_ntop.c: Likewise.
71842         * tests/test-inet_pton.c: Likewise.
71843         * tests/test-isblank.c: Likewise.
71844         * tests/test-isfinite.c: Likewise.
71845         * tests/test-isinf.c: Likewise.
71846         * tests/test-isnan.c: Likewise.
71847         * tests/test-isnand.h: Likewise.
71848         * tests/test-isnanf.h: Likewise.
71849         * tests/test-isnanl.h: Likewise.
71850         * tests/test-lchown.c: Likewise.
71851         * tests/test-ldexpl.c: Likewise.
71852         * tests/test-link.c: Likewise.
71853         * tests/test-linkat.c: Likewise.
71854         * tests/test-linked_list.c: Likewise.
71855         * tests/test-linkedhash_list.c: Likewise.
71856         * tests/test-localename.c: Likewise.
71857         * tests/test-lseek.c: Likewise.
71858         * tests/test-lstat.c: Likewise.
71859         * tests/test-mbmemcasecmp.c: Likewise.
71860         * tests/test-mbmemcasecoll.c: Likewise.
71861         * tests/test-mbrtowc.c: Likewise.
71862         * tests/test-mbscasecmp.c: Likewise.
71863         * tests/test-mbscasestr1.c: Likewise.
71864         * tests/test-mbscasestr2.c: Likewise.
71865         * tests/test-mbscasestr3.c: Likewise.
71866         * tests/test-mbscasestr4.c: Likewise.
71867         * tests/test-mbschr.c: Likewise.
71868         * tests/test-mbscspn.c: Likewise.
71869         * tests/test-mbsinit.c: Likewise.
71870         * tests/test-mbsncasecmp.c: Likewise.
71871         * tests/test-mbsnrtowcs.c: Likewise.
71872         * tests/test-mbspbrk.c: Likewise.
71873         * tests/test-mbspcasecmp.c: Likewise.
71874         * tests/test-mbsrchr.c: Likewise.
71875         * tests/test-mbsrtowcs.c: Likewise.
71876         * tests/test-mbsspn.c: Likewise.
71877         * tests/test-mbsstr1.c: Likewise.
71878         * tests/test-mbsstr2.c: Likewise.
71879         * tests/test-mbsstr3.c: Likewise.
71880         * tests/test-memchr.c: Likewise.
71881         * tests/test-memchr2.c: Likewise.
71882         * tests/test-memcmp.c: Likewise.
71883         * tests/test-memmem.c: Likewise.
71884         * tests/test-memrchr.c: Likewise.
71885         * tests/test-mkdir.c: Likewise.
71886         * tests/test-mkdirat.c: Likewise.
71887         * tests/test-mkfifo.c: Likewise.
71888         * tests/test-mkfifoat.c: Likewise.
71889         * tests/test-mknod.c: Likewise.
71890         * tests/test-nanosleep.c: Likewise.
71891         * tests/test-nl_langinfo.c: Likewise.
71892         * tests/test-obstack-printf.c: Likewise.
71893         * tests/test-open.c: Likewise.
71894         * tests/test-openat.c: Likewise.
71895         * tests/test-pipe-filter-gi1.c: Likewise.
71896         * tests/test-pipe-filter-gi2-main.c: Likewise.
71897         * tests/test-pipe-filter-ii1.c: Likewise.
71898         * tests/test-pipe-filter-ii2-main.c: Likewise.
71899         * tests/test-pipe2.c: Likewise.
71900         * tests/test-popen.h: Likewise.
71901         * tests/test-posixtm.c: Likewise.
71902         * tests/test-pread.c: Likewise.
71903         * tests/test-printf-frexp.c: Likewise.
71904         * tests/test-printf-frexpl.c: Likewise.
71905         * tests/test-printf-posix.c: Likewise.
71906         * tests/test-priv-set.c: Likewise.
71907         * tests/test-quotearg.c: Likewise.
71908         * tests/test-random_r.c: Likewise.
71909         * tests/test-rawmemchr.c: Likewise.
71910         * tests/test-rbtree_list.c: Likewise.
71911         * tests/test-rbtree_oset.c: Likewise.
71912         * tests/test-rbtreehash_list.c: Likewise.
71913         * tests/test-readlink.c: Likewise.
71914         * tests/test-remove.c: Likewise.
71915         * tests/test-rename.c: Likewise.
71916         * tests/test-renameat.c: Likewise.
71917         * tests/test-rmdir.c: Likewise.
71918         * tests/test-round1.c: Likewise.
71919         * tests/test-roundf1.c: Likewise.
71920         * tests/test-roundl.c: Likewise.
71921         * tests/test-safe-alloc.c: Likewise.
71922         * tests/test-sameacls.c: Likewise.
71923         * tests/test-set-mode-acl.c: Likewise.
71924         * tests/test-setenv.c: Likewise.
71925         * tests/test-sigaction.c: Likewise.
71926         * tests/test-signbit.c: Likewise.
71927         * tests/test-sleep.c: Likewise.
71928         * tests/test-snprintf-posix.c: Likewise.
71929         * tests/test-snprintf.c: Likewise.
71930         * tests/test-sprintf-posix.c: Likewise.
71931         * tests/test-stat-time.c: Likewise.
71932         * tests/test-stat.c: Likewise.
71933         * tests/test-strcasestr.c: Likewise.
71934         * tests/test-strchrnul.c: Likewise.
71935         * tests/test-strerror.c: Likewise.
71936         * tests/test-striconv.c: Likewise.
71937         * tests/test-striconveh.c: Likewise.
71938         * tests/test-striconveha.c: Likewise.
71939         * tests/test-strsignal.c: Likewise.
71940         * tests/test-strstr.c: Likewise.
71941         * tests/test-strtod.c: Likewise.
71942         * tests/test-strverscmp.c: Likewise.
71943         * tests/test-symlink.c: Likewise.
71944         * tests/test-symlinkat.c: Likewise.
71945         * tests/test-trunc1.c: Likewise.
71946         * tests/test-trunc2.c: Likewise.
71947         * tests/test-truncf1.c: Likewise.
71948         * tests/test-truncf2.c: Likewise.
71949         * tests/test-truncl.c: Likewise.
71950         * tests/test-uname.c: Likewise.
71951         * tests/test-unlink.c: Likewise.
71952         * tests/test-unlinkat.c: Likewise.
71953         * tests/test-unsetenv.c: Likewise.
71954         * tests/test-usleep.c: Likewise.
71955         * tests/test-utimens.c: Likewise.
71956         * tests/test-utimensat.c: Likewise.
71957         * tests/test-vasnprintf-posix.c: Likewise.
71958         * tests/test-vasnprintf-posix2.c: Likewise.
71959         * tests/test-vasnprintf.c: Likewise.
71960         * tests/test-vasprintf-posix.c: Likewise.
71961         * tests/test-vasprintf.c: Likewise.
71962         * tests/test-vdprintf-posix.c: Likewise.
71963         * tests/test-vfprintf-posix.c: Likewise.
71964         * tests/test-vprintf-posix.c: Likewise.
71965         * tests/test-vsnprintf-posix.c: Likewise.
71966         * tests/test-vsnprintf.c: Likewise.
71967         * tests/test-vsprintf-posix.c: Likewise.
71968         * tests/test-wcrtomb.c: Likewise.
71969         * tests/test-wcsnrtombs.c: Likewise.
71970         * tests/test-wcsrtombs.c: Likewise.
71971         * tests/test-wctype.c: Likewise.
71972         * tests/test-wcwidth.c: Likewise.
71973         * tests/test-xfprintf-posix.c: Likewise.
71974         * tests/test-xmemdup0.c: Likewise.
71975         * tests/test-xprintf-posix.c: Likewise.
71976         * tests/test-xvasprintf.c: Likewise.
71977         * tests/unicase/test-locale-language.c: Likewise.
71978         * tests/unicase/test-mapping-part1.h: Likewise.
71979         * tests/unicase/test-predicate-part1.h: Likewise.
71980         * tests/unicase/test-u8-casecmp.c: Likewise.
71981         * tests/unicase/test-u8-casecoll.c: Likewise.
71982         * tests/unicase/test-u8-casefold.c: Likewise.
71983         * tests/unicase/test-u8-is-cased.c: Likewise.
71984         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71985         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71986         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71987         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71988         * tests/unicase/test-u8-tolower.c: Likewise.
71989         * tests/unicase/test-u8-totitle.c: Likewise.
71990         * tests/unicase/test-u8-toupper.c: Likewise.
71991         * tests/unicase/test-u16-casecmp.c: Likewise.
71992         * tests/unicase/test-u16-casecoll.c: Likewise.
71993         * tests/unicase/test-u16-casefold.c: Likewise.
71994         * tests/unicase/test-u16-is-cased.c: Likewise.
71995         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71996         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71997         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71998         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71999         * tests/unicase/test-u16-tolower.c: Likewise.
72000         * tests/unicase/test-u16-totitle.c: Likewise.
72001         * tests/unicase/test-u16-toupper.c: Likewise.
72002         * tests/unicase/test-u32-casecmp.c: Likewise.
72003         * tests/unicase/test-u32-casecoll.c: Likewise.
72004         * tests/unicase/test-u32-casefold.c: Likewise.
72005         * tests/unicase/test-u32-is-cased.c: Likewise.
72006         * tests/unicase/test-u32-is-casefolded.c: Likewise.
72007         * tests/unicase/test-u32-is-lowercase.c: Likewise.
72008         * tests/unicase/test-u32-is-titlecase.c: Likewise.
72009         * tests/unicase/test-u32-is-uppercase.c: Likewise.
72010         * tests/unicase/test-u32-tolower.c: Likewise.
72011         * tests/unicase/test-u32-totitle.c: Likewise.
72012         * tests/unicase/test-u32-toupper.c: Likewise.
72013         * tests/unicase/test-ulc-casecmp.c: Likewise.
72014         * tests/unicase/test-ulc-casecoll.c: Likewise.
72015         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
72016         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
72017         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
72018         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
72019         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
72020         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
72021         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
72022         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
72023         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
72024         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
72025         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
72026         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
72027         * tests/unictype/test-bidi_byname.c: Likewise.
72028         * tests/unictype/test-bidi_name.c: Likewise.
72029         * tests/unictype/test-bidi_of.c: Likewise.
72030         * tests/unictype/test-bidi_test.c: Likewise.
72031         * tests/unictype/test-block_list.c: Likewise.
72032         * tests/unictype/test-block_of.c: Likewise.
72033         * tests/unictype/test-block_test.c: Likewise.
72034         * tests/unictype/test-categ_and.c: Likewise.
72035         * tests/unictype/test-categ_and_not.c: Likewise.
72036         * tests/unictype/test-categ_byname.c: Likewise.
72037         * tests/unictype/test-categ_name.c: Likewise.
72038         * tests/unictype/test-categ_none.c: Likewise.
72039         * tests/unictype/test-categ_of.c: Likewise.
72040         * tests/unictype/test-categ_or.c: Likewise.
72041         * tests/unictype/test-categ_test_withtable.c: Likewise.
72042         * tests/unictype/test-combining.c: Likewise.
72043         * tests/unictype/test-decdigit.c: Likewise.
72044         * tests/unictype/test-digit.c: Likewise.
72045         * tests/unictype/test-mirror.c: Likewise.
72046         * tests/unictype/test-numeric.c: Likewise.
72047         * tests/unictype/test-pr_byname.c: Likewise.
72048         * tests/unictype/test-pr_test.c: Likewise.
72049         * tests/unictype/test-predicate-part1.h: Likewise.
72050         * tests/unictype/test-scripts.c: Likewise.
72051         * tests/unictype/test-sy_c_ident.c: Likewise.
72052         * tests/unictype/test-sy_java_ident.c: Likewise.
72053         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
72054         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
72055         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
72056         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
72057         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
72058         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
72059         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
72060         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
72061         * tests/uninorm/test-canonical-decomposition.c: Likewise.
72062         * tests/uninorm/test-compat-decomposition.c: Likewise.
72063         * tests/uninorm/test-composition.c: Likewise.
72064         * tests/uninorm/test-decomposing-form.c: Likewise.
72065         * tests/uninorm/test-decomposition.c: Likewise.
72066         * tests/uninorm/test-u8-nfc.c: Likewise.
72067         * tests/uninorm/test-u8-nfd.c: Likewise.
72068         * tests/uninorm/test-u8-nfkc.c: Likewise.
72069         * tests/uninorm/test-u8-nfkd.c: Likewise.
72070         * tests/uninorm/test-u8-normcmp.c: Likewise.
72071         * tests/uninorm/test-u8-normcoll.c: Likewise.
72072         * tests/uninorm/test-u16-nfc.c: Likewise.
72073         * tests/uninorm/test-u16-nfd.c: Likewise.
72074         * tests/uninorm/test-u16-nfkc.c: Likewise.
72075         * tests/uninorm/test-u16-nfkd.c: Likewise.
72076         * tests/uninorm/test-u16-normcmp.c: Likewise.
72077         * tests/uninorm/test-u16-normcoll.c: Likewise.
72078         * tests/uninorm/test-u32-nfc.c: Likewise.
72079         * tests/uninorm/test-u32-nfd.c: Likewise.
72080         * tests/uninorm/test-u32-nfkc.c: Likewise.
72081         * tests/uninorm/test-u32-nfkd.c: Likewise.
72082         * tests/uninorm/test-u32-normalize-big.c: Likewise.
72083         * tests/uninorm/test-u32-normcmp.c: Likewise.
72084         * tests/uninorm/test-u32-normcoll.c: Likewise.
72085         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
72086         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
72087         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
72088         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
72089         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
72090         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
72091         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
72092         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
72093         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
72094         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
72095         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
72096         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
72097         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
72098         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
72099         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
72100         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
72101         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
72102         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
72103         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
72104         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
72105         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
72106         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
72107         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
72108         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
72109         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
72110         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
72111         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
72112         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
72113         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
72114         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
72115         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
72116         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
72117         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
72118         * tests/uniwidth/test-u8-strwidth.c: Likewise.
72119         * tests/uniwidth/test-u8-width.c: Likewise.
72120         * tests/uniwidth/test-u16-strwidth.c: Likewise.
72121         * tests/uniwidth/test-u16-width.c: Likewise.
72122         * tests/uniwidth/test-u32-strwidth.c: Likewise.
72123         * tests/uniwidth/test-u32-width.c: Likewise.
72124         * tests/uniwidth/test-uc_width.c: Likewise.
72125         * tests/uniwidth/test-uc_width2.c: Likewise.
72126         * modules/acl-tests (Files): Add tests/macros.h.
72127         * modules/areadlink-tests (Files): Likewise.
72128         * modules/areadlink-with-size-tests (Files): Likewise.
72129         * modules/areadlinkat-tests (Files): Likewise.
72130         * modules/areadlinkat-with-size-tests (Files): Likewise.
72131         * modules/argmatch-tests (Files): Likewise.
72132         * modules/argv-iter-tests (Files): Likewise.
72133         * modules/array-list-tests (Files): Likewise.
72134         * modules/array-mergesort-tests (Files): Likewise.
72135         * modules/array-oset-tests (Files): Likewise.
72136         * modules/avltree-list-tests (Files): Likewise.
72137         * modules/avltree-oset-tests (Files): Likewise.
72138         * modules/avltreehash-list-tests (Files): Likewise.
72139         * modules/base64-tests (Files): Likewise.
72140         * modules/binary-io-tests (Files): Likewise.
72141         * modules/bitrotate-tests (Files): Likewise.
72142         * modules/btowc-tests (Files): Likewise.
72143         * modules/byteswap-tests (Files): Likewise.
72144         * modules/c-ctype-tests (Files): Likewise.
72145         * modules/c-stack-tests (Files): Likewise.
72146         * modules/c-strcase-tests (Files): Likewise.
72147         * modules/c-strcasestr-tests (Files): Likewise.
72148         * modules/c-strstr-tests (Files): Likewise.
72149         * modules/canonicalize-lgpl-tests (Files): Likewise.
72150         * modules/canonicalize-tests (Files): Likewise.
72151         * modules/carray-list-tests (Files): Likewise.
72152         * modules/ceilf-tests (Files): Likewise.
72153         * modules/ceill-tests (Files): Likewise.
72154         * modules/chown-tests (Files): Likewise.
72155         * modules/cloexec-tests (Files): Likewise.
72156         * modules/copy-file-tests (Files): Likewise.
72157         * modules/count-one-bits-tests (Files): Likewise.
72158         * modules/dprintf-posix-tests (Files): Likewise.
72159         * modules/dup2-tests (Files): Likewise.
72160         * modules/dup3-tests (Files): Likewise.
72161         * modules/duplocale-tests (Files): Likewise.
72162         * modules/fbufmode-tests (Files): Likewise.
72163         * modules/fchdir-tests (Files): Likewise.
72164         * modules/fcntl-safer-tests (Files): Likewise.
72165         * modules/fcntl-tests (Files): Likewise.
72166         * modules/fdopendir-tests (Files): Likewise.
72167         * modules/fdutimensat-tests (Files): Likewise.
72168         * modules/fflush-tests (Files): Likewise.
72169         * modules/filevercmp-tests (Files): Likewise.
72170         * modules/flock-tests (Files): Likewise.
72171         * modules/floorf-tests (Files): Likewise.
72172         * modules/floorl-tests (Files): Likewise.
72173         * modules/fnmatch-tests (Files): Likewise.
72174         * modules/fopen-safer-tests (Files): Likewise.
72175         * modules/fopen-tests (Files): Likewise.
72176         * modules/fpending-tests (Files): Likewise.
72177         * modules/fprintf-posix-tests (Files): Likewise.
72178         * modules/fpurge-tests (Files): Likewise.
72179         * modules/freadable-tests (Files): Likewise.
72180         * modules/freadahead-tests (Files): Likewise.
72181         * modules/freading-tests (Files): Likewise.
72182         * modules/freadptr-tests (Files): Likewise.
72183         * modules/freadseek-tests (Files): Likewise.
72184         * modules/freopen-tests (Files): Likewise.
72185         * modules/frexp-nolibm-tests (Files): Likewise.
72186         * modules/frexp-tests (Files): Likewise.
72187         * modules/frexpl-nolibm-tests (Files): Likewise.
72188         * modules/frexpl-tests (Files): Likewise.
72189         * modules/fseek-tests (Files): Likewise.
72190         * modules/fseeko-tests (Files): Likewise.
72191         * modules/fstrcmp-tests (Files): Likewise.
72192         * modules/fsync-tests (Files): Likewise.
72193         * modules/ftell-tests (Files): Likewise.
72194         * modules/ftello-tests (Files): Likewise.
72195         * modules/func-tests (Files): Likewise.
72196         * modules/futimens-tests (Files): Likewise.
72197         * modules/fwritable-tests (Files): Likewise.
72198         * modules/fwriting-tests (Files): Likewise.
72199         * modules/getcwd-tests (Files): Likewise.
72200         * modules/getdate-tests (Files): Likewise.
72201         * modules/getdelim-tests (Files): Likewise.
72202         * modules/getdtablesize-tests (Files): Likewise.
72203         * modules/getgroups-tests (Files): Likewise.
72204         * modules/getline-tests (Files): Likewise.
72205         * modules/getndelim2-tests (Files): Likewise.
72206         * modules/glob-tests (Files): Likewise.
72207         * modules/hash-tests (Files): Likewise.
72208         * modules/i-ring-tests (Files): Likewise.
72209         * modules/iconv-tests (Files): Likewise.
72210         * modules/iconv_open-utf-tests (Files): Likewise.
72211         * modules/idpriv-drop-tests (Files): Likewise.
72212         * modules/idpriv-droptemp-tests (Files): Likewise.
72213         * modules/inet_ntop-tests (Files): Likewise.
72214         * modules/inet_pton-tests (Files): Likewise.
72215         * modules/isblank-tests (Files): Likewise.
72216         * modules/isfinite-tests (Files): Likewise.
72217         * modules/isinf-tests (Files): Likewise.
72218         * modules/isnan-tests (Files): Likewise.
72219         * modules/isnand-nolibm-tests (Files): Likewise.
72220         * modules/isnand-tests (Files): Likewise.
72221         * modules/isnanf-nolibm-tests (Files): Likewise.
72222         * modules/isnanf-tests (Files): Likewise.
72223         * modules/isnanl-nolibm-tests (Files): Likewise.
72224         * modules/isnanl-tests (Files): Likewise.
72225         * modules/lchown-tests (Files): Likewise.
72226         * modules/ldexpl-tests (Files): Likewise.
72227         * modules/link-tests (Files): Likewise.
72228         * modules/linkat-tests (Files): Likewise.
72229         * modules/linked-list-tests (Files): Likewise.
72230         * modules/linkedhash-list-tests (Files): Likewise.
72231         * modules/localename-tests (Files): Likewise.
72232         * modules/lseek-tests (Files): Likewise.
72233         * modules/lstat-tests (Files): Likewise.
72234         * modules/mbmemcasecmp-tests (Files): Likewise.
72235         * modules/mbmemcasecoll-tests (Files): Likewise.
72236         * modules/mbrtowc-tests (Files): Likewise.
72237         * modules/mbscasecmp-tests (Files): Likewise.
72238         * modules/mbscasestr-tests (Files): Likewise.
72239         * modules/mbschr-tests (Files): Likewise.
72240         * modules/mbscspn-tests (Files): Likewise.
72241         * modules/mbsinit-tests (Files): Likewise.
72242         * modules/mbsncasecmp-tests (Files): Likewise.
72243         * modules/mbsnrtowcs-tests (Files): Likewise.
72244         * modules/mbspbrk-tests (Files): Likewise.
72245         * modules/mbspcasecmp-tests (Files): Likewise.
72246         * modules/mbsrchr-tests (Files): Likewise.
72247         * modules/mbsrtowcs-tests (Files): Likewise.
72248         * modules/mbsspn-tests (Files): Likewise.
72249         * modules/mbsstr-tests (Files): Likewise.
72250         * modules/memchr-tests (Files): Likewise.
72251         * modules/memchr2-tests (Files): Likewise.
72252         * modules/memcmp-tests (Files): Likewise.
72253         * modules/memmem-tests (Files): Likewise.
72254         * modules/memrchr-tests (Files): Likewise.
72255         * modules/mkdir-tests (Files): Likewise.
72256         * modules/mkfifo-tests (Files): Likewise.
72257         * modules/mkfifoat-tests (Files): Likewise.
72258         * modules/mknod-tests (Files): Likewise.
72259         * modules/nanosleep-tests (Files): Likewise.
72260         * modules/nl_langinfo-tests (Files): Likewise.
72261         * modules/obstack-printf-tests (Files): Likewise.
72262         * modules/open-tests (Files): Likewise.
72263         * modules/openat-tests (Files): Likewise.
72264         * modules/pipe-filter-gi-tests (Files): Likewise.
72265         * modules/pipe-filter-ii-tests (Files): Likewise.
72266         * modules/pipe2-tests (Files): Likewise.
72267         * modules/popen-safer-tests (Files): Likewise.
72268         * modules/popen-tests (Files): Likewise.
72269         * modules/posixtm-tests (Files): Likewise.
72270         * modules/pread-tests (Files): Likewise.
72271         * modules/printf-frexp-tests (Files): Likewise.
72272         * modules/printf-frexpl-tests (Files): Likewise.
72273         * modules/printf-posix-tests (Files): Likewise.
72274         * modules/priv-set-tests (Files): Likewise.
72275         * modules/quotearg-tests (Files): Likewise.
72276         * modules/random_r-tests (Files): Likewise.
72277         * modules/rawmemchr-tests (Files): Likewise.
72278         * modules/rbtree-list-tests (Files): Likewise.
72279         * modules/rbtree-oset-tests (Files): Likewise.
72280         * modules/rbtreehash-list-tests (Files): Likewise.
72281         * modules/readlink-tests (Files): Likewise.
72282         * modules/remove-tests (Files): Likewise.
72283         * modules/rename-tests (Files): Likewise.
72284         * modules/renameat-tests (Files): Likewise.
72285         * modules/rmdir-tests (Files): Likewise.
72286         * modules/round-tests (Files): Likewise.
72287         * modules/roundf-tests (Files): Likewise.
72288         * modules/roundl-tests (Files): Likewise.
72289         * modules/safe-alloc-tests (Files): Likewise.
72290         * modules/setenv-tests (Files): Likewise.
72291         * modules/sigaction-tests (Files): Likewise.
72292         * modules/signbit-tests (Files): Likewise.
72293         * modules/sleep-tests (Files): Likewise.
72294         * modules/snprintf-posix-tests (Files): Likewise.
72295         * modules/snprintf-tests (Files): Likewise.
72296         * modules/sprintf-posix-tests (Files): Likewise.
72297         * modules/stat-tests (Files): Likewise.
72298         * modules/stat-time-tests (Files): Likewise.
72299         * modules/strcasestr-tests (Files): Likewise.
72300         * modules/strchrnul-tests (Files): Likewise.
72301         * modules/strerror-tests (Files): Likewise.
72302         * modules/striconv-tests (Files): Likewise.
72303         * modules/striconveh-tests (Files): Likewise.
72304         * modules/striconveha-tests (Files): Likewise.
72305         * modules/strsignal-tests (Files): Likewise.
72306         * modules/strstr-tests (Files): Likewise.
72307         * modules/strtod-tests (Files): Likewise.
72308         * modules/strverscmp-tests (Files): Likewise.
72309         * modules/symlink-tests (Files): Likewise.
72310         * modules/symlinkat-tests (Files): Likewise.
72311         * modules/trunc-tests (Files): Likewise.
72312         * modules/truncf-tests (Files): Likewise.
72313         * modules/truncl-tests (Files): Likewise.
72314         * modules/uname-tests (Files): Likewise.
72315         * modules/unicase/cased-tests (Files): Likewise.
72316         * modules/unicase/ignorable-tests (Files): Likewise.
72317         * modules/unicase/locale-language-tests (Files): Likewise.
72318         * modules/unicase/tolower-tests (Files): Likewise.
72319         * modules/unicase/totitle-tests (Files): Likewise.
72320         * modules/unicase/toupper-tests (Files): Likewise.
72321         * modules/unicase/u8-casecmp-tests (Files): Likewise.
72322         * modules/unicase/u8-casecoll-tests (Files): Likewise.
72323         * modules/unicase/u8-casefold-tests (Files): Likewise.
72324         * modules/unicase/u8-is-cased-tests (Files): Likewise.
72325         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
72326         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
72327         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
72328         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
72329         * modules/unicase/u8-tolower-tests (Files): Likewise.
72330         * modules/unicase/u8-totitle-tests (Files): Likewise.
72331         * modules/unicase/u8-toupper-tests (Files): Likewise.
72332         * modules/unicase/u16-casecmp-tests (Files): Likewise.
72333         * modules/unicase/u16-casecoll-tests (Files): Likewise.
72334         * modules/unicase/u16-casefold-tests (Files): Likewise.
72335         * modules/unicase/u16-is-cased-tests (Files): Likewise.
72336         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
72337         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
72338         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
72339         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
72340         * modules/unicase/u16-tolower-tests (Files): Likewise.
72341         * modules/unicase/u16-totitle-tests (Files): Likewise.
72342         * modules/unicase/u16-toupper-tests (Files): Likewise.
72343         * modules/unicase/u32-casecmp-tests (Files): Likewise.
72344         * modules/unicase/u32-casecoll-tests (Files): Likewise.
72345         * modules/unicase/u32-casefold-tests (Files): Likewise.
72346         * modules/unicase/u32-is-cased-tests (Files): Likewise.
72347         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
72348         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
72349         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
72350         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
72351         * modules/unicase/u32-tolower-tests (Files): Likewise.
72352         * modules/unicase/u32-totitle-tests (Files): Likewise.
72353         * modules/unicase/u32-toupper-tests (Files): Likewise.
72354         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
72355         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
72356         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
72357         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
72358         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
72359         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
72360         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
72361         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
72362         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
72363         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
72364         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
72365         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
72366         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
72367         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
72368         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
72369         * modules/unictype/bidicategory-name-tests (Files): Likewise.
72370         * modules/unictype/bidicategory-of-tests (Files): Likewise.
72371         * modules/unictype/bidicategory-test-tests (Files): Likewise.
72372         * modules/unictype/block-list-tests (Files): Likewise.
72373         * modules/unictype/block-of-tests (Files): Likewise.
72374         * modules/unictype/block-test-tests (Files): Likewise.
72375         * modules/unictype/category-C-tests (Files): Likewise.
72376         * modules/unictype/category-Cc-tests (Files): Likewise.
72377         * modules/unictype/category-Cf-tests (Files): Likewise.
72378         * modules/unictype/category-Cn-tests (Files): Likewise.
72379         * modules/unictype/category-Co-tests (Files): Likewise.
72380         * modules/unictype/category-Cs-tests (Files): Likewise.
72381         * modules/unictype/category-L-tests (Files): Likewise.
72382         * modules/unictype/category-Ll-tests (Files): Likewise.
72383         * modules/unictype/category-Lm-tests (Files): Likewise.
72384         * modules/unictype/category-Lo-tests (Files): Likewise.
72385         * modules/unictype/category-Lt-tests (Files): Likewise.
72386         * modules/unictype/category-Lu-tests (Files): Likewise.
72387         * modules/unictype/category-M-tests (Files): Likewise.
72388         * modules/unictype/category-Mc-tests (Files): Likewise.
72389         * modules/unictype/category-Me-tests (Files): Likewise.
72390         * modules/unictype/category-Mn-tests (Files): Likewise.
72391         * modules/unictype/category-N-tests (Files): Likewise.
72392         * modules/unictype/category-Nd-tests (Files): Likewise.
72393         * modules/unictype/category-Nl-tests (Files): Likewise.
72394         * modules/unictype/category-No-tests (Files): Likewise.
72395         * modules/unictype/category-P-tests (Files): Likewise.
72396         * modules/unictype/category-Pc-tests (Files): Likewise.
72397         * modules/unictype/category-Pd-tests (Files): Likewise.
72398         * modules/unictype/category-Pe-tests (Files): Likewise.
72399         * modules/unictype/category-Pf-tests (Files): Likewise.
72400         * modules/unictype/category-Pi-tests (Files): Likewise.
72401         * modules/unictype/category-Po-tests (Files): Likewise.
72402         * modules/unictype/category-Ps-tests (Files): Likewise.
72403         * modules/unictype/category-S-tests (Files): Likewise.
72404         * modules/unictype/category-Sc-tests (Files): Likewise.
72405         * modules/unictype/category-Sk-tests (Files): Likewise.
72406         * modules/unictype/category-Sm-tests (Files): Likewise.
72407         * modules/unictype/category-So-tests (Files): Likewise.
72408         * modules/unictype/category-Z-tests (Files): Likewise.
72409         * modules/unictype/category-Zl-tests (Files): Likewise.
72410         * modules/unictype/category-Zp-tests (Files): Likewise.
72411         * modules/unictype/category-Zs-tests (Files): Likewise.
72412         * modules/unictype/category-and-not-tests (Files): Likewise.
72413         * modules/unictype/category-and-tests (Files): Likewise.
72414         * modules/unictype/category-byname-tests (Files): Likewise.
72415         * modules/unictype/category-name-tests (Files): Likewise.
72416         * modules/unictype/category-none-tests (Files): Likewise.
72417         * modules/unictype/category-of-tests (Files): Likewise.
72418         * modules/unictype/category-or-tests (Files): Likewise.
72419         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72420         * modules/unictype/combining-class-tests (Files): Likewise.
72421         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72422         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72423         * modules/unictype/ctype-blank-tests (Files): Likewise.
72424         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72425         * modules/unictype/ctype-digit-tests (Files): Likewise.
72426         * modules/unictype/ctype-graph-tests (Files): Likewise.
72427         * modules/unictype/ctype-lower-tests (Files): Likewise.
72428         * modules/unictype/ctype-print-tests (Files): Likewise.
72429         * modules/unictype/ctype-punct-tests (Files): Likewise.
72430         * modules/unictype/ctype-space-tests (Files): Likewise.
72431         * modules/unictype/ctype-upper-tests (Files): Likewise.
72432         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72433         * modules/unictype/decimal-digit-tests (Files): Likewise.
72434         * modules/unictype/digit-tests (Files): Likewise.
72435         * modules/unictype/mirror-tests (Files): Likewise.
72436         * modules/unictype/numeric-tests (Files): Likewise.
72437         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72438         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72439         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72440         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72441         Likewise.
72442         * modules/unictype/property-bidi-block-separator-tests (Files):
72443         Likewise.
72444         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72445         Likewise.
72446         * modules/unictype/property-bidi-common-separator-tests (Files):
72447         Likewise.
72448         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72449         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72450         Likewise.
72451         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72452         Likewise.
72453         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72454         Likewise.
72455         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72456         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72457         Likewise.
72458         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72459         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72460         Likewise.
72461         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72462         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72463         * modules/unictype/property-bidi-segment-separator-tests (Files):
72464         Likewise.
72465         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72466         * modules/unictype/property-byname-tests (Files): Likewise.
72467         * modules/unictype/property-combining-tests (Files): Likewise.
72468         * modules/unictype/property-composite-tests (Files): Likewise.
72469         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72470         * modules/unictype/property-dash-tests (Files): Likewise.
72471         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72472         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72473         Likewise.
72474         * modules/unictype/property-deprecated-tests (Files): Likewise.
72475         * modules/unictype/property-diacritic-tests (Files): Likewise.
72476         * modules/unictype/property-extender-tests (Files): Likewise.
72477         * modules/unictype/property-format-control-tests (Files): Likewise.
72478         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72479         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72480         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72481         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72482         * modules/unictype/property-hyphen-tests (Files): Likewise.
72483         * modules/unictype/property-id-continue-tests (Files): Likewise.
72484         * modules/unictype/property-id-start-tests (Files): Likewise.
72485         * modules/unictype/property-ideographic-tests (Files): Likewise.
72486         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72487         * modules/unictype/property-ids-trinary-operator-tests (Files):
72488         Likewise.
72489         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72490         * modules/unictype/property-iso-control-tests (Files): Likewise.
72491         * modules/unictype/property-join-control-tests (Files): Likewise.
72492         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72493         * modules/unictype/property-line-separator-tests (Files): Likewise.
72494         * modules/unictype/property-logical-order-exception-tests (Files):
72495         Likewise.
72496         * modules/unictype/property-lowercase-tests (Files): Likewise.
72497         * modules/unictype/property-math-tests (Files): Likewise.
72498         * modules/unictype/property-non-break-tests (Files): Likewise.
72499         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72500         * modules/unictype/property-numeric-tests (Files): Likewise.
72501         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72502         * modules/unictype/property-other-default-ignorable-code-point-tests
72503         (Files): Likewise.
72504         * modules/unictype/property-other-grapheme-extend-tests (Files):
72505         Likewise.
72506         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72507         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72508         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72509         * modules/unictype/property-other-math-tests (Files): Likewise.
72510         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72511         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72512         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72513         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72514         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72515         * modules/unictype/property-private-use-tests (Files): Likewise.
72516         * modules/unictype/property-punctuation-tests (Files): Likewise.
72517         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72518         * modules/unictype/property-radical-tests (Files): Likewise.
72519         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72520         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72521         * modules/unictype/property-space-tests (Files): Likewise.
72522         * modules/unictype/property-terminal-punctuation-tests (Files):
72523         Likewise.
72524         * modules/unictype/property-test-tests (Files): Likewise.
72525         * modules/unictype/property-titlecase-tests (Files): Likewise.
72526         * modules/unictype/property-unassigned-code-value-tests (Files):
72527         Likewise.
72528         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72529         * modules/unictype/property-uppercase-tests (Files): Likewise.
72530         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72531         * modules/unictype/property-white-space-tests (Files): Likewise.
72532         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72533         * modules/unictype/property-xid-start-tests (Files): Likewise.
72534         * modules/unictype/property-zero-width-tests (Files): Likewise.
72535         * modules/unictype/scripts-tests (Files): Likewise.
72536         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72537         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72538         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72539         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72540         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72541         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72542         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72543         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72544         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72545         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72546         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72547         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72548         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72549         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72550         * modules/uninorm/composition-tests (Files): Likewise.
72551         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72552         * modules/uninorm/decomposition-tests (Files): Likewise.
72553         * modules/uninorm/filter-tests (Files): Likewise.
72554         * modules/uninorm/nfc-tests (Files): Likewise.
72555         * modules/uninorm/nfd-tests (Files): Likewise.
72556         * modules/uninorm/nfkc-tests (Files): Likewise.
72557         * modules/uninorm/nfkd-tests (Files): Likewise.
72558         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72559         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72560         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72561         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72562         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72563         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72564         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72565         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72566         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72567         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72568         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72569         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72570         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72571         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72572         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72573         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72574         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72575         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72576         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72577         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72578         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72579         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72580         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72581         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72582         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72583         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72584         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72585         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72586         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72587         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72588         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72589         * modules/uniwidth/u8-width-tests (Files): Likewise.
72590         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72591         * modules/uniwidth/u16-width-tests (Files): Likewise.
72592         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72593         * modules/uniwidth/u32-width-tests (Files): Likewise.
72594         * modules/uniwidth/width-tests (Files): Likewise.
72595         * modules/unlink-tests (Files): Likewise.
72596         * modules/unsetenv-tests (Files): Likewise.
72597         * modules/usleep-tests (Files): Likewise.
72598         * modules/utimens-tests (Files): Likewise.
72599         * modules/utimensat-tests (Files): Likewise.
72600         * modules/vasnprintf-posix-tests (Files): Likewise.
72601         * modules/vasnprintf-tests (Files): Likewise.
72602         * modules/vasprintf-posix-tests (Files): Likewise.
72603         * modules/vasprintf-tests (Files): Likewise.
72604         * modules/vdprintf-posix-tests (Files): Likewise.
72605         * modules/vfprintf-posix-tests (Files): Likewise.
72606         * modules/vprintf-posix-tests (Files): Likewise.
72607         * modules/vsnprintf-posix-tests (Files): Likewise.
72608         * modules/vsnprintf-tests (Files): Likewise.
72609         * modules/vsprintf-posix-tests (Files): Likewise.
72610         * modules/wcrtomb-tests (Files): Likewise.
72611         * modules/wcsnrtombs-tests (Files): Likewise.
72612         * modules/wcsrtombs-tests (Files): Likewise.
72613         * modules/wctype-tests (Files): Likewise.
72614         * modules/wcwidth-tests (Files): Likewise.
72615         * modules/xmemdup0-tests (Files): Likewise.
72616         * modules/xprintf-posix-tests (Files): Likewise.
72617         * modules/xvasprintf-tests (Files): Likewise.
72619 2009-12-24  Eric Blake  <ebb9@byu.net>
72621         test-nanosleep: fix typo
72622         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72623         patch.
72624         Reported by Bruno Haible.
72626 2009-12-24  Bruno Haible  <bruno@clisp.org>
72628         Reduce namespace pollution on glibc systems.
72629         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72630         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72631         systems.
72632         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72633         <getopt.h> on glibc systems.
72634         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72635         systems.
72636         * lib/fcntl.c: Include <unistd.h> here instead.
72638 2009-12-24  Bruno Haible  <bruno@clisp.org>
72640         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72642 2009-12-24  Eric Blake  <ebb9@byu.net>
72644         tests: add signature checks
72645         * tests/signature.h (SIGNATURE_CHECK): New file.
72646         * modules/atexit-tests (Files): Use it.
72647         * modules/btowc-tests (Files): Likewise.
72648         * modules/canonicalize-lgpl-tests (Files): Likewise.
72649         * modules/ceilf-tests (Files): Likewise.
72650         * modules/ceill-tests (Files): Likewise.
72651         * modules/chown-tests (Files): Likewise.
72652         * modules/dprintf-posix-tests (Files): Likewise.
72653         * modules/dup2-tests (Files): Likewise.
72654         * modules/dup3-tests (Files): Likewise.
72655         * modules/duplocale-tests (Files): Likewise.
72656         * modules/fchdir-tests (Files): Likewise.
72657         * modules/fcntl-tests (Files): Likewise.
72658         * modules/fdopendir-tests (Files): Likewise.
72659         * modules/fflush-tests (Files): Likewise.
72660         * modules/flock-tests (Files): Likewise.
72661         * modules/floorf-tests (Files): Likewise.
72662         * modules/floorl-tests (Files): Likewise.
72663         * modules/fnmatch-tests (Files): Likewise.
72664         * modules/fopen-tests (Files): Likewise.
72665         * modules/fprintf-posix-tests (Files): Likewise.
72666         * modules/freopen-tests (Files): Likewise.
72667         * modules/frexp-nolibm-tests (Files): Likewise.
72668         * modules/frexp-tests (Files): Likewise.
72669         * modules/frexpl-nolibm-tests (Files): Likewise.
72670         * modules/frexpl-tests (Files): Likewise.
72671         * modules/fseek-tests (Files): Likewise.
72672         * modules/fseeko-tests (Files): Likewise.
72673         * modules/fsync-tests (Files): Likewise.
72674         * modules/ftell-tests (Files): Likewise.
72675         * modules/ftello-tests (Files): Likewise.
72676         * modules/futimens-tests (Files): Likewise.
72677         * modules/getaddrinfo-tests (Files): Likewise.
72678         * modules/getcwd-tests (Files): Likewise.
72679         * modules/getdelim-tests (Files): Likewise.
72680         * modules/getdtablesize-tests (Files): Likewise.
72681         * modules/getgroups-tests (Files): Likewise.
72682         * modules/gethostname-tests (Files): Likewise.
72683         * modules/getline-tests (Files): Likewise.
72684         * modules/getopt-posix-tests (Files): Likewise.
72685         * modules/gettimeofday-tests (Files): Likewise.
72686         * modules/glob-tests (Files): Likewise.
72687         * modules/iconv-tests (Files): Likewise.
72688         * modules/inet_ntop-tests (Files): Likewise.
72689         * modules/inet_pton-tests (Files): Likewise.
72690         * modules/isblank-tests (Files): Likewise.
72691         * modules/lchown-tests (Files): Likewise.
72692         * modules/ldexpl-tests (Files): Likewise.
72693         * modules/link-tests (Files): Likewise.
72694         * modules/linkat-tests (Files): Likewise.
72695         * modules/lseek-tests (Files): Likewise.
72696         * modules/lstat-tests (Files): Likewise.
72697         * modules/mbrtowc-tests (Files): Likewise.
72698         * modules/mbsinit-tests (Files): Likewise.
72699         * modules/mbsnrtowcs-tests (Files): Likewise.
72700         * modules/mbsrtowcs-tests (Files): Likewise.
72701         * modules/memchr-tests (Files): Likewise.
72702         * modules/memcmp-tests (Files): Likewise.
72703         * modules/memmem-tests (Files): Likewise.
72704         * modules/memrchr-tests (Files): Likewise.
72705         * modules/mkdir-tests (Files): Likewise.
72706         * modules/mkfifo-tests (Files): Likewise.
72707         * modules/mkfifoat-tests (Files): Likewise.
72708         * modules/mknod-tests (Files): Likewise.
72709         * modules/nanosleep-tests (Files): Likewise.
72710         * modules/nl_langinfo-tests (Files): Likewise.
72711         * modules/obstack-printf-tests (Files): Likewise.
72712         * modules/open-tests (Files): Likewise.
72713         * modules/openat-tests (Files): Likewise.
72714         * modules/perror-tests (Files): Likewise.
72715         * modules/pipe2-tests (Files): Likewise.
72716         * modules/poll-tests (Files): Likewise.
72717         * modules/popen-tests (Files): Likewise.
72718         * modules/posix_spawn-tests (Files): Likewise.
72719         * modules/posix_spawnp-tests (Files): Likewise.
72720         * modules/pread-tests (Files): Likewise.
72721         * modules/printf-posix-tests (Files): Likewise.
72722         * modules/pty-tests (Files): Likewise.
72723         * modules/random_r-tests (Files): Likewise.
72724         * modules/rawmemchr-tests (Files): Likewise.
72725         * modules/readlink-tests (Files): Likewise.
72726         * modules/remove-tests (Files): Likewise.
72727         * modules/rename-tests (Files): Likewise.
72728         * modules/renameat-tests (Files): Likewise.
72729         * modules/rmdir-tests (Files): Likewise.
72730         * modules/round-tests (Files): Likewise.
72731         * modules/roundf-tests (Files): Likewise.
72732         * modules/roundl-tests (Files): Likewise.
72733         * modules/select-tests (Files): Likewise.
72734         * modules/setenv-tests (Files): Likewise.
72735         * modules/sigaction-tests (Files): Likewise.
72736         * modules/sleep-tests (Files): Likewise.
72737         * modules/snprintf-posix-tests (Files): Likewise.
72738         * modules/snprintf-tests (Files): Likewise.
72739         * modules/sprintf-posix-tests (Files): Likewise.
72740         * modules/stat-tests (Files): Likewise.
72741         * modules/strcasestr-tests (Files): Likewise.
72742         * modules/strchrnul-tests (Files): Likewise.
72743         * modules/strerror-tests (Files): Likewise.
72744         * modules/strsignal-tests (Files): Likewise.
72745         * modules/strstr-tests (Files): Likewise.
72746         * modules/strtod-tests (Files): Likewise.
72747         * modules/strverscmp-tests (Files): Likewise.
72748         * modules/symlink-tests (Files): Likewise.
72749         * modules/symlinkat-tests (Files): Likewise.
72750         * modules/times-tests (Files): Likewise.
72751         * modules/trunc-tests (Files): Likewise.
72752         * modules/truncf-tests (Files): Likewise.
72753         * modules/truncl-tests (Files): Likewise.
72754         * modules/tsearch-tests (Files): Likewise.
72755         * modules/uname-tests (Files): Likewise.
72756         * modules/unlink-tests (Files): Likewise.
72757         * modules/unsetenv-tests (Files): Likewise.
72758         * modules/usleep-tests (Files): Likewise.
72759         * modules/utimensat-tests (Files): Likewise.
72760         * modules/vasprintf-tests (Files): Likewise.
72761         * modules/vdprintf-posix-tests (Files): Likewise.
72762         * modules/vfprintf-posix-tests (Files): Likewise.
72763         * modules/vprintf-posix-tests (Files): Likewise.
72764         * modules/vsnprintf-posix-tests (Files): Likewise.
72765         * modules/vsnprintf-tests (Files): Likewise.
72766         * modules/vsprintf-posix-tests (Files): Likewise.
72767         * modules/wcrtomb-tests (Files): Likewise.
72768         * modules/wcsnrtombs-tests (Files): Likewise.
72769         * modules/wcsrtombs-tests (Files): Likewise.
72770         * modules/wcwidth-tests (Files): Likewise.
72771         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72772         * tests/test-isinf.c (isinf): Likewise.
72773         * tests/test-isnan.c (isnan): Likewise.
72774         * tests/test-signbit.c (signbit): Likewise.
72775         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72776         declaration, either as macro or with correct signature.
72777         (select): Ensure function under test is declared with correct
72778         signature in correct header.
72779         * tests/test-atexit.c (atexit): Likewise.
72780         * tests/test-btowc.c (btowc): Likewise.
72781         * tests/test-canonicalize-lgpl.c (realpath)
72782         (canonicalize_file_name): Likewise.
72783         * tests/test-ceilf1.c (ceilf): Likewise.
72784         * tests/test-ceill.c (ceill): Likewise.
72785         * tests/test-chown.c (chown): Likewise.
72786         * tests/test-dprintf-posix.c (dprintf): Likewise.
72787         * tests/test-dup2.c (dup2): Likewise.
72788         * tests/test-dup3.c (dup3): Likewise.
72789         * tests/test-duplocale.c (duplocale): Likewise.
72790         * tests/test-fchdir.c (fchdir): Likewise.
72791         * tests/test-fchownat.c (fchownat): Likewise.
72792         * tests/test-fcntl.c (fcntl): Likewise.
72793         * tests/test-fdopendir.c (fdopendir): Likewise.
72794         * tests/test-fflush.c (fflush): Likewise.
72795         * tests/test-flock.c (flock): Likewise.
72796         * tests/test-floorf1.c (floorf): Likewise.
72797         * tests/test-floorl.c (floorl): Likewise.
72798         * tests/test-fnmatch.c (fnmatch): Likewise.
72799         * tests/test-fopen.c (fopen): Likewise.
72800         * tests/test-fprintf-posix.c (fprintf): Likewise.
72801         * tests/test-freopen.c (freopen): Likewise.
72802         * tests/test-frexp.c (frexp): Likewise.
72803         * tests/test-frexpl.c (frexpl): Likewise.
72804         * tests/test-fseek.c (fseek): Likewise.
72805         * tests/test-fseeko.c (fseeko): Likewise.
72806         * tests/test-fstatat.c (fstatat): Likewise.
72807         * tests/test-fsync.c (fsync): Likewise.
72808         * tests/test-ftell.c (ftell): Likewise.
72809         * tests/test-ftello.c (ftello): Likewise.
72810         * tests/test-futimens.c (futimens): Likewise.
72811         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
72812         (gai_strerror): Likewise.
72813         * tests/test-getcwd.c (getcwd): Likewise.
72814         * tests/test-getdelim.c (getdelim): Likewise.
72815         * tests/test-getdtablesize.c (getdtablesize): Likewise.
72816         * tests/test-getgroups.c (getgroups): Likewise.
72817         * tests/test-gethostname.c (gethostname): Likewise.
72818         * tests/test-getline.c (getline): Likewise.
72819         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72820         Likewise.
72821         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72822         * tests/test-glob.c (glob, globfree): Likewise.
72823         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72824         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72825         * tests/test-inet_pton.c (inet_pton): Likewise.
72826         * tests/test-isblank.c (isblank): Likewise.
72827         * tests/test-lchown.c (lchown): Likewise.
72828         * tests/test-ldexpl.c (ldexpl): Likewise.
72829         * tests/test-link.c (link): Likewise.
72830         * tests/test-linkat.c (linkat): Likewise.
72831         * tests/test-lseek.c (lseek): Likewise.
72832         * tests/test-lstat.c (lstat): Likewise.
72833         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72834         * tests/test-mbsinit.c (mbsinit): Likewise.
72835         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72836         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72837         * tests/test-memchr.c (memchr): Likewise.
72838         * tests/test-memcmp.c (memcmp): Likewise.
72839         * tests/test-memmem.c (memmem): Likewise.
72840         * tests/test-memrchr.c (memrchr): Likewise.
72841         * tests/test-mkdir.c (mkdir): Likewise.
72842         * tests/test-mkdirat.c (mkdirat): Likewise.
72843         * tests/test-mkfifo.c (mkfifo): Likewise.
72844         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72845         * tests/test-mknod.c (mknod): Likewise.
72846         * tests/test-nanosleep.c (nanosleep): Likewise.
72847         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72848         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72849         Likewise.
72850         * tests/test-open.c (open): Likewise.
72851         * tests/test-openat.c (openat): Likewise.
72852         * tests/test-perror.c (perror): Likewise.
72853         * tests/test-pipe2.c (pipe2): Likewise.
72854         * tests/test-poll.c (poll): Likewise.
72855         * tests/test-popen.c (popen, pclose): Likewise.
72856         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72857         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72858         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72859         (posix_spawn_file_actions_destroy)
72860         (posix_spawn_file_actions_addclose)
72861         (posix_spawn_file_actions_addopen)
72862         (posix_spawn_file_actions_adddup2): Likewise.
72863         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72864         * tests/test-pread.c (pread): Likewise.
72865         * tests/test-printf-posix.c (printf): Likewise.
72866         * tests/test-pty.c (openpty, forkpty): Likewise.
72867         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72868         (random_r): Likewise.
72869         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72870         * tests/test-readlink.c (readlink): Likewise.
72871         * tests/test-remove.c (remove): Likewise.
72872         * tests/test-rename.c (rename): Likewise.
72873         * tests/test-renameat.c (renameat): Likewise.
72874         * tests/test-rmdir.c (rmdir): Likewise.
72875         * tests/test-round1.c (round): Likewise.
72876         * tests/test-roundf1.c (roundf): Likewise.
72877         * tests/test-roundl.c (roundl): Likewise.
72878         * tests/test-setenv.c (setenv): Likewise.
72879         * tests/test-sigaction.c (sigaction): Likewise.
72880         * tests/test-sleep.c (sleep): Likewise.
72881         * tests/test-snprintf.c (snprintf): Likewise.
72882         * tests/test-sprintf-posix.c (sprintf): Likewise.
72883         * tests/test-stat.c (stat): Likewise.
72884         * tests/test-stpncpy.c (stpncpy): Likewise.
72885         * tests/test-strcasestr.c (strcasestr): Likewise.
72886         * tests/test-strchrnul.c (strchrnul): Likewise.
72887         * tests/test-strerror.c (strerror): Likewise.
72888         * tests/test-strsignal.c (strsignal): Likewise.
72889         * tests/test-strstr.c (strstr): Likewise.
72890         * tests/test-strtod.c (strtod): Likewise.
72891         * tests/test-strverscmp.c (strverscmp): Likewise.
72892         * tests/test-symlink.c (symlink): Likewise.
72893         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72894         * tests/test-times.c (times): Likewise.
72895         * tests/test-trunc1.c (trunc): Likewise.
72896         * tests/test-truncf1.c (truncf): Likewise.
72897         * tests/test-truncl.c (truncl): Likewise.
72898         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72899         Likewise.
72900         * tests/test-uname.c (uname): Likewise.
72901         * tests/test-unlink.c (unlink): Likewise.
72902         * tests/test-unlinkat.c (unlinkat): Likewise.
72903         * tests/test-unsetenv.c (unsetenv): Likewise.
72904         * tests/test-usleep.c (usleep): Likewise.
72905         * tests/test-utimensat.c (utimensat): Likewise.
72906         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72907         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72908         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72909         * tests/test-vprintf-posix.c (vprintf): Likewise.
72910         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72911         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72912         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72913         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72914         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72915         * tests/test-wcwidth.c (wcwidth): Likewise.
72917         build: pull in conditional headers during GNULIB_POSIXCHECK
72918         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72919         definitions from any conditionally-included headers.
72920         * lib/stdlib.in.h (includes): Likewise.
72921         * lib/unistd.in.h (includes): Likewise.
72923 2009-12-24  Bruno Haible  <bruno@clisp.org>
72925         * tests/test-argv-iter.c: Include header file being tested immediately
72926         after config.h.
72927         * tests/test-base64.c: Likewise.
72928         * tests/test-flock.c: Likewise.
72929         * tests/test-fsync.c: Likewise.
72930         * tests/test-getdate.c: Likewise.
72931         * tests/test-getndelim2.c: Likewise.
72932         * tests/test-isfinite.c: Likewise.
72933         * tests/test-isinf.c: Likewise.
72934         * tests/test-strerror.c: Likewise.
72935         * tests/test-strsignal.c: Likewise.
72937 2009-12-23  Eric Blake  <ebb9@byu.net>
72939         unistd: work around cygwin bug
72940         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72941         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72942         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72944 2009-12-23  Bruno Haible  <bruno@clisp.org>
72946         localename: More tests.
72947         * tests/test-localename.c (SIZEOF): New macro.
72948         (categories): New variable.
72949         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72950         test_locale_name_default): Add test w.r.t. thread locale.
72951         (test_locale_name_thread): New function.
72952         (main): Invoke it.
72954         localename: Make aware of thread locale.
72955         * lib/localename.h (gl_locale_name_thread): New declaration.
72956         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72957         behaviour with respect to thread locale.
72958         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72959         <langinfo.h>, glthread/lock.h.
72960         (SIZE_BITS): New macro.
72961         (string_hash): New function.
72962         (struct hash_node): New type.
72963         (HASH_TABLE_SIZE): New macro.
72964         (struniq_hash_table, struniq_lock): New variables.
72965         (struniq): New function.
72966         (gl_locale_name_thread): New function.
72967         (gl_locale_name): Invoke it.
72968         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72969         * modules/localename (Depends-on): Add lock.
72970         Reported by Mike Gran <spk121@yahoo.com>.
72972 2009-12-23  Eric Blake  <ebb9@byu.net>
72974         va-args: new module
72975         * modules/va-args: New file.
72976         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72977         * MODULES.html.sh (Core language properties): Mention it.
72979         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72980         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72981         named alias for __attribute__((__unused__)).
72982         * lib/chown.c: Update client.
72983         * lib/fchmodat.c: Likewise.
72984         * lib/fts.c: Likewise.
72985         * lib/getdate.y: Likewise.
72986         * lib/getgroups.c: Likewise.
72987         * lib/getopt.c: Likewise.
72988         * lib/getugroups.c: Likewise.
72989         * lib/mkdir.c: Likewise.
72990         * lib/mkfifo.c: Likewise.
72991         * lib/mkfifoat.c: Likewise.
72992         * lib/mknod.c: Likewise.
72993         * lib/mknodat.c: Likewise.
72994         * lib/readlink.c: Likewise.
72995         * lib/se-context.in.h: Likewise.
72996         * lib/se-selinux.in.h: Likewise.
72997         * lib/sockets.c: Likewise.
72998         * lib/symlink.c: Likewise.
72999         * lib/symlinkat.c: Likewise.
73000         * lib/unicodeio.c: Likewise.
73001         * lib/unistr.h: Likewise.
73002         * tests/test-areadlink.c: Likewise.
73003         * tests/test-areadlinkat.c: Likewise.
73004         * tests/test-filenamecat.c: Likewise.
73005         * tests/test-fseeko.c: Likewise.
73006         * tests/test-ftello.c: Likewise.
73007         * tests/test-getdate.c: Likewise.
73008         * tests/test-getgroups.c: Likewise.
73009         * tests/test-gethostname.c: Likewise.
73010         * tests/test-quotearg.c: Likewise.
73011         * tests/test-version-etc.c: Likewise.
73012         * tests/test-xalloc-die.c: Likewise.
73013         * tests/test-xfprintf-posix.c: Likewise.
73014         * tests/test-xprintf-posix.c: Likewise.
73015         * tests/test-xvasprintf.c: Likewise.
73017         tests: avoid compiler warnings
73018         * tests/test-fcntl.c (main): Delete unused parameters.
73019         * tests/test-freopen-safer.c (main): Likewise.
73020         * tests/test-xalloc-die.c (main): Mark unused parameters.
73021         * tests/test-fseeko.c (main): Likewise.
73022         * tests/test-ftello.c (main): Likewise.
73023         * tests/test-nanosleep.c (main): Avoid declaration warning.
73024         * tests/test-sleep.c (main): Likewise.
73025         * tests/test-unsetenv.c (main): Silence warning about string
73026         literal.
73027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
73029 2009-12-23  Bruno Haible  <bruno@clisp.org>
73031         * tests/test-localename.c (test_locale_name): New function, extracted
73032         from main. Also test mixed situations.
73033         (test_locale_name_posix, test_locale_name_environ,
73034         test_locale_name_default): New functions.
73035         (main): Invoke them all.
73036         * modules/localename-tests (configure.ac): Test for newlocale.
73038 2009-12-23  Bruno Haible  <bruno@clisp.org>
73040         unistd: Ensure getcwd gets declared before being overridden.
73041         * lib/unistd.in.h: Conditionally include <io.h>.
73043 2009-12-22  Bruno Haible  <bruno@clisp.org>
73045         wchar: Diagnose broken combination of glibc and gcc versions and flags.
73046         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
73047         (gl_WCHAR_H): Invoke it.
73048         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
73049         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
73050         Reported by Karl Berry <karl@freefriends.org>.
73052 2009-12-22  Eric Blake  <ebb9@byu.net>
73054         math, unistd: avoid redundant includes
73055         * lib/math.in.h (isnan): No need to re-include <math.h>.
73056         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
73058         getsubopt: work around cygwin bug
73059         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
73060         avoid conflicting with system getsubopt.
73061         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
73062         bug.
73064         getopt: synchronize from glibc
73065         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
73066         parameter order.  Adjust all callers.
73067         (_getopt_internal_r, main): Adjust quoting in error messages.
73068         Drop considerations for outdated POSIX 1003.2 error message.
73069         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
73070         callers.
73071         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
73073         test-getopt: test stderr behavior
73074         * modules/getopt-posix-tests (Depends-on): Add dup2.
73075         * tests/test-getopt.c (ASSERT): Avoid stderr.
73076         (main): Move stderr to a temporary file.
73077         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
73078         Instead, add parameter to inform caller if output occurred.
73079         (test_getopt): Adjust all existing tests to expect silence, and
73080         add new tests of leading ":".
73081         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73082         glibc shortcomings with leading "-:" or "+:" in optstring.
73083         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73084         Likewise.
73085         * doc/posix-functions/getopt.texi (getopt): Likewise.
73087         test-getopt: enhance test
73088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
73089         supports optind=0.
73090         * tests/test-getopt.c (OPTIND_MIN): Move...
73091         * tests/test-getopt.h (OPTIND_MIN): ...here.
73092         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
73093         Require that optind=0 works, since modern BSD supports it in
73094         addition to optreset, and since coreutils expects it.
73095         (test_getopt_long_only): New test.
73096         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73097         glibc shortcomings with 'W;', and enforcement of optind=0.
73098         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73099         Likewise.
73101 2009-12-21  Bruno Haible  <bruno@clisp.org>
73103         localename: Improvements for MacOS X and Cygwin.
73104         * lib/localename.h (gl_locale_name_environ): New declaration.
73105         * lib/localename.c (gl_locale_name_environ): New function, extracted from
73106         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
73107         (gl_locale_name_posix): Invoke it.
73108         (gl_locale_name_default): Add comments. Use Windows native API also on
73109         Cygwin.
73111 2009-12-21  Bruno Haible  <bruno@clisp.org>
73113         Update list of Win32 locale ids.
73114         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
73115         (LANG_SAMI): Renamed from LANG_SAAMI.
73116         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
73117         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
73118         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
73119         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
73120         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
73121         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
73122         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
73123         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
73124         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
73125         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
73126         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
73127         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
73128         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
73129         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
73130         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
73131         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
73132         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
73133         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
73134         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
73135         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
73136         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
73137         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
73138         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
73139         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
73140         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
73141         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
73142         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
73143         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
73144         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
73145         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
73146         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
73147         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
73148         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
73149         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
73150         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
73151         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
73152         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
73153         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
73154         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
73155         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
73156         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
73157         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
73158         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
73159         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
73160         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
73161         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
73162         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
73163         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
73164         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
73165         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
73166         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
73167         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
73168         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
73169         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
73170         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
73171         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
73172         Add more languages and countries for Sami, Sorbian. Add more countries
73173         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
73174         for Pashto. Change country for Syriac, Tswana.
73176 2009-12-21  Eric Blake  <ebb9@byu.net>
73178         test-utimens: avoid spurious failure
73179         * tests/test-chown.h (nap): Factor...
73180         * tests/nap.h: ...into new file.
73181         * tests/test-lchown.h (nap): Avoid duplication.
73182         * tests/test-utimens-common.h (nap): Use shared implementation,
73183         necessary on file systems with 1-second resolution.
73184         * modules/chown-tests (Files): Include new file.
73185         * modules/fdutimensat-tests (Files): Likewise.
73186         * modules/futimens-tests (Files): Likewise.
73187         * modules/lchown-tests (Files): Likewise.
73188         * modules/openat-tests (Files): Likewise.
73189         * modules/utimens-tests (Files): Likewise.
73190         * modules/utimensat-tests (Files): Likewise.
73192 2009-12-19  Eric Blake  <ebb9@byu.net>
73194         futimens, utimensat: work around Linux bug
73195         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
73196         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73197         * lib/utimensat.c (rpl_utimensat): Work around it.
73198         * lib/futimens.c (rpl_futimens): Adjust comment.
73200         utimens: work around Linux ctime bug
73201         * lib/utimens.c (detect_ctime_bug): New helper function.
73202         (update_timespec): Differentiate between workaround needed for
73203         this bug vs. what is needed for systems that lack utimensat.
73204         (fdutimens, lutimens): Work around bug.
73206         utimens: check for ctime update
73207         * tests/test-utimens-common.h (check_ctime): Define.
73208         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
73209         * tests/test-futimens.h (test_futimens): Likewise.
73210         * tests/test-lutimens.h (test_lutimens): Likewise.
73211         * doc/posix-functions/futimens.texi (futimens): Document the bug.
73212         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73214 2009-12-19  Bruno Haible  <bruno@clisp.org>
73216         dprintf-posix: Check against memory leak fixed on 2009-12-15.
73217         * tests/test-dprintf-posix2.sh: New file.
73218         * tests/test-dprintf-posix2.c: New file.
73219         * modules/dprintf-posix-tests (Files): Add them.
73220         (configure.ac): Check for getrlimit and setrlimit.
73221         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73223 2009-12-19  Bruno Haible  <bruno@clisp.org>
73225         fprintf-posix: Check against memory leak fixed on 2009-12-15.
73226         * tests/test-fprintf-posix3.sh: New file.
73227         * tests/test-fprintf-posix3.c: New file.
73228         * modules/fprintf-posix-tests (Files): Add them.
73229         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73231 2009-12-19  Eric Blake  <ebb9@byu.net>
73233         dirfd: fix prototype
73234         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
73235         * lib/dirfd.c (dirfd): Likewise.
73237         canonicalize: reduce memory usage
73238         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
73239         allocation to size.
73240         Reported by Solar Designer <solar@openwall.com>.
73242 2009-12-19  Bruno Haible  <bruno@clisp.org>
73244         New module attribute 'Applicability'.
73245         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
73246         * gnulib-tool: New option --extract-applicability.
73247         (func_usage): Document it.
73248         (sed_extract_prog): Recognize it.
73249         (func_get_applicability): New function.
73250         (func_import): Generalize handling of 'link-warning' module.
73251         * modules/link-warning (Applicability): New section.
73252         * modules/arg-nonnull (Applicability): New section.
73253         Repoted by Simon Josefsson <simon@josefsson.org>.
73255 2009-12-19  Bruno Haible  <bruno@clisp.org>
73257         fflush: tweak
73258         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
73259         * lib/fseeko.c (rpl_fseeko): Likewise.
73261 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
73263         * lib/gl_list.h: Fix typo in comment.
73265 2009-12-16  Eric Blake  <ebb9@byu.net>
73267         fcntl: use to simplify other modules
73268         * modules/cloexec (Depends-on): Add fcntl.
73269         * modules/fchdir (Depends-on): Likewise.
73270         * modules/fd-safer-flag (Depends-on): Likewise.
73271         * modules/unistd-safer (Depends-on): Likewise.
73272         * modules/dup3 (configure.ac): Set module indicator.
73273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
73274         missing.
73275         * lib/fchdir.c (_gl_register_dup): Fix comment.
73276         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
73277         * lib/dup-safer.c (dup_safer): Likewise.
73278         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
73279         * lib/dup3.c (dup3): Likewise.
73280         * tests/test-fchdir.c (main): Enhance test.
73281         Fixes a dup_cloexec bug reported by Ondřej Vašík.
73283         fcntl: port portions of fcntl to mingw
73284         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
73285         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
73286         replacement for mingw.
73287         * modules/fcntl (Description): Update.
73288         (Depends-on): Add dup2.
73289         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
73290         * modules/fcntl-h (Makefile.am): Substitute it.
73291         * lib/fcntl.in.h (fcntl): Update declaration.
73292         (F_DUPFD, F_GETFD): New macros, when needed.
73293         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73294         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
73295         * tests/test-fcntl.c (check_flags, main): Enhance test for items
73296         we now guarantee.
73298         fcntl: work around cygwin bug in F_DUPFD
73299         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
73300         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
73301         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
73302         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
73303         * doc/posix-functions/fcntl.texi (fcntl): Document it.
73305         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
73306         * modules/fcntl (Files): List new files.
73307         (configure.ac): Run a test.
73308         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
73309         * lib/fcntl.c (rpl_fcntl): Likewise.
73310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
73311         (gl_FCNTL_H): Always replace fcntl.h.
73312         * modules/fcntl-h (Makefile.am): Substitute witnesses.
73313         * lib/fcntl.in.h (fcntl): Declare replacement.
73314         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
73315         needed, plus a witness.
73316         * doc/posix-functions/fcntl.texi (fcntl): Document this.
73317         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
73318         * tests/test-fcntl.c: New file.
73319         * modules/fcntl-tests: Likewise.
73321         binary-io: avoid potential compilation warning
73322         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
73323         directives.
73325         fflush: avoid compilation error on NetBSD
73326         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
73327         between off_t and fpos_t, since the latter is sometimes a struct.
73328         * lib/fseeko.c (rpl_fseeko): Likewise.
73329         Reported by Alexander Nasonov <alnsn@yandex.ru>.
73331 2009-12-15  Eric Blake  <ebb9@byu.net>
73333         fcntl-h, stdio, sys_ioctl: fix declarations
73334         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
73335         function must not take arguments.
73336         * lib/sys_ioctl.in.h (ioctl): Likewise.
73337         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
73338         (open): Add a link warning.
73340 2009-12-15  Jim Meyering  <meyering@redhat.com>
73342         areadlink, areadlink-with-size: relax license to LGPLv2+
73343         * modules/areadlink (License): Relax to LGPLv2+.
73344         * modules/areadlink-with-size (License): Likewise.
73346 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
73347             Bruno Haible  <bruno@clisp.org>
73349         *printf: Fix memory leak.
73350         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
73351         * lib/vfprintf.c (vfprintf): Likewise.
73352         * lib/dprintf.c (dprintf): Likewise.
73353         * lib/vdprintf.c (vdprintf): Likewise.
73355 2009-12-14  Eric Blake  <ebb9@byu.net>
73357         accept4: adjust module dependencies
73358         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
73360         utimens: one more try at avoiding compiler warning
73361         * lib/utimens.c (lutimens): Lower scope of result.
73363 2009-12-13  Bruno Haible  <bruno@clisp.org>
73365         Move the malloc checking from module 'list' to new module 'xlist'.
73366         * modules/xlist: New file.
73367         * lib/gl_xlist.h: New file.
73368         * lib/gl_xlist.c: New file.
73369         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
73370         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
73371         gl_list_add_last, gl_list_add_before, gl_list_add_after,
73372         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
73373         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
73374         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
73375         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
73376         gl_sortedlist_nx_add): New declarations.
73377         (struct gl_list_implementation): Rename and change methods accordingly.
73378         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
73379         (gl_list_nx_create): Renamed from gl_list_create.
73380         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73381         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73382         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73383         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73384         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73385         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73386         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73387         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73388         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73389         gl_list_create_empty.
73390         (gl_list_nx_create): Renamed from gl_list_create.
73391         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73392         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73393         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73394         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73395         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73396         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73397         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73398         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73399         * lib/gl_array_list.c: Don't include xalloc.h.
73400         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73401         NULL upon out-of-memory.
73402         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73403         out-of-memory.
73404         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73405         Change return type to 'int'.
73406         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73407         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73408         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73409         upon out-of-memory.
73410         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73411         upon out-of-memory.
73412         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73413         upon out-of-memory.
73414         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73415         upon out-of-memory.
73416         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73417         out-of-memory.
73418         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73419         Update.
73420         (gl_array_list_implementation): Update.
73421         * lib/gl_carray_list.c: Don't include xalloc.h.
73422         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73423         Return NULL upon out-of-memory.
73424         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73425         out-of-memory.
73426         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73427         Change return type to 'int'.
73428         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73429         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73430         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73431         upon out-of-memory.
73432         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73433         upon out-of-memory.
73434         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73435         out-of-memory.
73436         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73437         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73438         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73439         Update.
73440         (gl_carray_list_implementation): Update.
73441         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73442         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73443         gl_linked_create_empty. Return NULL upon out-of-memory.
73444         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73445         out-of-memory.
73446         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73447         Change return type to 'int'. Return -1 upon out-of-memory.
73448         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73449         out-of-memory.
73450         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73451         upon out-of-memory.
73452         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73453         upon out-of-memory.
73454         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73455         NULL upon out-of-memory.
73456         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73457         upon out-of-memory.
73458         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73459         out-of-memory.
73460         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73461         Update.
73462         * lib/gl_linked_list.c: Don't include xalloc.h.
73463         (gl_linked_list_implementation): Update.
73464         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73465         (add_to_bucket): Change return type to 'int'.
73466         (gl_linkedhash_list_implementation): Update.
73467         * lib/gl_anytree_list1.h (free_subtree): New function.
73468         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73469         gl_tree_create_empty. Return NULL upon out-of-memory.
73470         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73471         Change return type to 'int'. Return -1 upon out-of-memory.
73472         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73473         out-of-memory.
73474         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73475         (gl_tree_remove_node): New function, moved here from
73476         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73477         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73478         Update.
73479         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73480         malloc, not xmalloc. Return NULL upon out-of-memory.
73481         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73482         out-of-memory.
73483         (gl_tree_remove_node_from_tree): New function, extracted from
73484         gl_tree_remove_node.
73485         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73486         upon out-of-memory.
73487         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73488         out-of-memory.
73489         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73490         upon out-of-memory.
73491         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73492         upon out-of-memory.
73493         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73494         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73495         not xmalloc. Return NULL upon out-of-memory.
73496         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73497         out-of-memory.
73498         (gl_tree_remove_node_from_tree): New function, extracted from
73499         gl_tree_remove_node.
73500         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73501         upon out-of-memory.
73502         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73503         out-of-memory.
73504         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73505         upon out-of-memory.
73506         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73507         upon out-of-memory.
73508         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73509         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73510         gl_anytree_list1.h before gl_anyavltree_list2.h.
73511         (gl_avltree_list_implementation): Update.
73512         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73513         gl_anytree_list1.h before gl_anyavltree_list2.h.
73514         (gl_rbtree_list_implementation): Update.
73515         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73516         Change return type to 'int'. Return -1 upon out-of-memory. Use
73517         __builtin_expect.
73518         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73519         (gl_avltreehash_list_implementation): Update.
73520         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73521         (gl_rbtreehash_list_implementation): Update.
73522         * modules/array-list (Depends-on): Remove xalloc.
73523         * modules/carray-list (Depends-on): Likewise.
73524         * modules/linked-list (Depends-on): Likewise.
73525         * modules/linkedhash-list (Depends-on): Likewise.
73526         * modules/avltree-list (Depends-on): Likewise.
73527         * modules/rbtree-list (Depends-on): Likewise.
73528         * modules/avltreehash-list (Depends-on): Likewise.
73529         * modules/rbtreehash-list (Depends-on): Likewise.
73531         * modules/xsublist: New file.
73532         * lib/gl_xsublist.h: New file.
73533         * lib/gl_xsublist.c: New file.
73534         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73535         (gl_sublist_nx_create): New declaration.
73536         * lib/gl_sublist.c: Don't include xalloc.h.
73537         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73538         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73539         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73540         Change return type to 'int'. Return -1 upon out-of-memory.
73541         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73542         upon out-of-memory.
73543         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73544         NULL upon out-of-memory.
73545         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73546         upon out-of-memory.
73547         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73548         NULL upon out-of-memory.
73549         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73550         NULL upon out-of-memory.
73551         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73552         upon out-of-memory.
73553         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73554         (gl_sublist_list_implementation): Update.
73555         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73556         upon out-of-memory.
73557         * modules/sublist (Depends-on): Remove xalloc.
73559         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73560         * tests/test-carray_list.c: Likewise.
73561         * tests/test-linked_list.c: Likewise.
73562         * tests/test-linkedhash_list.c: Likewise.
73563         * tests/test-avltree_list.c: Likewise.
73564         * tests/test-rbtree_list.c: Likewise.
73565         * tests/test-avltreehash_list.c: Likewise.
73566         * tests/test-rbtreehash_list.c: Likewise.
73567         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73568         * modules/carray-list-tests (Makefile.am): Likewise.
73569         * modules/linked-list-tests (Makefile.am): Likewise.
73570         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73571         * modules/avltree-list-tests (Makefile.am): Likewise.
73572         * modules/rbtree-list-tests (Makefile.am): Likewise.
73573         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73574         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73576         * NEWS: Mention the changes.
73578         * lib/clean-temp.c: Include gl_xlist.h.
73579         * modules/clean-temp (Depends-on): Add xlist.
73581         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73582         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73584         * tests/test-array_oset.c: Include gl_xlist.h.
73585         * modules/array-oset-tests (Depends-on): Add xlist.
73587         Reported by José E. Marchesi <jemarch@gnu.org>.
73589 2009-12-13  Bruno Haible  <bruno@clisp.org>
73591         Move the malloc checking from module 'oset' to new module 'xoset'.
73592         * modules/xoset: New file.
73593         * lib/gl_xoset.h: New file.
73594         * lib/gl_xoset.c: New file.
73595         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73596         declarations.
73597         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73598         (struct gl_oset_implementation): Rename and change methods accordingly.
73599         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73600         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73601         'int'. Mark as __warn_unused_result__.
73602         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73603         gl_oset_create_empty.
73604         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73605         'int'.
73606         * lib/gl_array_oset.c: Don't include xalloc.h.
73607         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73608         malloc, not xmalloc.
73609         (grow): Change return type to 'int'. Don't call xalloc_die.
73610         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73611         to 'int'.
73612         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73613         'int'.
73614         (gl_array_oset_implementation): Update.
73615         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73616         gl_tree_create_empty.
73617         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73618         'int'.
73619         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73620         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73621         xmalloc.
73622         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73623         not xmalloc.
73624         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73625         xmalloc.
73626         (gl_avltree_oset_implementation): Update.
73627         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73628         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73629         xmalloc.
73630         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73631         not xmalloc.
73632         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73633         xmalloc.
73634         (gl_rbtree_oset_implementation): Update.
73635         * modules/array-oset (Depends-on): Remove xalloc.
73636         * modules/avltree-oset (Depends-on): Likewise.
73637         * modules/rbtree-oset (Depends-on): Likewise.
73638         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73639         * tests/test-avltree_oset.c: Likewise.
73640         * tests/test-rbtree_oset.c: Likewise.
73641         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73642         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73643         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73644         * NEWS: Mention the change.
73646 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73648         maint.mk: allow a project to override release-prep commands
73649         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73650         commands into a new rule.
73651         (release-prep): New rule.
73652         (release-prep-hook): New overridable variable.
73654 2009-12-13  Bruno Haible  <bruno@clisp.org>
73656         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73658 2009-12-13  Jim Meyering  <meyering@redhat.com>
73660         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73661         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73663 2009-12-12  Bruno Haible  <bruno@clisp.org>
73665         duplocale: Tweak.
73666         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73668 2009-12-12  Karl Berry  <karl@gnu.org>
73670         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73672 2009-12-12  Bruno Haible  <bruno@clisp.org>
73674         * m4/po.m4: Undo incorrect untabification.
73676 2009-12-12  Bruno Haible  <bruno@clisp.org>
73678         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73679         * modules/c-strtod (Depends-on): Add locale.
73680         * modules/c-strtold (Depends-on): Likewise.
73682 2009-12-12  Bruno Haible  <bruno@clisp.org>
73684         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73686 2009-12-11  Eric Blake  <ebb9@byu.net>
73688         setenv: relax requirement in light of POSIX ruling
73689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73690         not NULL.
73691         * tests/test-setenv.c (main): Relax test.
73692         * tests/test-unsetenv.c (main): Likewise.
73693         * doc/posix-functions/setenv.texi (setenv): Document this.
73694         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73696 2009-12-11  Bruno Haible  <bruno@clisp.org>
73698         New module 'fd-safer-flag'.
73699         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73700         * lib/dup-safer.c (dup_safer_flag): Remove function.
73701         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73702         * lib/fd-safer.c (fd_safer_flag): Remove function.
73703         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73704         * modules/cloexec (configure.ac): Drop indicator macro.
73705         * modules/fd-safer-flag: New file.
73706         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73707         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73708         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73710 2009-12-11  Bruno Haible  <bruno@clisp.org>
73712         Tests for module 'nl_langinfo'.
73713         * modules/nl_langinfo-tests: New file.
73714         * tests/test-nl_langinfo.sh: New file.
73715         * tests/test-nl_langinfo.c: New file.
73717         New module 'nl_langinfo'.
73718         * lib/nl_langinfo.c: New file.
73719         * m4/nl_langinfo.m4: New file.
73720         * modules/nl_langinfo: New file.
73721         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73723 2009-12-11  Bruno Haible  <bruno@clisp.org>
73725         Tests for module 'langinfo'.
73726         * modules/langinfo-tests: New file.
73727         * tests/test-langinfo.c: New file.
73729         New module 'langinfo'.
73730         * lib/langinfo.in.h: New file.
73731         * m4/langinfo_h.m4: New file.
73732         * modules/langinfo: New file.
73733         * doc/posix-headers/langinfo.texi: Mention the new module.
73735 2009-12-11  Bruno Haible  <bruno@clisp.org>
73737         * lib/config.charset: Untabify.
73739 2009-12-11  Bruno Haible  <bruno@clisp.org>
73741         * modules/unistd-safer (configure.ac): Drop indicator macro.
73743 2009-12-11  Bruno Haible  <bruno@clisp.org>
73745         Move pipe2-safer code to its own file.
73746         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73747         * lib/pipe-safer.c (pipe2_safer): Remove function.
73748         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73749         (Makefile.am): Add it to lib_SOURCES.
73751 2009-12-10  Bruno Haible  <bruno@clisp.org>
73753         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73755 2009-12-10  Bruno Haible  <bruno@clisp.org>
73757         Declare which arguments expect non-NULL values, for GCC and clang.
73758         * build-aux/arg-nonnull.h: New file.
73759         * modules/arg-nonnull: New file.
73760         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73761         (inet_ntop, inet_pton): Use it.
73762         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73763         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73764         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73765         (open, openat): Use it.
73766         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73767         (fnmatch): Use it.
73768         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73769         (getopt, getopt_long, getopt_long_only): Use it.
73770         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73771         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73772         Use it.
73773         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73774         (iconv_open): Use it.
73775         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73776         (strtoimax, strtoumax): Use it.
73777         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73778         (duplocale): Use it.
73779         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73780         (frexp, frexpl): Use it.
73781         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73782         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73783         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73784         (tsearch, tfind, tdelete, twalk): Use it.
73785         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73786         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73787         sigpending): Use it.
73788         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73789         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73790         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73791         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73792         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
73793         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
73794         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
73795         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
73796         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
73797         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
73798         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
73799         Use it.
73800         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
73801         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
73802         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
73803         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
73804         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
73805         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
73806         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
73807         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
73808         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
73809         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
73810         strtoull, unsetenv): Use it.
73811         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
73812         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
73813         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
73814         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
73815         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
73816         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
73817         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73818         (strcasecmp, strncasecmp): Use it.
73819         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73820         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73821         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73822         rpl_setsockopt): Use it.
73823         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73824         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73825         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73826         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73827         (gettimeofday): Use it.
73828         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73829         (times): Use it.
73830         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73831         (uname): Use it.
73832         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73833         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73834         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73835         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73836         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73837         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73838         unlinkat, write): Use it.
73839         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73840         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73841         * lib/argv-iter.h: Include arg-nonnull.h.
73842         (_ATTRIBUTE_NONNULL_): Remove macro.
73843         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73844         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73845         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73846         optimization.
73847         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73848         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73849         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73850         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73851         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73852         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73853         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73854         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73855         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73856         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73857         * modules/dirent (Depends-on): Add arg-nonnull.
73858         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73859         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73860         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73861         * modules/fnmatch (Depends-on): Add arg-nonnull.
73862         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73863         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73864         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73865         * modules/glob (Depends-on): Add arg-nonnull.
73866         (Makefile.am): Insert arg-nonnull.h into glob.h.
73867         * modules/iconv_open (Depends-on): Add arg-nonnull.
73868         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73869         * modules/inttypes (Depends-on): Add arg-nonnull.
73870         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73871         * modules/locale (Depends-on): Add arg-nonnull.
73872         (Makefile.am): Insert arg-nonnull.h into locale.h.
73873         * modules/math (Depends-on): Add arg-nonnull.
73874         (Makefile.am): Insert arg-nonnull.h into math.h.
73875         * modules/netdb (Depends-on): Add arg-nonnull.
73876         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73877         * modules/search (Depends-on): Add arg-nonnull.
73878         (Makefile.am): Insert arg-nonnull.h into search.h.
73879         * modules/signal (Depends-on): Add arg-nonnull.
73880         (Makefile.am): Insert arg-nonnull.h into signal.h.
73881         * modules/spawn (Depends-on): Add arg-nonnull.
73882         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73883         * modules/stdio (Depends-on): Add arg-nonnull.
73884         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73885         * modules/stdlib (Depends-on): Add arg-nonnull.
73886         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73887         * modules/string (Depends-on): Add arg-nonnull.
73888         (Makefile.am): Insert arg-nonnull.h into string.h.
73889         * modules/strings (Depends-on): Add arg-nonnull.
73890         (Makefile.am): Insert arg-nonnull.h into strings.h.
73891         * modules/sys_socket (Depends-on): Add arg-nonnull.
73892         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73893         * modules/sys_stat (Depends-on): Add arg-nonnull.
73894         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73895         * modules/sys_time (Depends-on): Add arg-nonnull.
73896         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73897         * modules/sys_times (Depends-on): Add arg-nonnull.
73898         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73899         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73900         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73901         * modules/time (Depends-on): Add arg-nonnull.
73902         (Makefile.am): Insert arg-nonnull.h into time.h.
73903         * modules/unistd (Depends-on): Add arg-nonnull.
73904         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73905         * modules/wchar (Depends-on): Add arg-nonnull.
73906         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73907         * modules/argv-iter (Depends-on): Add arg-nonnull.
73908         * tests/test-canonicalize.c (null_ptr): New function.
73909         (main): Use it.
73910         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73911         (main): Use it.
73912         * tests/test-memmem.c (null_ptr): New function.
73913         (main): Use it.
73914         Reported by Jim Meyering.
73916 2009-12-10  Bruno Haible  <bruno@clisp.org>
73918         Use spaces for indentation, not tabs.
73919         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73920         * m4/*.m4: Untabify.
73921         * build-aux/*.h: Untabify.
73922         * tests/**/*.[hc]: Untabify.
73923         * README: New section "Indent with spaces, not TABs", based on
73924         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73925         * NEWS: Mention the change.
73927 2009-12-10  Bruno Haible  <bruno@clisp.org>
73929         pty test: Fix link error.
73930         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73931         test_pty_LDADD.
73933 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73935         * modules/pty: New file.
73936         * modules/pty-tests: New file.
73937         * m4/pty.m4: New file.
73938         * tests/test-pty.c: New file.
73939         * doc/glibc-headers/pty.texi: Modified.
73940         * doc/glibc-functions/forkpty.texi: Modified.
73941         * doc/glibc-functions/openpty.texi: Modified.
73943 2009-12-10  Bruno Haible  <bruno@clisp.org>
73945         Avoid syntax error in C++ mode.
73946         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73948 2009-12-10  Bruno Haible  <bruno@clisp.org>
73950         Use sed with option -e.
73951         * gnulib-tool (func_version, func_emit_copyright_notice,
73952         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73953         option -e to sed.
73954         * modules/link-warning (Makefile.am): Likewise.
73956 2009-12-10  Jim Meyering  <meyering@redhat.com>
73958         mgetgroups: do not write bytes beyond end of malloc'd buffer
73959         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73960         username, we call getgroups with a one-element-shorter buffer,
73961         but still told it the length was original, max_n_groups.
73963 2009-12-09  Eric Blake  <ebb9@byu.net>
73965         cloexec: relax license
73966         * modules/cloexec (Maintainer): Add myself.
73967         (License): Use LGPL, not GPL.
73969         link-warning: optimize generation
73970         * modules/link-warning (Makefile.am): Reduce process usage.
73972 2009-12-09  Bruno Haible  <bruno@clisp.org>
73974         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73975         workaround was added on 2009-11-17.
73977 2009-12-09  Jim Meyering  <meyering@redhat.com>
73978             Bruno Haible  <bruno@clisp.org>
73980         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73981         * modules/link-warning (Makefile.am): Make the comment-removing sed
73982         command more robust in the face of bootstrap-prepended comment lines.
73984 2009-12-09  Bruno Haible  <bruno@clisp.org>
73986         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73987         most one group.
73989 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73990             Bruno Haible  <bruno@clisp.org>
73992         * build-aux/link-warning.h: Add copyright notice.
73993         * modules/link-warning (Makefile.am): Generate link-warning.h from
73994         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73995         * NEWS: Mention change in link-warning module.
73996         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73997         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73998         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73999         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
74000         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
74001         * modules/math (Makefile.am): Add dependency to math.h.
74002         * modules/search (Makefile.am): Add dependency to search.h.
74003         * modules/signal (Makefile.am): Add dependency to signal.h.
74004         * modules/spawn (Makefile.am): Add dependency to spawn.h.
74005         * modules/stdio (Makefile.am): Add dependency to stdio.h.
74006         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
74007         * modules/string (Makefile.am): Add dependency to string.h.
74008         * modules/strings (Makefile.am): Add dependency to strings.h.
74009         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
74010         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
74011         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
74012         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
74013         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
74014         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
74015         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
74016         * modules/unistd (Makefile.am): Add dependency to unistd.h.
74017         * modules/wchar (Makefile.am): Add dependency to wchar.h.
74019 2009-12-09  Bruno Haible  <bruno@clisp.org>
74021         fchdir: Optimize away rpl_fstat when possible.
74022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
74023         REPLACE_OPEN_DIRECTORY.
74024         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
74026 2009-12-09  Bruno Haible  <bruno@clisp.org>
74028         * lib/fchdir.c: Update comment.
74030 2009-12-09  Bruno Haible  <bruno@clisp.org>
74032         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
74034 2009-12-08  Eric Blake  <ebb9@byu.net>
74036         fchdir: avoid memory leak on re-registration.
74037         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
74039 2009-12-08  Jim Meyering  <meyering@redhat.com>
74041         init.sh: avoid Solaris 10 /bin/sh portability problem
74042         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
74043         sourced script:
74044           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
74045           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
74046           bar
74047         tests/init.sh relied on that, accepting a --set-path=DIR argument,
74048         and two tests used that idiom.
74049         * tests/init.sh: Update suggested usage comments.
74050         (path_prepend_): New function, to be used in place
74051         of the --src-path=DIR option.
74052         (setup_): Move PATH-prepending code into path_prepend_.
74053         * tests/test-pread.sh: Adapt to new usage.
74054         * tests/test-xalloc-die.sh: Likewise.
74056 2009-12-08  Simon Josefsson  <simon@josefsson.org>
74058         * doc/gnulib.texi (Glibc pty.h): Add.
74059         * doc/glibc-functions/forkpty.texi: Add.
74060         * doc/glibc-functions/openpty.texi: Add.
74061         Suggested by Bruno Haible.
74063 2009-12-08  Eric Blake  <ebb9@byu.net>
74065         fchdir: fix logic bugs
74066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
74067         * tests/test-fchdir.c (main): Enhance test.
74068         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
74069         is in use.
74071         dup2: fix logic bugs
74072         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
74073         REPLACE_DUP2 to decide when rpl_dup2 is needed.
74074         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
74075         exists.
74076         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
74078 2009-12-07  Eric Blake  <ebb9@byu.net>
74080         unlink: fix m4 detection
74081         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
74083         unistd-safer: add unit test
74084         * modules/unistd-safer-tests: New file.
74085         * tests/test-dup-safer.c: Likewise.
74086         * tests/test-cloexec.c (setmode): Avoid compiler warning.
74087         * tests/test-dup2.c (setmode): Likewise.
74088         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
74090         cloexec: preserve text vs. binary across dup_cloexec
74091         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
74092         mode.
74093         * modules/dup2-tests (Depends-on): Add binary-io.
74094         * modules/cloexec-tests (Depends-on): Likewise.
74095         * tests/test-dup2.c (setmode, is_mode): New helpers.
74096         (main): Add tests that translation mode is preserved.
74097         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
74098         Reported by Bruno Haible.
74100         mgetgroups: reduce duplicate listings
74101         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
74102         resulting array.
74103         * tests/test-chown.h (test_chown): Simplify client.
74104         * tests/test-lchown.h (test_lchown): Likewise.
74106 2009-12-06  Bruno Haible  <bruno@clisp.org>
74108         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
74109         value.
74111 2009-12-06  Bruno Haible  <bruno@clisp.org>
74113         * lib/progname.c: Include stdio.h, stdlib.h.
74114         (set_program_name): Reject a NULL argument.
74116 2009-12-05  Eric Blake  <ebb9@byu.net>
74118         pipe2-safer: new module
74119         * modules/pipe2-safer: New file.
74120         * lib/unistd-safer.h (pipe2_safer): New prototype.
74121         * lib/unistd--.h (pipe2): New wrapper.
74122         * lib/pipe-safer.c (pipe2_safer): New function.
74123         * modules/pipe (Depends-on): Add pipe2-safer.
74124         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
74126         stdlib-safer: preserve cloexec flag for mkostemp[s]
74127         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
74128         fd_safer_flag.
74130         unistd-safer: allow preservation of cloexec status via flag
74131         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
74132         prototypes.
74133         * lib/dup-safer.c (dup_safer_flag): New function.
74134         * lib/fd-safer.c (fd_safer_flag): Likewise.
74135         * modules/cloexec (configure.ac): Set witness.
74137         test-dup2: enhance test
74138         * modules/dup2-tests (Depends-on): Add cloexec.
74139         * tests/test-dup2.c (main): Enhance test.
74141         cloexec: add dup_cloexec
74142         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
74143         header and comments.
74144         * lib/cloexec.c (set_cloexec_flag): Add comments.
74145         (dup_cloexec): New function, with mingw implementation borrowed
74146         from...
74147         * lib/w32spawn.h (dup_noinherit): ...here.
74148         * modules/execute (Depends-on): Add cloexec.
74149         * modules/pipe (Depends-on): Likewise.
74150         * modules/cloexec (Depends-on): Add dup2.
74151         * modules/cloexec-tests (Files): New file.
74152         * tests/test-cloexec.c: Likewise.
74154         test-xalloc-die: fix test for mingw
74155         * modules/xalloc-die-tests (Files): Add tests/init.sh.
74156         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
74157         directory and .exe suffix off argv[0] output.
74159         test-fseeko: fix test for mingw
74160         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
74161         than undefining fseek, so test will pass on mingw.
74163 2009-12-05  Bruno Haible  <bruno@clisp.org>
74165         * lib/progname.h (set_program_name): Clarify specification.
74166         * lib/progname.c (set_program_name): Likewise.
74167         Reported by Jim Meyering.
74169 2009-12-05  Jim Meyering  <meyering@redhat.com>
74171         maint.mk: backslash-escape parens in default regexp
74172         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
74173         backslash-escape the literal parentheses.
74175         maint.mk: news-date-check: use grep -E
74176         * top/maint.mk (today): Define a Make variable, not a...
74177         (news-date-check): ...shell variable.
74178         (news-date-regexp): Use the Make variable.
74179         Use grep's -E option.  Change the failing diagnostic to mention
74180         the variable, $(news-date-regexp).
74182 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
74184         maintainer-makefile: allow customization of NEWS entry format
74185         * top/maint.mk (news-date-regexp): New overridable variable.
74186         (news-date-check): Use it.
74188 2009-12-04  Eric Blake  <ebb9@byu.net>
74190         mgetgroups: add xgetgroups, and avoid ENOSYS failures
74191         * lib/mgetgroups.h (xgetgroups): New prototype.
74192         * lib/mgetgroups.c (xgetgroups): New wrapper.
74193         (mgetgroups): Handle ENOSYS.
74194         * modules/mgetgroups (Depends-on): Add realloc.
74195         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
74197         mgetgroups: avoid argument promotion issues with -1
74198         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
74199         for invalid gid_t.
74200         * tests/test-chown.h (getegid, test_chown): Likewise.
74201         * tests/test-lchown.h (getegid, test_lchown): Likewise.
74203 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
74205         exclude: Fix header file problems.
74206         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
74208 2009-12-01  Jim Meyering  <meyering@redhat.com>
74210         fts: fts_open: do not let an empty string cause immediate failure
74211         This is required in support of GNU rm, for which the command
74212         "rm A '' B" must process and remove both A and B, in spite of
74213         the empty string argument.
74214         * lib/fts.c (fts_open): Do not let the presence of an empty string
74215         cause fts_open to fail immediately.  Most fts-using tools must be
74216         able to process all arguments, in order, and can be expected to
74217         diagnose such arguments themselves.
74219 2009-11-30  Eric Blake  <ebb9@byu.net>
74221         utimens: fix compilation error
74222         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
74223         Declare variable at right scope.
74225 2009-11-29  Jim Meyering  <meyering@redhat.com>
74227         bootstrap: handle perl-5.11's changed --version output
74228         * build-aux/bootstrap (get_version): Handle perl separately,
74229         since perl-5.11's --version output is different.
74231 2009-11-28  Jim Meyering  <meyering@redhat.com>
74233         userspec: depend on the inttostr module, too
74234         * modules/userspec (Depends-on): Add inttostr.
74236         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
74237         * lib/userspec.c (parse_with_separator): Do not accept a user ID
74238         number of MAXUID when it evaluates to (uid_t) -1.
74239         Likewise for group ID.  Reported by Matt McCutchen in
74240         <http://savannah.gnu.org/bugs/?28113>
74242         userspec: reformat to use spaces, not TABs
74243         * lib/userspec.c: Expand TABs to spaces.
74244         Add Emacs' "indent-tabs-mode: nil" hint.
74246 2009-11-27  Eric Blake  <ebb9@byu.net>
74248         getopt-gnu: flush out another BSD bug
74249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
74250         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
74251         flush out BSD bug.
74252         * tests/test-getopt.h (test_getopt): End lists with NULL.
74253         * tests/test-getopt_long.h (test_getopt_long): Likewise.
74254         (test_getopt_long_posix): Enhance test.
74255         * modules/getopt-posix-tests (Depends-on): Add stdbool.
74256         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
74257         getopt-gnu.
74258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74259         Likewise.
74261 2009-11-27  Simon Josefsson  <simon@josefsson.org>
74263         * modules/idpriv-droptemp-tests (Notice): Fix text.
74265 2009-11-27  Jim Meyering  <meyering@redhat.com>
74267         test-xalloc-die: avoid spurious failure due to libtool argv difference
74268         In a libtool-enabled project, this test would fail due to a difference
74269         in the emitted program name, e.g.,
74270         -test-xalloc-die: memory exhausted
74271         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
74272         Use program to avoid that.
74273         * modules/xalloc-die-tests (Depends-on): Add progname.
74274         * tests/test-xalloc-die.c: Include progname.h".
74275         (program_name): Remove decl.
74276         (main): Call set_program_name.
74277         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
74279 2009-11-26  Richard Jones  <rjones@redhat.com>
74281         w32sock: leave win32 error in place.
74282         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
74284 2009-11-26  Eric Blake  <ebb9@byu.net>
74286         init.sh: suggest to use skip_ and fail_ functions in comments
74287         * tests/init.sh: Add a sentence.
74289 2009-11-25  Bruno Haible  <bruno@clisp.org>
74291         init.sh: add documentation in comments
74292         * tests/init.sh: Add some developer and user documentation.
74294 2009-11-26  Jim Meyering  <meyering@redhat.com>
74296         init.sh: accommodate even those who specify bogus srcdir manually
74297         * tests/init.sh: Normally, srcdir is guaranteed by automake and
74298         configure-time tests to be sanitized, so that there is no need to
74299         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
74300         (with no double quotes) suffices.  However, since tests may be
74301         invoked manually, and since you may explicitly set srcdir to the
74302         name of a directory containing spaces, do quote its uses here.
74303         * tests/test-pread.sh: Likewise.
74304         Suggested by Bruno Haible.
74306         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
74307         * tests/test-pread.sh: Write no data into the pipe, because
74308         test-pread actually reads none.  This avoids a diagnostic,
74309         "bash: echo: write error: Broken pipe", that arises in the unusual
74310         event something is ignoring SIGPIPE, and might be interpreted
74311         as some sort of failure.  Reported by Bruno Haible.
74313 2009-11-25  Jim Meyering  <meyering@redhat.com>
74315         test-pread: cover failure with ESPIPE and EINVAL
74316         * tests/test-pread.c (main): Test for failure, too.
74317         * tests/test-pread.sh: Invoke with stdin on a pipe.
74318         Suggested by Eric Blake.
74320         pread: improvement and fix
74321         * modules/pread (Depends-on): Depend on lseek, for portability to
74322         e.g., mingw.  Suggested by Eric Blake.
74323         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
74325         unistd.in.h: correct declaration of pread
74326         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
74327         Reported by Richard W.M. Jones.
74329         test-pread.sh: distribute the test script
74330         * modules/pread-tests (Files): Include test-pread.sh.
74332         test-pread.sh: clean up
74333         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
74334         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
74335         That is unnecessary, since it's always ".".
74336         Suggestion from Eric Blake.
74338         test-pread.sh: make executable
74339         * tests/test-pread.sh: Set executable bit.
74340         Reported by Eric Blake.
74342         correct typo in test-pread.sh
74343         * tests/test-pread.sh: Add #! line.
74345         test pread
74346         * tests/test-pread.c: New file.
74347         * tests/test-pread.sh: Likewise.
74348         * modules/pread-tests: Likewise.
74350         pread: new module
74351         * modules/pread: New file.
74352         * lib/unistd.in.h (pread): Define/declare.
74353         * lib/pread.c (pread): New file.
74354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
74355         * modules/unistd (Makefile.am): Substitute witnesses.
74356         * doc/posix-functions/pread.texi (pread): Update.
74357         * MODULES.html.sh: Add pread.
74359 2009-11-25  Jim Meyering  <meyering@redhat.com>
74361         tests/init.sh: new file to be used via most *.sh tests
74362         * tests/init.sh: New file.
74364 2009-11-25  Eric Blake  <ebb9@byu.net>
74366         utimens: work around older Linux failure with symlinks
74367         * lib/utimens.c (lutimensat_works_really): New variable.
74368         (fdutimens, lutimens): Use it to manage kernels that support
74369         nanosecond times on files, but not on symlinks.
74370         Reported by Ondřej Vašík.
74372         utimes: fix configure grammar
74373         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
74375 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
74377         regex: Fix fastmap for multibyte character ranges.
74378         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
74379         characters when a multibyte character range is included.
74381 2009-11-22  Andy Wingo  <wingo@pobox.com>
74383         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74384         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74386 2009-11-24  Bruno Haible  <bruno@clisp.org>
74388         doc: Most *_l functions exist in MacOS X 10.5.
74389         * doc/posix-functions/duplocale.texi: Update platforms list.
74390         * doc/posix-functions/freelocale.texi: Likewise.
74391         * doc/posix-functions/newlocale.texi: Likewise.
74392         * doc/posix-functions/uselocale.texi: Likewise.
74393         * doc/posix-functions/isalnum_l.texi: Likewise.
74394         * doc/posix-functions/isalpha_l.texi: Likewise.
74395         * doc/posix-functions/isblank_l.texi: Likewise.
74396         * doc/posix-functions/iscntrl_l.texi: Likewise.
74397         * doc/posix-functions/isdigit_l.texi: Likewise.
74398         * doc/posix-functions/isgraph_l.texi: Likewise.
74399         * doc/posix-functions/islower_l.texi: Likewise.
74400         * doc/posix-functions/isprint_l.texi: Likewise.
74401         * doc/posix-functions/ispunct_l.texi: Likewise.
74402         * doc/posix-functions/isspace_l.texi: Likewise.
74403         * doc/posix-functions/isupper_l.texi: Likewise.
74404         * doc/posix-functions/iswalnum_l.texi: Likewise.
74405         * doc/posix-functions/iswalpha_l.texi: Likewise.
74406         * doc/posix-functions/iswblank_l.texi: Likewise.
74407         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74408         * doc/posix-functions/iswctype_l.texi: Likewise.
74409         * doc/posix-functions/iswdigit_l.texi: Likewise.
74410         * doc/posix-functions/iswgraph_l.texi: Likewise.
74411         * doc/posix-functions/iswlower_l.texi: Likewise.
74412         * doc/posix-functions/iswprint_l.texi: Likewise.
74413         * doc/posix-functions/iswpunct_l.texi: Likewise.
74414         * doc/posix-functions/iswspace_l.texi: Likewise.
74415         * doc/posix-functions/iswupper_l.texi: Likewise.
74416         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74417         * doc/posix-functions/isxdigit_l.texi: Likewise.
74418         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74419         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74420         * doc/posix-functions/strcoll_l.texi: Likewise.
74421         * doc/posix-functions/strfmon_l.texi: Likewise.
74422         * doc/posix-functions/strftime_l.texi: Likewise.
74423         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74424         * doc/posix-functions/strxfrm_l.texi: Likewise.
74425         * doc/posix-functions/tolower_l.texi: Likewise.
74426         * doc/posix-functions/toupper_l.texi: Likewise.
74427         * doc/posix-functions/towctrans_l.texi: Likewise.
74428         * doc/posix-functions/towlower_l.texi: Likewise.
74429         * doc/posix-functions/towupper_l.texi: Likewise.
74430         * doc/posix-functions/wcscoll_l.texi: Likewise.
74431         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74432         * doc/posix-functions/wctrans_l.texi: Likewise.
74433         * doc/posix-functions/wctype_l.texi: Likewise.
74434         * doc/glibc-functions/strptime_l.texi: Likewise.
74435         * doc/glibc-functions/strtod_l.texi: Likewise.
74436         * doc/glibc-functions/strtof_l.texi: Likewise.
74437         * doc/glibc-functions/strtol_l.texi: Likewise.
74438         * doc/glibc-functions/strtold_l.texi: Likewise.
74439         * doc/glibc-functions/strtoll_l.texi: Likewise.
74440         * doc/glibc-functions/strtoul_l.texi: Likewise.
74441         * doc/glibc-functions/strtoull_l.texi: Likewise.
74442         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74443         * doc/glibc-functions/wcstod_l.texi: Likewise.
74444         * doc/glibc-functions/wcstof_l.texi: Likewise.
74445         * doc/glibc-functions/wcstol_l.texi: Likewise.
74446         * doc/glibc-functions/wcstold_l.texi: Likewise.
74447         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74448         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74449         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74451 2009-11-24  Bruno Haible  <bruno@clisp.org>
74453         duplocale: Fix logic bug.
74454         * lib/duplocale.c: Don't include <langinfo.h>.
74455         (_NL_LOCALE_NAME): Remove macro.
74456         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74457         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74459 2009-11-23  Jim Meyering  <meyering@redhat.com>
74461         test-update-copyright: don't hard-code /usr/bin/perl
74462         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74463         perl to print the current year.  Gilles Espinasse reported that
74464         the replaced use of perl was hard-coded as /usr/bin/perl.
74466 2009-11-23  Bruno Haible  <bruno@clisp.org>
74468         duplocale: Add support for glibc 2.3.x.
74469         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74471 2009-11-22  Bruno Haible  <bruno@clisp.org>
74473         vasnprintf: Tiny optimization.
74474         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74475         MacOS X.
74477 2009-11-22  Bruno Haible  <bruno@clisp.org>
74479         Tests for module 'duplocale'.
74480         * modules/duplocale-tests: New file.
74481         * tests/test-duplocale.c: New file.
74483         New module 'duplocale'.
74484         * m4/duplocale.m4: New file.
74485         * lib/locale.in.h (duplocale): New declaration.
74486         * lib/duplocale.c: New file.
74487         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74488         gl_LOCALE_H_DEFAULTS): New macros.
74489         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74490         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74491         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74492         REPLACE_DUPLOCALE.
74493         * modules/duplocale: New file.
74494         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74496 2009-11-22  Bruno Haible  <bruno@clisp.org>
74498         * modules/locale-tests (configure.ac): Test for newlocale function.
74499         * tests/test-locale.c: When the system has extended locale functions,
74500         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74502         locale: Make locale_t available when possible.
74503         * lib/locale.in.h: Include <xlocale.h> when it exists.
74504         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74505         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74506         * modules/locale (Depends-on): Add extensions.
74507         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74508         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74510 2009-11-22  Bruno Haible  <bruno@clisp.org>
74512         Add comments.
74513         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74514         invocation.
74515         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74516         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74517         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74519 2009-11-22  Bruno Haible  <bruno@clisp.org>
74521         error: account for the possibility of freopen (stdout).
74522         * lib/error.c: Include <unistd.h>.
74523         (flush_stdout): New function, extracted from error and error_at_line.
74524         Determine stdout's fd dynamically.
74525         (error, error_at_line): Invoke flush_stdout.
74526         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74527         * modules/error (Depends-on): Add unistd.
74529 2009-11-22  Bruno Haible  <bruno@clisp.org>
74531         diffseq: Add comment.
74532         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74534 2009-11-22  Jim Meyering  <meyering@redhat.com>
74536         c-stack: avoid defining an unused static function
74537         * lib/c-stack.c (find_stack_direction): Do not define this function
74538         when it will not be used.
74540         diffseq: avoid spurious gcc warnings
74541         * lib/diffseq.h (IF_LINT2): Define.
74542         (compareseq): Use it to initialize two members of "part".
74543         This avoids two used-uninitialized warnings.
74545 2009-11-21  Jim Meyering  <meyering@redhat.com>
74547         c-stack: avoid "ignoring return value of `write'" warning
74548         * lib/c-stack.c: Include "ignore-value.h".
74549         (die): Explicitly ignore each write return value.
74550         * modules/c-stack (Depends-on): Add ignore-value.
74552 2009-11-21  Bruno Haible  <bruno@clisp.org>
74554         diffseq: reduce scope of variable 'best'.
74555         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74556         variable, earlier used for two different purposes.
74558 2009-11-21  Jim Meyering  <meyering@redhat.com>
74560         diffseq: remove useless assignment to "best"
74561         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74562         assignment.  At that point "best" is already guaranteed to be zero.
74564 2009-11-20  Eric Blake  <ebb9@byu.net>
74566         build: mention ftp redirector in release announcements
74567         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74568         values that used to come from cfg.mk; mention FTP redirect URL.
74569         * build-aux/announce-gen: Mention the mirror list.
74570         Suggested by Karl Berry.
74572         nanosleep: improve port to mingw
74573         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74575         LIB_NANOSLEEP, but only when needed.
74576         * modules/select (Link): Document LIBSOCKET.
74577         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74578         enough.
74580         nanosleep: work around cygwin bug
74581         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74582         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74583         bug.
74584         (getnow): Delete, not needed.
74585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74586         LIB_CLOCK_GETTIME.
74587         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74588         clock-time, gettime.
74589         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74590         bug.
74591         * modules/nanosleep-tests: New test.
74592         * tests/test-nanosleep.c: New file.
74594         sleep: work around cygwin bug
74595         * lib/sleep.c (rpl_sleep): Work around the bug.
74596         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74597         (gl_PREREQ_SLEEP): Delete unused macro.
74598         * modules/sleep (Depends-on): Add verify.
74599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74600         * modules/unistd (Makefile.am): Substitute witness.
74601         * lib/unistd.in.h (sleep): Update prototype.
74602         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74603         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74604         * modules/sleep-tests (Depends-on): Check for alarm.
74606 2009-11-20  Jim Meyering  <meyering@redhat.com>
74608         maint.mk: improve sc_prohibit_magic_number_exit
74609         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74610         so it does not match uses like System.exit(1).
74611         Add comments showing how to correct all offenders.
74613 2009-11-19  Eric Blake  <ebb9@byu.net>
74615         xalloc-die-tests: add missing library
74616         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74618         test-xvasprintf: silence compiler warnings
74619         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74620         empty string from gcc.
74622 2009-11-19  Jim Meyering  <meyering@redhat.com>
74624         xfreopen: new module, from coreutils
74625         * modules/xfreopen: New module.
74626         * lib/xfreopen.c: New file.
74627         * lib/xfreopen.h: New file.
74628         * MODULES.html.sh (File stream based Input/Output"): Add it.
74630 2009-11-19  Eric Blake  <ebb9@byu.net>
74632         manywarnings: depend on warnings
74633         * modules/manywarnings (Depends-on): Add warnings.
74635         build: avoid compiler warnings
74636         * lib/select.c (rpl_select): Delete unused variable.
74637         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74639 2009-11-18  Eric Blake  <ebb9@byu.net>
74641         tests: avoid false negative with --with-packager
74642         * tests/test-version-etc.sh: Discard packager information.
74643         * tests/test-argp-version-etc-1.sh: Likewise.
74644         Reported by Mike Frysinger.
74646         utimens: fix regression on Solaris
74647         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74648         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74649         can only change fd timestamps via futimesat.  Instead, use an
74650         additional witness macro to avoid BSD bug.
74651         Reported by Jim Meyering.
74653 2009-11-17  Eric Blake  <ebb9@byu.net>
74655         usleep: use it to simplify tests
74656         * modules/stat-time-tests (Depends-on): Add usleep.
74657         (configure.ac): Drop usleep check.
74658         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74659         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74660         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74661         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74662         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74663         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74664         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74665         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74666         Likewise.
74667         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74668         * tests/test-lchown.h (nap): Likewise.
74669         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74670         * tests/test-stat-time.c (nap): Likewise.
74671         * tests/test-utimens-common.h (nap): Update comments.
74673         usleep: new module
74674         * modules/usleep: New file.
74675         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74676         * lib/usleep.c (usleep): Likewise.
74677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74678         * modules/unistd (Makefile.am): Substitute witnesses.
74679         * lib/unistd.in.h (usleep): Add declaration.
74680         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74681         * MODULES.html.sh (Date and time): Likewise.
74682         * modules/usleep-tests (Depends-on): New test.
74683         * tests/test-usleep.c: New file.
74685         chown: work around OpenBSD bug
74686         * lib/chown.c (rpl_chown): Work around the bug.
74687         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74688         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74690         * modules/chown (Depends-on): Add stdbool.
74691         * modules/lchown (Depends-on): Likewise.
74692         * doc/posix-functions/chown.texi (chown): Document the bug.
74693         * doc/posix-functions/lchown.texi (lchown): Likewise.
74694         * tests/test-lchown.h (test_chown): Relax test.
74696         mkstemp: avoid conflict with C++ keyword template
74697         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74698         * lib/mkostemp.c (mkostemp): Likewise.
74699         * lib/mkostemps.c (mkostemps): Likewise.
74700         * lib/mkstemp.c (mkstemp): Likewise.
74701         * lib/mkstemps.c (mkstemps): Likewise.
74703         xalloc-die-tests: optimize
74704         * tests/test-xalloc-die.sh: Reduce number of processes.
74706 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74708         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74709         patch from ludo@gnu.org (Ludovic Courtès).
74711 2009-11-17  Jim Meyering  <meyering@redhat.com>
74713         version-etc: use proper license string
74714         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74715         * modules/version-etc-fsf: Likewise.
74717 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74719         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74720         printed to stdout.  Deal with EOL differences.
74722 2009-11-17  Eric Blake  <ebb9@byu.net>
74724         unsetenv: work around Solaris bug
74725         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74726         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74727         Reported by Jim Meyering.
74729         vasnprintf: avoid compiler warnings
74730         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74731         variables.
74732         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74734 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74736         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74737         settings since xalloc-die is no longer the self test,
74738         xalloc-die.sh is.
74740 2009-11-17  Jim Meyering  <meyering@redhat.com>
74742         test-xalloc-die.sh: make the code agree with the commit log
74743         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74744         at the end, just in case you happen to have a test-xalloc-die
74745         program in some other PATH directory.
74747         test-xalloc-die.sh: fix a portability bug
74748         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74749         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74750         Otherwise, argv[0] (as often seen in diagnostics) would be too
74751         system-dependent, sometimes with, and sometimes without the leading "./".
74753         version-etc-fsf: relax license to LGPLv3+
74754         * modules/version-etc-fsf (License): Relax license.
74756 2009-11-16  Eric Blake  <ebb9@byu.net>
74758         xalloc-die-tests: avoid printing null pointer
74759         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74760         shell script.
74761         * tests/test-xalloc-die.c (program_name): Declare.
74762         * tests/test-xalloc-die.sh (tmpfiles): New file.
74764         setenv, unsetenv: work around various bugs
74765         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74766         (setenv) [HAVE_SETENV]: Work around bugs.
74767         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74768         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74769         for bugs.
74770         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74771         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74773         * modules/stdlib (Makefile.am): Update substitutions.
74774         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74775         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74776         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74777         * modules/setenv-tests: New test.
74778         * modules/unsetenv-tests: Likewise.
74779         * tests/test-setenv.c: New file.
74780         * tests/test-unsetenv.c: Likewise.
74782 2009-11-16  Jim Meyering  <meyering@redhat.com>
74784         version-etc: relax license to LGPLv3+
74785         * modules/version-etc (License): Relax license.
74787         better AC_REQUIRE expanded-before-required-warning avoidance
74788         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74789         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74790         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74791         which is no longer needed.
74793 2009-11-16  Eric Blake  <ebb9@byu.net>
74795         test-freading: clean up temporary file
74796         * tests/test-freading.c (main): Remove file on success, and use
74797         ASSERT more liberally.
74798         Reported by Jim Meyering.
74800 2009-11-16  Jim Meyering  <meyering@redhat.com>
74802         avoid new AC_REQUIRE expanded-before-required warnings
74803         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
74804         merely using it.
74805         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
74806         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
74808 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74810         * tests/test-xalloc-die.c: New file.
74811         * modules/xalloc-die-tests: New file.
74812         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
74813         XFAIL_TESTS so it can be appended by modules.
74815 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74817         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74818         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74820 2009-11-14  Eric Blake  <ebb9@byu.net>
74822         fnmatch: avoid compiler warning
74823         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74824         to silence compiler warning about mismatch signedness in ?:.
74825         Reported by Robert Millan.
74827         intprops: add double-inclusion guard
74828         * lib/intprops.h: Allow idempotent includes.
74829         Suggested by Bruce Korb.
74831         openat: detect Solaris fchownat bug
74832         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74833         penalizing glibc chownat when only lchownat is broken.
74834         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74835         trailing slash bugs.
74836         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74837         * modules/openat-tests (Files): Include more files.
74838         (Depends-on): Add mgetgroups, sleep, stat-time.
74839         (configure.ac): Add additional checks.
74840         (Makefile.am): Build new test.
74841         * tests/test-fchownat.c: New file.
74843         lchown: detect Solaris and FreeBSD bug
74844         * lib/lchown.c (rpl_lchown): Work around bug.
74845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74847         * modules/unistd (Makefile.am): Populate it.
74848         * lib/unistd.in.h (lchown): Update declaration.
74849         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74850         * modules/lchown-tests: New file.
74851         * tests/test-lchown.h (test_lchown): Likewise.
74852         * tests/test-lchown.c (main): Likewise.
74854         chown: detect Solaris and FreeBSD bug
74855         * lib/chown.c (rpl_chown): Work around bug.
74856         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74857         (gl_PREREQ_CHOWN): Delete.
74858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74859         * modules/unistd (Makefile.am): Populate it.
74860         * lib/unistd.in.h (chown): Update declaration.
74861         * lib/lchown.c (chown): Update client.
74862         * modules/lchown (Depends-on): Add lstat.
74863         * doc/posix-functions/chown.texi (chown): Document the bug.
74864         * doc/posix-functions/getgroups.texi (getgroups): Document
74865         getgroups pitfall.
74866         * modules/chown-tests: New file.
74867         * tests/test-chown.h (test_chown): Likewise.
74868         * tests/test-chown.c (main): Likewise.
74870 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74872         gnulib-tool: correctly detect absence of m4 directories
74873         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74875 2009-11-14  Jim Meyering  <meyering@redhat.com>
74877         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74878         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74880 2009-11-14  John W. Eaton  <jwe@gnu.org>
74882         strftime.h: wrap function declaration in extern "C" block
74883         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74885 2009-11-13  Eric Blake  <ebb9@byu.net>
74887         getgroups: avoid compiler warning
74888         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74890         getgroups: work around FreeBSD bug
74891         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74892         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74893         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74894         * tests/test-getgroups.c (main): Fix buffer overrun.
74896         getgroups: avoid compilation failure
74897         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74898         * modules/getgroups (Depends-on): Add stdint.
74900 2009-11-13  Jim Meyering  <meyering@redhat.com>
74902         test-getgroups: avoid compilation failure
74903         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74905 2009-11-13  Eric Blake  <ebb9@byu.net>
74907         mgetgroups: new module, taken from coreutils
74908         * modules/mgetgroups: New file.
74909         * lib/mgetgroups.h: Likewise.
74910         * lib/mgetgroups.c (mgetgroups): Likewise.
74911         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74912         * MODULES.html.sh (Users and groups): Mention it.
74914         getgroups: don't expose GETGROUPS_T to user
74915         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74916         an element at a time if GETGROUPS_T is wrong size.
74917         * lib/getugroups.h (getugroups): Change signature.
74918         * lib/unistd.in.h (getgroups): Likewise.
74919         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74920         signature needs fixing.
74921         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74922         AC_TYPE_GETGROUPS.
74923         * modules/group-member (Depends-on): Add getgroups.
74924         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74925         (group_member): Rely on getgroups replacement.
74926         * lib/getugroups.c (getugroups): Use gid_t.
74927         * tests/test-getgroups.c (main): Likewise.
74928         * NEWS: Mention the signature change.
74929         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74930         problem with signature.
74931         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74932         GETGROUPS_T is still useful for setgroups.
74934         getgroups, getugroups: provide stubs for mingw
74935         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74936         * lib/getugroups.c (getugroups): Likewise.
74937         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74938         function.  Modernize replacement scheme.
74939         (gl_PREREQ_GETGROUPS): Delete.
74940         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74941         * modules/getgroups (configure.ac): Declare witness.
74942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74943         * modules/unistd (Depends-on): Substitute witness.
74944         * lib/unistd.in.h (getgroups): Declare replacement.
74946         getgroups: avoid calling exit
74947         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74948         drop xalloc.
74949         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74950         dependencies.
74951         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74952         exiting, in the rare case of malloc failure.
74954         getgroups: fix logic error
74955         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74956         has more than 20 groups.
74957         * modules/getgroups-tests: New test.
74958         * tests/test-getgroups.c: New file.
74960 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74962         * tests/test-base64.c: Improve.
74964 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74966         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74967         Blake <ebb9@byu.net>.
74969 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74971         * tests/test-xvasprintf.c: Add %s%s related checks.
74973 2009-11-12  Eric Blake  <ebb9@byu.net>
74975         version-etc: match standards.texi style
74976         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74977         and use <> only for URLs.
74979 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74981         fts: do not fail on a submount during traversal
74982         * lib/fts.c (fts_build): Read the stat info again after opening
74983         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74984         Original report at http://bugzilla.redhat.com/501848.
74986 2009-11-12  Jim Meyering  <meyering@redhat.com>
74988         bootstrap: sync from coreutils
74989         * build-aux/bootstrap (bootstrap_epilogue): New function.
74990         Use git_modules_config in one more place.  This make bootstrap's
74991         --gnulib-srcdir option more useful for testing.
74993         bootstrap: generalize autoheader check
74994         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74995         AC_CONFIG_HEADERS.
74997 2009-11-11  Eric Blake  <ebb9@byu.net>
74999         mkfifoat: use new modules for Solaris and BSD bugs
75000         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
75001         * lib/mkfifoat.c (mknodat): Split...
75002         * lib/mknodat.c (mknodat): ...into new file.
75003         * modules/mkfifoat (Files): Ship new file.
75004         (Depends-on): Add mkfifo, mknod.
75005         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
75006         (Depends-on): Add symlink.
75007         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
75008         redundant with test_mkfifo.h.
75009         (do_mkfifoat, do_mknodat): New helpers.
75011         mknod: new module
75012         * modules/mknod: New file.
75013         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
75014         * lib/mknod.c (mknod): Likewise.
75015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75016         defaults.
75017         * modules/sys_stat (Makefile.am): Substitute them.
75018         * lib/sys_stat.in.h (mknod): Declare replacement.
75019         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75020         Document it.
75021         * doc/posix-functions/mknod.texi (mknod): Likewise.
75022         * modules/mknod-tests: New test.
75023         * tests/test-mknod.c: Likewise.
75025         mkfifo: new module
75026         * modules/mkfifo: New file.
75027         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
75028         * lib/mkfifo.c (mkfifo): Likewise.
75029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75030         defaults.
75031         * modules/sys_stat (Makefile.am): Substitute them.
75032         * lib/sys_stat.in.h (mkfifo): Declare replacement.
75033         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75034         Document it.
75035         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
75036         * modules/mkfifo-tests: New test.
75037         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
75038         from test-mkfifoat.c.
75039         * tests/test-mkfifo.c: New file.
75041         readlink: detect FreeBSD bug
75042         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
75043         slash on symlink.
75044         * doc/posix-functions/readlink.texi (readlink): Document the bug.
75045         * tests/test-readlink.h (test_readlink): Enhance test.
75047         symlink: detect FreeBSD bug
75048         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
75049         slash on symlink.
75050         * doc/posix-functions/symlink.texi (symlink): Document the bug.
75051         * tests/test-symlink.h (test_symlink): Enhance test.
75053 2009-11-10  Eric Blake  <ebb9@byu.net>
75055         link: detect FreeBSD bug
75056         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
75057         symlink.
75058         * doc/posix-functions/link.texi (link): Document the bug.
75059         * tests/test-link.h (test_link): Enhance test.
75060         * tests/test-linkat.c (main): Update caller.
75062         unlink, remove: detect FreeBSD bug
75063         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
75064         slash on symlink.
75065         * doc/posix-functions/unlink.texi (unlink): Document the bug.
75066         * doc/posix-functions/remove.texi (remove): Likewise.
75067         * tests/test-unlink.h (test_unlink): Enhance test.
75068         * tests/test-remove.c (main): Likewise.
75070 2009-11-09  Eric Blake  <ebb9@byu.net>
75072         rename: detect FreeBSD bug
75073         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
75074         slash on symlink.
75075         * modules/renameat-tests (Depends-on): Add filenamecat.
75076         * tests/test-rename.h (test_rename): Allow one more errno.
75077         * tests/test-renameat.c (main): Likewise.
75078         * doc/posix-functions/rename.texi (rename): Document the bug.
75080         open: detect FreeBSD bug
75081         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
75082         symlink.
75083         * doc/posix-functions/open.texi (open): Document the bug.
75084         * doc/posix-functions/utimes.texi (utimes): Likewise.
75085         * tests/test-open.h (test_open): Add parameters, and test symlink
75086         handling.
75087         * tests/test-open.c (main): Adjust caller.
75088         * tests/test-fcntl-safer.c (main): Likewise.
75089         * modules/open-tests (Depends-on): Add stdbool, symlink.
75090         * modules/fcntl-safer-tests (Depends-on): Likewise.
75091         * tests/test-openat.c (main): Add test-open tests.
75093         stat: detect FreeBSD bug
75094         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
75095         symlink.
75096         * doc/posix-functions/stat.texi (stat): Document the bug.
75097         * tests/test-stat.h (test_stat_func): Add argument.
75098         * tests/test-stat.c (main): Adjust caller.
75099         * tests/test-fstatat.c (main): Likewise.
75100         * modules/stat-tests (Depends-on): Add stdbool, symlink.
75101         Reported by Jim Meyering.
75103 2009-11-09  James Youngman  <jay@gnu.org>
75105         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
75106         * lib/strftime.c: Correct placement of #include "ignore-value.h".
75108 2009-11-08  Jim Meyering  <meyering@redhat.com>
75110         utimens: remove invalid futimesat call
75111         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
75112         It used the file descriptor of the target file as the DIR_FD
75113         parameter and NULL as the file name.  That caused failure with
75114         errno == EFAULT on FreeBSD-8.0-rc2
75116 2009-11-07  Eric Blake  <ebb9@byu.net>
75118         fflush, freadseek: use fseeko, not fseek
75119         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
75120         (clear_ungetc_buffer): Avoid potential problems on large files.
75121         * lib/freadseek.c (freadseek): Likewise.
75122         * modules/freadseek (Depends-on): Add fseeko.
75123         * modules/fseek (configure.ac): Set a witness.
75124         * tests/test-fflush.c (main): Use fseeko.
75125         * tests/test-fpurge.c (fseek): Disable link warning.
75126         * tests/test-freadable.c (fseek): Likewise.
75127         * tests/test-freading.c (fseek): Likewise.
75128         * tests/test-fseeko.c (fseek): Likewise.
75129         * tests/test-ftell.c (fseek): Likewise.
75130         * tests/test-ftello.c (fseek): Likewise.
75131         * tests/test-fwritable.c (fseek): Likewise.
75132         * tests/test-fwriting.c (fseek): Likewise.
75134 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75136         * modules/memchr (Depends-on): Drop getpagesize dependency.
75138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75140         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
75141         Reported by Ludovic Courtès.
75142         * build-aux/pmccabe2html: Improve example usage.
75143         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
75145 2009-11-06  Jim Meyering  <meyering@redhat.com>
75147         do-release-commit-and-tag: New module.
75148         Automate the release-commit and tag process.
75149         * build-aux/do-release-commit-and-tag: New script, from coreutils.
75150         * modules/do-release-commit-and-tag: New file.
75151         * MODULES.html.sh (Support for maintaining and releasing): Add it.
75153 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75155         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
75156         because test-select.c uses inet_pton.
75158 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75160         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
75161         GETADDRINFO_LIB.  Bump serial number.
75162         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
75163         Suggested by Eric Blake <ebb9@byu.net>.
75165 2009-11-05  Eric Blake  <ebb9@byu.net>
75167         strtod: detect darwin bug
75168         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
75169         Reported by Leo Davis.
75171         freopen-safer: new module
75172         * modules/freopen-safer: New module.
75173         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
75174         * lib/freopen-safer.c (freopen_safer): New file.
75175         * lib/stdio-safer.h (freopen_safer): New declaration.
75176         * lib/stdio--.h (freopen): New override.
75177         * MODULES.html.sh (File stream based Input/Output): Mention it.
75178         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
75179         freopen-safer module.
75180         * doc/posix-functions/stderr.texi (stderr): Likewise.
75181         * doc/posix-functions/stdin.texi (stdin): Likewise.
75182         * doc/posix-functions/stdout.texi (stdout): Likewise.
75183         * modules/freopen-safer-tests: New test.
75184         * tests/test-reopen-safer.c: New file.
75186 2009-11-05  Jim Meyering  <meyering@redhat.com>
75188         maint.mk: Prohibit inclusion of "close-stream.h" without use.
75189         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75191 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75193         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
75195 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75197         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
75199 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75201         Fix link error.
75202         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75205 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75207         * tests/test-func.c: Also test value of __func__.
75209 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75211         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
75212         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
75214 2009-11-05  Bruno Haible  <bruno@clisp.org>
75216         Fix link error.
75217         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75218         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75219         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
75221 2009-11-05  Bruno Haible  <bruno@clisp.org>
75223         Tests for module 'inet_pton'.
75224         * modules/inet_pton-tests: New file.
75225         * tests/test-inet_pton.c: New file.
75227 2009-11-05  Bruno Haible  <bruno@clisp.org>
75229         Tests for module 'inet_ntop'.
75230         * modules/inet_ntop-tests: New file.
75231         * tests/test-inet_ntop.c: New file.
75233 2009-11-04  Eric Blake  <ebb9@byu.net>
75235         stdlib-safer: wrap all mkstemp variants
75236         * modules/mkostemp (configure.ac): Set witness.
75237         * modules/mkostemps (configure.ac): Likewise.
75238         * modules/mkstemps (configure.ac): Likewise.
75239         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
75240         (mkstemps_safer): Wrap more functions.
75241         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
75242         wrapping.
75243         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
75244         (mkstemps_safer): Implement the wrappers.
75246         mkstemps, mkostemps: new modules
75247         * modules/mkostemps: New module.
75248         * modules/mkstemps: Likewise.
75249         * lib/mkostemps.c (mkostemps): New file.
75250         * lib/mkstemps.c (mkstemps): Likewise.
75251         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
75252         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
75253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
75254         * modules/stdlib (Makefile.am): Substitute them.
75255         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
75256         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
75257         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
75258         * doc/gnulib.texi (Glibc stdlib.h): Include them.
75259         * MODULES.html.sh (File system functions): Mention them.
75261         tempname: resync from glibc
75262         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
75263         same values for __GT_FILE as glibc.  Abort even when assertions
75264         are disabled.
75265         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
75266         match its value otherwise.  Allow idempotent inclusion.
75267         * lib/mkdtemp.c (mkdtemp): Adjust caller.
75268         * lib/mkostemp.c (mkostemp): Likewise.
75269         * lib/mkstemp.c (mkstemp): Likewise.
75270         * lib/tmpfile.c (tmpfile): Likewise.
75271         * NEWS: Document this.
75273         utimens: fix use of futimens on older Linux
75274         * lib/utimens.c (fdutimens): Use updated, rather than original,
75275         timespec to avoid bug in older Linux kernel.
75276         Reported by Simon Josefsson.
75278 2009-11-04  Bruno Haible  <bruno@clisp.org>
75280         Make num_processors more flexible and consistent.
75281         * lib/nproc.h (enum nproc_query): New type.
75282         (num_processors): Add a 'query' argument.
75283         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
75284         (num_processors): Add a 'query' argument. Test the value of the
75285         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
75286         mingw, count the number of CPUs available for the current process.
75287         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
75288         Check for sched_getaffinity and sched_getaffinity_np.
75289         * modules/nproc (Depends-on): Add c-ctype, extensions.
75290         * NEWS: Mention the change.
75292 2009-11-03  Bruno Haible  <bruno@clisp.org>
75294         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
75296 2009-11-03  Jim Meyering  <meyering@redhat.com>
75298         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
75299         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
75300         if it is defined.
75302 2009-11-02  Eric Blake  <ebb9@byu.net>
75304         mktime, timegm: share common declaration
75305         * lib/mktime-internal.h: New file.
75306         * lib/mktime.c: Use it rather than open-coding a declaration.
75307         * lib/timegm.c: Likewise.
75308         * modules/mktime (Files): Ship it.
75309         * modules/timegm (Files): Likewise.
75310         Suggested by Bruno Haible.
75312         test-update-copyright: update test to match script changes
75313         * tests/test-update-copyright.sh: Avoid hard-coding perl
75314         location.  Don't update *.bak created by earlier runs.
75316 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75317             Simon Josefsson  <simon@josefsson.org>
75318             Bruno Haible  <bruno@clisp.org>
75320         Fix link error on Solaris 8.
75321         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
75322         also in libnsl. Define also INET_PTON_LIB.
75323         * modules/inet_pton (Link): New section.
75325 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75326             Bruno Haible  <bruno@clisp.org>
75328         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
75329         * modules/inet_ntop (Link): New section.
75330         Reported by Boyan Kasarov <bkasarov@gmail.com>.
75332 2009-11-02  Eric Blake  <ebb9@byu.net>
75334         maint: avoid compiler warnings in m4 macros
75335         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
75336         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
75338 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75340         * m4/pmccabe2html.m4: Remove file.
75341         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
75342         function.  Change maintainer.
75343         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
75344         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
75345         Courtès).
75347 2009-10-31  Eric Blake  <ebb9@byu.net>
75349         fseeko: fix m4 regression
75350         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
75351         regression from 2009-10-27.
75352         Reported by Ralf Wildenhues.
75354 2009-10-31  Jim Meyering  <meyering@redhat.com>
75356         inttostr: aesthetics and improved (compile-time) safety
75357         Define inttype_is_signed rather than inttype_is_unsigned,
75358         since the sole use is via "#if inttype_is_signed".
75359         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
75360         inttype_is_unsigned.
75361         * lib/offtostr.c (inttype_is_signed): Likewise.
75362         * lib/uinttostr.c (inttype_is_signed): Likewise.
75363         * lib/umaxtostr.c (inttype_is_signed): Likewise.
75364         * lib/inttostr.c (inttostr): Use verify to cross-check the
75365         inttype_is_signed value and the signedness of the actual type.
75366         * modules/inttostr (Depends-on): Add verify.
75368 2009-10-30  Eric Blake  <ebb9@byu.net>
75370         build: avoid compiler warnings
75371         * lib/fchmodat.c (lchmod): Mark unused variables.
75372         * lib/getopt.c (_getopt_initialize): Likewise.
75373         * lib/mktime.c (__mktime_internal): Provide prototype.
75374         * lib/inttostr.c (inttostr): Avoid compiler warning even with
75375         older gcc that do not understand #pragma GCC diagnostic.
75376         * lib/uinttostr.c (inttype_is_unsigned): Define.
75377         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
75379 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75381         stat: fix compilation on AIX
75382         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75383         only see struct stat64.
75385 2009-10-30  Eric Blake  <ebb9@byu.net>
75387         exclude: make more robust
75388         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75389         rather than masking a coding bug.
75390         Suggested by Bruno Haible.
75392 2009-10-30  Jim Meyering  <meyering@redhat.com>
75394         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75395         Rather than putting #!/usr/bin/perl on the first line,
75396         start with a variant of what's recommended by "man perlrun" that
75397         invokes the first "perl" program from your shell's search path.
75398         * build-aux/gitlog-to-changelog: Replace #!... as above.
75399         Add a "Local Variables" perl mode setting.
75400         Prompted by a patch from Ludovic Courtès.
75401         Improved by Eric Blake.
75402         * build-aux/useless-if-before-free: Likewise.
75403         * build-aux/announce-gen: Likewise.
75404         * build-aux/update-copyright: Likewise.
75406 2009-10-29  Eric Blake  <ebb9@byu.net>
75408         filenamecat-lgpl: adjust clients
75409         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75410         filenamecat.
75411         * modules/renameat (Depends-on): Likewise.
75413         filenamecat: split into filenamecat-lgpl
75414         * modules/filenamecat-lgpl: New module.
75415         * modules/filenamecat (Files): Move library-safe files into
75416         filenamecat-lgpl.
75417         (Depends-on): Add filenamecat-lgpl.
75418         (configure.ac): Declare witness.
75419         * lib/filenamecat.h (file_name_concat): Only declare when using
75420         GPL module.
75421         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75422         Move...
75423         * lib/filenamecat-lgpl.c: ...into new file.
75424         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75425         (gl_FILE_NAME_CONCAT): Use it.
75426         * MODULES.html.sh (File system functions): Mention new module.
75428         argp: avoid memory leak
75429         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75430         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75431         base_name, since the latter malloc()s and can call exit().
75432         Leak introduced 2006-07-03.
75434         dirname-lgpl: adjust clients that don't need full dirname
75435         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75436         * modules/filenamecat (Depends-on): Likewise.
75437         * modules/linkat (Depends-on): Likewise.
75438         * modules/mkancesdirs (Depends-on): Likewise.
75439         * modules/mkdir (Depends-on): Likewise.
75440         * modules/openat (Depends-on): Likewise.
75441         * modules/savewd (Depends-on): Likewise.
75442         * modules/rename (Depends-on): Likewise.
75443         (License): Relax license.
75444         * modules/mkdir-tests (Depends-on): Drop progname.
75445         (Makefile.am): Delete unneeded LDADD.
75446         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75448         dirname: split into dirname-lgpl
75449         * modules/dirname-lgpl: New module.
75450         * modules/dirname (Files): Move library-safe files into
75451         dirname-lgpl.
75452         (Depends-on): Add dirname-lgpl.
75453         (configure.ac): Declare witness.
75454         * modules/double-slash-root (License): Relax license.
75455         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75456         module.
75457         * lib/dirname.c (dir_len, mdir_name): Move...
75458         * lib/dirname-lgpl.c: ...into new file.
75459         * lib/basename.c (last_component, base_len): Move...
75460         * lib/basename-lgpl.c: ...into new file.
75461         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75462         (gl_DIRNAME): Use it.
75463         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75464         Mention new module.
75465         * modules/dirname-tests (Depends-on): Add progname.
75466         * tests/test-dirname.c (program_name): Delete.
75468         mkdir: make safe for libraries
75469         * modules/mkdir (Depends-on): Drop xalloc.
75470         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75471         exit.
75473         tests: avoid some compiler warnings
75474         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75475         literals.
75476         * tests/test-memchr.c (main): Avoid type mismatch.
75477         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75478         * tests/test-base64.c (main): Likewise.
75479         * tests/test-getdelim.c (main): Likewise.
75480         * tests/test-gethostname.c (main): Likewise.
75481         * tests/test-getline.c (main): Likewise.
75482         * tests/test-netinet_in.c (main): Likewise.
75483         * tests/test-select.c (open_server_socket, main): Likewise.
75484         * tests/test-select-stdin.c (main): Likewise.
75485         * tests/test-sockets.c (main): Likewise.
75486         * tests/test-strsignal.c (main): Likewise.
75487         * tests/test-sys_select.c (main): Likewise.
75488         * tests/test-sys_socket.c (main): Likewise.
75489         * tests/test-u64.c (main): Likewise.
75490         * tests/test-xfprintf-posix.c (main): Likewise.
75491         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75493         sockets: avoid compiler warning
75494         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75496         maint: detect usage(1) and other suspicious exits
75497         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75499 2009-10-29  Jim Meyering  <meyering@redhat.com>
75501         timespec: long-to-int truncation could make timespec_cmp malfunction
75502         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75503         a multiple of 2^32 nanoseconds as no difference.
75505 2009-10-28  Jim Meyering  <meyering@redhat.com>
75507         fprintftime: wrap macro code argument in "do {...} while(0)"
75508         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75509         cpy macro must be a statement that can be followed by a semicolon.
75510         Now that the else clause contains a comment and is hence longer
75511         than one line, I require curly braces.  That in turn requires
75512         that we wrap this code block in the standard do...while(0).
75514         fprintftime: remove stray semicolon from previous change
75515         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75517         fprintftime: avoid a warning about ignored fwrite return value
75518         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75519         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75520         that is unsafe.
75521         * modules/fprintftime (Depends-on): Add ignore-value.
75523         exclude: avoid an unwarranted warning
75524         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75526 2009-10-27  Eric Blake  <ebb9@byu.net>
75528         fseek: avoid compilation failure when fflush is replaced
75529         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75530         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75531         module is in use.
75532         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75533         module is not in use; since REPLACE_FSEEK worked otherwise.
75534         (GNULIB_FTELLO): Likewise for ftell.
75535         Reported by Ian Beckwith and others.
75537 2009-10-27  Bruno Haible  <bruno@clisp.org>
75539         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75540         Reported by Jim Meyering.
75542 2009-10-27  Jim Meyering  <jim@meyering.net>
75543             Bruno Haible  <bruno@clisp.org>
75545         Avoid warning despite dropping the return value of fwrite.
75546         * lib/unicodeio.c: Include ignore-value.h.
75547         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75548         * modules/unicodeio (Depends-on): Add ignore-value.
75550 2009-10-26  Eric Blake  <ebb9@byu.net>
75552         areadlinkat: fix fallback path
75553         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75554         pointer and zero.
75556 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75558         Use a better IO block size for modern systems
75559         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75560         * lib/md2.c: Likewise.
75561         * lib/md4.c: Likewise.
75562         * lib/md5.c: Likewise.
75563         * lib/sha1.c: Likewise.
75564         * lib/sha256.c: Likewise.
75565         * lib/sha512.c: Likewise.
75567 2009-10-22  Eric Blake  <ebb9@byu.net>
75569         tests: avoid several compiler warnings
75570         * tests/test-getcwd.c (main): Avoid buffer underflow.
75571         * tests/test-getdate.c (main): String literals are not safe with
75572         putenv, so use setenv.  Declare unused argument.
75573         * modules/getdate-tests (Depends-on): Add setenv.
75574         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75575         problems with string literals in char *.
75576         * tests/test-hash.c (main): Avoid shadowing declaration.
75577         (insert_new): Treat string literals as char const *.
75578         * tests/test-getopt.h (test_getopt): Likewise.
75579         (getopt_loop): Alter types to minimize casting elsewhere.
75580         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75581         (test_getopt_long_posix): Likewise.
75582         (do_getopt_long): Add wrapper to minimize casting.
75583         * tests/test-atexit.c (clear_temp_file): Use void.
75584         * tests/test-areadlink-with-size.c (main): Declare unused
75585         arguments.
75586         * tests/test-areadlink.c (main): Likewise.
75587         * tests/test-areadlinkat-with-size.c (main): Likewise.
75588         * tests/test-areadlinkat.c (main): Likewise.
75589         * tests/test-canonicalize-lgpl.c (main): Likewise.
75590         * tests/test-canonicalize.c (main): Likewise.
75591         * tests/test-dirent-safer.c (main): Likewise.
75592         * tests/test-dirname.c (main): Likewise.
75593         * tests/test-dup2.c (main): Likewise.
75594         * tests/test-fchdir.c (main): Likewise.
75595         * tests/test-fcntl-h.c (main): Likewise.
75596         * tests/test-fcntl-safer.c (main): Likewise.
75597         * tests/test-fdopendir.c (main): Likewise.
75598         * tests/test-fdutimensat.c (main): Likewise.
75599         * tests/test-fflush.c (main): Likewise.
75600         * tests/test-filenamecat.c (main): Likewise.
75601         * tests/test-filevercmp.c (main): Likewise.
75602         * tests/test-fopen-safer.c (main): Likewise.
75603         * tests/test-fopen.c (main): Likewise.
75604         * tests/test-fpending.c (main): Likewise.
75605         * tests/test-fpurge.c (main): Likewise.
75606         * tests/test-freading.c (main): Likewise.
75607         * tests/test-fstatat.c (main): Likewise.
75608         * tests/test-fsync.c (main): Likewise.
75609         * tests/test-futimens.c (main): Likewise.
75610         * tests/test-getndelim2.c (main): Likewise.
75611         * tests/test-gettimeofday.c (main): Likewise.
75612         * tests/test-getopt.c (main): Likewise.
75613         * tests/test-i-ring.c (main): Likewise.
75614         * tests/test-inttypes.c (main): Likewise.
75615         * tests/test-link.c (main): Likewise.
75616         * tests/test-lstat.c (main): Likewise.
75617         * tests/test-math.c (main): Likewise.
75618         * tests/test-md5.c (main): Likewise.
75619         * tests/test-memchr2.c (main): Likewise.
75620         * tests/test-memrchr.c (main): Likewise.
75621         * tests/test-mkdir.c (main): Likewise.
75622         * tests/test-mkdirat.c (main): Likewise.
75623         * tests/test-mkfifoat.c (main): Likewise.
75624         * tests/test-open.c (main): Likewise.
75625         * tests/test-openat-safer.c (main): Likewise.
75626         * tests/test-openat.c (main): Likewise.
75627         * tests/test-quotearg.c (main): Likewise.
75628         * tests/test-rawmemchr.c (main): Likewise.
75629         * tests/test-readlink.c (main): Likewise.
75630         * tests/test-remove.c (main): Likewise.
75631         * tests/test-rename.c (main): Likewise.
75632         * tests/test-renameat.c (main): Likewise.
75633         * tests/test-rmdir.c (main): Likewise.
75634         * tests/test-sha1.c (main): Likewise.
75635         * tests/test-signal.c (main): Likewise.
75636         * tests/test-sigaction.c (main): Likewise.
75637         * tests/test-stat.c (main): Likewise.
75638         * tests/test-stat-time.c (main): Likewise.
75639         * tests/test-stddef.c (main): Likewise.
75640         * tests/test-stdint.c (main): Likewise.
75641         * tests/test-stdio.c (main): Likewise.
75642         * tests/test-stdlib.c (main): Likewise.
75643         * tests/test-strchrnul.c (main): Likewise.
75644         * tests/test-strerror.c (main): Likewise.
75645         * tests/test-string.c (main): Likewise.
75646         * tests/test-strtod.c (main): Likewise.
75647         * tests/test-strverscmp.c (main): Likewise.
75648         * tests/test-symlink.c (main): Likewise.
75649         * tests/test-symlinkat.c (main): Likewise.
75650         * tests/test-sys_stat.c (main): Likewise.
75651         * tests/test-sys_time.c (main): Likewise.
75652         * tests/test-time.c (main): Likewise.
75653         * tests/test-unistd.c (main): Likewise.
75654         * tests/test-unlink.c (main): Likewise.
75655         * tests/test-unlinkat.c (main): Likewise.
75656         * tests/test-utimens.c (main): Likewise.
75657         * tests/test-utimensat.c (main): Likewise.
75658         * tests/test-version-etc.c (main): Likewise.
75659         * tests/test-wchar.c (main): Likewise.
75660         * tests/test-wctype.c (main): Likewise.
75661         * tests/test-xprintf-posix.c (main): Likewise.
75662         * tests/test-posixtm.c (main): Likewise.
75663         (STREQ): Delete unused macro.
75664         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75665         shadowed variables.
75666         * tests/test-memchr.c (main): Likewise.
75668 2009-10-21  Eric Blake  <ebb9@byu.net>
75670         areadlinkat: avoid failure on older glibc
75671         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75672         rather than mis-comparing 0 against FUNC_RESULT of char*.
75674 2009-10-21  Bruno Haible  <bruno@clisp.org>
75676         * modules/stpncpy (License): Relicense under LGPLv2+.
75677         Reported by David Lutterkort <lutter@redhat.com>.
75679 2009-10-20  Eric Blake  <ebb9@byu.net>
75681         utimensat: work around Solaris 9 bug
75682         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75683         has trailing slash bugs.
75684         * tests/test-lutimens.h (test_lutimens): Enhance test.
75685         * tests/test-utimens.h (test_utimens): Likewise.
75686         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75687         * doc/posix-functions/utimes.texi (utimes): Likewise.
75688         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75689         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75690         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75691         * doc/posix-functions/futimens.texi (futimens): Likewise.
75693         fdutimensat: new module
75694         * modules/fdutimensat: New file.
75695         * lib/fdutimensat.c (fdutimensat): Likewise.
75696         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75697         * MODULES.html.sh (File system functions): Mention module.
75698         * modules/fdutimensat-tests: New test.
75699         * tests/test-fdutimensat.c: Likewise.
75701         doc: regenerate INSTALL
75702         * doc/INSTALL: Reflect recent autoconf update.
75703         * doc/INSTALL.ISO: Likewise.
75704         * doc/INSTALL.UTF-8: Likewise.
75706 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75708         acl: warn if ACL support is not detected
75709         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75711 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75713         * lib/nproc.h: Add extern "C" block for C++.
75715 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75716             Bruno Haible  <bruno@clisp.org>
75718         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75719         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75720         * doc/posix-functions/isalpha.texi: Likewise.
75721         * doc/posix-functions/isblank.texi: Likewise.
75722         * doc/posix-functions/iscntrl.texi: Likewise.
75723         * doc/posix-functions/isdigit.texi: Likewise.
75724         * doc/posix-functions/isgraph.texi: Likewise.
75725         * doc/posix-functions/islower.texi: Likewise.
75726         * doc/posix-functions/isprint.texi: Likewise.
75727         * doc/posix-functions/ispunct.texi: Likewise.
75728         * doc/posix-functions/isspace.texi: Likewise.
75729         * doc/posix-functions/isupper.texi: Likewise.
75730         * doc/posix-functions/isxdigit.texi: Likewise.
75732 2009-10-18  Bruno Haible  <bruno@clisp.org>
75734         Tests for module 'isblank'.
75735         * modules/isblank-tests: New file.
75736         * tests/test-isblank.c: New file.
75738         New module 'isblank'.
75739         * lib/isblank.c: New file.
75740         * m4/isblank.m4: New file.
75741         * modules/isblank: New file.
75742         * doc/posix-functions/isblank.texi: Mention the new module.
75744 2009-10-18  Bruno Haible  <bruno@clisp.org>
75746         New module 'ctype'.
75747         * lib/ctype.in.h: New file.
75748         * m4/ctype.m4: New file.
75749         * modules/ctype: New file.
75750         * doc/posix-headers/ctype.texi: Mention the new module.
75752 2009-10-18  Jim Meyering  <meyering@redhat.com>
75754         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75755         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75756         right after its initialization, rather than farther down.
75757         Keeping these in close proximity makes it easier to ensure
75758         that each such variable is initialized.  E.g.,
75760             LIB_CLOCK_GETTIME=
75761             AC_SUBST([LIB_CLOCK_GETTIME])
75763         This change also increments these serial numbers.
75764         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75765         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75768 2009-10-18  Bruno Haible  <bruno@clisp.org>
75770         Don't let environment variables perturb build.
75771         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75772         (gl_PREREQ_GETHRXTIME): ... not here.
75774 2009-10-18  Bruno Haible  <bruno@clisp.org>
75776         Avoid symlink attack in localcharset module.
75777         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75778         (O_NOFOLLOW): Define fallback.
75779         (get_charset_aliases): Don't open the file if it is a symbolic link.
75780         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75781         gl_FCNTL_H.
75782         (gl_FCNTL_H): Require it.
75783         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75784         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75785         Reported by Fergal Glynn <fglynn@veracode.com>.
75787 2009-10-18  Bruno Haible  <bruno@clisp.org>
75789         Implement nproc for mingw.
75790         * lib/nproc.c: Include <windows.h>
75791         (num_processors): On native Windows platforms, try GetSystemInfo.
75793 2009-10-18  Bruno Haible  <bruno@clisp.org>
75795         Implement nproc for IRIX.
75796         * lib/nproc.c: Include <sys/sysmp.h>.
75797         (num_processors): On IRIX systems, try sysmp.
75798         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
75800 2009-10-18  Bruno Haible  <bruno@clisp.org>
75802         Implement nproc for HP-UX.
75803         * lib/nproc.c: Include <sys/pstat.h>
75804         (num_processors): On HP-UX systems, try pstat_getdynamic.
75805         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
75806         pstat_getdynamic.
75808 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
75809             Bruno Haible  <bruno@clisp.org>
75811         Implement nproc for NetBSD, OpenBSD.
75812         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
75813         (ARRAY_SIZE): New macro.
75814         (num_processors): On BSD systems, try sysctl of HW_NCPU.
75815         * m4/nproc.m4: New file.
75816         * modules/nproc (Files): Add m4/nproc.m4.
75817         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75818         (Makefile.am): Instead, augment lib_SOURCES.
75820 2009-10-18  Bruno Haible  <bruno@clisp.org>
75822         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75823         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75824         sys/param.h.
75826 2009-10-16  Eric Blake  <ebb9@byu.net>
75828         utimensat: new module
75829         * modules/utimensat: New file.
75830         * lib/utimensat.c (utimensat): Likewise.
75831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75832         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75833         so we can work around Linux bugs.
75834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75835         * modules/sys_stat (Makefile.am): Substitute them.
75836         * lib/sys_stat.in.h (utimensat): Declare it.
75837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75839         * modules/utimensat-tests: New test.
75840         * tests/test-utimensat.c: Likewise.
75842         utimens: let lutimens work on non-symlinks
75843         * lib/utimens.c (lutimens): Fall back to utimens rather than
75844         failing with ENOSYS, when file is not a symlink.
75845         (utimens): Reduce redirection.
75846         * tests/test-lutimens.h (test_lutimens): Update test to cover
75847         non-symlinks.
75848         * tests/test-utimens.h (test_utimens): Update test to cover
75849         symlinks.
75850         * tests/test-utimens.c (main): Update caller.
75852         utimens: cache whether utimensat syscall works
75853         * lib/utimens.c (utimensat_works_really): New cache variable.
75854         (fdutimens, lutimens): Use it to avoid failing syscall.
75856         test-stat-time, test-utimens: improve portability
75857         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75858         ext4 on alpha, and for cygwin.
75859         * tests/test-utimens-common.h: New file.
75860         (nap): Factor delays into single function.
75861         * tests/test-lutimens.h (test_lutimens): Use new header.
75862         * tests/test-futimens.h (test_futimens): Likewise.
75863         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75864         timestamps to occur from same machine, as was done previously for
75865         test_utimens.
75866         * modules/utimens-tests (Files): Ship new file.
75867         * modules/futimens-tests (Files): Likewise.
75868         Reported in part by Jim Meyering.
75870         sys_stat: sort replacement declarations
75871         * lib/sys_stat.in.h: Sort declarations.
75872         * lib/futimens.c (futimens): Fix typo.
75874 2009-10-15  Jim Meyering  <meyering@redhat.com>
75876         don't let environment settings perturb build
75877         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75878         could cause a configure-time and/or build-time malfunction.
75879         Typically, a configure-time function-in-library test is performed
75880         via code like this:
75882           LIB_VAR=
75883           AC_SUBST([LIB_VAR])
75884           prefix_saved_LIBS=$LIBS
75885             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75886                        [test "$ac_cv_search_FUNC" = "none required" ||
75887                         LIB_VAR=$ac_cv_search_FUNC])
75888           LIBS=$prefix_saved_LIBS
75890         However, in each of the files affected by this change, the LIB_VAR=
75891         initialization was omitted.  Thus, when set in the environment, its
75892         value would propagate into generated Makefiles when FUNC is not found
75893         in LIB_NAME.
75894         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75895         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75898 2009-10-14  Eric Blake  <ebb9@byu.net>
75900         fchdir: avoid infinite recursion in mingw
75901         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75902         recursing.
75904         test-stat-time: port to mingw
75905         * tests/test-stat-time.c (force_unlink): Return a value.
75906         (test_ctime) [W32]: Fix compilation error.
75907         (nap): Don't call usleep with too large an argument.  Use
75908         force_unlink.
75909         * doc/pastposix-functions/usleep.texi (usleep): Document the
75910         portability issue.
75912 2009-10-13  Jim Meyering  <meyering@redhat.com>
75914         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75915         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75916         * modules/pipe-filter-ii: Likewise.
75917         * modules/sys_socket-tests: Likewise.
75918         * modules/tsearch-tests: Likewise.
75919         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75920         (check): Depend on it.
75922 2009-10-12  Eric Blake  <ebb9@byu.net>
75924         utimens-tests: port to NFS file systems
75925         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75926         comparisons to avoid spurious failures from timestamp drift
75927         between NFS machines.
75929 2009-10-12  Eric Blake  <ebb9@byu.net>
75931         stat-time-tests: minor cleanups
75932         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75933         * tests/test-stat-time.c (nap): Separate assignment from call.
75934         Suggested by Paolo Bonzini and Bruno Haible.
75936         sys_stat: guarantee struct timespec
75937         * lib/sys_stat.in.h (includes): Always include <time.h>
75938         * modules/sys_stat (Depends-on): Add time.
75939         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75940         mode_t permission values.
75941         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75942         get at subsecond timestamps.
75944 2009-10-10  Eric Blake  <ebb9@byu.net>
75946         futimens: new module
75947         * modules/futimens: New file.
75948         * lib/futimens.c (futimens): Likewise.
75949         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75950         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75951         we can work around Linux bugs.
75952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75953         * modules/sys_stat (Makefile.am): Substitute them.
75954         * lib/sys_stat.in.h (futimens): Declare it.
75955         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75956         * doc/posix-functions/futimens.texi (futimens): Likewise.
75957         * modules/futimens-tests: New test.
75958         * tests/test-futimens.c: Likewise.
75960         utimens: introduce fdutimens
75961         * lib/utimens.h (fdutimens): New prototype.
75962         * lib/utimens.c (gl_futimens): Move guts...
75963         (fdutimens): ...to new interface.
75964         * tests/test-utimens.c (do_fdutimens): Use it.
75966         utimens: add UTIME_NOW and UTIME_OMIT support
75967         * lib/utimens.c (validate_timespec, update_timespec): New helper
75968         functions.
75969         (gl_futimens, lutimens): Use them.
75970         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75971         stdbool, sys_stat.
75972         (Link): Mention resulting library dependency.
75973         * modules/utimecmp (Link): Likewise.
75974         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75975         (Makefile.am): Pick up library dependency.
75976         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75977         definition.
75978         * tests/test-sys_stat.c: Test the definitions.
75979         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75980         * NEWS: Document library dependency.
75982         utimecmp: support symlink timestamps
75983         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75984         hashing when possible.  Use pathconf when available.
75985         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75986         * modules/utimecmp (Depends-on): Add lstat.
75988         utimens: add lutimens interface
75989         * lib/utimens.c (lutimens): New function.
75990         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75991         * lib/utimens.h (lutimens): Declare new interface.
75992         * tests/test-utimens.c (main): Enhance test.
75993         * tests/test-lutimens.h (test_lutimens): New file.
75994         * modules/utimens-tests (Files): Distribute it.
75995         (Depends-on): Add symlink.
75996         (configure.ac): Check for usleep.
75998         utimens: validate futimens usage
75999         * lib/utimens.c (gl_futimens): Require valid fd up front, using
76000         fewer syscalls on failure later on.  Avoid compiler warning on
76001         mingw.
76002         * modules/utimens (Depends-on): Add dup2.
76004         utimens: add test
76005         * modules/utimens-tests: New test.
76006         * tests/test-utimens.h: New file.
76007         * tests/test-futimens.h: Likewise.
76008         * tests/test-utimens.c: Likewise.
76010         doc: mention timestamp portability issues
76011         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
76012         instead.
76013         * doc/posix-functions/utime.texi (utime): Likewise.
76014         * doc/posix-functions/utimes.texi (utimes): Likewise.
76015         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
76016         instead.
76017         * doc/posix-functions/futimens.texi (futimens): Mention utimens
76018         module.
76019         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76020         Mention weakness with symlink timestamps.
76021         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
76022         to utimensat/futimens instead.
76023         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
76025         test-dup2: enhance test
76026         * tests/test-dup2.c (main): Also check AT_FDCWD.
76028         test-stat-time: avoid more spurious failures
76029         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
76030         xfs; and avoid race if the two timestamps cross quantization edge.
76032         relocatable: prefer 'file system' over 'filesystem'
76033         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
76034         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
76035         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
76036         * doc/relocatable.texi (Enabling Relocatability): Likewise.
76037         * lib/relocatable.c (compute_curr_prefix): Likewise.
76039 2009-10-10  Jim Meyering  <meyering@redhat.com>
76041         stat-time-tests: check for the usleep function
76042         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
76044 2009-10-10  Bruno Haible  <bruno@clisp.org>
76046         * modules/xnanosleep: Put the Link section after the Include section.
76048 2009-10-09  Eric Blake  <ebb9@byu.net>
76050         dup2: work around FreeBSD 6.1 bug
76051         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
76052         * doc/posix-functions/dup2.texi (dup2): Document it.
76053         Reported by Nelson H. F. Beebe and Jim Meyering.
76055         test-stat-time: port to buggy NFS clients
76056         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
76057         (test_ctime): Also skip test if mtime and ctime are skewed.
76059         maint: prefer 'file system' over 'filesystem'
76060         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76061         * doc/posix-functions/lstat.texi (lstat): Likewise.
76062         * lib/file-has-acl.c (file_has_acl): Likewise.
76063         * lib/fwriteerror.c [TEST]: Likewise.
76064         * tests/test-areadlink.h (test_areadlink): Likewise.
76065         * tests/test-areadlinkat-with-size.c (main): Likewise.
76066         * tests/test-areadlinkat.c (main): Likewise.
76067         * tests/test-canonicalize-lgpl.c (main): Likewise.
76068         * tests/test-canonicalize.c (main): Likewise.
76069         * tests/test-fstatat.c (main): Likewise.
76070         * tests/test-linkat.c (main): Likewise.
76071         * tests/test-lstat.h (test_lstat_func): Likewise.
76072         * tests/test-mkdir.h (test_mkdir): Likewise.
76073         * tests/test-readlink.h (test_readlink): Likewise.
76074         * tests/test-remove.c (main): Likewise.
76075         * tests/test-rename.h (test_rename): Likewise.
76076         * tests/test-renameat.c (main): Likewise.
76077         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76078         * tests/test-symlink.h (test_symlink): Likewise.
76079         * tests/test-symlinkat.c (main): Likewise.
76080         * tests/test-unlink.h (test_unlink_func): Likewise.
76081         * tests/test-unlinkat.c (main): Likewise.
76083         maint: make realtime library usage explicit
76084         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
76085         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
76086         * modules/settime (Link): Likewise.
76087         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
76089         test-stat-time: speed up execution
76090         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
76091         warning on mingw.
76092         (nap): New helper function.
76093         (prepare_test): Use it to reduce sleep time.
76094         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
76095         execution.
76096         * modules/stat-time-tests (configure.ac): Check for usleep.
76098 2009-10-09  Jim Meyering  <meyering@redhat.com>
76100         selinux-h: always use getfilecon wrappers
76101         * lib/getfilecon.c: New file.
76102         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
76103         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
76104         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
76105         (fgetfilecon): Provide a stub.
76106         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
76107         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
76108         file unconditionally.
76109         When <selinux/selinux.h> is found, arrange to use wrappers.
76110         * modules/selinux-h (Files): Add getfilecon.c.
76111         (Makefile.am): Substitute include-next-related bits
76112         into the now-always-generated selinux/selinux.h file.
76113         * doc/glibc-functions/lgetfilecon.texi: New file.
76114         * doc/glibc-functions/fgetfilecon.texi: New file.
76115         * doc/glibc-functions/getfilecon.texi: New file.
76116         * doc/glibc-functions/getfilecon-desc.texi: New file.
76117         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
76118         which to pull in the new files.
76119         * MODULES.html.sh (Misc): Add selinux-h.
76121 2009-10-08  Jim Meyering  <meyering@redhat.com>
76123         unistd: fix comment typo
76124         * lib/unistd.in.h (euidaccess): Fix a comment typo.
76126 2009-10-08  Eric Blake  <ebb9@byu.net>
76128         areadlink: use SIZE_MAX consistently
76129         * modules/areadlink (Depends-on): Add stdint.
76130         * modules/areadlink-with-size (Depends-on): Likewise.
76131         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
76132         gives NULL; drop sys/types, since unistd gives size_t; and add
76133         stdint for SIZE_MAX.
76134         (SIZE_MAX): Rely on headers.
76135         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
76136         and add stdint.
76137         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
76138         (SIZE_MAX): Likewise.
76139         (INITIAL_BUF_SIZE): Turn into enum.
76140         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
76142 2009-10-08  Jim Meyering  <meyering@redhat.com>
76144         areadlinkat: avoid compilation failure
76145         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
76146         Fix typo in comment.
76148 2009-10-07  Eric Blake  <ebb9@byu.net>
76150         areadlinkat-with-size: new module
76151         * modules/areadlinkat-with-size: New module.
76152         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
76153         * lib/areadlink.h (areadlinkat): Declare it.
76154         * MODULES.html.sh (File system functions): Mention it.
76155         * modules/areadlinkat-with-size-tests: New test.
76156         * tests/test-areadlinkat-with-size.c: New file.
76158         xreadlinkat: new module
76159         * modules/xreadlinkat: New module.
76160         * lib/xreadlinkat.c (xreadlinkat): New file.
76161         * lib/xreadlink.h (xreadlinkat): Declare it.
76162         * MODULES.html.sh (File system functions): Mention it.
76164         areadlinkat: new module
76165         * lib/at-func.c (FUNC_FAIL): New define.
76166         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
76167         * modules/areadlinkat: New module.
76168         * lib/linkat.c (areadlinkat): Move...
76169         * lib/areadlinkat.c (areadlinkat): ...to new file.
76170         * lib/areadlink.h (areadlinkat): Declare it.
76171         * modules/linkat (Depends-on): Add areadlinkat.
76172         * MODULES.html.sh (File system functions): Mention it.
76173         * modules/areadlinkat-tests: New test.
76174         * tests/test-areadlinkat.c: New file.
76176         areadlink, areadlink-with-size: add tests
76177         * modules/areadlink-tests: New test.
76178         * modules/areadlink-with-size-tests: Likewise.
76179         * tests/test-areadlink.h: New file.
76180         * tests/test-areadlink.c: Likewise.
76181         * tests/test-areadlink-with-size.c: Likewise.
76183         maint: minor cleanups
76184         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
76185         _UNUSED_PARAMETER_ instead.
76186         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
76187         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
76188         * modules/linkat-tests (Files): Distribute test-link.h.
76190         openat, utimens: whitespace cleanup
76191         * lib/openat.c: Prefer space throughout, rather than mix of 8
76192         spaces vs. tabs.
76193         * lib/at-func.c: Likewise.
76194         * lib/utimens.c: Likewise.
76196         openat: avoid using wrong fd
76197         * lib/openat.c (openat_permissive): Reject user's fd if saving the
76198         working directory chooses same fd.
76199         * lib/at-func.c (AT_FUNC_NAME): Likewise.
76201         mkdir, mkdirat: fix cygwin 1.5.x bug
76202         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
76203         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
76204         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
76205         bug.
76206         (gl_PREREQ_MKDIR): Delete unused macro.
76207         * modules/mkdir (Files): Track file rename.
76208         (configure.ac): Update macro name.
76209         * modules/openat (Depends-on): Add mkdir.
76210         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
76212         mkdir, mkdirat: add tests
76213         * modules/mkdir-tests: New test.
76214         * tests/test-mkdir.h: New file.
76215         * tests/test-mkdir.c: Likewise.
76216         * tests/test-mkdirat.c: Likewise.
76217         * modules/openat-tests (Files): Add new files.
76218         (Makefile.am): Run new test.
76220 2009-10-06  Eric Blake  <ebb9@byu.net>
76222         doc: tweak *at function documentation
76223         * doc/posix-functions/faccessat.texi (faccessat): Mention
76224         known issue with replacement.
76225         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
76226         * doc/posix-functions/linkat.texi (linkat): Likewise.
76227         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76228         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76229         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76230         * doc/posix-functions/renameat.texi (renameat): Likewise.
76231         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76233         openat: fix GNU/Hurd bug in unlinkat
76234         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
76235         broken.
76236         * doc/posix-functions/unlink.texi (unlink): Document this.
76237         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
76239         fdopendir: fix GNU/Hurd bug
76240         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
76241         allowing non-directory fds.
76242         * lib/fdopendir.c (rpl_fdopendir): Work around it.
76243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
76244         * modules/dirent (Makefile.am): Substitute it.
76245         * lib/dirent.in.h (fdopendir): Declare replacement.
76246         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
76247         * tests/test-fdopendir.c (main): Test something other than
76248         /dev/null, since on Hurd that behaves like a directory.
76250         test-symlink: port to GNU/Hurd
76251         * tests/test-symlink.h (test_symlink): Relax expected errno.
76253         doc: tweak more cygwin information
76254         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
76255         now compatible with glibc.
76256         * doc/posix-functions/getopt.texi (getopt): Likewise.
76258         getopt-gnu: add another test
76259         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
76260         guarantee behavior relied on by m4.
76261         * tests/test-getopt.c (main): Use it.
76262         * modules/getopt-posix-tests (Depends-on): Add setenv.
76263         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
76265         getopt: fix compilation on darwin
76266         * lib/getopt.in.h (includes): Leave breadcrumbs during system
76267         include.
76268         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
76269         Reported by Ludovic Courtès.
76271 2009-10-06  Bruno Haible  <bruno@clisp.org>
76273         * modules/size_max (Description): Discourage its use.
76274         Reported by Simon Josefsson.
76276 2009-10-06  Jim Meyering  <meyering@redhat.com>
76278         linkat: avoid compilation failure
76279         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
76281 2009-10-05  Eric Blake  <ebb9@byu.net>
76283         linkat: support Linux 2.6.17
76284         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
76285         linkat on Linux, but allow cache variable override.
76286         * lib/linkat.c (rpl_linkat): Define override.
76287         * modules/linkat (Depends-on): Add symlinkat.
76288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
76289         * modules/unistd (Makefile.am): Substitute it.
76290         * lib/unistd.in.h (linkat): Declare replacement.
76291         Reported by Pádraig Brady.
76293         quotearg: port test to systems with C.UTF-8 locale
76294         * tests/test-quotearg.c (struct result_strings): Add another
76295         member, differentiating between C.ASCII and C.UTF-8 handling.
76296         (compare_strings): Add parameter.
76297         (main): Adjust all callers.
76299         getopt: avoid clash with FreeBSD _getopt_internal
76300         * lib/getopt.in.h (_getopt_internal): Override the name.
76301         * lib/getopt_int.h (includes): Pick up any overrides.
76302         Reported by Reuben Thomas.
76304         hash: allow C89 compilation
76305         * lib/hash.c (check_tuning): Move declaration before statement.
76306         Reported by Reuben Thomas.
76308 2009-10-05  Karl Berry  <karl@gnu.org>
76310         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
76312 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
76313             Bruno Haible  <bruno@clisp.org>
76315         * lib/uname.c (uname): Use a table-driven algorithm to compute
76316         Windows NT versions.
76318 2009-10-04  Bruno Haible  <bruno@clisp.org>
76320         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
76321         program_invocation_short_name.
76322         * modules/progname (configure.ac): Test for presence of
76323         program_invocation_short_name.
76324         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76326 2009-10-04  Bruno Haible  <bruno@clisp.org>
76328         * lib/progname.c (set_program_name): Fix comment.
76329         Reported by Jim Meyering.
76331 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76332             Bruno Haible  <bruno@clisp.org>
76334         * lib/uname.c: Include <string.h>.
76335         (uname): Do only one call to GetVersionEx in the common case.
76337 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76338             Bruno Haible  <bruno@clisp.org>
76340         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
76341         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
76342         (uname): Add support for Windows CE and various non-x86 CPU types.
76344 2009-10-03  Bruno Haible  <bruno@clisp.org>
76346         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
76347         invocation to tests/configure.ac.
76348         Reported by Ian Beckwith <ianb@erislabs.net>.
76350 2009-10-02  Eric Blake  <ebb9@byu.net>
76352         fchdir: avoid compiler warning
76353         * lib/fchdir.c (canonicalize_file_name)
76354         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
76356         test-open: support mingw errno values
76357         * tests/test-open.h (test_open): Relax test.
76358         * tests/test-fopen.h (test_fopen): Likewise.
76359         * tests/test-openat-safer.c (main): Likewise.
76361         open: fix opening directory on mingw
76362         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
76364         test-open: on GNU/Hurd, /dev/null is a directory
76365         * tests/test-fopen.h (main): Rename...
76366         (test_fopen): ...to this.  Use a guaranteed non-directory when
76367         confirming open behavior on trailing slash.
76368         * tests/test-openat-safer.c (main): Likewise.
76369         * tests/test-open.h (main): Likewise....
76370         (test_open): ...to this.
76371         * tests/test-fopen.c (main): Adjust caller.
76372         * tests/test-fopen-safer.c (main): Likewise.
76373         * tests/test-open.c (main): Likewise.
76374         * tests/test-fcntl-safer.c (main): Likewise.
76375         Reported by Samuel Thibault.
76377         rename, fchdir: don't ignore chdir failure
76378         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
76379         * lib/rename.c (rpl_rename) [W32]: Likewise.
76380         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76381         an empty destination directory if source cannot be renamed,
76382         although there is still possibility for failure.
76383         * doc/posix-functions/rename.texi (rename): Document the race.
76384         Reported by Jim Meyering.
76386         maint: cleanup whitespace in recent commits
76387         * lib/rename.c (rpl_rename): Remove tabs.
76388         * tests/test-link.h (test_link): Likewise.
76389         * lib/fchdir.c (get_name): Likewise.
76390         Reported by Jim Meyering.
76392 2009-10-02  Ben Pfaff  <blp@gnu.org>
76394         relocatable-prog-wrapper: Add missing dependency on
76395         double-slash-root.
76396         * modules/relocatable-prog-wrapper: Add dependency.
76397         Reported by Ian Beckwith <ianb@erislabs.net>.
76399 2009-10-02  Eric Blake  <ebb9@byu.net>
76401         renameat: fix Solaris bugs
76402         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76403         needed fixing.
76404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76405         * modules/stdio (Makefile.am): Substitute it.
76406         * lib/stdio.in.h (renameat): Declare replacement.
76407         * lib/renameat.c (rpl_renameat): Implement fix.
76409         renameat: new module
76410         * modules/renameat: New file.
76411         * lib/renameat.c (renameat): Likewise.
76412         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76414         * modules/stdio (Makefile.am): Substitute them.
76415         * lib/stdio.in.h (renameat): Declare it.
76416         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76417         * doc/posix-functions/renameat.texi (renameat): Likewise.
76418         * modules/renameat-tests: New test.
76419         * tests/test-renameat.c: Likewise.
76421         rename: fix mingw bugs
76422         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76423         directory overwrite bugs.
76425         rename: fix another cygwin 1.5 bug
76426         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76427         checks.
76428         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76429         unnecessary cygwin workarounds.  Also work around bug with moving
76430         full directory onto an empty one.
76431         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76433         rename-dest-slash: merge into rename module
76434         * modules/rename-dest-slash (Status): Mark obsolete.
76435         (Depends-on): Add rename.
76436         (Files): Let rename do it all.
76437         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76438         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76439         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76440         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76441         * lib/rename.c (rpl_rename): Update comments.
76443         rename: fix cygwin 1.5.x bugs
76444         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76445         * lib/rename.c (rpl_rename): Work around them.
76446         * modules/rename (Depends-on): Add same-inode.
76448         rename: fix Solaris 10 bug
76449         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76450         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76451         was the only bug.
76453         rename: fix Solaris 9 bug
76454         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76455         on non-directory.  Avoid calling exit.
76456         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76457         strdup.
76458         * modules/rename-tests (Depends-on): Drop lstat.
76459         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76460         (gl_PREREQ_RENAME): Delete unused macro.
76462         rename-dest-slash: fix NetBSD bug
76463         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76464         links.
76465         * modules/rename-dest-slash (Depends-on): Add same-inode.
76467         rename-tests: new test, exposes several platform bugs
76468         * modules/rename-tests: New file.
76469         * tests/test-rename.h: Likewise.
76470         * tests/test-rename.c: Likewise.
76471         * doc/posix-functions/rename.texi (rename): Improve documentation,
76472         including bugs that will eventually be fixed in gnulib.
76474 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76476         * lib/uname.c: Include <stdlib.h>
76477         (uname): Assume version info is available.
76479 2009-10-02  Jim Meyering  <meyering@redhat.com>
76481         gnu-web-doc-update: correct --help output
76482         * build-aux/gnu-web-doc-update: Make --help output relevant.
76484         gnu-web-doc-update: add standard options
76485         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76487         gnu-web-doc-update: New module.
76488         Use this script to automatically update the on-line web documentation
76489         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76490         * modules/gnu-web-doc-update: New file, from coreutils.
76491         * build-aux/gnu-web-doc-update: New script.
76493 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76495         link: LoadLibrary is not needed.
76496         * lib/link.c: Use GetModuleHandle.
76498 2009-10-01  Eric Blake  <ebb9@byu.net>
76500         getopt: bump serial number
76501         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76502         change.
76504         tests: tighten link, rmdir, and remove tests
76505         * tests/test-link.h (includes): No need to use <config.h> here.
76506         Clean up if directory hard link was created, otherwise test for
76507         trailing '.'.
76508         * tests/test-linkat.c (main): Simplify.
76509         * tests/test-remove.c (main): Enhance test for trailing '.'.
76510         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76512 2009-10-01  Jim Meyering  <meyering@redhat.com>
76514         maint.mk: requiring "make major" was annoying, for a "minor" release.
76515         What is intended is "stable", to contrast with alpha and beta,
76516         so require "make stable", not "make major".
76517         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76518         (get_tool_versions): Likewise.
76519         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76521 2009-09-30  Ben Pfaff  <blp@gnu.org>
76523         Fix broken build of replacement for Windows tmpfile().
76524         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76525         flags argument added along with the 'mkostemp' module.
76527 2009-09-28  Bruno Haible  <bruno@clisp.org>
76529         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76530         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76531         to 'remove_elt'.
76532         (gl_list_remove): Update.
76533         * lib/gl_list.c (gl_list_remove): Update.
76534         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76535         to 'remove_elt'.
76536         (gl_oset_remove): Update.
76537         * lib/gl_list.c (gl_oset_remove): Update.
76538         Reported by Eric Blake.
76540 2009-09-28  Eric Blake  <ebb9@byu.net>
76542         doc: mention yet more cygwin 1.7 status
76543         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76544         cygwin.
76545         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76546         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76548         argp: fix test failure
76549         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76550         that are not upper-case.  Pass correct range to tolower.
76552 2009-09-27  Jim Meyering  <meyering@redhat.com>
76554         test-yesno: work around sparc-dash here-document infelicity
76555         Without this change, the literal \177 byte in a here document
76556         would make dash 0.5.5.1-3 access uninitialized memory.
76557         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76558         Instead, use a marker, "@", and filter through tr to create the desired
76559         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76561 2009-09-27  Bruno Haible  <bruno@clisp.org>
76563         Disable untested support for new flavours of ACLs on AIX.
76564         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76565         progress.
76566         * lib/set-mode-acl.c (qset_acl): Likewise.
76568 2008-12-07  Bruno Haible  <bruno@clisp.org>
76570         Add support for new flavours of ACLs on AIX. (Untested.)
76571         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76572         (file_has_acl): Add support for newer AIX.
76573         * lib/set-mode-acl.c (qset_acl): Likewise.
76574         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76575         Rainer Tammer <tammer@tammer.net>.
76577 2009-09-26  Eric Blake  <ebb9@byu.net>
76579         argp: fix compilation of getopt
76580         * lib/getopt.in.h (includes): Use different guard than glibc.
76581         Reported by Sergey Poznyakoff.
76583         doc: mention more cygwin 1.7 status
76584         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76585         bug.
76586         * doc/posix-functions/execl.texi (execl): Likewise.
76587         * doc/posix-functions/execle.texi (execle): Likewise.
76588         * doc/posix-functions/execlp.texi (execlp): Likewise.
76589         * doc/posix-functions/execv.texi (execv): Likewise.
76590         * doc/posix-functions/execve.texi (execve): Likewise.
76591         * doc/posix-functions/execvp.texi (execvp): Likewise.
76592         * doc/glibc-functions/canonicalize_file_name.texi
76593         (canonicalize_file_name): Cygwin 1.7 now provides this.
76594         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76595         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76596         on AT_SYMLINK_NOFOLLOW.
76598 2009-09-24  Eric Blake  <ebb9@byu.net>
76600         test-linkat: make test more robust
76601         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76603         getopt: fix inclusion guards for cygwin
76604         * modules/getopt-posix (Depends-on): Add include-next.
76605         (Makefile.am): Substitute more items in replacement header.
76606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76607         <getopt.h>.
76608         * lib/getopt.in.h (includes): Use split inclusion guard, and
76609         prefer <getopt.h> over include <unistd.h> when one is present.
76610         (option): Also override name of 'struct option'.
76612         same-inode: revert prior change; it is not yet ready
76613         * NEWS: Undo mention of this change.
76614         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76615         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76616         * lib/cycle-check.c (cycle_check): Likewise.
76617         * lib/same.c (same_name): Likewise.
76618         * lib/at-func2.c (at_func2): Likewise.
76620 2009-09-23  Eric Blake  <ebb9@byu.net>
76622         linkat: new module
76623         * modules/linkat: New file.
76624         * lib/at-func2.c (at_func2): Likewise.
76625         * lib/linkat.c (linkat): Likewise.
76626         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76627         * lib/openat-priv.h (at_func2): Add declaration.
76628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76629         * modules/unistd (Makefile.am): Substitute them.
76630         * lib/unistd.in.h (linkat): Declare it.
76631         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76632         * doc/posix-functions/linkat.texi (linkat): Likewise.
76633         * doc/posix-functions/link.texi (link): Tweak wording.
76634         * tests/test-link.c (main): Move guts...
76635         * tests/test-link.h (test_link): ...into new file.
76636         * modules/linkat-tests: New test.
76637         * tests/test-linkat.c: Likewise.
76638         * modules/link-tests (Files): Ship new file.
76639         (Depends-on): Add stdbool.
76641         dirname: add library-safe mdir_name
76642         * lib/dirname.h (mdir_name): New prototype.
76643         * lib/dirname.c (dir_name): Move guts...
76644         (mdir_name): ...to new function that avoids xalloc_die.
76646         fchdir: another mingw fix
76647         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76648         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76649         on mingw (where it has not yet been ported), and make it optional
76650         elsewhere.
76651         (_gl_register_fd): Use it.
76653         same-inode: make SAME_INODE tri-state, to port to mingw
76654         * NEWS: Mention this change.
76655         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76656         st_ino always being 0.
76657         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76658         * lib/cycle-check.c (cycle_check): Likewise.
76659         * lib/same.c (same_name): Likewise.
76661         lstat: avoid mingw compilation error
76662         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76663         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76664         lstat ourselves.
76665         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76666         was adequate.
76667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76668         the checks for lstat.
76669         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76671         link: fix test failure on Solaris 9
76672         * lib/link.c (rpl_link): Don't assume link will catch bogus
76673         trailing slash on source.
76675         test-symlinkat: enhance test
76676         * tests/test-readlink.c (main): Move guts...
76677         * tests/test-readlink.h (test_readlink): ...into new file.
76678         * tests/test-symlink.c (main): Move guts...
76679         * tests/test-symlink.h (test_symlink): ...into new file.
76680         * tests/test-symlinkat.c (main): Use new files for further
76681         coverage.
76682         (do_symlink, do_readlink): New helper functions.
76683         * modules/symlink-tests (Files): Ship new file.
76684         (Depends-on): Add stdbool.
76685         * modules/readlink-tests (Files): Ship new file.
76686         (Depends-on): Add stdbool.
76687         * modules/symlinkat-tests (Files): Use new files.
76689 2009-09-23  Eric Blake  <ebb9@byu.net>
76691         readlink: document portability issue with symlink length
76692         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76693         systems have bogus st_size on symlinks, and mention the
76694         areadlink-with-size module.
76695         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76696         * doc/posix-functions/readlink.texi (readlink): Mention the
76697         areadlink module, and ERANGE failure.
76698         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76699         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76701         readlink: fix Solaris 9 bug with trailing slash
76702         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76703         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76704         * doc/posix-functions/readlink.texi (readlink): Document this.
76705         * modules/readlink-tests: New test.
76706         * tests/test-readlink.c: Likewise.
76708         readlink: fix cygwin 1.5.x bug with return type
76709         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76710         * lib/unistd.in.h (readlink): Use ssize_t.
76711         * lib/readlink.c (readlink): Likewise.
76712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76713         * modules/unistd (Makefile.am): Substitute it.
76714         * lib/unistd.in.h (readlink): Declare replacement.
76715         * doc/posix-functions/readlink.texi (readlink): Document this.
76717         symlink: use throughout gnulib
76718         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76719         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76720         symlink is not used.
76721         * modules/symlinkat (Depends-on): Add symlink.
76722         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76723         * modules/canonicalize-tests (Depends-on): Likewise.
76724         * modules/lstat-tests (Depends-on): Likewise.
76725         * modules/openat-tests (Depends-on): Likewise.
76726         * modules/remove-tests (Depends-on): Likewise.
76727         * modules/rmdir-tests (Depends-on): Likewise.
76728         * modules/unlink-tests (Depends-on): Likewise.
76729         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76730         * tests/test-canonicalize.c (symlink): Likewise.
76731         * tests/test-fstatat.c (symlink): Likewise.
76732         * tests/test-lstat.c (symlink): Likewise.
76733         * tests/test-remove.c (symlink): Likewise.
76734         * tests/test-rmdir.c (symlink): Likewise.
76735         * tests/test-unlink.c (symlink): Likewise.
76736         * tests/test-unlinkat.c (symlink): Likewise.
76738         symlink: new module, for Solaris 9 bug
76739         * modules/symlink: New file.
76740         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76741         * lib/symlink.c: Likewise.
76742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76743         * modules/unistd (Makefile.am): Substitute them.
76744         * lib/unistd.in.h (symlink): Declare replacement.
76745         * MODULES.html.sh (File system functions): Mention it.
76746         * doc/posix-functions/symlink.texi (symlink): Likewise.
76747         * modules/symlink-tests: New test.
76748         * tests/test-symlink.c: Likewise.
76750 2009-09-23  Bruno Haible  <bruno@clisp.org>
76752         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76753         when needed.
76754         Test case: gnulib-tool --import --with-tests atexit inttypes.
76755         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76757 2009-09-23  Bruno Haible  <bruno@clisp.org>
76759         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76760         subcommand, not in a subshell.
76762 2009-09-22  Eric Blake  <ebb9@byu.net>
76764         unistd: sort replacement declarations
76765         * lib/unistd.in.h: Sort declarations.
76767         open, openat: minor optimization
76768         * lib/open.c (open): If open succeeded, len is non-zero.
76769         * lib/openat.c (rpl_openat): Likewise.
76771         link-follow: ensure correct result
76772         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76773         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76774         distinguish between possible failures.
76776 2009-09-21  Eric Blake  <ebb9@byu.net>
76778         fts: avoid compiler warning
76779         * lib/fts.c (dirent_inode_sort_may_be_useful)
76780         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76782 2009-09-19  Bruno Haible  <bruno@clisp.org>
76784         * lib/progreloc.c (canonicalize_file_name): New declaration.
76786 2009-09-19  Eric Blake  <ebb9@byu.net>
76788         link: fix quoting
76789         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76791         openat: fix openat bugs on Solaris 9
76792         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
76793         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
76794         * modules/openat (Depends-on): Add open.
76795         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
76796         * modules/fcntl-h (Makefile.am): Substitute it.
76797         * lib/fcntl.in.h (openat): Declare replacement.
76798         * doc/posix-functions/openat.texi (openat): Document this.
76800         openat: move fstatat and unlinkat into correct files
76801         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
76802         compiled.
76803         * lib/openat.c (fstatat, unlinkat): Move...
76804         * lib/fstatat.c (fstatat): ...into correct files.
76805         * lib/unlinkat.c (unlinkat): Likewise.
76807         openat: fix unlinkat bugs on Solaris 9
76808         * lib/unlinkat.c (unlinkat): New file.
76809         * modules/openat (Depends-on): Add unlink.
76810         (Files): Distribute it.
76811         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
76812         trailing slash behavior is broken.
76813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76814         * modules/unistd (Makefile.am): Substitute it.
76815         * lib/unistd.in.h (unlinkat): Declare replacement.
76816         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76818         openat: fix fstatat bugs on Solaris 9
76819         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76820         stat.
76821         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76823         test-unlinkat: enhance test, to expose Solaris 9 bug
76824         * tests/test-unlink.c (main): Factor guts...
76825         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76826         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76827         * tests/test-rmdir.c (main): Adjust caller.
76828         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76829         (unlinker): New helper function.
76830         (rmdirat): Enhance check.
76831         * modules/rmdir-tests (Depends-on): Add stdbool.
76832         * modules/unlink-tests (Depends-on): Likewise.
76833         (Files): Add test-unlink.h.
76834         * modules/openat-tests (Files): Likewise.
76835         (Depends-on): Add unlinkdir.
76837         test-fstatat: new test, to expose Solaris 9 bugs
76838         * tests/test-stat.c (main): Factor guts...
76839         * tests/test-stat.h (test_stat_func): ...into new file.
76840         * tests/test-lstat.c (main): Factor guts...
76841         * tests/test-lstat.h (test_lstat_func): ...into new file.
76842         * tests/test-fstatat.c: New file.
76843         * modules/stat-tests (Files): Add test-stat.h.
76844         * modules/lstat-tests (Files): Add test-lstat.h.
76845         (Depends-on): Add stdbool.
76846         * modules/openat-tests (Depends-on): Add pathmax.
76847         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76848         (Makefile.am): Run new test.
76850         remove: new module, for mingw and Solaris 9 bugs
76851         * modules/remove: New file.
76852         * lib/remove.c: Likewise.
76853         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76855         * modules/stdio (Makefile.am): Use them.
76856         * lib/stdio.in.h (remove): Declare replacement.
76857         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76858         * doc/posix-functions/remove.texi (remove): Likewise.
76859         * modules/remove-tests: New test.
76860         * tests/test-remove.c: Likewise.
76862         unlink: new module, for Solaris 9 bug
76863         * modules/unlink: New file.
76864         * lib/unlink.c: Likewise.
76865         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76867         * modules/unistd (Makefile.am): Use them.
76868         * lib/unistd.in.h (stat): Declare replacement.
76869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76870         * doc/posix-functions/unlink.texi (unlink): Likewise.
76871         * modules/unlink-tests: New test.
76872         * tests/test-unlink.c: Likewise.
76874         lstat: fix Solaris 9 bug
76875         * lib/lstat.c (lstat): Also check for trailing slash on
76876         non-symlink, non-directories.  Use stat module to simplify logic.
76877         * doc/posix-functions/lstat.texi (lstat): Document it.
76878         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76879         (configure.ac): Check for symlink.
76880         * tests/test-lstat.c (main): Add more tests.
76882         stat: add as dependency to other modules
76883         * modules/chown (Depends-on): Add stat.
76884         * modules/euidaccess (Depends-on): Likewise.
76885         * modules/fchdir (Depends-on): Likewise.
76886         * modules/isdir (Depends-on): Likewise.
76887         * modules/link (Depends-on): Likewise.
76888         * modules/lstat (Depends-on): Likewise.
76889         * modules/mkdir-p (Depends-on): Likewise.
76890         * modules/modechange (Depends-on): Likewise.
76891         * modules/open (Depends-on): Likewise.
76892         * modules/readlink (Depends-on): Likewise.
76893         * modules/same (Depends-on): Likewise.
76895         stat: fix Solaris 9 bug
76896         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76897         slash.
76898         * lib/stat.c (rpl_stat): Work around it.
76899         * doc/posix-functions/stat.texi (stat): Update documentation.
76901         stat: new module, for mingw bug
76902         * modules/stat: New file.
76903         * lib/stat.c: Likewise.
76904         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76906         * modules/sys_stat (Makefile.am): Use them.
76907         * lib/sys_stat.in.h (stat): Declare replacement.
76908         * lib/openat.c (fstatat): Deal with lstat and stat being function
76909         macros.
76910         * modules/openat (Depends-on): Add inline.
76911         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76912         * doc/posix-functions/stat.texi (stat): Likewise.
76913         * modules/stat-tests: New test.
76914         * tests/test-stat.c: Likewise.
76916 2009-09-19  Jim Meyering  <meyering@redhat.com>
76918         syntax-check: detect unnecessary inclusion of canonicalize.h
76919         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76921 2009-09-19  Eric Blake  <ebb9@byu.net>
76923         canonicalize-lgpl: adjust clients to use correct header
76924         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76925         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76926         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76927         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76928         * lib/progreloc.c (includes): Likewise.
76930 2009-09-19  Jim Meyering  <meyering@redhat.com>
76932         test-posixtm.c: correct a comment
76933         * tests/test-posixtm.c: Correct first-line comment.
76934         Spotted by Eric Blake.
76936 2009-09-16  Jim Meyering  <meyering@redhat.com>
76938         posixtm-tests: make T const-correct; add a test case
76939         * tests/test-posixtm.c (T): Declare const.
76940         Add a test for -(2^31+1).
76941         Remove useless can-succeed-only-in-2002 test.
76943         posixtm-tests: adjust the sole failing test
76944         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76945         expected output matches what mktime now produces.  Cross-checked via
76946         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76948         posixtm: move #ifdef'd tests into a new module
76949         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76950         * tests/test-posixtm.c: ... this new file.
76951         * modules/posixtm-tests: New module.
76953 2009-09-19  Eric Blake  <ebb9@byu.net>
76955         openat: simplify use of at-func.c
76956         * lib/at-func.c (includes): Include prerequisites here, to
76957         simplify requirements on client files.
76958         * lib/openat-priv.h: Add double-inclusion guard.
76959         * lib/faccessat.c (includes): Simplify.
76960         * lib/fchmodat.c (includes): Likewise.
76961         * lib/fchownat.c (includes): Likewise.
76962         * lib/mkdirat.c (includes): Likewise.
76963         * lib/mkfifoat.c (includes): Likewise.
76964         * lib/symlinkat.c (includes): Likewise.
76966         openat: allow return of fd 0
76967         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76968         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76969         unistd-safer.
76970         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76971         <fcntl.h>; this module does not leak fds.
76972         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76973         must be allowed to return 0, leaving openat_safer to add the
76974         safety.
76975         (openat_permissive): Avoid writing to just-opened fd 2 if
76976         restoring the current directory fails.
76977         * lib/openat-die.c (openat_restore_fail): Add comment.
76978         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76979         (save_cwd): Guarantee safe fd, but without use of open_safer.
76980         * tests/test-openat.c: New test.
76981         * modules/openat-tests (Files, Makefile.am): Distribute and build
76982         new file.
76984         relocatable-prog-wrapper: fix build
76985         * modules/relocatable-prog-wrapper (Files): Update name of
76986         canonicalize m4 file, broken on 2009-09-17.
76987         Reported by emad hajjar <aleppos@hotmail.com>.
76989 2009-09-19  Bruno Haible  <bruno@clisp.org>
76991         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76992         * lib/safe-alloc.c: Likewise.
76993         Reported by Ian Beckwith <ianb@erislabs.net>.
76995 2009-09-18  Bruno Haible  <bruno@clisp.org>
76997         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76998         Reported by <erobles@sensacd.com.mx>.
77000 2009-09-17  Eric Blake  <ebb9@byu.net>
77002         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
77003         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
77004         slashes when checking if last component is missing.
77005         * tests/test-canonicalize.c (main): Test this.
77007         canonicalize, canonicalize-lgpl: honor // if distinct from /
77008         * modules/canonicalize (Files): Add double-slash-root.m4.
77009         * modules/canonicalize-lgpl (Files): Likewise.
77010         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77011         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
77012         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
77013         fallback definition.
77014         (canonicalize_filename_mode): Use it to protect //.
77015         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
77016         (__realpath): Likewise.
77017         * tests/test-canonicalize.c (main): Test this.
77018         * tests/test-canonicalize-lgpl.c (main): Likewise.
77019         * modules/canonicalize-tests (Depends-on): Add same-inode.
77020         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
77022         canonicalize-lgpl: fix glibc bug with trailing slash
77023         * m4/canonicalize-lgpl.m4: Move contents...
77024         * m4/canonicalize.m4: ...here.
77025         (gl_CANONICALIZE_LGPL): Factor realpath check...
77026         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
77027         glibc 2.3.5 bug, fixed 2005-04-27.
77028         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
77029         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
77030         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
77031         * modules/canonicalize-lgpl (Files): Manage file rename.
77032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77033         * modules/stdlib (Makefile.am): Substitute witness.
77034         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
77035         is needed.
77036         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
77037         replacement is required.
77038         * lib/canonicalize.c (canonicalize_file_name): Likewise.
77039         * doc/glibc-functions/canonicalize_file_name.texi
77040         (canonicalize_file_name): Document this.
77041         * doc/posix-functions/realpath.texi (realpath): Likewise.
77043         canonicalize-lgpl: reject non-directory with trailing slash
77044         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
77045         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
77046         catches failures in glibc 2.3.5.
77047         * tests/test-canonicalize.c (main): Likewise.
77049         canonicalize-lgpl: use native realpath if it works
77050         * lib/canonicalize-lgpl.c (realpath): Guard with
77051         FUNC_REALPATH_WORKS.
77052         * lib/stdlib.in.h (realpath): Make declaration optional based on
77053         HAVE_REALPATH.
77054         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
77055         native realpath works.
77056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77057         * modules/stdlib (Makefile.am): Substitute witness.
77059         canonicalize, canonicalize-lgpl: use <stdlib.h>
77060         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
77061         (Include): Mention <stdlib.h>.
77062         (configure.ac): Mention functions we provide.
77063         * modules/canonicalize (configure.ac): Likewise.
77064         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
77065         realpath if canonicalize_file_name is missing.
77066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
77067         * modules/stdlib (Makefile.am): Substitute witnesses.
77068         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
77069         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
77070         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
77071         * NEWS: Document this.
77072         * doc/glibc-functions/canonicalize_file_name.texi
77073         (canonicalize_file_name): Likewise.
77074         * doc/posix-functions/realpath.texi (realpath): Likewise.
77075         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
77077         test-canonicalize: consolidate into single C program
77078         * tests/test-canonicalize.sh: Delete; move setup into...
77079         * tests/test-canonicalize.c (main): ...the program, making it
77080         easier to run in debugger.  Add some tests.
77081         * modules/canonicalize-tests (Files): Remove unused file.
77082         (Depends-on): Add progname.
77083         (configure.ac, Makefile.am): Simplify.
77085         test-canonicalize-lgpl: consolidate into single C program
77086         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
77087         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
77088         easier to run in debugger.  Add some tests.
77089         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
77090         (configure.ac, Makefile.am): Simplify.
77092         canonicalize: avoid resolvepath
77093         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
77094         unnecessary checks.
77095         * lib/canonicalize.c (includes): Simplify.
77096         (canonicalize_file_name): Drop resolvepath implementation.
77097         * modules/canonicalize (Depends-on): Drop filenamecat.
77099         canonicalize: don't lose errno
77100         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
77101         over calls to free.
77103         canonicalize: simplify errno handling
77104         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
77105         assignment.
77107         canonicalize, canonicalize-lgpl: update module dependencies
77108         * modules/canonicalize (Depends-on): Add extensions, lstat,
77109         pathmax, stdlib.
77110         (Files): Drop pathmax.h.
77111         (configure.ac): Adjust macro name.
77112         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
77113         lstat, stdlib, sys_stat.
77114         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
77115         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
77116         extensions.
77117         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
77118         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
77119         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
77120         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
77121         declaration, if available.
77122         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
77123         we can rely on the readlink module.
77124         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
77125         (includes): Use <unistd.h> unconditionally.
77127 2009-09-17  Eric Blake  <ebb9@byu.net>
77129         maint: make Include sections of modules consistent
77130         * modules/alloca: Use only header name; no need to list #include.
77131         * modules/alloca-opt: Likewise.
77132         * modules/arpa_inet: Likewise.
77133         * modules/canon-host: Likewise.
77134         * modules/configmake: Likewise.
77135         * modules/dirent: Likewise.
77136         * modules/eealloc: Likewise.
77137         * modules/environ: Likewise.
77138         * modules/fchdir: Likewise.
77139         * modules/fcntl: Likewise.
77140         * modules/fcntl-h: Likewise.
77141         * modules/gethrxtime: Likewise.
77142         * modules/gettime: Likewise.
77143         * modules/ignore-value: Likewise.
77144         * modules/inet_ntop: Likewise.
77145         * modules/inet_pton: Likewise.
77146         * modules/inttypes: Likewise.
77147         * modules/isnand-nolibm: Likewise.
77148         * modules/isnanf-nolibm: Likewise.
77149         * modules/mbchar: Likewise.
77150         * modules/mbfile: Likewise.
77151         * modules/mbiter: Likewise.
77152         * modules/mbuiter: Likewise.
77153         * modules/netdb: Likewise.
77154         * modules/netinet_in: Likewise.
77155         * modules/nproc: Likewise.
77156         * modules/pagealign_alloc: Likewise.
77157         * modules/poll: Likewise.
77158         * modules/printf-frexp: Likewise.
77159         * modules/pthread: Likewise.
77160         * modules/putenv: Likewise.
77161         * modules/random_r: Likewise.
77162         * modules/relocatable-prog: Likewise.
77163         * modules/search: Likewise.
77164         * modules/select: Likewise.
77165         * modules/selinux-h: Likewise.
77166         * modules/settime: Likewise.
77167         * modules/signal: Likewise.
77168         * modules/size_max: Likewise.
77169         * modules/socklen: Likewise.
77170         * modules/ssize_t: Likewise.
77171         * modules/stdarg: Likewise.
77172         * modules/stdbool: Likewise.
77173         * modules/stddef: Likewise.
77174         * modules/stdint: Likewise.
77175         * modules/stdio: Likewise.
77176         * modules/stdlib: Likewise.
77177         * modules/string: Likewise.
77178         * modules/strings: Likewise.
77179         * modules/sys_file: Likewise.
77180         * modules/sys_ioctl: Likewise.
77181         * modules/sys_select: Likewise.
77182         * modules/sys_socket: Likewise.
77183         * modules/sys_stat: Likewise.
77184         * modules/sys_time: Likewise.
77185         * modules/sys_times: Likewise.
77186         * modules/sys_utsname: Likewise.
77187         * modules/sys_wait: Likewise.
77188         * modules/sysexits: Likewise.
77189         * modules/time: Likewise.
77190         * modules/times: Likewise.
77191         * modules/tmpfile: Likewise.
77192         * modules/trim: Likewise.
77193         * modules/unistd: Likewise.
77194         * modules/wchar: Likewise.
77195         * modules/wctype: Likewise.
77197 2009-09-17  Bruno Haible  <bruno@clisp.org>
77199         Make getdate.y compile on QNX and NetBSD 5 / i386.
77200         * m4/getdate.m4 (gl_GETDATE): Conditionally define
77201         TIME_T_FITS_IN_LONG_INT.
77202         * lib/getdate.y (long_time_t): New type.
77203         (relative_time): Change type of 'seconds' field to long_time_t.
77204         (get_date): Update types of local variables. Check against overflow
77205         during conversion from long_time_t to time_t.
77206         Reported by Matt Kraai <kraai@ftbfs.org>
77207         and Hasso Tepper <hasso@netbsd.org>.
77209 2009-09-17  Bruno Haible  <bruno@clisp.org>
77211         * modules/COPYING: Update copyright years.
77212         * modules/README: Likeiwse.
77213         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
77214         Reported by Ian Beckwith <ianb@erislabs.net>.
77216 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77218         * users.txt: Update references for gnuit package.
77220 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77222         * m4/getdelim.m4: Fix typo in copyright line.
77224 2009-09-17  Bruno Haible  <bruno@clisp.org>
77226         * lib/atoll.c: Use the standard header with GPL copyright.
77227         * lib/argz.in.h: Likewise.
77228         * lib/glob.c: Likewise.
77229         * lib/glob-libc.h: Likewise.
77230         * lib/random_r.c: Likewise.
77231         * lib/siglist.h: Likewise.
77232         * lib/strsignal.c: Likewise.
77233         Reported by Ian Beckwith <ianb@erislabs.net>.
77235 2009-09-17  Eric Blake  <ebb9@byu.net>
77237         rmdir: ensure correct dependency order
77238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
77240 2009-09-17  Bruno Haible  <bruno@clisp.org>
77242         Disable assertion that fails on NetBSD 5 / i386.
77243         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
77244         Reported by Sam Steingold <sds@gnu.org>
77245         and Hasso Tepper <hasso@netbsd.org>.
77247 2009-09-16  Eric Blake  <ebb9@byu.net>
77249         unlinkdir: port to mingw
77250         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
77251         on which no one can unlink a directory.
77253         stdlib: sort witness names
77254         * modules/stdlib (Makefile.am): Sort replacements.
77255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77256         * lib/stdlib.in.h: Likewise.
77258         parse-duration-tests: avoid link failure
77259         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
77260         LIBINTL.
77261         Reported by Tom G. Christensen.
77263         openat-tests: ensure unlinkat behaves like rmdir
77264         * tests/test-rmdir.c (main): Factor guts...
77265         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
77266         * modules/rmdir-tests (Files): Ship new file.
77267         * modules/openat-tests: New test.
77268         * tests/test-unlinkat.c: Likewise.
77270         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
77271         * modules/rmdir-errno (Status, Notice): Now obsolete.
77273         rmdir: work around cygwin 1.5.x and mingw bugs
77274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
77275         * lib/rmdir.c (rmdir): Work around it.
77276         * modules/rmdir (Status, Notice): No longer obsolete.
77277         (Files): Add dos.m4.
77278         (Depends-on): Add unistd.
77279         (configure.ac): Set witnesses.
77280         (License): Relax to LGPLv2+.
77281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
77282         * modules/unistd (Makefile.am): Substitute witnesses.
77283         * lib/unistd.in.h (rmdir): Declare replacement.
77284         * doc/posix-functions/rmdir.texi (rmdir): Document this.
77285         * modules/rmdir-tests: New tests.
77286         * tests/test-rmdir.c: Likewise.
77288 2009-09-15  Eric Blake  <ebb9@byu.net>
77290         fchdir: improve use of replacement functions
77291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
77292         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
77293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
77294         REPLACE_CLOSEDIR.
77295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
77296         * modules/sys_stat (Makefile.am): Substitute correct witness.
77297         * modules/dirent (Makefile.am): Likewise.
77298         * modules/unistd (Makefile.am): Likewise.
77299         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
77300         * lib/unistd.in.h (dup): Likewise.
77301         * lib/sys_stat.in.h (fstat): Likewise.
77303         maint: ignore gnulib-tool temp files
77304         * .gitignore: Ignore files created during gnulib-tool --test.
77306 2009-09-13  Jim Meyering  <meyering@redhat.com>
77308         posixtm: don't reject a time that specify "60" as the number of seconds
77309         * lib/posixtm.c (posixtime): The code to reject invalid dates
77310         would also reject a time specified with the .60 suffix.
77311         But POSIX allows that, in order to accommodate leap seconds.
77312         So don't reject it.
77313         (main): Adjust tests accordingly.
77314         * modules/posixtm (Depends-on): Add stpcpy.
77316 2009-09-11  Jim Meyering  <meyering@redhat.com>
77318         announce-gen: include [$release_type] in emitted Subject:
77319         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
77320         e.g., [stable] in the emitted Subject: line.
77322 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77324         Remove obsolete macros from several modules.
77325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
77326         obsolete Autoconf macros with their modern counterparts.
77327         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
77328         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
77329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
77330         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77331         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
77332         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
77335         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
77336         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
77337         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
77338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
77339         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
77340         * m4/sockets.m4 (gl_SOCKETS): Likewise.
77341         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
77342         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
77343         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
77344         * m4/time_r.m4 (gl_TIME_R): Likewise.
77345         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
77346         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
77347         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
77349         Fix copyright header in build-aux scripts.
77350         * build-aux/git-version-gen: Fix copyright header to match GPLv3
77351         recommendation.
77352         * build-aux/ncftpput-ftp: Likewise.
77353         * build-aux/update-copyright: Likewise.
77355 2009-09-09  Eric Blake  <ebb9@byu.net>
77357         test-link: allow Linux choice of errno
77358         * tests/test-link.c (main): Relax test for alternate error.
77360         strndup: fix improper m4 caching
77361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
77362         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
77363         (gl_PREREQ_STRNDUP): Delete.
77364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
77365         * modules/string (Makefile.am): Substitute it.
77366         * lib/string.in.h (strndup): Modernize prototype.
77368         getcwd: port to mingw
77369         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
77370         different from the POSIX assumptions made throughout the getcwd
77371         module; fortunately, the mingw getcwd does not need replacement.
77372         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
77373         * modules/getcwd-tests: New test.
77374         * tests/test-getcwd.c: Likewise.
77376         link: fix platform bugs
77377         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
77378         * lib/link.c (link): Work around them.  Fix related mingw bug.
77379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77380         * modules/unistd (Makefile.am): Substitute it.
77381         * lib/unistd.in.h (link): Declare replacement.
77382         * doc/posix-functions/link.texi (link): Document this.
77383         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77385         test-link: consolidate into single C program, test more cases
77386         * tests/test-link.sh: Delete.
77387         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77388         at least Cygwin and Solaris.
77389         * modules/link-tests (Files): Remove unused file.
77390         (Depends-on): Add errno, sys_stat.
77391         (Makefile.am): Simplify.
77393 2009-09-08  Bruno Haible  <bruno@clisp.org>
77395         Work around towlower, towupper bug on mingw.
77396         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77397         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77398         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77399         * doc/posix-functions/towupper.texi: Likewise.
77400         Reported by Eric Blake.
77402 2009-09-08  Jim Meyering  <meyering@redhat.com>
77404         build: don't try to run autoheader if we don't use it
77405         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77406         is not used in configure.ac.
77408 2009-09-08  Eric Blake  <ebb9@byu.net>
77410         euidaccess: fix compilation error
77411         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77413         rawmemchr: relax license
77414         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77415         okay.
77416         Reported by Jim Meyering.
77418         mkfifoat: new module
77419         * modules/mkfifoat: New file.
77420         * lib/mkfifoat.c: Likewise.
77421         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77423         * modules/sys_stat (Makefile.am): Use them.
77424         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77425         * MODULES.html.sh (File system functions): Mention module.
77426         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77427         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77428         * modules/mkfifoat-tests: New test.
77429         * tests/test-mkfifoat.c: Likewise.
77431         strchrnul: relax license
77432         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77433         okay.
77434         Reported by Jim Meyering.
77436 2009-09-08  Eric Blake  <ebb9@byu.net>
77438         fstatat: fix compilation on Solaris
77439         * lib/fstatat.c (includes): Add fcntl.h.
77440         Reported by Pádraig Brady.
77442 2009-09-07  Eric Blake  <ebb9@byu.net>
77444         rename: modernize replacement
77445         * modules/rename (Depends-on): Add stdio.
77446         (configure.ac): Declare witness.
77447         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77448         stdio take care of replacement.
77449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77450         * modules/stdio (Makefile.am): Substitute them.
77451         * lib/stdio.in.h (rename): Declare replacement.
77452         * lib/rename.c (includes): Allow cross-compilation to non-windows
77453         machines.
77454         * doc/posix-functions/rename.texi (rename): Improve
77455         documentation.
77457         stdio: sort witness names
77458         * modules/stdio (Makefile.am): Sort replacements.
77459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77460         * lib/stdio.in.h: Likewise.
77462         getcwd: minor cleanups
77463         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77464         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77466         openat: provide more convenience names
77467         * modules/faccessat (configure.ac): Add C witness.
77468         * lib/unistd.in.h (readlinkat): Fix typo.
77469         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77470         convenience wrappers.
77471         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77472         wrappers in syntax checks.
77474 2009-09-06  Eric Blake  <ebb9@byu.net>
77476         doc: fix comments in recent patches
77477         * lib/faccessat.c: Mention correct function.
77478         * lib/fchmodat.c: Likewise.
77479         * lib/fchownat.c: Likewise.
77480         * lib/symlinkat.c: Likewise.
77481         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77482         constants.
77484         faccessat, symlinkat: continue cleanup of previous patch
77485         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77486         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77487         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77489         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77490         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77491         set.
77493 2009-09-06  Bruno Haible  <bruno@clisp.org>
77495         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77496         (fstatat): Declare if GNULIB_FSTATAT is set.
77497         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77498         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77499         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77500         * modules/fcntl-h (Files): Remove m4/openat.m4.
77501         * modules/sys_stat (Files): Remove m4/openat.m4.
77502         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77503         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77504         * modules/unistd (Files): Remove m4/openat.m4.
77505         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77506         GNULIB_OPENAT.
77507         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77508         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77510         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77511         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77512         gl_OPENAT_DEFAULTS.
77513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77514         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77515         Don't require gl_OPENAT_DEFAULTS.
77516         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77517         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77518         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77519         (gl_OPENAT_DEFAULTS): Remove macro.
77521 2009-09-06  Bruno Haible  <bruno@clisp.org>
77523         * modules/openat (configure.ac): Remove unneeded witness.
77525 2009-09-06  Bruno Haible  <bruno@clisp.org>
77527         Set errno to ENOSYS when a function is entirely unsupported.
77528         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77529         EOPNOTSUPP.
77530         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77531         * modules/chown (Depends-on): Remove errno.
77533 2009-09-06  Bruno Haible  <bruno@clisp.org>
77535         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77537 2009-09-06  Bruno Haible  <bruno@clisp.org>
77539         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77541 2009-09-06  Ben Pfaff  <blp@gnu.org>
77542             Bruno Haible  <bruno@clisp.org>
77544         Work around a glibc bug in strtok_r.
77545         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77546         Undefine if UNDEFINE_STRTOK_R is set.
77547         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77549         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77551         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77552         UNDEFINE_STRTOK_R.
77553         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77555 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77557         exclude: minor fix
77558         * lib/exclude.c: Include wctype.h
77560 2009-09-06  Akim Demaille  <demaille@gostai.com>
77562         bootstrap: improve error message
77563         * build-aux/bootstrap (find_tool): Upon failure, report the list
77564         of candidates.
77565         Honor the initial value of the envvar.
77567 2009-09-05  Eric Blake  <ebb9@byu.net>
77569         symlinkat: new module
77570         * modules/symlinkat: New file.
77571         * lib/symlinkat.c: Likewise.
77572         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77574         * modules/unistd (Makefile.am): Use them.
77575         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77576         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77577         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77578         * MODULES.html.sh (File system functions): Mention module.
77579         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77580         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77581         * modules/symlinkat-tests: New test.
77582         * tests/test-symlinkat.c: Likewise.
77584         test-openat-safer: add more checks
77585         * tests/test-openat-safer.c (main): Check more code paths.
77587 2009-09-05  Jim Meyering  <meyering@redhat.com>
77589         syntax-check: detect unnecessary inclusion of openat.h
77590         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77592 2009-09-05  Bruno Haible  <bruno@clisp.org>
77594         Support towlower, towupper.
77595         * doc/posix-functions/towlower.texi: Mention module wctype.
77596         * doc/posix-functions/towupper.texi: Likewise.
77597         * lib/wctype.in.h (towlower, towupper): New functions.
77598         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77599         (ASSERT): New macro.
77600         (e): New variable.
77601         (main): Test also towlower, towupper. Test WEOF argument.
77602         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77604 2009-09-05  Bruno Haible  <bruno@clisp.org>
77606         Fix conversion behaviour when the input is invalid.
77607         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77608         mark occurring in first pass of indirect conversion.
77609         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77610         input.
77611         Found by clang's static analyzer.
77613 2009-09-05  Bruno Haible  <bruno@clisp.org>
77615         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77616         where direct conversion is possible.
77618 2009-09-04  Eric Blake  <ebb9@byu.net>
77620         openat: fail with ENOENT on empty name
77621         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77622         buffer.
77624         link-follow: fix logic bug in prior patch
77625         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77626         reversed sense of yes and no in prior patch.  Avoid confusing
77627         compilation failure with desired semantics.
77629         link-follow: accommodate mingw and cross-compilation
77630         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77631         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77632         cross-compilation results to -1, to make linkat easier to
77633         implement when cross-compiling.  Trivially support mingw.
77634         * modules/link-follow (configure.ac): Call new name.
77635         * NEWS: Mention this.
77637 2009-09-03  Eric Blake  <ebb9@byu.net>
77639         faccessat: compile replacement
77640         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77641         needed.
77643         fts: fix compilation error
77644         * lib/fts.c (includes): Re-add "openat.h", for
77645         openat_needs_fchdir.
77647         faccessat: new module
77648         * modules/faccessat: New file.
77649         * lib/faccessat.c: Likewise.
77650         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77652         * modules/unistd (Makefile.am): Use it.
77653         * lib/unistd.in.h (faccessat): Declare it.
77654         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77655         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77656         * MODULES.html.sh (File system functions): Mention it.
77657         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77658         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77660         euidaccess: prefer POSIX over non-standard implementation
77661         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77662         * lib/euidaccess.c (euidaccess): Use it if available.
77664         openat: make template easier to use
77665         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77666         AT_FUNC_F2 to be undefined.
77667         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77668         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77669         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77670         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77671         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77672         Likewise.
77673         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77674         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77675         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77676         Likewise.
77678         openat: declare in POSIX headers
77679         * NEWS: Mention this.
77680         * modules/openat (configure.ac): Declare witnesses.
77681         (Depends-on): Add fcntl-h, sys_stat, unistd.
77682         (Include): Mention correct headers.
77683         * modules/fcntl-h (Depends-on): Add link-warning.
77684         (Files): Add openat.m4.
77685         (Makefile.am): Substitute witnesses.
77686         * modules/sys_stat (Files, Makefile.am): Likewise.
77687         * modules/unistd (Files, Makefile.am): Likewise.
77688         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77689         (gl_OPENAT_DEFAULTS): New macro.
77690         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77693         (SYS_STAT_H): Remove unused variable.
77694         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77695         * lib/fcntl--.h (includes): Remove unneeded header.
77696         * lib/openat-safer.c (includes): Likewise.
77697         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77698         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77699         appropriate headers.
77700         (__OPENAT_PREFIX): Delete.
77701         * lib/fcntl.in.h (openat): Provide declaration.
77702         (AT_FDCWD): Fix Solaris bug.
77703         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77704         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77705         * lib/fchmodat.c (includes):  Adjust to find declaration.
77706         * lib/fchownat.c (includes): Likewise.
77707         * lib/mkdirat.c (includes): Likewise.
77708         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77709         still visible.
77711 2009-09-02  Eric Blake  <ebb9@byu.net>
77713         errno: use consistently
77714         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77715         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77716         * lib/canonicalize.c (ELOOP): Likewise.
77717         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77718         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77719         * lib/lchown.c (EOPNOTSUPP): Likewise.
77720         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77721         * lib/savewd.c (ESTALE): Likewise.
77722         * lib/settime.c (ENOSYS): Likewise.
77723         * lib/utimens.c (ENOSYS): Likewise.
77724         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77725         * lib/chdir-safer.c (ELOOP): Likewise.
77726         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77727         * modules/c-stack (Depends-on): Add errno.
77728         * modules/canonicalize (Depends-on): Likewise.
77729         * modules/chdir-safer (Depends-on): Likewise.
77730         * modules/fdopendir (Depends-on): Likewise.
77731         * modules/inet_ntop (Depends-on): Likewise.
77732         * modules/inet_pton (Depends-on): Likewise.
77733         * modules/lchown (Depends-on): Likewise.
77734         * modules/openat (Depends-on): Likewise.
77735         * modules/savewd (Depends-on): Likewise.
77736         * modules/settime (Depends-on): Likewise.
77737         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77739         fts: avoid leaking fds
77740         * modules/fts (Depends-on): Add cloexec.
77741         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77742         flag.
77744         fts: make directory fds more robust
77745         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77746         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77748         backupfile, chdir-long, fts, savedir: make safer
77749         * lib/backupfile.c (includes): Use "dirent--.h", since
77750         numbered_backup can write to stderr during readdir.
77751         * lib/savedir.c (includes): Likewise.
77752         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77753         emulation can write to stderr on failure.
77754         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77755         * lib/getcwd.c: Document why opendir_safer is unused.
77756         * lib/glob.c: Likewise.
77757         * lib/scandir.c: Likewise.
77758         * lib/openat-proc.c: Likewise, for open_safer.
77759         * modules/backupfile (Depends-on): Add dirent-safer.
77760         * modules/savedir (Depends-on): Likewise.
77761         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77762         * modules/chdir-long (Depends-on): Add openat-safer.
77764         openat-safer: new module
77765         * modules/openat-safer: New file.
77766         * lib/openat-safer.c: Likewise.
77767         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77768         * lib/fcntl-safer.h (openat_safer): Declare.
77769         * lib/fcntl--.h (openat): Override.
77770         * MODULES.html.sh (File descriptor based I/O): Mention it.
77771         * lib/openat.h: Add double-inclusion guards.
77772         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77773         "fcntl--.h", so we can implement openat.
77774         * modules/openat-safer-tests: New test.
77775         * tests/test-openat-safer.c: New file.
77777         dirent-safer: new module
77778         * modules/dirent-safer: New file.
77779         * lib/dirent--.h: Likewise.
77780         * lib/dirent-safer.h: Likewise.
77781         * lib/opendir-safer.c: Likewise.
77782         * m4/dirent-safer.m4: Likewise.
77783         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77784         * modules/dirent-safer-tests: New test.
77785         * tests/test-dirent-safer.c: New file.
77786         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77788         fdopendir: optimize on mingw
77789         * lib/unistd.in.h (_gl_directory_name): New prototype.
77790         * lib/fchdir.c (_gl_directory_name): Implement it.
77791         (fchdir): Use it to simplify implementation.
77792         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
77793         fchdir, when available, to avoid calling [f]chdir().
77795         fdopendir: split into its own module
77796         * lib/openat.c (fdopendir): Move...
77797         * lib/fdopendir.c: ...into new file.
77798         * modules/fdopendir: New module.
77799         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
77800         * modules/openat (Depends-on): Add fdopendir.
77801         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
77802         fdopendir here.
77803         * modules/savedir (Depends-on): Only need fdopendir, not full
77804         openat.
77805         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
77806         * lib/openat.h (fdopendir): Drop prototype.
77807         * lib/dirent.in.h (fdopendir): Provide prototype.
77808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
77809         * modules/dirent (Makefile.am): Substitute them.
77810         * MODULES.html.sh (File system functions): Mention it.
77811         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
77812         * modules/fdopendir-tests: New file.
77813         * tests/test-fdopendir.c: Likewise.
77815         fchdir: use more consistent macro convention
77816         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
77817         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77818         REPLACE_FCHDIR, rather than relying on config.h macros.
77819         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77820         inside a single make-time REPLACE_FCHDIR block, rather than using
77821         the config.h FCHDIR_REPLACEMENT.
77822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77823         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77824         Manage fstat replacement.
77825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77826         REPLACE_FCHDIR.
77827         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77828         (Makefile.am): Substitute REPLACE_FCHDIR.
77829         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77830         FCHDIR_REPLACEMENT.
77831         * lib/dup-safer.c (dup_safer): Likewise.
77832         * lib/dup2.c (rpl_dup2): Likewise.
77833         * lib/dup3.c (rpl_dup3): Likewise.
77834         * lib/open.c (rpl_open): Likewise.
77836         fchdir: simplify error handling, and support dup3
77837         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77838         stdbool, malloc-posix, realloc-posix.
77839         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77840         (ensure_dirs_slot): Return false on allocation failure.
77841         (rpl_dup2): Delete.
77842         (_gl_register_dup): New function.
77843         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77844         (_gl_register_fd): Close fd on allocation failure.
77845         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77846         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77847         prototype.
77848         (rpl_dup2_fchdir): Delete prototype.
77849         * lib/open.c (open): Update caller.
77850         * lib/dup2.c (dup2): Track fchdir metadata.
77851         * lib/dup3.c (dup3): Likewise.
77852         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77855 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77857         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77858         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77859         don't pass arguments to AC_OUTPUT.
77861 2009-09-02  Bruno Haible  <bruno@clisp.org>
77863         * modules/mkdtemp (License): Relicense under LGPLv2+.
77864         Reported by Paolo Bonzini.
77866 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77868         Replace uses of obsolete autoconf macros in Jim's modules.
77869         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77870         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77871         can evoke a warning from autoconf when run with -Wobsolete
77872         enabled.  They were declared obsolete for good reasons (see
77873         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77874         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77875         should not continue using the deprecated macros.
77876         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77877         obsolete Autoconf macros with modern counterparts.
77878         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77879         * m4/dos.m4 (gl_AC_DOS): Likewise.
77880         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77882         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77883         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77884         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77885         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77887         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77888         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77889         Likewise.
77890         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77891         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77892         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77893         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77894         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77895         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77897 2009-09-01  Eric Blake  <ebb9@byu.net>
77899         fchdir: fix off-by-one bug in previous patch
77900         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77901         (_gl_unregister_fd): Delete useless if.
77903 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77905         maint.mk: sort the list of syntax-check rules
77906         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77907         easier to get a sense of progress when the rules are run sequentially
77908         and take a long time.
77910 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77912         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77913         * modules/netinet_in: Likewise.
77914         * modules/sys_file: Likewise.
77915         * modules/sys_ioctl: Likewise.
77916         * modules/sys_select: Likewise.
77917         * modules/sys_socket: Likewise.
77918         * modules/sys_stat: Likewise.
77919         * modules/sys_time: Likewise.
77920         * modules/sys_times: Likewise.
77921         * modules/sys_utsname: Likewise.
77922         * modules/sys_wait: Likewise.
77924 2009-09-01  Jim Meyering  <meyering@redhat.com>
77926         fts: help ensure that return values are not ignored
77927         * lib/fts_.h (__GNUC_PREREQ): Define.
77928         (__attribute_warn_unused_result__): Define.
77929         (fts_children, fts_close, fts_open, fts_read): Declare with
77930         __attribute_warn_unused_result__.
77932         fts: fts_close now fails also when closing a dir file descriptor fails
77933         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77934         and propagate to caller, along with errno.
77936         announce-gen: correct formatting in --help output
77937         * build-aux/announce-gen (usage): Move the one-line description in
77938         --help output "up", to where it belongs, just after Usage:.
77940 2009-08-31  Eric Blake  <ebb9@byu.net>
77942         fchdir: port to mingw
77943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77944         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77945         opened, then use a substitute.
77946         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77947         replacement.
77948         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77949         (_gl_register_fd): No need to check stat if open already filters
77950         all directories.
77951         (fchdir): Fix error condition to match POSIX.
77952         * modules/fchdir (Depends-on): Add sys_stat.
77953         * doc/posix-functions/open.texi (open): Document the limitation.
77954         * modules/fchdir-tests: New file.
77955         * tests/test-fchdir.c: Likewise.
77957         canonicalize: allow cross-testing from cygwin to mingw
77958         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77959         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77960         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77961         Likewise.
77962         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77963         target does not support symlinks.
77964         * tests/test-canonicalize-lgpl.sh: Likewise.
77966         chown: avoid compilation warning on mingw
77967         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77968         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77969         mingw.
77970         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77971         * modules/chown (Depends-on): Add errno.
77973 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77975         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77976         command.
77978 2009-08-31  Jim Meyering  <meyering@redhat.com>
77980         canonicalize: remove useless initialization
77981         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77982         initialization of local, "end".
77984 2009-08-30  Bruno Haible  <bruno@clisp.org>
77986         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77987         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77988         ENOSYS.
77990 2009-08-30  Bruno Haible  <bruno@clisp.org>
77992         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77993         /usr/xpg4/bin/tr when it exists.
77994         * tests/test-pipe-filter-gi1.sh: Likewise.
77996 2009-08-30  Bruno Haible  <bruno@clisp.org>
77998         Work around deficient /usr/bin/id program on Solaris.
77999         * tests/test-file-has-acl.sh (ID): New variable.
78000         * tests/test-set-mode-acl.sh (ID): Likewise.
78001         * tests/test-copy-acl.sh (ID): Likewise.
78002         * tests/test-copy-file.sh (ID): Likewise.
78004 2009-08-30  Bruno Haible  <bruno@clisp.org>
78006         New module 'xstriconveh'.
78007         * lib/xstriconveh.h: New file.
78008         * lib/xstriconveh.c: New file.
78009         * modules/xstriconveh: New file.
78011 2009-08-30  Bruno Haible  <bruno@clisp.org>
78013         Make it easier to use mem_cd_iconveh.
78014         * lib/striconveh.h (iconveh_t): New type.
78015         (iconveh_open, iconveh_close): New declarations.
78016         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78017         with a single 'const iconveh_t *' argument.
78018         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
78019         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78020         with a single 'const iconveh_t *' argument.
78021         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
78022         * tests/test-striconveh.c (main): Update.
78023         * NEWS: Mention the change.
78025 2009-08-30  Bruno Haible  <bruno@clisp.org>
78027         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
78028         problem.
78030 2009-08-30  Bruno Haible  <bruno@clisp.org>
78032         Work around iconv_open problem on Solaris.
78033         * lib/iconv_open-solaris.gperf: New file.
78034         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
78035         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
78036         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
78037         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
78038         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
78039         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
78041 2009-08-29  Jim Meyering  <meyering@redhat.com>
78043         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
78044         * top/maint.mk (cvs-check): Remove target; it was just an alias
78045         to the better-named vc-diff-check.
78046         (maintainer-distcheck): Remove rule.  It was used only from
78047         the (alpha/beta/major) target, and all of its commands but one
78048         were coreutils-specific.
78049         (vc-dist): Remove rule.
78050         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
78051         Run vc-diff-check, not vc-dist.
78052         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
78054 2009-08-27  Bruno Haible  <bruno@clisp.org>
78056         * tests/test-bitrotate.c (main): Remove test that uses a shift count
78057         of 0.
78059 2009-08-27  Bruno Haible  <bruno@clisp.org>
78061         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
78062         compilers.
78063         * doc/func.texi: Document the SunPRO C bug.
78065 2009-08-27  Bruno Haible  <bruno@clisp.org>
78067         Fix link error on Solaris.
78068         * tests/test-parse-duration.c (xstrdup): Remove function.
78070 2009-08-26  Pádraig Brady  <P@draigbrady.com>
78072         ignore-value: handle pointer types, too
78073         * lib/ignore-value.h (__attribute__): Remove definition.
78074         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
78075         of a more concise and more-often effective "(void) i" statement.
78076         (ignore_ptr): New function to suppress warnings from functions that
78077         return pointers, and to make it explicit that one function doesn't
78078         handle all cases.
78080 2009-08-25  Bruno Haible  <bruno@clisp.org>
78082         dup2: work around a Linux bug.
78083         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
78084         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
78085         * doc/posix-functions/dup2.texi: Mention the Linux bug.
78086         Reported by Simon Josefsson.
78088 2009-08-25  Jim Meyering  <meyering@redhat.com>
78090         libguestfs uses gnulib
78091         * users.txt: Add libguestfs.
78093 2009-08-24  Eric Blake  <ebb9@byu.net>
78095         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
78096         * lib/pipe2.c (includes): Add binary-io.h.
78097         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
78099 2009-08-24  Bruno Haible  <bruno@clisp.org>
78101         Tolerate declared but missing accept4 syscall.
78102         * lib/accept4.c (accept4): Invoke original accept4 function first, if
78103         available.
78104         * lib/sys_socket.in.h (accept4): If the function is already present,
78105         override it.
78106         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
78107         * modules/accept4 (Makefile.am): Compile accept4.c always.
78108         Reported by Paolo Bonzini and Eric Blake.
78110 2009-08-23  Bruno Haible  <bruno@clisp.org>
78112         New module 'accept4'.
78113         * lib/sys_socket.in.h (accept4): New declaration.
78114         * lib/accept4.c: New file.
78115         * m4/accept4.m4: New file.
78116         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
78117         GNULIB_ACCEPT4, HAVE_ACCEPT4.
78118         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
78119         HAVE_ACCEPT4.
78120         * modules/accept4: New file.
78121         * doc/glibc-functions/accept4.texi: Mention the new module.
78123 2009-08-24  Jim Meyering  <meyering@redhat.com>
78125         progname: also set global program_invocation_name, when possible
78126         Before this change, a libtool-enabled program that calls glibc's
78127         error function would report the program name as
78128         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
78129         * modules/progname (configure.ac): Check for a declaration of
78130         program_invocation_name.
78131         * lib/progname.c:  Include <errno.h>.
78132         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
78133         Set program_invocation_name.
78135 2009-08-23  Bruno Haible  <bruno@clisp.org>
78137         * lib/dup3.c: Include <string.h>.
78139 2009-08-23  Bruno Haible  <bruno@clisp.org>
78141         * lib/dup3.c (dup3): Test only once whether the system actually exists.
78142         * lib/pipe2.c (pipe2): Likewise.
78143         Suggested by Eric Blake.
78145 2009-08-23  Bruno Haible  <bruno@clisp.org>
78147         Tolerate declared but missing dup3 syscall.
78148         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
78149         * lib/unistd.in.h (dup3): If the function is already present,
78150         override it.
78151         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
78152         * modules/dup3 (Makefile.am): Compile dup3.c always.
78153         Reported by Paolo Bonzini.
78155 2009-08-23  Bruno Haible  <bruno@clisp.org>
78157         Tolerate declared but missing pipe2 syscall.
78158         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
78159         available.
78160         * lib/unistd.in.h (pipe2): If the function is already present,
78161         override it.
78162         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
78163         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
78164         Reported by Paolo Bonzini.
78166 2009-08-23  Bruno Haible  <bruno@clisp.org>
78168         * lib/pipe2.c (pipe2): Move #ifs inside function.
78170 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78172         quotearg: document limitations of quote_these_too
78173         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
78174         those limitations are created.
78175         * lib/quotearg.h (set_char_quoting): Document that digits and
78176         letters that are special after backslash are not permitted.
78177         (quotearg_char): Cross-reference set_char_quoting documentation.
78179 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
78181         quotearg: implement custom_quoting_style
78182         * lib/quotearg.c: (struct quoting_options): Add left_quote and
78183         right_quote fields.
78184         (set_custom_quoting): New public function.
78185         (quotearg_buffer_restyled): Add left_quote and right_quote
78186         arguments, handle them very much like locale quoting, and update
78187         all uses.
78188         (quotearg_n_custom): New public function.
78189         (quotearg_n_custom_mem): New public function.
78190         (quotearg_custom): New public function.
78191         (quotearg_custom_mem): New public function.
78192         * lib/quotearg.h: Prototype and document new public functions.
78193         (enum quoting_style): For escape_quoting_style and
78194         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
78195         ignored even though they're otherwise like c_quoting_style.
78196         Add custom_quoting_style member and document with comparison to
78197         clocale_quoting_style.
78198         * tests/test-quotearg.c (custom_quotes): New array.
78199         (custom_results): New array.
78200         (main): Extend to test custom quoting.
78202 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78204         quotearg: fix right quote escaping when it's in quote_these_too
78205         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
78206         quote, be sure to prepend only one backslash.
78207         * tests/test-quotearg.c (use_quote_double_quotes): New function.
78208         (main): Test it.
78210 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78212         quotearg-tests: test escaping of embedded locale quotes
78213         * tests/test-quotearg.c (struct result_strings): Add member for
78214         new input.
78215         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
78216         (inputs): Add new input.
78217         (results_g): Add expected results.
78218         (flag_results): Likewise.
78219         (locale_results): Likewise.
78220         (compare_strings): Check those.
78222 2009-08-23  Bruno Haible  <bruno@clisp.org>
78224         Tests for module 'dup3'.
78225         * modules/dup3-tests: New file.
78226         * tests/test-dup3.c: New file.
78228         New module 'dup3'.
78229         * lib/unistd.in.h (dup3): New declaration.
78230         * lib/dup3.c: New file.
78231         * m4/dup3.m4: New file.
78232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
78233         HAVE_DUP3.
78234         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
78235         * modules/dup3: New file.
78236         * doc/glibc-functions/dup3.texi: Mention the new module.
78238 2009-08-23  Bruno Haible  <bruno@clisp.org>
78240         Tweak the dup2 test.
78241         * tests/test-dup2.c (main): Create the test file empty. Verify that an
78242         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
78243         the test file is still empty. Fix argument order of lseek.
78245 2009-08-23  Bruno Haible  <bruno@clisp.org>
78247         Avoid test link errors when the modules getopt-gnu, gettext are used.
78248         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
78249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78251 2009-08-23  Bruno Haible  <bruno@clisp.org>
78253         Fix getdtablesize() on mingw.
78254         * lib/getdtablesize.c (getdtablesize): Implement differently.
78255         * lib/unistd.in.h (getdtablesize): Improve comment.
78257 2009-08-23  Bruno Haible  <bruno@clisp.org>
78259         New module 'mkostemp'.
78260         Based on Ulrich Drepper's 2007-08-10 change in glibc.
78261         * lib/stdlib.in.h (mksotemp): New declaration.
78262         * lib/mkostemp.c: New file, from glibc with modifications.
78263         * lib/tempname.h (GT_FILE): Remove outdated comment.
78264         (gen_tempname): Add flags argument.
78265         * lib/tempname.c (__GT_BIGFILE): Remove macro.
78266         (__GT_FILE): Map to 1.
78267         (small_open, large_open): Remove macros.
78268         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
78269         * lib/mkstemp.c (mkstemp): Update.
78270         * lib/mkdtemp.c (mkdtemp): Likewise.
78271         * m4/mkostemp.m4: New file.
78272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
78273         HAVE_MKOSTEMP.
78274         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
78275         HAVE_MKOSTEMP.
78276         * modules/mkostemp: New file, based on modules/mkstemp.
78277         * doc/glibc-functions/mkostemp.texi: Mention the new module.
78278         * NEWS: Mention the change.
78280 2009-08-23  Bruno Haible  <bruno@clisp.org>
78282         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
78283         Reported by Eric Blake.
78285 2009-08-23  Bruno Haible  <bruno@clisp.org>
78287         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
78288         Reported by Eric Blake.
78290 2009-08-23  Bruno Haible  <bruno@clisp.org>
78292         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
78293         * modules/pipe2 (Depends-on): Likewise.
78295 2009-08-23  Eric Blake  <ebb9@byu.net>
78297         fcntl-h: add O_TTY_INIT support
78298         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
78299         * tests/test-fcntl-h.c (o): Test it.
78300         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78302         fcntl-h: rename from fcntl, in preparation for fcntl(2)
78303         * modules/fcntl: Move <fcntl.h> header replacement...
78304         * modules/fcntl-h: ...to new name, so as not to collide with
78305         like-named function.
78306         * tests/test-fcntl.c: Rename...
78307         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
78308         * modules/fcntl-tests: Rename...
78309         * modules/fcntl-h-tests: ...to this.  Update test file name.
78310         * modules/chdir-long (Depends-on): Update clients.
78311         * modules/chdir-safer (Depends-on): Likewise.
78312         * modules/fcntl-safer (Depends-on): Likewise.
78313         * modules/fts (Depends-on): Likewise.
78314         * modules/mkancesdirs (Depends-on): Likewise.
78315         * modules/mkdir-p (Depends-on): Likewise.
78316         * modules/open (Depends-on): Likewise.
78317         * modules/savewd (Depends-on): Likewise.
78318         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
78319         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78321 2009-08-22  Bruno Haible  <bruno@clisp.org>
78323         * modules/binary-io (License): Relicense under LGPL.
78324         * modules/pipe2 (License): Likewise.
78326 2009-08-22  Bruno Haible  <bruno@clisp.org>
78328         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
78329         return value.
78330         * lib/pipe-filter-gi.c (filter_init): Likewise.
78331         Reported by Eric Blake.
78333 2009-08-22  Bruno Haible  <bruno@clisp.org>
78335         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
78336         * modules/pipe (Depends-on): Add pipe2.
78338 2009-08-22  Bruno Haible  <bruno@clisp.org>
78340         Tests for module 'pipe2'.
78341         * modules/pipe2-tests: New file.
78342         * tests/test-pipe2.c: New file.
78344         New module 'pipe2'.
78345         * lib/unistd.in.h (pipe2): New declaration.
78346         * lib/pipe2.c: New file.
78347         * m4/pipe2.m4: New file.
78348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
78349         HAVE_PIPE2.
78350         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
78351         * modules/pipe2: New file.
78352         * doc/glibc-functions/pipe2.texi: Mention the new module.
78354 2009-08-22  Bruno Haible  <bruno@clisp.org>
78356         Reference some new glibc functions.
78357         * doc/glibc-functions/accept4.texi: New file.
78358         * doc/glibc-functions/dup3.texi: New file.
78359         * doc/glibc-functions/mkostemp.texi: New file.
78360         * doc/glibc-functions/pipe2.texi: New file.
78361         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
78362         (Glibc sys/socket.h): Refer to accept4.
78363         (Glibc unistd.h): Refer to dup3, pipe2.
78364         Reported by Eric Blake.
78366 2009-08-22  Jim Meyering  <meyering@redhat.com>
78367             Bruno Haible  <bruno@clisp.org>
78369         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
78370         This makes it so packages using automake-1.11's silent-rules option
78371         can print e.g., a single "GEN    configmake.h" line, rather than
78372         the 30+ statements that perform the job.  If you want to see the
78373         actual commands, you can still run "make V=1".
78374         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
78375         so that make output is abbreviated when those variables are defined
78376         appropriately.
78377         * modules/argz: Likewise.
78378         * modules/arpa_inet: Likewise.
78379         * modules/byteswap: Likewise.
78380         * modules/configmake: Likewise.
78381         * modules/dirent: Likewise.
78382         * modules/errno: Likewise.
78383         * modules/fcntl: Likewise.
78384         * modules/float: Likewise.
78385         * modules/fnmatch: Likewise.
78386         * modules/getopt-posix: Likewise.
78387         * modules/glob: Likewise.
78388         * modules/iconv_open: Likewise.
78389         * modules/inttypes: Likewise.
78390         * modules/localcharset: Likewise.
78391         * modules/locale: Likewise.
78392         * modules/math: Likewise.
78393         * modules/netdb: Likewise.
78394         * modules/netinet_in: Likewise.
78395         * modules/poll: Likewise.
78396         * modules/posix_spawnp-tests: Likewise.
78397         * modules/sched: Likewise.
78398         * modules/search: Likewise.
78399         * modules/selinux-h: Likewise.
78400         * modules/signal: Likewise.
78401         * modules/spawn: Likewise.
78402         * modules/stdarg: Likewise.
78403         * modules/stdbool: Likewise.
78404         * modules/stddef: Likewise.
78405         * modules/stdint: Likewise.
78406         * modules/stdio: Likewise.
78407         * modules/stdlib: Likewise.
78408         * modules/string: Likewise.
78409         * modules/strings: Likewise.
78410         * modules/sys_file: Likewise.
78411         * modules/sys_ioctl: Likewise.
78412         * modules/sys_select: Likewise.
78413         * modules/sys_socket: Likewise.
78414         * modules/sys_stat: Likewise.
78415         * modules/sys_time: Likewise.
78416         * modules/sys_times: Likewise.
78417         * modules/sys_utsname: Likewise.
78418         * modules/sys_wait: Likewise.
78419         * modules/sysexits: Likewise.
78420         * modules/time: Likewise.
78421         * modules/unistd: Likewise.
78422         * modules/wchar: Likewise.
78423         * modules/wctype: Likewise.
78425 2009-08-22  Jim Meyering  <meyering@redhat.com>
78427         announce-gen: detect write failure
78428         * build-aux/announce-gen: Add Coda at end.
78429         Remove equivalent-but-more-verbose block at top.
78431 2009-08-19  Akim Demaille  <demaille@gostai.com>
78433         bootstrap: --help to stdout.
78434         * bootstrap (usage): Don't send --help to stderr.
78435         Use a here doc instead of a long string.
78437 2009-08-21  Eric Blake  <ebb9@byu.net>
78439         test-popen-safer: split from test-popen
78440         * tests/test-popen.c (main): Move...
78441         * tests/test-popen.h: ...into new file.
78442         * tests/test-popen-safer2.c: New file.
78443         * modules/popen-tests (Files): Add test-popen.h.
78444         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78445         Suggested by Bruno Haible.
78447         test-fcntl-safer: split from test-open
78448         * tests/test-open.c (main): Move...
78449         * tests/test-open.h: ...into new file.
78450         * tests/test-fcntl-safer.c: New file.
78451         * modules/open-tests (Files): Add test-open.h.
78452         * modules/fcntl-safer-tests: New file.
78453         Suggested by Bruno Haible.
78455         test-fopen-safer: split from test-fopen
78456         * tests/test-fopen.c (main): Move...
78457         * tests/test-fopen.h: ...into new file.
78458         * tests/test-fopen-safer.c: New file.
78459         * modules/fopen-tests (Files): Add test-fopen.h.
78460         * modules/fopen-safer-tests: New file.
78461         Suggested by Bruno Haible.
78463 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78465         popen-safer: test O_CLOEXEC at run-time.
78466         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78468 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78470         fcntl: move more flags to the header
78471         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78472         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78473         * lib/fcntl.in.h: Do both things here.
78475 2009-08-21  Jim Meyering  <meyering@redhat.com>
78477         consistently remove $@-t before redirecting to it
78478         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78479         * modules/alloca-opt: Likewise.
78480         * modules/byteswap: Likewise.
78481         * modules/fnmatch: Likewise.
78482         * modules/getopt-posix: Likewise.
78483         * modules/glob: Likewise.
78484         * modules/poll: Likewise.
78485         * modules/posix_spawnp-tests: Likewise.
78486         * modules/sys_socket: Likewise.
78487         * modules/sysexits: Likewise.
78489 2009-08-21  Eric Blake  <ebb9@byu.net>
78491         popen: simplify access to original popen
78492         * lib/popen.c (rpl_popen): No need to worry about popen being a
78493         macro.
78494         Reported by Bruno Haible.
78496 2009-08-20  Eric Blake  <ebb9@byu.net>
78498         build: avoid some compiler warnings
78499         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78500         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78501         type.
78502         (new_exclude_segment, excluded_file_pattern_p)
78503         (excluded_file_name_p): Reduce scope.
78504         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78505         old-style declaration.
78507 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78509         * tests/test-exclude1.sh: Handle Windows EOL.
78510         * tests/test-exclude2.sh: Likewise.
78511         * tests/test-exclude3.sh: Likewise.
78512         * tests/test-exclude4.sh: Likewise.
78513         * tests/test-exclude5.sh: Likewise.
78514         * tests/test-exclude6.sh: Likewise.
78515         * tests/test-exclude7.sh: Likewise.
78517 2009-08-19  Akim Demaille  <demaille@gostai.com>
78519         bootstrap: find sha1sum when named gsha1sum.
78520         * bootstrap (find_tool): New.
78521         ($SHA1SUM): New.
78522         Use it.
78524 2009-08-20  Jim Meyering  <meyering@redhat.com>
78526         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78527         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78528         expression that converts "." in a file name to "\." in the resulting
78529         regexp.  Start with a dummy statement, so that prior shell variable
78530         definitions are expanded portably.  Reported by Simon Josefsson.
78532 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78534         Fix polling for writeability of a screen buffer.
78535         * lib/poll.c: Distinguish input and screen buffers for the
78536         Win32 implementation.
78537         * lib/select.c: Likewise.
78539 2009-08-19  Eric Blake  <ebb9@byu.net>
78541         popen-safer: prevent popen from clobbering std descriptors
78542         * modules/popen-safer: New file.
78543         * lib/popen-safer.c: Likewise.
78544         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78545         * lib/stdio--.h (popen): Provide override.
78546         * lib/stdio-safer.h (popen_safer): Provide declaration.
78547         * tests/test-popen.c (includes): Partially test this.
78548         * modules/popen-safer-tests: New file, for more tests.
78549         * tests/test-popen-safer.c: Likewise.
78550         * MODULES.html.sh (file stream based Input/Output): Mention it.
78552         tests: test some of the *-safer modules
78553         * modules/fopen-safer (Depends-on): Add fopen.
78554         * modules/fcntl-safer (Depends-on): Add fcntl.
78555         * modules/stdlib-safer (Depends-on): Add stdlib.
78556         (configure.ac): Set indicator.
78557         * modules/unistd-safer (configure.ac): Likewise.
78558         * modules/tmpfile-safer (configure.ac): Likewise.
78559         (Depends-on): Add tmpfile.
78560         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78561         active.
78562         * tests/test-fopen.c (includes): Test safer versions when they are
78563         in use.
78564         * tests/test-open.c (includes): Likewise.
78566         popen: fix cygwin 1.5 bug when stdin closed
78567         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78568         * modules/popen: New file.
78569         * modules/popen-tests: Likewise.
78570         * tests/test-popen.c: Likewise.
78571         * m4/popen.m4: Likewise.
78572         * lib/popen.c: Likewise.
78573         * lib/stdio.in.h (popen): New declaration.
78574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78575         * modules/stdio (Makefile.am): Likewise.
78576         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78578 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78580         maint.mk: give full control over update-copyright exclusions
78581         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78582         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78583         (update-copyright): Don't force inclusion of top-level
78584         ChangeLog.  Don't force exclusion of all COPYING files, but make
78585         them the default exclusion instead.
78587 2009-08-16  Bruno Haible  <bruno@clisp.org>
78589         Fix test failures on Solaris 10.
78590         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78591         tests when Solaris iconv() is used.
78592         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78593         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78594         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78595         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78596         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78598 2009-08-16  Bruno Haible  <bruno@clisp.org>
78600         Fix test failures on Solaris 10.
78601         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78602         'tr' program and pass it as first argument.
78603         * tests/test-pipe-filter-gi1.sh: Likewise.
78604         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78605         program as first argument.
78606         * tests/test-pipe-filter-gi1.c (main): Likewise.
78608 2009-08-16  Eric Blake  <ebb9@byu.net>
78610         fpurge: fix previous commits
78611         * modules/fpurge (Makefile.am): Make replacement conditional,
78612         partially reverting 2007-04-29 change; missed in previous
78613         attempt.
78614         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78615         is missing.
78617 2009-08-16  Bruno Haible  <bruno@clisp.org>
78619         Clarify fpurge's effect on the file position.
78620         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78621         * tests/test-fpurge.c (main): Make a second pass for checking the file
78622         position.
78624 2009-08-16  Bruno Haible  <bruno@clisp.org>
78626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78627         declaration of fpurge is missing.
78628         * tests/test-fpurge.c (main): Check that the file has not more contents
78629         than expected. Close the file before removing it.
78631 2009-08-15  Eric Blake  <ebb9@byu.net>
78633         fpurge: don't wrap working cygwin implementation
78634         * lib/fpurge.c (fpurge): Fix comment typo.
78635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78636         1.7 to avoid replacement.
78637         * tests/test-fpurge.c (main): Enhance test.
78639 2009-08-15  Eric Blake  <ebb9@byu.net>
78640         and Jim Meyering  <meyering@redhat.com>
78642         test-update-copyright: skip if perl is insufficient
78643         * tests/test-update-copyright.sh: Failure to run maintainer tool
78644         should not cause testsuite failure on cygwin 1.5.
78646 2009-08-14  Eric Blake  <ebb9@byu.net>
78648         doc: mention more functions added in cygwin 1.7.0
78649         * doc/posix-headers/limits.texi (limits.h): Update for recent
78650         cygwin additions.
78651         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78652         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78653         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78654         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78655         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78657 2009-08-14  Eric Blake  <ebb9@byu.net>
78659         maint.mk: simplify update-copyright rule
78660         * top/maint.mk (update-copyright-local): Delete, and document how
78661         to do it in cfg.mk instead.
78662         (update-copyright-exclude-regexp): Delete, and document how to do
78663         it in .x-update-copyright instead.
78664         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78665         exclude ChangeLog.
78667 2009-08-14  Bruno Haible  <bruno@clisp.org>
78669         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78671 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78673         maint.mk: support update-copyright-env
78674         * top/maint.mk (update-copyright-env): Define place-holder.
78675         (update-copyright): Expand $(update-copyright-env) before
78676         invoking update-copyright.
78678 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78680         update-copyright: implement forced reformatting
78681         * build-aux/update-copyright: Implement and document
78682         UPDATE_COPYRIGHT_FORCE.
78683         * tests/test-update-copyright.sh: Test it.
78685 2009-08-14  Eric Blake  <ebb9@byu.net>
78686         and Bruno Haible  <bruno@clisp.org>
78688         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78689         * tests/test-locale.c: Revert previous patch related to NULL.
78690         * tests/test-stdio.c: Likewise.
78691         * tests/test-stdlib.c: Likewise.
78692         * tests/test-string.c: Likewise.
78693         * tests/test-unistd.c: Likewise.
78694         * modules/time-tests (Depends-on): Add verify.
78695         * modules/wchar-tests (Depends-on): Likewise.
78696         * tests/test-time.c: Test for NULL compliance.
78697         * tests/test-wchar.c: Likewise.
78698         * modules/locale (Depends-on): Add stddef.
78699         * modules/stdio (Depends-on): Likewise.
78700         * modules/stdlib (Depends-on): Likewise.
78701         * modules/string (Depends-on): Likewise.
78702         * modules/time (Depends-on): Likewise.
78703         * modules/unistd (Depends-on): Likewise.
78704         * modules/wchar (Depends-on): Likewise.
78705         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78706         * lib/stdlib.in.h (includes): Likewise.
78707         * lib/string.in.h (includes): Likewise.
78708         * lib/time.in.h (includes): Likewise.
78709         * lib/unistd.in.h (includes): Likewise.
78710         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78711         replaced.
78712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78713         * m4/stddef_h.m4: New file.
78714         * modules/stddef: Likewise.
78715         * lib/stddef.in.h: Likewise.
78716         * modules/stddef-tests: Likewise.
78717         * tests/test-stddef.c: Likewise.
78718         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78719         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78720         * doc/posix-headers/locale.texi (locale.h): Likewise.
78721         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78722         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78723         * doc/posix-headers/string.texi (string.h): Likewise.
78724         * doc/posix-headers/time.texi (time.h): Likewise.
78725         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78726         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78728 2009-08-14  Eric Blake  <ebb9@byu.net>
78730         doc: improve git diff of texinfo files
78731         * .gitattributes: Add rule for *.texi files, with hint on how to
78732         use it.
78733         Copied from m4, and based on a report by Bruno Haible.
78735 2009-08-14  Bruno Haible  <bruno@clisp.org>
78737         Disable multithread support by default on Cygwin 1.5.x for real.
78738         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78740 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78742         update-copyright: much ado about intervals
78743         * build-aux/update-copyright: Implement and document
78744         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78745         of copyright year intervals.
78746         Also, document UPDATE_COPYRIGHT_YEAR.
78747         * tests/test-update-copyright.sh: Test it.
78749         update-copyright: convert 2-digit to 4-digit years
78750         * build-aux/update-copyright: Implement and document.
78751         * tests/test-update-copyright.sh: Update.
78753 2009-08-14  Jim Meyering  <meyering@redhat.com>
78755         test-exclude: avoid coreutils "make check" failure
78756         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78757         just as in test-argmatch.c.
78759 2009-08-13  Eric Blake  <ebb9@byu.net>
78761         test-dup2: fix bad assumption
78762         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78763         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78765         test-version-etc: fix CRLF portability issue
78766         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78767         recognize \r.
78768         * tests/test-argp-version-etc-1.sh: Likewise.
78770         getopt: update client modules
78771         * modules/argp (Depends-on): Use getopt-gnu.
78772         * modules/git-merge-changelog (Depends-on): Likewise.
78773         * modules/long-options (Depends-on): Likewise.
78774         * modules/xstrtol (Depends-on): Likewise.
78776 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78778         * tests/test-version-etc.sh: Don't fail on different
78779         project/version.  Don't fail on CRLF differences.  Rewrite to use
78780         multiple -e instead of multiple sed forks, suggested by Eric Blake
78781         <ebb9@byu.net>.
78782         * tests/test-argp-version-etc-1.sh: Likewise.
78784 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78786         * tests/test-version-etc.sh: Don't fail on different
78787         project/version.
78789 2009-08-12  Bruno Haible  <bruno@clisp.org>
78791         Tests for modules 'getopt-posix', 'getopt-gnu'.
78792         * modules/getopt-posix-tests: New file.
78793         * tests/test-getopt.c: New file.
78794         * tests/test-getopt.h: New file.
78795         * tests/test-getopt_long.h: New file.
78797         New modules 'getopt-posix', 'getopt-gnu'.
78798         * modules/getopt-gnu: New file, renamed from modules/getopt.
78799         * modules/getopt-posix: New file.
78800         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
78801         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
78802         (gl_GETOPT): Remove macro.
78803         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
78804         Disable the test against BSD systems that declare optreset. Test
78805         against mingw bug. Test against lack of support of optional arguments
78806         on many platforms.
78807         * doc/glibc-headers/getopt.texi: Update module name and list of
78808         relevant platforms.
78809         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
78810         'getopt-gnu' and more portability problems.
78811         * NEWS: Mention the changes.
78813 2009-08-12  Bruno Haible  <bruno@clisp.org>
78815         Ensure that optarg etc. get declared by <unistd.h>.
78816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
78817         AC_USE_SYSTEM_EXTENSIONS.
78818         * modules/getopt (Depends-on): Add 'extensions'.
78820 2009-08-12  Bruno Haible  <bruno@clisp.org>
78822         Avoid test link errors.
78823         * modules/pipe-filter-ii-tests (Makefile.am): Define
78824         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78825         * modules/pipe-filter-gi-tests (Makefile.am): Define
78826         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78829 2009-08-12  Bruno Haible  <bruno@clisp.org>
78831         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78832         gl_GETOPT_SUBSTITUTE before.
78833         (gl_GETOPT): Use it.
78834         * m4/argp.m4 (gl_ARGP): Update.
78835         Reported by Sergey Poznyakoff.
78837         * m4/getopt.m4: Reorder macros.
78838         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78839         (gl_GETOPT_SUBSTITUTE): Remove macro.
78841 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78843         Minor improvement in gitlog-to-changelog
78845         * build-aux/gitlog-to-changelog: New option `--format' makes
78846         output format string configurable.
78848 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78850         Optimize exclude: use hash tables for non-wildcard patterns.
78852         * lib/exclude.c: Include hash.h and mbuiter.h
78853         (struct exclude_pattern, exclude_segment): New data types.
78854         (struct exclude): Rewrite.
78855         (fnmatch_pattern_has_wildcards): New function.
78856         (new_exclude_segment, free_exclude_segment): New functions.
78857         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78858         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78859         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78860         * modules/exclude: Depend on hash and mbuiter.
78862         * modules/exclude-tests: New file.
78863         * tests/test-exclude.c: New file.
78864         * tests/test-exclude1.sh: New file.
78865         * tests/test-exclude2.sh: New file.
78866         * tests/test-exclude3.sh: New file.
78867         * tests/test-exclude4.sh: New file.
78868         * tests/test-exclude5.sh: New file.
78869         * tests/test-exclude6.sh: New file.
78870         * tests/test-exclude7.sh: New file.
78872 2009-08-12  Bruno Haible  <bruno@clisp.org>
78874         Ensure that getopt() gets declared by <unistd.h>.
78875         * lib/unistd.in.h: Conditionally include getopt.h.
78876         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78877         Set GNULIB_UNISTD_H_GETOPT.
78878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78879         GNULIB_UNISTD_H_GETOPT.
78880         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78882 2009-08-12  Bruno Haible  <bruno@clisp.org>
78884         Clarify logic.
78885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78886         gl_replace_getopt instead of GETOPT_H.
78888 2009-08-12  Bruno Haible  <bruno@clisp.org>
78890         * m4/getopt.m4: Add comments.
78892 2009-08-12  Bruno Haible  <bruno@clisp.org>
78894         Disable multithread support by default on Cygwin 1.5.x.
78895         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78896         set gl_use_threads=no if not specified otherwise.
78898 2009-08-11  Bruno Haible  <bruno@clisp.org>
78900         Avoid compilation error on NetBSD 5.0.
78901         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78902         * tests/test-stdio.c: Likewise.
78903         * tests/test-stdlib.c: Likewise.
78904         * tests/test-string.c: Likewise.
78905         * tests/test-unistd.c: Likewise.
78906         Reported by Greg Troxel <gdt@ir.bbn.com>
78907         at <https://savannah.gnu.org/support/?106973>.
78909 2009-08-11  Bruno Haible  <bruno@clisp.org>
78911         * modules/dup2-tests (Depends-on): Remove close.
78913         Undo 2009-07-19 commit.
78914         * modules/acl-tests (Depends-on): Remove close.
78915         * modules/binary-io-tests (Depends-on): Likewise.
78916         * modules/closein-tests (Depends-on): Likewise.
78917         * modules/flock-tests (Depends-on): Likewise.
78918         * modules/fsync-tests (Depends-on): Likewise.
78919         * modules/lseek-tests (Depends-on): Likewise.
78920         * modules/pipe-tests (Depends-on): Likewise.
78921         * modules/posix_spawn-tests (Depends-on): Likewise.
78922         * modules/posix_spawnp-tests (Depends-on): Likewise.
78923         * modules/stat-time-tests (Depends-on): Likewise.
78924         * modules/yesno-tests (Depends-on): Likewise.
78926 2009-08-10  Bruno Haible  <bruno@clisp.org>
78928         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78930 2009-08-10  Bruno Haible  <bruno@clisp.org>
78932         Fix a gcc warning.
78933         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78935 2009-08-10  Bruno Haible  <bruno@clisp.org>
78937         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78938         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78939         not only the first time.
78940         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78941         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78942         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78943         is 1, not only the first time.
78945 2009-08-10  Bruno Haible  <bruno@clisp.org>
78947         Make it possible to use module 'gethostname' without module 'close'.
78948         * lib/unistd.in.h (close): Evoke a link error only if
78949         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78951         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78952         * modules/unistd (Makefile.am): Substitute
78953         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78954         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78956         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78957         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78958         * modules/sys_ioctl (Makefile.am): Substitute
78959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78960         * modules/socket (configure.ac): On native Windows, set
78961         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78963         Reported by Sam Steingold <sds@gnu.org>.
78965 2009-08-10  Bruno Haible  <bruno@clisp.org>
78967         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78968         * modules/ioctl (configure.ac): Likewise.
78970 2009-08-10  Bruno Haible  <bruno@clisp.org>
78972         Avoid collision between gnulib wrapper and libintl wrapper.
78973         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78974         already defined in intl/printf.c.
78975         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78976         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78978 2009-08-09  Bruno Haible  <bruno@clisp.org>
78980         Make <sys/select.h> really self-contained, also on Solaris 10.
78981         * lib/sys_select.in.h: Include <string.h>.
78982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78983         Solaris 10 problem.
78984         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78985         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78986         Reported by Jim Meyering.
78988 2009-08-09  Bruno Haible  <bruno@clisp.org>
78990         Avoid warnings from 'aclocal' that are due to a use of macro name
78991         AM_XGETTEXT_OPTION that is not defined in automake.
78992         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78993         automake.
78994         * modules/error (configure.ac): Likewise.
78995         * modules/propername (configure.ac): Likewise.
78996         * modules/vasprintf (configure.ac): Likewise.
78997         * modules/verror (configure.ac): Likewise.
78998         * modules/xprintf (configure.ac): Likewise.
78999         * modules/xvasprintf (configure.ac): Likewise.
79001 2009-08-08  Bruno Haible  <bruno@clisp.org>
79003         Avoid compilation error in C++ mode.
79004         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
79005         Reported by Sam Steingold <sds@gnu.org>.
79007 2009-08-08  Bruno Haible  <bruno@clisp.org>
79009         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
79010         for the various Unix platforms.
79011         * doc/posix-headers/limits.texi: Update platforms list regarding
79012         HOST_NAME_MAX.
79013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79015 2009-08-07  Jim Meyering  <meyering@redhat.com>
79017         selinux-at: fix typo in a comment
79018         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
79019         Spotted by Paolo Bonzini.
79021         selinux-at: remove redundant m4 code, add documentation
79022         * modules/selinux-at (configure.ac): Remove redundant code.
79023         LIB_SELINUX is already set via the dependent module, selinux-h.
79024         (Include): Add quotes around selinux-at.h.
79025         * lib/selinux-at.h: Add documentation.
79026         Reported by Bruno Haible in
79027         http://marc.info/?l=gnulib-bug&m=124958988300749
79029 2009-08-07  Bruno Haible  <bruno@clisp.org>
79031         Avoid link error on MacOS X 10.3 and 10.4.
79032         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
79033         on non-ELF systems.
79034         * lib/argp-pv.c (argp_program_version): Likewise.
79035         Reported by Simon Josefsson.
79037 2009-08-07  Simon Josefsson  <simon@josefsson.org>
79039         * tests/test-version-etc.sh: Use $EXEEXT.
79041 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
79043         update-copyright: update documentation to point to maint.mk
79044         * build-aux/update-copyright: Here.
79046 2009-08-06  Jim Meyering  <meyering@redhat.com>
79048         maint.mk: support update-copyright-local
79049         * top/maint.mk (update-copyright-local): Define place-holder.
79050         (update-copyright): Depend on $(update-copyright-local).
79052 2009-08-06  Jim Meyering  <meyering@redhat.com>
79054         selinux-at: new module
79055         Initially written for coreutils, this module will soon be
79056         used by findutils, too.
79057         * MODULES.html.sh [Misc]: Add selinux-at.
79058         * lib/selinux-at.h: New file, from coreutils.
79059         * lib/selinux-at.c: Likewise.
79060         * modules/selinux-at: Likewise.
79061         (License): Change from LGPL to GPL, since it depends
79062         on the GPL'd openat module.
79064         doc: update README
79065         * README: Remove references to cogito.
79066         Remove cvs-repo-updating instructions from 2007.
79067         Don't imply that CVS is better if you have limited disk space.
79069 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79071         update-copyright: support C-style comments
79072         * build-aux/update-copyright: Implement and document.
79073         * tests/test-update-copyright.sh: Test.
79075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79077         update-copyright: support omitted "(C)"
79078         * build-aux/update-copyright: Implement and document.  Also,
79079         allow variable whitespace before "(C)".
79080         * tests/test-update-copyright.sh: Test.
79082 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79084         update-copyright: don't trip on non-FSF copyright statements
79085         * build-aux/update-copyright: Fix so that the first correctly
79086         formatted FSF copyright statement is recognized no matter what
79087         appears before it.  Update documentation.
79088         * tests/test-update-copyright.sh: Test that.
79090 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79092         update-copyright: clean up code a little
79093         * build-aux/update-copyright: Append "_re" to the name of any
79094         variable holding a regular expression.
79095         Replace "old" and "new" with "stmt" in variable names.
79096         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
79097         handled correctly.
79098         Format code more consistently.
79100 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79102         update-copyright-tests: improve portability
79103         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
79104         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
79106 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79108         update-copyright: support @copyright{} and &copy;
79109         * build-aux/update-copyright: Implement and document.
79110         * tests/test-update-copyright.sh: Test.
79112 2009-08-04  Jim Meyering  <meyering@redhat.com>
79114         update-copyright-tests: correctly test EOL=\r\n handling
79115         * tests/test-update-copyright.sh: Put \r at the end of some lines
79116         for the dos-eol tests.  Based on a patch by Joel E. Denny.
79118         maint.mk: make update-copyright exclusion list more configurable
79119         * top/maint.mk (update-copyright): Default to excluding COPYING,
79120         but allow an override, in case someone does want to update that file.
79122         maint.mk: don't update copyright date in COPYING
79123         * top/maint.mk (update-copyright): Exclude COPYING.
79125         maint.mk: add a copyright-updating rule
79126         * top/maint.mk (update-copyright): New rule.
79127         Derived from coreutils/Makefile.am.
79129         update-copyright: rename some variables
79130         * build-aux/update-copyright: Rename a few variables for clarity.
79131         Tweak syntax.  List Joel E. Denny as coauthor.
79133 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79135         update-copyright: fix bug for 2-digit last year and add tests
79136         * build-aux/update-copyright: Fix bug.
79137         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
79138         specified.
79139         * modules/update-copyright-tests: New
79140         * tests/test-update-copyright.sh: New.
79142 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79144         update-copyright: handle leading tabs in line prefix
79145         * build-aux/update-copyright: Count leading tabs as 8 spaces
79146         when computing margin.  This helps with the formatting of
79147         ChangeLogs, for example.
79148         Fix documentation a little.
79150 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79152         update-copyright: support EOL=\r\n
79153         * build-aux/update-copyright: Implement that.
79155 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79157         update-copyright: automatically format copyright statements
79158         * build-aux/update-copyright: Implement that.
79159         Also, be a little more predictable and safer by always failing
79160         when the full copyright format is not perfectly recognized as an
79161         unbroken whole.  Discussed at
79162         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
79163         Rewrite documentation.
79165 2009-08-03  Bruno Haible  <bruno@clisp.org>
79167         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
79169 2009-08-02  Bruno Haible  <bruno@clisp.org>
79171         Tests for module 'uname'.
79172         * modules/uname-tests: New file.
79173         * tests/test-uname.c: New file.
79175         New module 'uname'.
79176         * lib/uname.c: New file.
79177         * m4/uname.m4: New file.
79178         * modules/uname: New file.
79179         * doc/posix-functions/uname.texi: Mention the new module.
79181 2009-08-02  Bruno Haible  <bruno@clisp.org>
79183         Tests for module 'sys_utsname'.
79184         * modules/sys_utsname-tests: New file.
79185         * tests/test-sys_utsname.c: New file.
79187         New module 'sys_utsname'.
79188         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
79189         * m4/sys_utsname_h.m4: New file.
79190         * modules/sys_utsname: New file.
79191         * doc/posix-headers/sys_utsname.texi: Mention the new module.
79193 2009-08-02  Bruno Haible  <bruno@clisp.org>
79195         Implicitly initialize the sockets library.
79196         * lib/gethostname.c: Include sockets.h.
79197         (rpl_gethostname): Invoke gl_sockets_startup.
79198         * lib/socket.c: Include sockets.h.
79199         (rpl_socket): Invoke gl_sockets_startup.
79200         * modules/gethostname (Depends-on): Add sockets.
79201         * modules/socket (Depends-on): Likewise.
79202         * tests/test-poll.c: Don't include sockets.h.
79203         (main): Don't invoke gl_sockets_startup.
79204         * tests/test-select.c: Don't include sockets.h.
79205         (main): Don't invoke gl_sockets_startup.
79207 2009-08-02  Bruno Haible  <bruno@clisp.org>
79209         Allow multiple calls to gl_sockets_startup.
79210         * lib/sockets.c (initialized_sockets_version): New variable.
79211         (gl_sockets_startup): Do nothing if already called for this or a higher
79212         version.
79213         (gl_sockets_cleanup): Reset initialized_sockets_version.
79215 2009-08-03  Simon Josefsson  <simon@josefsson.org>
79217         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
79218         different project/version.
79220 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
79221             Bruno Haible  <bruno@clisp.org>
79223         Tests for module 'pipe-filter-gi'.
79224         * modules/pipe-filter-gi-tests: New file.
79225         * tests/test-pipe-filter-gi1.sh: New file.
79226         * tests/test-pipe-filter-gi1.c: New file.
79227         * tests/test-pipe-filter-gi2.sh: New file.
79228         * tests/test-pipe-filter-gi2-main.c: New file.
79229         * tests/test-pipe-filter-gi2-child.c: New file.
79231         New module 'pipe-filter-gi'.
79232         * lib/pipe-filter-gi.c: New file.
79233         * modules/pipe-filter-gi: New file.
79235 2009-08-02  Bruno Haible  <bruno@clisp.org>
79236             Paolo Bonzini  <bonzini@gnu.org>
79238         Tests for module 'pipe-filter-ii'.
79239         * modules/pipe-filter-ii-tests: New file.
79240         * tests/test-pipe-filter-ii1.sh: New file.
79241         * tests/test-pipe-filter-ii1.c: New file.
79242         * tests/test-pipe-filter-ii2.sh: New file.
79243         * tests/test-pipe-filter-ii2-main.c: New file.
79244         * tests/test-pipe-filter-ii2-child.c: New file.
79246         New module 'pipe-filter-ii'.
79247         * lib/pipe-filter.h: New file.
79248         * lib/pipe-filter-ii.c: New file.
79249         * lib/pipe-filter-aux.h: New file.
79250         * modules/pipe-filter-ii: New file.
79252 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79254         * lib/gc-libgcrypt.c: Change copyright to FSF.
79255         * lib/gc-gnulib.c: Likewise.
79257 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
79259         * lib/gethostname.c: Include limits.h.
79261 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79262             Bruno Haible  <bruno@clisp.org>
79264         Ensure HOST_NAME_MAX as part of the gethostname module.
79265         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
79266         define also HOST_NAME_MAX.
79267         * tests/test-gethostname.c: Include <limits.h>.
79268         (main): Check also HOST_NAME_MAX.
79269         * doc/posix-headers/limits.texi: Document the mingw problem.
79271 2009-08-02  Bruno Haible  <bruno@clisp.org>
79273         * lib/gethostname.c (gethostname): Fix handling of large len argument.
79274         Add comments.
79276 2009-03-31  Simon Josefsson  <simon@josefsson.org>
79278         * lib/gethostname.c: Add Windows wrapper.
79279         * m4/gethostname.m4: Look for gethostname in -lws2_32.
79280         * modules/gethostname: Depend on sys_socket & errno, for also
79281         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
79282         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
79284 2009-07-31  Jim Meyering  <meyering@redhat.com>
79286         getloadavg: fix symbol name in comment
79287         * lib/getloadavg.c: Correct a typo I introduced when adding
79288         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
79289         Matt Kraai spotted the problem.
79291 2009-07-29  Matt Kraai  <mkraai@beckman.com>
79293         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
79294         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
79295         code also if ! defined N_NAME_POINTER.
79296         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
79297         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
79298         but the n_name member is a 12-byte array.
79300 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
79302         update-copyright: generalize comment handling
79303         * build-aux/update-copyright: Handle copyright statements
79304         within more comment styles.
79305         Document usage.
79306         Report any file with an external copyright holder or parse failure.
79308 2009-07-29  Jim Meyering  <meyering@redhat.com>
79310         mktime: correct setting of REPLACE_MKTIME
79311         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
79313         update-copyright: new module
79314         * modules/update-copyright: New file.
79315         * build-aux/update-copyright: New file.
79316         * MODULES.html.sh (maint+release support): Add update-copyright.
79318 2009-07-27  Bruno Haible  <bruno@clisp.org>
79320         Fix compilation error when <ctime> is used and mktime is replaced.
79321         * lib/time.in.h (mktime): New declaration.
79322         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
79323         REPLACE_MKTIME instead of defining mktime in config.h.
79324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
79325         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
79326         Reported by Ross McFarland <rwmcfa1@neces.com>.
79328 2009-07-27  Bruno Haible  <bruno@clisp.org>
79330         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
79331         Reported by Matt Kraai <mkraai@beckman.com>.
79333 2009-07-25  Jim Meyering  <meyering@redhat.com>
79335         maint.mk: avoid warnings about missing files
79336         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
79337         diagnostic when .prev-version does not exist.
79338         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
79339         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
79340         nonexistent cfg.mk.
79341         Suggestions from Simon Josefsson.
79343 2009-07-25  Bruno Haible  <bruno@clisp.org>
79345         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
79346         defined as macros. Needed on QNX 6.4.1.
79347         Reported by Matt Kraai <mkraai@beckman.com>.
79349 2009-07-23  Jim Meyering  <meyering@redhat.com>
79351         maint.mk: invoke "make dist" with a working value of XZ_OPT
79352         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
79354 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
79356         Make fseeko.c compile on QNX.
79357         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
79359 2009-07-22  Peter Simons  <simons@cryp.to>
79361         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
79362         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
79363         * lib/md4.h: Likewise.
79364         * lib/md5.h: Likewise.
79365         * lib/sha1.h: Likewise.
79366         * lib/sha256.h: Likewise.
79367         * lib/sha512.h: Likewise.
79369         tests-sha1: don't assign literal string to 'char *' variable
79370         * tests/test-sha1.c (main): Declare locals with "const" to match
79371         attributes of the right hand side.
79373 2009-07-21  Eric Blake  <ebb9@byu.net>
79375         dup2: fix more mingw problems
79376         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
79377         fd to itself.
79378         * doc/posix-functions/dup2.texi (dup2): Document the bug.
79379         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79380         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79381         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79382         care of mingw bugs.
79384 2009-07-21  Jim Meyering  <meyering@redhat.com>
79386         vc-list-files: avoid failure when /bin/sh is dash
79387         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79388         On some Debian based systems, /bin/sh is a symlink to dash, and running
79389         this command would omit the "/" following each 'tests' prefix:
79390           dash -x build-aux/vc-list-files -C . tests
79391         That is because bash and dash work differently:
79392           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79393           bash ok
79394           dash odd
79396 2009-07-21  Eric Blake  <ebb9@byu.net>
79398         dup2-tests: test previous patch
79399         * modules/dup2-tests: New file.
79400         * tests/test-dup2.c: Likewise.
79401         * tests/test-open.c (main): Avoid unspecified behavior.
79402         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79403         test.
79405         dup2: work around mingw and cygwin 1.5 bug
79406         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79408         * modules/unistd (Makefile.am): Substitute it.
79409         * lib/unistd.in.h (dup2): Declare the replacement.
79410         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79411         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79412         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79413         * modules/execute (Depends-on): Add dup2.
79414         * modules/fseterr (Depends-on): Likewise.
79415         * modules/pipe (Depends-on): Likewise.
79416         * modules/posix_spawn-internal (Depends-on): Likewise.
79418 2009-07-21  Bruno Haible  <bruno@clisp.org>
79420         * modules/.gitattributes: New file.
79422 2009-07-20  Bruno Haible  <bruno@clisp.org>
79424         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79425         (main): Use it.
79427 2009-07-20  Eric Blake  <ebb9@byu.net>
79429         test-pipe: make a bit more robust.
79430         * tests/test-pipe.c (myerr): Allow error messages regardless of
79431         what we do to stderr.
79432         (test_pipe): Rearrange to avoid deadlock.
79433         (child_main): Try a larger read, to ensure we avoided deadlock.
79434         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79435         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79436         if misused.
79438 2009-07-19  Jim Meyering  <meyering@redhat.com>
79440         fts: avoid false-positive cycle-detection
79441         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79442         for each new command line argument.
79444 2009-07-19  Bruno Haible  <bruno@clisp.org>
79446         Fix build error on mingw with the modules sys_select and unistd.
79447         * modules/acl-tests (Depends-on): Add close.
79448         * modules/binary-io-tests (Depends-on): Likewise.
79449         * modules/closein-tests (Depends-on): Likewise.
79450         * modules/flock-tests (Depends-on): Likewise.
79451         * modules/fsync-tests (Depends-on): Likewise.
79452         * modules/lseek-tests (Depends-on): Likewise.
79453         * modules/pipe-tests (Depends-on): Likewise.
79454         * modules/posix_spawn-tests (Depends-on): Likewise.
79455         * modules/posix_spawnp-tests (Depends-on): Likewise.
79456         * modules/stat-time-tests (Depends-on): Likewise.
79457         * modules/yesno-tests (Depends-on): Likewise.
79459 2009-07-19  Bruno Haible  <bruno@clisp.org>
79461         Unify conditionals.
79462         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79463         macros, not at the compiler macros.
79464         * lib/pipe.c: Likewise.
79465         * lib/execute.c: Likewise.
79466         * lib/spawni.c: Likewise.
79468 2009-07-19  Bruno Haible  <bruno@clisp.org>
79470         Fix handling of closed stdin/stdout/stderr on mingw.
79471         * lib/w32spawn.h: Include unistd.h.
79472         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79473         file descriptor with O_NOINHERIT flag.
79474         (fd_safer_noinherit): New function, based on fd-safer.c.
79475         (dup_safer_noinherit): New function, based on dup-safer.c.
79476         (undup_safer_noinherit): New function.
79477         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79478         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79479         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79480         instead of fd_safer.
79481         * tests/test-pipe.c: Include <windows.h>.
79482         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79483         result.
79485         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79486         from main.
79487         (test_pipe): Pass an extra argument for disambiguation.
79488         (main): Invoke parent_main or child_main.
79490         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79491         consistently.
79493 2009-07-18  Eric Blake  <ebb9@byu.net>
79495         test-pipe: fix mingw build
79496         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79498 2009-07-18  Bruno Haible  <bruno@clisp.org>
79500         * modules/pipe-tests (Makefile.am): Fix typo.
79502 2009-07-18  Eric Blake  <ebb9@byu.net>
79504         error: fix mingw build
79505         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79506         Reported by Bruno Haible.
79508         error: avoid undefined use of stdout
79509         * lib/error.c (error, error_at_line): Check that fd 1 is open
79510         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79511         is handling faults and the close_stdout module wants to report the
79512         detection of closed stdout as an error.
79514 2009-07-17  Eric Blake  <ebb9@byu.net>
79516         pipe: be robust in face of closed fds
79517         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79518         should cause child to misbehave.
79519         * modules/pipe-tests: New module.
79520         * tests/test-pipe.c: New file.
79521         * tests/test-pipe.sh: New file.
79522         Reported by Akim Demaille.
79524 2009-07-14  Bruno Haible  <bruno@clisp.org>
79526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79527         Reported by anonymous kc.
79529 2009-07-07  Jim Meyering  <meyering@redhat.com>
79531         maint.mk: don't look for translatable strings in *.m4 or *.mk
79532         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79533         when searching for translatable strings.
79535 2009-07-05  Jim Meyering  <meyering@redhat.com>
79537         remove superfluous parentheses in STREQ definition
79538         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79539         * lib/getugroups.c (STREQ): Likewise.
79540         * lib/fnmatch.c (STREQ): Likewise.
79541         Spotted by Bruno Haible.
79543 2009-07-04  Jim Meyering  <meyering@redhat.com>
79545         argv-iter: new module
79546         * MODULES.html.sh: Add argv-iter.
79547         * lib/argv-iter.c, lib/argv-iter.h: New files.
79548         * modules/argv-iter: New file.
79549         * modules/argv-iter-tests: New file.
79550         * tests/test-argv-iter.c: Test it.
79552 2009-07-04  Bruno Haible  <bruno@clisp.org>
79554         Fix assertion.
79555         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79556         contains more exact copies of a given entry than file2, leave the extra
79557         copies unpaired rather than aborting.
79558         Reported by Eric Blake.
79560 2009-07-02  Bruno Haible  <bruno@clisp.org>
79562         Speedup git-merge-changelog for git cherry-pick.
79563         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79564         (entries_mapping_get): New function, extracted from compute_mapping.
79565         (entries_mapping_reverse_get): New function.
79566         (compute_mapping): Add a 'full' argument. Return the result in a
79567         'struct entries_mapping'.
79568         (main): Update. Access the mappings through entries_mapping_get.
79569         Reported by Eric Blake.
79571 2009-07-02  Bruno Haible  <bruno@clisp.org>
79573         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79574         best_i.
79576 2009-07-02  Bruno Haible  <bruno@clisp.org>
79578         Speed up approximate search for matching ChangeLog entries.
79579         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79580         argument. Call fstrcmp_bounded instead of fstrcmp.
79581         (compute_mapping, try_split_merged_entry, main): Update callers.
79583 2009-07-02  Bruno Haible  <bruno@clisp.org>
79585         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79587 2009-06-30  Bruno Haible  <bruno@clisp.org>
79589         Reduce the number of uc_is_cased calls.
79590         * lib/unicase.h (casing_suffix_context_t): Add
79591         'first_char_except_ignorable' field.
79592         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79593         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79594         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79595         Update initializer.
79596         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79597         case-ignorable characters.
79598         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79599         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79600         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79601         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79602         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79604 2009-06-30  Bruno Haible  <bruno@clisp.org>
79606         Tests for module 'unicase/ignorable'.
79607         * modules/unicase/ignorable-tests: New file.
79608         * tests/unicase/test-ignorable.c: New file, generated by
79609         gen-uni-tables.
79611         Tests for module 'unicase/cased'.
79612         * modules/unicase/cased-tests: New file.
79613         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79614         * tests/unicase/test-predicate-part1.h: New file, derived from
79615         tests/unictype/test-predicate-part1.h.
79616         * tests/unicase/test-predicate-part2.h: New file, same as
79617         tests/unictype/test-predicate-part2.h.
79619         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79620         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79621         (output_casing_properties): New function.
79622         (main): Call it.
79623         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79624         * lib/unicase/cased.c: Include unictype/bitmap.h.
79625         (uc_is_cased): Define through a bitmap lookup.
79626         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79627         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79628         (uc_is_case_ignorable): Define through a bitmap lookup.
79629         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79630         lib/unictype/bitmap.h.
79631         (Depends-on): Add inline. Clean up.
79632         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79633         lib/unictype/bitmap.h.
79634         (Depends-on): Add inline. Clean up.
79635         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79636         recognition.
79637         * tests/unicase/test-u16-tolower.c (main): Likewise.
79638         * tests/unicase/test-u32-tolower.c (main): Likewise.
79640 2009-06-30  Bruno Haible  <bruno@clisp.org>
79642         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79643         * lib/unicase/u16-casemap.c: Likewise.
79644         * lib/unicase/u32-casemap.c: Likewise.
79646 2009-06-29  Bruno Haible  <bruno@clisp.org>
79648         Define u32_casefold as a wrapper around u32_ct_casefold.
79649         * lib/unicase/u32-casefold.c: Update.
79650         * modules/unicase/u32-casefold (Depends-on): Add
79651         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79652         unicase/empty-suffix-context. Clean up.
79654         Define u16_casefold as a wrapper around u16_ct_casefold.
79655         * lib/unicase/u16-casefold.c: Update.
79656         * modules/unicase/u16-casefold (Depends-on): Add
79657         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79658         unicase/empty-suffix-context. Clean up.
79660         Define u8_casefold as a wrapper around u8_ct_casefold.
79661         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79662         * lib/unicase/u8-casefold.c: Update.
79663         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79664         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79666         Define u32_totitle as a wrapper around u32_ct_totitle.
79667         * lib/unicase/u32-totitle.c: Update.
79668         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79669         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79671         Define u16_totitle as a wrapper around u16_ct_totitle.
79672         * lib/unicase/u16-totitle.c: Update.
79673         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79676         Define u8_totitle as a wrapper around u8_ct_totitle.
79677         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79678         functions.
79679         (FUNC): Delegate to U_CT_TOTITLE.
79680         * lib/unicase/u8-totitle.c: Update.
79681         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79682         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79684         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79685         invocation.
79686         * modules/unicase/u32-tolower (Depends-on): Add
79687         unicase/empty-prefix-context, unicase/empty-suffix-context.
79689         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79690         invocation.
79691         * modules/unicase/u16-tolower (Depends-on): Add
79692         unicase/empty-prefix-context, unicase/empty-suffix-context.
79694         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79695         * modules/unicase/u8-tolower (Depends-on): Add
79696         unicase/empty-prefix-context, unicase/empty-suffix-context.
79698         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79699         invocation.
79700         * modules/unicase/u32-toupper (Depends-on): Add
79701         unicase/empty-prefix-context, unicase/empty-suffix-context.
79703         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79704         invocation.
79705         * modules/unicase/u16-toupper (Depends-on): Add
79706         unicase/empty-prefix-context, unicase/empty-suffix-context.
79708         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79709         * modules/unicase/u8-toupper (Depends-on): Add
79710         unicase/empty-prefix-context, unicase/empty-suffix-context.
79712         New module 'unicase/u32-ct-casefold'.
79713         * lib/unicase/u32-ct-casefold.c: New file.
79714         * modules/unicase/u32-ct-casefold: New file.
79716         New module 'unicase/u16-ct-casefold'.
79717         * lib/unicase/u16-ct-casefold.c: New file.
79718         * modules/unicase/u16-ct-casefold: New file.
79720         New module 'unicase/u8-ct-casefold'.
79721         * lib/unicase/u8-ct-casefold.c: New file.
79722         * lib/unicase/u-ct-casefold.h: New file, derived from
79723         lib/unicase/u-casefold.h.
79724         * modules/unicase/u8-ct-casefold: New file.
79726         New module 'unicase/u32-ct-totitle'.
79727         * lib/unicase/u32-ct-totitle.c: New file.
79728         * modules/unicase/u32-ct-totitle: New file.
79730         New module 'unicase/u16-ct-totitle'.
79731         * lib/unicase/u16-ct-totitle.c: New file.
79732         * modules/unicase/u16-ct-totitle: New file.
79734         New module 'unicase/u8-ct-totitle'.
79735         * lib/unicase/u8-ct-totitle.c: New file.
79736         * lib/unicase/u-ct-totitle.h: New file, derived from
79737         lib/unicase/u-totitle.h.
79738         * modules/unicase/u8-ct-totitle: New file.
79740         New module 'unicase/u32-ct-tolower'.
79741         * lib/unicase/u32-ct-tolower.c: New file.
79742         * modules/unicase/u32-ct-tolower: New file.
79744         New module 'unicase/u16-ct-tolower'.
79745         * lib/unicase/u16-ct-tolower.c: New file.
79746         * modules/unicase/u16-ct-tolower: New file.
79748         New module 'unicase/u8-ct-tolower'.
79749         * lib/unicase/u8-ct-tolower.c: New file.
79750         * modules/unicase/u8-ct-tolower: New file.
79752         New module 'unicase/u32-ct-toupper'.
79753         * lib/unicase/u32-ct-toupper.c: New file.
79754         * modules/unicase/u32-ct-toupper: New file.
79756         New module 'unicase/u16-ct-toupper'.
79757         * lib/unicase/u16-ct-toupper.c: New file.
79758         * modules/unicase/u16-ct-toupper: New file.
79760         New module 'unicase/u8-ct-toupper'.
79761         * lib/unicase/u8-ct-toupper.c: New file.
79762         * modules/unicase/u8-ct-toupper: New file.
79764         Add context arguments to u*_casemap functions.
79765         * lib/unicase/unicasemap.h: Include unicase.h.
79766         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79767         suffix_context arguments.
79768         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79769         functions.
79770         (FUNC): Add prefix_context and suffix_context arguments. Use
79771         uc_is_cased and uc_is_case_ignorable.
79772         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79773         * lib/unicase/u16-casemap.c: Likewise.
79774         * lib/unicase/u32-casemap.c: Likewise.
79775         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79776         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79777         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79778         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79779         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79782         New module 'unicase/u32-suffix-context'.
79783         * lib/unicase/u32-suffix-context.c: New file.
79784         * modules/unicase/u32-suffix-context: New file.
79786         New module 'unicase/u16-suffix-context'.
79787         * lib/unicase/u16-suffix-context.c: New file.
79788         * modules/unicase/u16-suffix-context: New file.
79790         New module 'unicase/u8-suffix-context'.
79791         * lib/unicase/u8-suffix-context.c: New file.
79792         * lib/unicase/u-suffix-context.h: New file.
79793         * modules/unicase/u8-suffix-context: New file.
79795         New module 'unicase/empty-suffix-context'.
79796         * lib/unicase/empty-suffix-context.c: New file.
79797         * modules/unicase/empty-suffix-context: New file.
79799         New module 'unicase/u32-prefix-context'.
79800         * lib/unicase/u32-prefix-context.c: New file.
79801         * modules/unicase/u32-prefix-context: New file.
79803         New module 'unicase/u16-prefix-context'.
79804         * lib/unicase/u16-prefix-context.c: New file.
79805         * modules/unicase/u16-prefix-context: New file.
79807         New module 'unicase/u8-prefix-context'.
79808         * lib/unicase/u8-prefix-context.c: New file.
79809         * lib/unicase/u-prefix-context.h: New file.
79810         * lib/unicase/context.h: New file.
79811         * modules/unicase/u8-prefix-context: New file.
79813         New module 'unicase/empty-prefix-context'.
79814         * lib/unicase/empty-prefix-context.c: New file.
79815         * modules/unicase/empty-prefix-context: New file.
79817         New module 'unicase/ignorable'.
79818         * lib/unicase/ignorable.c: New file.
79819         * modules/unicase/ignorable: New file.
79821         New module 'unicase/cased'.
79822         * lib/unicase/caseprop.h: New file.
79823         * lib/unicase/cased.c: New file.
79824         * modules/unicase/cased: New file.
79826         New functions for case mapping of substrings.
79827         * lib/unicase.h (casing_prefix_context_t): New type.
79828         (unicase_empty_prefix_context): New variable.
79829         (u8_casing_prefix_context, u16_casing_prefix_context,
79830         u32_casing_prefix_context, u8_casing_prefixes_context,
79831         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79832         declarations.
79833         (casing_suffix_context_t): New type.
79834         (unicase_empty_suffix_context): New variable.
79835         (u8_casing_suffix_context, u16_casing_suffix_context,
79836         u32_casing_suffix_context, u8_casing_suffixes_context,
79837         u16_casing_suffixes_context, u32_casing_suffixes_context,
79838         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79839         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79840         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79841         declarations.
79843 2009-06-28  Jim Meyering  <meyering@redhat.com>
79845         boostrap: indent only with spaces
79846         * build-aux/bootstrap: Indent only with spaces, never TABs.
79848         bootstrap: split long lines
79849         * build-aux/bootstrap: Keep line length < 80.
79851         bootstrap: sync from coreutils
79852         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79853         just as autoreconf does.  Verify a list of prerequisite
79854         package-name,version-number pairs if defined in bootstrap.conf.
79855         Refer to README-prereq, if prerequisites are not satisfied.
79857 2009-06-27  Eric Blake  <ebb9@byu.net>
79859         tests: add test for bogus NULL definition
79860         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79861         * tests/test-stdlib.c: Likewise.
79862         * tests/test-string.c: Likewise.
79863         * tests/test-locale.c: Likewise.
79864         * tests/test-unistd.c: Likewise.
79865         * modules/stdio-tests (Depends-on): Add verify.
79866         * modules/stdlib-tests (Depends-on): Likewise.
79867         * modules/string-tests (Depends-on): Likewise.
79868         * modules/locale-tests (Depends-on): Likewise.
79869         * modules/unistd-tests (Depends-on): Likewise.
79871 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79873         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79874         self-explaining comment.
79875         * m4/selinux-selinux-h: Update serial.
79876         (gl_LIBSELINUX): New macro, adding a warning for missing development
79877         packages to code extracted from...
79878         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79879         Add warning for missing development packages here, too.
79881 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79883         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79885 2009-06-25  Eric Blake  <ebb9@byu.net>
79887         version-etc: fix regression
79888         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79889         gcc.
79890         (version_etc): Use it, to catch bugs with trailing NULL.
79891         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79892         (version_etc_va): Fix logic bug.
79893         * modules/version-etc-tests: Add test.
79894         * tests/test-version-etc.c: New file.
79895         * tests/test-version-etc.sh: Likewise.
79897 2009-06-25  Sam Steingold  <sds@gnu.org>
79899         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79900         mbtowc declaration.
79902 2009-06-25  Eric Blake  <ebb9@byu.net>
79904         fpurge: migrate into <stdio.h>
79905         * lib/fpurge.h: Delete...
79906         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79907         * lib/fpurge.c (fpurge): Change declaring header.
79908         * modules/fpurge (Files): Drop deleted file.
79909         (Depends-on): Add stdio.
79910         (configure.ac): Set witness.
79911         * modules/stdio (Makefile.am): Support fpurge macros.
79912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79914         * lib/fflush.c: Update client.
79915         * tests/test-fpurge.c: Likewise.
79916         * NEWS: Mention the change.
79918 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79920         * lib/argp-version-etc.c (program_authors): Add const
79921         qualifier.
79922         * lib/version-etc.c: Fix typos in the comments.
79923         * modules/argp-version-etc: Depends on version-etc.
79925 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79927         argp-version-etc: new module.
79929         * lib/argp-version-etc.c: New file.
79930         * lib/argp-version-etc.h: New file.
79931         * modules/argp-version-etc: New file.
79932         * modules/argp-version-etc-tests: New file.
79933         * tests/test-argp-version-etc.c: New test.
79934         * tests/test-argp-version-etc-1.sh: New test.
79936 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79938         Provide additional interfaces and documentation for version-etc
79939         module.
79941         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79942         interfaces.
79943         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79944         prototypes.
79946 2009-06-24  Bruno Haible  <bruno@clisp.org>
79948         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79949         HAVE_LIB${NAME} macro.
79950         Reported by Sam Steingold <sds@gnu.org>.
79952 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79954         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79955         needed.
79957 2009-06-21  Bruno Haible  <bruno@clisp.org>
79959         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79960         work.
79961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79962         together with LIB${NAME}, LTLIB${NAME}.
79963         Reported by Sam Steingold <sds@gnu.org>.
79965 2009-06-20  Jim Meyering  <meyering@redhat.com>
79967         tests: make sc_require_test_exit_idiom more generic
79968         * top/maint.mk (Exit_witness_file): New overridable variable.
79969         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79970         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79972 2009-06-19  Jim Meyering  <meyering@redhat.com>
79974         hash: reverse order of src/dst parameters in an internal interface
79975         * lib/hash.c (transfer_entries): Reverse order of parameters to
79976         put DST before SRC.  Adjust callers.
79978         tests: test-hash: avoid wholesale duplication
79979         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79980         Instead, use a loop and add a single conditional.
79982         tests: test-hash: allow seed selection via a command line argument
79983         * tests/test-hash.c (get_seed): New function.
79984         (main): Use it.
79986 2009-06-19  Eric Blake  <ebb9@byu.net>
79988         hash: avoid memory leak on allocation failure
79989         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79990         failure.  Factor repeated algorithm...
79991         (transfer_entries): ...into new helper routine.
79992         (hash_delete): React to hash_rehash return value.
79994         hash: reduce memory pressure in hash_rehash no-op case
79995         * lib/hash.c (next_prime): Avoid overflow.
79996         (hash_initialize): Factor bucket size computation...
79997         (compute_bucket_size): ...into new helper function.
79998         (hash_rehash): Use new function and open coding to reduce memory
79999         pressure, and avoid a memory leak in USE_OBSTACK code.
80000         Reported by Jim Meyering.
80002 2009-06-18  Eric Blake  <ebb9@byu.net>
80004         hash: make rotation more obvious
80005         * modules/hash (Depends-on): Add bitrotate and stdint.
80006         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
80007         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
80008         (SIZE_MAX): Rely on headers for definition.
80009         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
80010         (raw_hasher): Use rotr_sz.
80011         Suggested by Jim Meyering.
80013         hash: fix memory leak in last patch
80014         * lib/hash.c (hash_rehash): Avoid memory leak.
80016         hash: avoid no-op rehashing
80017         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
80019         hash: provide default callback functions
80020         * lib/hash.c (raw_hasher, raw_comparator): New functions.
80021         (hash_initialize): Use them as defaults.
80022         * tests/test-hash.c (main): Test this.
80024         hash: minor optimization
80025         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
80026         when possible.
80027         (hash_initialize): Document this promise.
80028         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
80029         * tests/test-hash.c (hash_compare_strings): Test this.
80031 2009-06-18  Bruno Haible  <bruno@clisp.org>
80033         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
80034         going to be replaced anyway.
80036 2009-06-18  Bruno Haible  <bruno@clisp.org>
80038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
80039         in one place.
80040         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
80041         be replaced anyway.
80043 2009-06-18  Eric Blake  <ebb9@byu.net>
80045         hash: check for resize before insertion
80046         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
80047         threshold before insertion, so that a pathological hash_rehash
80048         that fills every bucket can still trigger another rehash.
80050 2009-06-18  Jim Meyering  <meyering@redhat.com>
80052         hash-tests: add a loop around the small tests
80053         * tests/test-hash.c (main): Repeat small tests with selected
80054         small initial table sizes.
80056 2009-06-17  Eric Blake  <ebb9@byu.net>
80058         hash: minor cleanups
80059         * lib/hash.h (hash_entry): Make opaque, by moving...
80060         * lib/hash.c (hash_entry): ...here.
80061         (hash_insert): Clarify restrictions on what can be inserted.
80062         (hash_get_next): Clarify when it is safe to remove an element
80063         during traversal.
80064         (check_tuning): Skip verification when tuning is known safe.
80065         (hash_initialize): Clarify restrictions on tuning.
80067 2009-06-17  Jim Meyering  <jim@meyering.net>
80068         and Eric Blake  <ebb9@byu.net>
80070         hash-tests: new module
80071         * modules/hash-tests: New file.
80072         * tests/test-hash.c: New file.
80074 2009-06-17  Eric Blake  <ebb9@byu.net>
80076         strstr-simple: document new module
80077         * MODULES.html.sh: Document new module.
80079         strstr, strcasestr: replace on platforms with broken memchr
80080         * modules/strstr: Split into...
80081         * modules/strstr-simple: ...new module that does not care about
80082         performance, but does care about glibc bug.
80083         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
80084         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
80085         if platform memchr is broken, per Debian bug 521737.
80086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
80087         memchr.
80088         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
80089         * doc/posix-functions/strstr.texi (strstr): Document the fix.
80090         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
80091         * modules/mountlist (Depends-on): Add strstr-simple.
80092         * modules/gen-uni-tables (Depends-on): Likewise.
80093         * modules/argz (Depends-on): Add strstr.
80095 2009-06-17  Bruno Haible  <bruno@clisp.org>
80097         * modules/posix_spawn-internal (Depends-on): Add errno.
80099 2009-06-17  Bruno Haible  <bruno@clisp.org>
80101         Define missing ESTALE on Interix 3.5.
80102         * lib/errno.in.h (ESTALE): Assign a value if missing.
80103         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
80104         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
80105         missing.
80106         * doc/posix-headers/errno.texi: Mention the Interix bug.
80107         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
80109 2009-06-15  Eric Blake  <ebb9@byu.net>
80111         memchr, memchr2: add valgrind exception
80112         * lib/memchr.valgrind: New file.
80113         * lib/memchr2.valgrind: New file.
80114         * modules/memchr (Files): Distribute valgrind file.
80115         * modules/memchr2 (Files): Likewise.
80117         docs: memchr is no longer obsolete
80118         * MODULES.html.sh: Move memchr from obsolete to string.h section.
80119         * lib/string.in.h (memchr): Simplify logic.
80121 2009-06-14  Jim Meyering  <meyering@redhat.com>
80123         link-follow: fix the "checking..." message to not mention trailing slash
80124         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
80125         never considered trailing slashes.
80127 2009-06-14  Bruno Haible  <bruno@clisp.org>
80129         * m4/memchr.m4: Mention also the bug on IA-64.
80130         * doc/posix-functions/memchr.texi: Likewise.
80132 2009-06-12  Eric Blake  <ebb9@byu.net>
80134         memchr: detect broken x86_64 and alpha implementations
80135         * modules/memchr-tests (Depends-on): Move mmap detection...
80136         * modules/memchr (Depends-on): ...here.
80137         (configure.ac): Set indicator.
80138         * lib/string.in.h (memchr): Declare replacement.
80139         * modules/string (Makefile.am): Trigger replacement.
80140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80141         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
80142         bugs.
80143         * doc/posix-functions/memchr.texi (memchr): Document the bug.
80144         * modules/getpagesize (License): Relax license.
80146 2009-06-11  Bruno Haible  <bruno@clisp.org>
80148         * lib/idpriv.h: Add more references.
80150 2009-06-08  Bruno Haible  <bruno@clisp.org>
80152         Tests for module 'idpriv-droptemp'.
80153         * modules/idpriv-droptemp-tests: New file.
80154         * tests/test-idpriv-droptemp.sh: New file.
80155         * tests/test-idpriv-droptemp.su.sh: New file.
80156         * tests/test-idpriv-droptemp.c: New file.
80158         New module 'idpriv-droptemp'.
80159         * lib/idpriv-droptemp.c: New file.
80160         * modules/idpriv-droptemp: New file.
80162 2009-06-08  Bruno Haible  <bruno@clisp.org>
80164         Tests for module 'idpriv-drop'.
80165         * modules/idpriv-drop-tests: New file.
80166         * tests/test-idpriv-drop.sh: New file.
80167         * tests/test-idpriv-drop.su.sh: New file.
80168         * tests/test-idpriv-drop.c: New file.
80170         New module 'idpriv-drop'.
80171         * lib/idpriv.h: New file.
80172         * lib-idpriv-drop.c: New file.
80173         * m4/idpriv.m4: New file.
80174         * modules/idpriv-drop: New file.
80176 2009-06-08  Bruno Haible  <bruno@clisp.org>
80178         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
80179         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80180         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80181         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80182         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80183         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80184         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80186 2009-06-08  Eric Blake  <ebb9@byu.net>
80188         test-strstr: use memory fence, when possible
80189         * tests/test-strstr.c (main): Use memory fence, in order to be
80190         more likely to trigger Debian bug 521737.
80191         * modules/strstr-tests (Files): Pull in additional files.
80193         memchr: no longer obsolete, for wider field testing
80194         * modules/memchr (Status, Notice): Delete, this module is no
80195         longer obsolete.
80196         * modules/vasnprintf (Depends-on): Add memchr.
80198 2009-06-07  Jim Meyering  <meyering@redhat.com>
80200         hash: declare some functions with the warn_unused_result attribute
80201         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
80203 2009-06-07  Bruno Haible  <bruno@clisp.org>
80205         * tests/test-alignof.c: Don't test int64_t if it does not exist.
80206         Reported by Eric Blake.
80208 2009-06-06  Eric Blake  <ebb9@byu.net>
80210         test-alignof: fix typo with long double
80211         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
80212         compiler error.
80214 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
80216         Escape non-texinfo { and }s.
80217         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
80218         markup error.
80220 2009-06-04  Jim Meyering  <meyering@redhat.com>
80222         gitlog-to-changelog: don't infloop on an empty commit log
80223         * build-aux/gitlog-to-changelog: Warn about an empty log message.
80224         Reported by Boris Petersen <transacid@centerim.org>.
80226 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
80228         version-etc: extend for packagers
80229         Add three new configure options, intended for packagers:
80230           --with-packager="packager name"
80231           --with-packager-version="packager-specific version"
80232           --with-packager-bug-reports="packager bug reporting"
80233         An example with coreutils:
80234           $ ./configure \
80235             --with-packager=Gentoo \
80236             --with-packager-bug-report=http://bugs.gentoo.org/ \
80237             --with-packager-version="patchset 1.6"
80238           $ ./src/ls --version | head -n2
80239           ls (GNU coreutils) 7.1-dirty
80240           Packaged by Gentoo (patchset 1.6)
80241         Note that the bug reporting info via --help doesn't show up because
80242         coreutils uses its own custom emit_bug_reporting_address() implementation
80243         in src/system.h.  If it didn't, it'd look like:
80244           $ ./src/ls --help | tail -n4
80245           Report bugs to <bug-coreutils@gnu.org>.
80246           Report Gentoo bugs to <http://bugs.gentoo.org/>.
80247           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
80248           General help using GNU software: <http://www.gnu.org/gethelp/>.
80249         * lib/version-etc.c: Print new information, if provided.
80250         * m4/version-etc.m4: New file.
80251         * modules/version-etc (Files): Add m4/version-etc.m4.
80252         (configure.ac): Add gl_VERSION_ETC.
80254 2009-05-31  Bruno Haible  <bruno@clisp.org>
80256         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
80257         and 'int64_t'.
80258         * modules/alignof-tests (Dependencies): Add stdint.
80259         Reported by Eric Blake.
80261 2009-05-31  Bruno Haible  <bruno@clisp.org>
80263         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
80264         restriction due to compiler bugs.
80265         Reported by Eric Blake.
80267 2009-05-31  Simon Josefsson  <simon@josefsson.org>
80268             Bruno Haible  <bruno@clisp.org>
80270         Fix test-alignof failure.
80271         * lib/alignof.h (alignof_slot): New macro.
80272         (alignof_type): New macro, with the same semantics as the previous
80273         'alignof'.
80274         (alignof): Alias to alignof_slot.
80275         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
80276         check that the results are usable as constant expressions.
80278 2009-05-31  Bruno Haible  <bruno@clisp.org>
80280         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
80281         * tests/test-memchr.c (main): Check that memchr does not read past the
80282         first occurrence of the byte.
80283         * tests/test-strstr.c (main): Update comment.
80284         Suggested by Eric Blake.
80286 2009-05-30  Bruno Haible  <bruno@clisp.org>
80288         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
80289         detail how to use dumpbin.
80290         Reported by David Byron <dbyron@dbyron.com>.
80292 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80294         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
80296 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80298         * m4/manywarnings.m4: Add GCC 4.4 warnings.
80300 2009-05-28  Bruno Haible  <bruno@clisp.org>
80302         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
80303         build-aux/ files.
80305 2009-05-28  Simon Josefsson  <simon@josefsson.org>
80307         * gnulib-tool (func_import): Transform license on build-aux/ files too.
80309 2009-05-27  Simon Josefsson  <simon@josefsson.org>
80311         * gnulib-tool (sed_transform_main_lib_file)
80312         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
80313         regexps.
80315 2009-05-26  Simon Josefsson  <simon@josefsson.org>
80317         * tests/test-strstr.c: Add another self-test.
80318         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
80319         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
80321 2009-05-23  Bruno Haible  <bruno@clisp.org>
80323         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
80324         change.
80326 2009-05-21  Bruno Haible  <bruno@clisp.org>
80328         Simplify use of mode_t varargs.
80329         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
80330         uses 'mode_t' or 'int'.
80331         * lib/openat.c (openat): Likewise.
80332         * lib/open-safer.c (open_safer): Likewise.
80333         * m4/mode_t.m4: New file.
80334         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
80335         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
80336         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
80337         * modules/open (Files): Add m4/mode_t.m4.
80338         * modules/openat (Files): Likewise.
80339         * modules/fcntl-safer (Files): Likewise.
80340         Suggested by Eric Blake.
80342 2009-05-21  Pádraig Brady  <P@draigbrady.com>
80344         * doc/glibc-functions/fallocate.texi: New file.
80345         * doc/gnulib.texi: Include it.
80347 2009-05-21  Eric Blake  <ebb9@byu.net>
80348             Bruno Haible  <bruno@clisp.org>
80350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
80351         invocations.
80352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80354 2009-05-21  Eric Blake  <ebb9@byu.net>
80355             Bruno Haible  <bruno@clisp.org>
80357         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
80358         include_next. Fix of 2008-11-20 commit.
80359         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
80360         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
80361         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
80362         NEXT_MATH_H.
80363         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
80364         instead of NEXT_MATH_H.
80366 2009-05-21  Bruno Haible  <bruno@clisp.org>
80368         Avoid redefinition warnings for SIZE_MAX.
80369         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
80370         Reported by Simon Josefsson.
80372 2009-05-21  Bruno Haible  <bruno@clisp.org>
80374         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
80375         AC_CACHE_VAL.
80377 2009-05-20  Bruno Haible  <bruno@clisp.org>
80379         Make zeroptr.h work on mingw.
80380         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80381         mprotect.
80382         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80383         * modules/memchr2-tests (configure.ac): Likewise.
80384         * modules/memcmp-tests (configure.ac): Likewise.
80385         * modules/memmem-tests (configure.ac): Likewise.
80386         * modules/memrchr-tests (configure.ac): Likewise.
80387         Reported by Simon Josefsson.
80389 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80391         * tests/test-glob.c: Include string.h for strcmp prototype.
80393 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80395         * modules/getdelim (Depends-on): Add explicit stdint, although it
80396         was implicitly already pulled in via realloc-posix.
80397         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80399 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80401         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80402         G. Christensen" <tgc@jupiterrise.com>.
80403         * m4/sys_socket_h.m4: Check for sa_family_t.
80404         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80405         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80406         * tests/test-sys_socket.c: Check that sa_family_t works.
80408 2009-05-18  Eric Blake  <ebb9@byu.net>
80410         maint.mk: allow gnulib_dir in VPATH build
80411         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80413 2009-05-15  Jim Meyering  <meyering@redhat.com>
80415         maint.mk: Give gnulib_dir a default definition.
80416         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80417         Thus, most packages no longer need to specify this variable in cfg.mk
80419 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80421         rename.m4: fix typos that would make non-mingw cross-configure fail
80422         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80424 2009-05-13  Eric Blake  <ebb9@byu.net>
80426         mmap-anon: avoid out-of-order autoconf expansion
80427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80428         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80429         * modules/memchr-tests (Depends-on): Add extensions.
80430         * modules/memchr2-tests (Depends-on): Add extensions.
80431         * modules/memcmp-tests (Depends-on): Add extensions.
80432         * modules/memmem-tests (Depends-on): Add extensions.
80433         * modules/memrchr-tests (Depends-on): Add extensions.
80435 2009-05-13  Bruno Haible  <bruno@clisp.org>
80437         Make some tests ISO C 99 compliant.
80438         * tests/zerosize-ptr.h: New file.
80439         * tests/test-memchr.c: Include zerosize-ptr.h.
80440         (main): Use a zero-size object pointer instead of NULL.
80441         * tests/test-memchr2.c: Include zerosize-ptr.h.
80442         (main): Use a zero-size object pointer instead of NULL.
80443         * tests/test-memcmp.c: Include zerosize-ptr.h.
80444         (main): Use a zero-size object pointer instead of NULL.
80445         * tests/test-memmem.c: Include zerosize-ptr.h.
80446         (main): Use a zero-size object pointer instead of NULL.
80447         * tests/test-memrchr.c: Include zerosize-ptr.h.
80448         (main): Use a zero-size object pointer instead of NULL.
80449         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80450         m4/mmap-anon.m4.
80451         (Depends-on): Add getpagesize.
80452         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80453         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80454         m4/mmap-anon.m4.
80455         (Depends-on): Add getpagesize.
80456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80457         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80458         m4/mmap-anon.m4.
80459         (Depends-on): Add getpagesize.
80460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80461         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80462         m4/mmap-anon.m4.
80463         (Depends-on): Add getpagesize.
80464         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80465         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80466         m4/mmap-anon.m4.
80467         (Depends-on): Add getpagesize.
80468         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80470 2009-05-12  Bruno Haible  <bruno@clisp.org>
80472         Tests for module 'alignof'.
80473         * modules/alignof-tests: New file.
80474         * tests/test-alignof.c: New file.
80476 2009-05-12  Bruno Haible  <bruno@clisp.org>
80478         Fix alignof macro.
80479         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80480         vendor compilers that are always correct.
80482 2009-05-12  Bruno Haible  <bruno@clisp.org>
80484         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80486         not whether its fully works.
80488 2009-05-12  Bruno Haible  <bruno@clisp.org>
80490         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80492 2009-05-12  Jim Meyering  <meyering@redhat.com>
80494         * top/maint.mk: Adjust backslash alignment.
80496 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80498         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80500 2009-05-11  Eric Blake  <ebb9@byu.net>
80502         argp: avoid undefined behavior
80503         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80504         macros.
80506 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80508         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80509         user.name to prevent git commit from complaining.
80511 2009-05-10  Bruno Haible  <bruno@clisp.org>
80513         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80514         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80515         it rewrites every file name only once.
80516         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80518 2009-05-08  Bruno Haible  <bruno@clisp.org>
80520         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80521         instead of 'max'.
80523 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80525         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80526         sockaddr_storage test.
80528 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80530         * modules/sys_socket (Makefile.am): Substitute
80531         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80532         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80533         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80534         * tests/test-sys_socket.c: Check sockaddr_storage.
80536 2009-05-08  Bruno Haible  <bruno@clisp.org>
80538         New module 'alignof'.
80539         * lib/alignof.h: New file.
80540         * modules/alignof: New file.
80542 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80543             Bruno Haible  <bruno@clisp.org>
80545         Fix test-file-has-acl on FreeBSD.
80546         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80547         mask is implicitly added.
80548         * tests/test-file-has-acl.c: Include <signal.h>.
80549         (main): Terminate the test after 5 seconds.
80550         * modules/acl-tests (configure.ac): Check for alarm function.
80552 2009-05-04  Bruno Haible  <bruno@clisp.org>
80554         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80556         * modules/errno (configure.ac): Drop AC_REQUIRE.
80557         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80558         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80560 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80562         * modules/glob-tests: New module.
80563         * tests/test-glob.c: Add.
80565 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80567         * modules/fnmatch-tests: New module.
80568         * tests/test-fnmatch.c: Add.
80570 2009-05-04  Eric Blake  <ebb9@byu.net>
80572         maint: make the new no-submodule-changes rule VPATH-safe
80573         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80575 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80576             Bruno Haible  <bruno@clisp.org>
80578         acl: Fix infinite loop on FreeBSD.
80579         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80580         of return value from acl_get_entry.
80581         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80582         Likewise.
80584 2009-05-03  Bruno Haible  <bruno@clisp.org>
80586         * lib/acl-internal.h (acl_entries): Clarify return value.
80587         * lib/acl_entries.c (acl_entries): Likewise.
80589 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80591         Bug fix in acl module.
80592         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80594 2009-05-03  Bruno Haible  <bruno@clisp.org>
80596         Create gperf-generated file in the source dir, not in the build dir.
80597         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80598         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80599         * modules/unicase/locale-language (unicase/locale-languages.h):
80600         Likewise.
80601         * modules/unicase/special-casing (unicase/special-casing-table.h):
80602         Likewise.
80603         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80604         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80605         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80606         Reported by Ralf Wildenhues.
80608 2009-05-03  Bruno Haible  <bruno@clisp.org>
80610         * modules/fnmatch (Description, configure.ac): Taken from
80611         fnmatch-posix.
80612         * modules/fnmatch-posix: Turn into a symbolic reference to the
80613         'fnmatch' module, and deprecate.
80614         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80616 2009-05-03  Bruno Haible  <bruno@clisp.org>
80618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80619         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80620         Reported by Ralf Wildenhues.
80622 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80624         * m4/fnmatch.m4: Fix fnmatch re-define.
80626 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80628         priv-set: new module and tests; adapt write-any-file
80629         * lib/priv-set.c: New file.
80630         * lib/priv-set.h: New file.
80631         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80632         * lib/write-any-file.c: Simplify by using priv-set module.
80633         * m4/priv-set.m4: New file.
80634         * modules/priv-set: New file.
80635         * modules/unlinkdir: Add dependency on priv-set module.
80636         * modules/write-any-file: Likewise.
80638         Tests for module 'priv-set'.
80639         * modules/priv-set-tests: New file.
80640         * tests/test-priv-set.c: New file.
80642 2009-05-03  Jim Meyering  <meyering@redhat.com>
80643             Bruno Haible  <bruno@clisp.org>
80645         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80646         use the converted UTF-8 variant of the name instead.
80648 2009-05-03  Jim Meyering  <meyering@redhat.com>
80650         tests: tighten some getdate tests
80651         * tests/test-getdate.c (main): Tighten tests: require equality,
80652         not just greater than.  Set TZ envvar to UTC0.
80654 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80656         getdate: correctly interpret "next monday" when run on a Monday
80657         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80658         that e.g., "next tues" (when run on a tuesday) results in a date
80659         that is one week in the future, and not today's date.
80660         I.e., add a week when the wday is the same as the current one.
80661         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80662         and earlier by Martin Bernreuther and Jan Minář.
80663         * tests/test-getdate.c (main): Check that "next DAY" is always in
80664         the future and that "last DAY" is always in the past.
80666 2009-05-02  Jim Meyering  <meyering@redhat.com>
80668         build: ensure that a release build fails when a submodule is unclean
80669         * top/maint.mk (no-submodule-changes): New rule.
80670         (alpha beta major): Depend on it.
80672 2009-05-02  Bruno Haible  <bruno@clisp.org>
80674         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80675         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80676         shell variable gl_fnmatch_required to detect which variant is
80677         requested.
80678         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80679         gl_FUNC_FNMATCH_POSIX.
80680         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80681         exclude fnmatch-posix.
80683 2009-05-02  Bruno Haible  <bruno@clisp.org>
80685         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80686         * modules/mbsrtowcs (License): Change to LGPLv2+.
80687         * modules/strnlen1 (License): Likewise.
80688         Reported by Simon Josefsson.
80690 2009-05-02  Bruno Haible  <bruno@clisp.org>
80692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80693         "cross".
80694         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80695         gnulib-tool was called with option --source-base=lib.
80697 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80699         Use automake *-local hooks without commands, for extensibility.
80700         * modules/localcharset (Makefile.am): Rename install-exec-local
80701         rule to install-exec-localcharset, and make it a prerequisite of
80702         install-exec-local.  Likewise, rename the uninstall-local rule to
80703         uninstall-localcharset, and make it a prerequisite of the former.
80705 2009-05-01  Bruno Haible  <bruno@clisp.org>
80707         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80708         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80709         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80711         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80712         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80713         m4/locale-zh.m4, m4/codeset.m4.
80715         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80716         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80717         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80718         m4/locale-zh.m4.
80720         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80721         REPLACE_WCRTOMB if mbstate_t must be replaced.
80722         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80723         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80725 2009-05-01  Bruno Haible  <bruno@clisp.org>
80727         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80728         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80729         dngettext, dcngettext, textdomain, bindtextdomain,
80730         bind_textdomain_codeset): Undefine before redefining.
80732 2009-04-30  Bruno Haible  <bruno@clisp.org>
80734         Fix bug introduced on 2009-04-25.
80735         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80736         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80737         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80738         is defined.
80739         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80740         is defined.
80741         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80742         is defined.
80743         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80745 2009-04-28  Bruno Haible  <bruno@clisp.org>
80747         Comment tweaks.
80748         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80749         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80750         * lib/unicase.h (u*_casexfrm): Likewise.
80751         Reported by Paolo Bonzini.
80753 2009-04-28  Bruno Haible  <bruno@clisp.org>
80755         Fix a compilation error.
80756         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80757         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80758         Reported by Jim Meyering.
80760 2009-04-27  Bruno Haible  <bruno@clisp.org>
80762         New module 'libunistring'.
80763         * modules/libunistring: New file.
80764         * m4/libunistring.m4: New file.
80765         * MODULES.html.sh (Unicode string functions): Add it.
80767 2009-04-27  Eric Blake  <ebb9@byu.net>
80769         maint.mk: allow package-specific header to provide <config.h>
80770         * top/maint.mk (sc_require_config_h): New variable.
80771         (sc_require_config_h, sc_require_config_h_first): Use it.
80773 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80775         * top/maint.mk (sc_avoid_if_before_free): Except
80776         useless-if-before-free script.
80778 2009-04-27  Eric Blake  <ebb9@byu.net>
80780         maintainer-makefile: depend on all required helper scripts
80781         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80782         useless-if-before-free.
80783         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80784         version, rather than assuming gnulib checkout is available.
80785         Reported by Simen Josefsson.
80787 2009-04-26  Bruno Haible  <bruno@clisp.org>
80789         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80790         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80791         "../" or "..".
80793 2009-04-26  Bruno Haible  <bruno@clisp.org>
80795         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
80796         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
80797         AC_LIB_HAVE_LINKFLAGS.
80799 2009-04-26  Bruno Haible  <bruno@clisp.org>
80801         Simplify calling convention of u*_conv_from_encoding.
80802         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
80803         u32_conv_from_encoding): Expect a resultbuf argument and return the
80804         result directly as a pointer.
80805         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
80806         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
80807         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
80808         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
80809         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
80810         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80811         Update.
80812         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
80813         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
80814         * lib/vasnprintf.c (VASNPRINTF): Update.
80815         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
80816         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
80817         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80818         * NEWS: Mention the change.
80820 2009-04-26  Bruno Haible  <bruno@clisp.org>
80822         Simplify calling convention of u*_conv_to_encoding.
80823         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80824         u32_conv_to_encoding): Expect a resultbuf argument and return the
80825         result directly as a pointer.
80826         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80827         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80828         freeing scaled_offsets if mem_iconveha failed.
80829         * lib/unicase/u-casexfrm.h (FUNC): Update.
80830         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80831         * lib/vasnprintf.c (VASNPRINTF): Update.
80832         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80833         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80834         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80835         * NEWS: Mention the change.
80837 2009-04-26  Bruno Haible  <bruno@clisp.org>
80839         Avoid test failures on AIX and OSF/1.
80840         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80841         malloc(0).
80842         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80843         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80844         Likewise.
80845         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80846         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80847         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80848         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80849         * doc/posix-functions/malloc.texi: Document the portability problem
80850         related to malloc(0).
80852 2009-04-26  Bruno Haible  <bruno@clisp.org>
80854         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80855         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80856         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80858 2009-04-25  Bruno Haible  <bruno@clisp.org>
80860         Avoid link error when creating a namespace clean library.
80861         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80862         as macro with arguments if already defined as an alias.
80863         * lib/signbitf.c (gl_signbitf): Don't undefine.
80864         * lib/signbitd.c (gl_signbitd): Don't undefine.
80865         * lib/signbitl.c (gl_signbitl): Don't undefine.
80867 2009-04-25  Jim Meyering  <meyering@redhat.com>
80869         vc-list-files: fix another quoting bug
80870         * build-aux/vc-list-files: Avoid sed backslash expansion
80871         of pathological directory names.
80873 2009-04-25  Eric Blake  <ebb9@byu.net>
80875         vc-list-files: fix shell quoting error
80876         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80877         timestamp.
80879 2009-04-25  Jim Meyering  <meyering@redhat.com>
80881         vc-list-files: restore lost functionality with subdir argument
80882         * build-aux/vc-list-files: When given a non-"." sub-directory
80883         argument, substitute the $dir/ prefix back onto each resulting name.
80884         Otherwise, coreutils' root_tests check would fail.
80886 2009-04-24  Eric Blake  <ebb9@byu.net>
80888         vc-list-files: ignore git symlinks
80889         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80890         than ls-files, to ignore git symlinks.
80892         maint.mk: import improvements from m4
80893         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80894         (move_if_change): Delete unused macro.
80895         (news-date-check, vc-diff-check): Support VPATH builds.
80896         (announcement): Likewise.  Split --bootstrap-tools list...
80897         (boostrap-tools): ...into separate list, which can be overridden
80898         in cfg.mk.
80899         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80900         requiring dependency on useless-if-before-free module.
80901         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80902         Support VPATH builds.
80904 2009-04-24  Jim Meyering  <meyering@redhat.com>
80906         maint.mk: remove coreutils-specific rules and variables
80907         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80908         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80909         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80911         maint.mk: remove obsolete rule
80912         * top/maint.mk (rel-check): Remove rule.
80913         (WGET, WGETFLAGS): Remove now-unused variables.
80915 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80917         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80918         consistency.
80920         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80921         '$(PATH_SEPARATOR)' instead of ':'.
80923 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80925         * lib/getopt1.c (main): Use 'const' for static array.
80927 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80929         * top/maint.mk: Sync with coreutils.
80930         * NEWS: Explain incompatibilities.
80932 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80933             Bruno Haible  <bruno@clisp.org>
80935         Fix cross-compilation results.
80936         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80937         statement, as third argument of AC_TRY_RUN.
80938         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80939         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80940         Likewise.
80941         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80942         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80943         Likewise.
80944         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80946         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80948 2009-04-20  Bruno Haible  <bruno@clisp.org>
80950         Avoid test failure on mingw.
80951         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80953 2009-04-20  Bruno Haible  <bruno@clisp.org>
80955         Avoid compilation error on mingw.
80956         * modules/localename-tests (Depends-on): Add locale.
80958 2009-04-19  Bruno Haible  <bruno@clisp.org>
80960         Support for building a shared library on Windows platforms.
80961         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80962         (main): Test the presence of UNINORM_NFC here.
80963         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80964         (main): Test the presence of UNINORM_NFD here.
80965         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80966         (main): Test the presence of UNINORM_NFKC here.
80967         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80968         (main): Test the presence of UNINORM_NFKD here.
80970 2009-04-19  Bruno Haible  <bruno@clisp.org>
80972         Avoid a compiler warning.
80973         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80974         Change type of variable 'sequence'.
80976 2009-04-19  Bruno Haible  <bruno@clisp.org>
80978         * modules/configmake (Makefile.am): When the contents of configmake.h
80979         does not change, arrange to preserve its modification time.
80981 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80983         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80984         gettext domain.
80986 2009-04-16  Jim Meyering  <meyering@redhat.com>
80988         useless-if-before-free: improve conversion code
80989         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80990         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80992 2009-04-14  Bruno Haible  <bruno@clisp.org>
80994         * modules/fcntl (Depends-on): Add extensions.
80995         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80997 2009-04-12  Ben Pfaff  <blp@gnu.org>
80999         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
81000         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
81002 2009-03-20  Ben Pfaff  <blp@gnu.org>
81004         Make rename replace existing destinations on Windows.
81005         * m4/rename.m4: Add test for Mingw.
81006         * lib/rename.c: Add rename replacement that uses MoveFileEx with
81007         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
81008         * doc/posix-functions/rename.texi: Document.
81010 2009-04-10  Bruno Haible  <bruno@clisp.org>
81012         New include file "iconveh.h".
81013         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
81014         * lib/striconveh.h: Include it.
81015         (enum iconv_ilseq_handler): Remove definition.
81016         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
81017         striconveh.h.
81018         * lib/striconveha.c: Include striconveh.h.
81019         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
81020         * modules/striconveh (Files): Add lib/iconveh.h.
81021         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
81022         lib/striconveh.h.
81024 2009-04-10  Bruno Haible  <bruno@clisp.org>
81026         * lib/uniconv.h: Update comment.
81028 2009-04-10  Bruno Haible  <bruno@clisp.org>
81030         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
81031         always.
81032         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81033         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81034         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81035         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
81036         "unistring-notinline.h", so that the function gets defined always.
81037         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81038         * lib/unistr/u8-uctomb.c: Likewise.
81039         * lib/unistr/u16-mbtouc.c: Likewise.
81040         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81041         * lib/unistr/u16-uctomb.c: Likewise.
81042         * lib/unistr/u32-mbtouc.c: Likewise.
81043         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81044         * lib/unistr/u32-uctomb.c: Likewise.
81046 2009-04-10  Bruno Haible  <bruno@clisp.org>
81048         Mark 'utime' obsolete.
81049         * modules/utime (Status, Notice): New sections.
81050         Suggested by Jim Meyering.
81052         Fix cross-compile guess for utime test.
81053         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
81054         autoconf.
81055         * doc/posix-functions/utime.texi: Give more precisions.
81056         Reported by Jan <ipif@ymail.com>.
81058 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
81060         filevercmp: correct today's change
81061         * lib/filevercmp.c: Also handle coreutils' test inputs.
81062         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
81064         Fix regression in 'filevercmp' module. Thanks Sven Joachim
81065         for reporting it.
81066         * lib/filevercmp.c: Special handle for "", "." and "..".
81067         * tests/test-filevercmp.c: Enlarge the set suite.
81069 2009-04-07  Jim Meyering  <meyering@redhat.com>
81071         useless-if-before-free: show how to remove braced useless free, too
81072         * build-aux/useless-if-before-free: still only in a comment, though.
81074 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
81076         maint.mk: import changes to syntax-check macros from coreutils
81077         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
81078         Use them in the relevant macros.
81080 2009-04-06  Bruno Haible  <bruno@clisp.org>
81082         Fix unportable use of bit-fields.
81083         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
81084         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
81085         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
81087 2009-04-06  Bruno Haible  <bruno@clisp.org>
81089         Avoid test failures on AIX and OSF/1.
81090         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
81091         that malloc(0) = NULL.
81092         * tests/unicase/test-u8-tolower.c (check): Likewise.
81093         * tests/unicase/test-u8-totitle.c (check): Likewise.
81094         * tests/unicase/test-u8-toupper.c (check): Likewise.
81095         * tests/unicase/test-u16-casefold.c (check): Likewise.
81096         * tests/unicase/test-u16-tolower.c (check): Likewise.
81097         * tests/unicase/test-u16-totitle.c (check): Likewise.
81098         * tests/unicase/test-u16-toupper.c (check): Likewise.
81099         * tests/unicase/test-u32-casefold.c (check): Likewise.
81100         * tests/unicase/test-u32-tolower.c (check): Likewise.
81101         * tests/unicase/test-u32-totitle.c (check): Likewise.
81102         * tests/unicase/test-u32-toupper.c (check): Likewise.
81103         * tests/uninorm/test-u8-nfc.c (check): Likewise.
81104         * tests/uninorm/test-u8-nfd.c (check): Likewise.
81105         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
81106         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
81107         * tests/uninorm/test-u16-nfc.c (check): Likewise.
81108         * tests/uninorm/test-u16-nfd.c (check): Likewise.
81109         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
81110         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
81111         * tests/uninorm/test-u32-nfc.c (check): Likewise.
81112         * tests/uninorm/test-u32-nfd.c (check): Likewise.
81113         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
81114         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
81116 2009-04-05  Bruno Haible  <bruno@clisp.org>
81118         Work around an autoconf limitation.
81119         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
81120         comment line if it would be longer than 3 KB.
81122 2009-04-05  Bruno Haible  <bruno@clisp.org>
81124         Avoid test failure with libiconv-1.13.
81125         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
81126         of the expected test results.
81128 2009-04-05  Bruno Haible  <bruno@clisp.org>
81130         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
81131         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
81132         that it should be installed.
81134 2009-04-05  Bruno Haible  <bruno@clisp.org>
81136         * gnulib-tool: New option --copy-file.
81137         (func_usage): Document it.
81138         (func_dest_tmpfilename): Moved out of func_import.
81139         (func_add_file, func_update_file): New functions, extracted from
81140         func_import.
81141         (func_import): Update.
81143 2009-04-05  Karl Berry  <karl@gnu.org>
81145         * README: prominently mention gnulib-tool.
81146         Rearrange sections so getting the code is near the top.
81148 2009-04-05  Bruno Haible  <bruno@clisp.org>
81150         * lib/unicase.h: Mention u*_cmp2.
81151         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81152         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
81153         * lib/unicase/ulc-casecmp.c: Likewise.
81154         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
81155         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
81156         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
81157         unistr/u8-cmp.
81158         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
81159         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
81160         unistr/u16-cmp.
81161         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
81162         unistr/u32-cmp.
81164         * lib/uninorm.h: Mention u*_cmp2.
81165         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81166         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
81167         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
81168         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
81169         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
81170         unistr/u8-cmp.
81171         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
81172         unistr/u16-cmp.
81173         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
81174         unistr/u32-cmp.
81176         New module 'unistr/u32-cmp2'.
81177         * lib/unistr/u32-cmp2.c: New file.
81178         * modules/unistr/u32-cmp2: New file.
81180         New module 'unistr/u16-cmp2'.
81181         * lib/unistr/u16-cmp2.c: New file.
81182         * modules/unistr/u16-cmp2: New file.
81184         New module 'unistr/u8-cmp2'.
81185         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
81186         * lib/unistr/u8-cmp2.c: New file.
81187         * lib/unistr/u-cmp2.h: New file.
81188         * modules/unistr/u8-cmp2: New file.
81190 2009-04-05  Bruno Haible  <bruno@clisp.org>
81192         * lib/unictype.h (uc_property_is_valid): New macro.
81193         * tests/unictype/test-pr_byname.c (main): Use it.
81195         * lib/unistr.h: Doc fixes.
81196         * lib/uniconv.h: Doc fixes.
81197         * lib/unictype.h: Doc fixes.
81199 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
81201         Port coreutils 7.2 to Solaris 8.
81203         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
81204         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
81205         for Solaris 8.  This is a bit of a hack, as it means it's the
81206         caller's responsibility to add -lnsl if needed, but most likely it
81207         won't be needed since only getaddrinfo uses this and getaddrinfo
81208         isn't needed on Solaris 8.
81210         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
81211         problem to Solaris 8 encountered with coreutils 7.2, which
81212         resulted in a message "fnmatch.c:292: warning: passing argument 4
81213         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
81214         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
81216 2009-04-03  Simon Josefsson  <simon@josefsson.org>
81218         * m4/ld-version-script.m4: Add FIXME comment.
81220 2009-04-02  Simon Josefsson  <simon@josefsson.org>
81222         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
81223         SOVERSION variable.
81225 2009-04-02  Bruno Haible  <bruno@clisp.org>
81227         * Makefile (info, html, dvi, pdf): Combine the rules.
81228         Suggested by Jim Meyering.
81230 2009-04-01  Bruno Haible  <bruno@clisp.org>
81232         * Makefile (info, html, dvi, pdf): New targets.
81233         Reported by Reuben Thomas <rrt@sc3d.org>.
81235 2009-04-01  Bruno Haible  <bruno@clisp.org>
81237         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
81238         can be put into PATH.
81239         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
81241 2009-04-01  Bruno Haible  <bruno@clisp.org>
81243         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
81245 2009-04-01  Bruno Haible  <bruno@clisp.org>
81247         Rename module 'visibility'.
81248         * modules/lib-symbol-visibility: Renamed from modules/visibility.
81249         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
81250         * doc/gnulib.texi: Update.
81251         * MODULES.html.sh (Misc): Update.
81252         * NEWS: Mention the change.
81254 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81256         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
81257         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
81258         Eric Blake <ebb9@byu.net> for review.
81259         * MODULES.html.sh: Add lib-msvc-compat.
81260         * doc/gnulib.texi: Link to new section.
81261         * m4/ld-output-def.m4: New file.
81262         * doc/ld-output-def.texi: New file.
81264 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81266         Rename ld-version-script to lib-symbol-versions.  Suggested by
81267         Bruno Haible <bruno@clisp.org>.
81268         * modules/ld-version-script: Renamed to lib-symbol-versions.
81269         * doc/ld-version-script.texi: Fix module name.
81270         * MODULES.html.sh: Add lib-symbol-versions.
81272 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81274         * modules/u64-tests: New file.
81275         * tests/test-u64.c: New file.
81277 2009-03-04  Simon Josefsson  <simon@josefsson.org>
81279         * MODULES.html.sh: Mention u64.
81280         * modules/u64: New module.
81281         * modules/crypto/sha512: Depend on u64 module instead of providing
81282         u64.h.
81284 2009-03-27  Eric Blake  <ebb9@byu.net>
81286         test-strerror: make debugging EAI_SYSTEM easier
81287         * modules/getaddrinfo-tests (Depends-on): Add strerror.
81288         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
81289         failure was EAI_SYSTEM.
81291 2009-03-25  Bruno Haible  <bruno@clisp.org>
81293         Fix a problem with --enable-relocatable on Solaris 7.
81294         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
81295         since 2008-02-24.
81297 2009-03-25  Eric Blake  <ebb9@byu.net>
81299         test-sockets: avoid gcc warning
81300         * tests/test-sockets.c (main): Silence compiler warning.
81302 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81304         New modules nproc, pthread, contributed by Glen Lenker.
81306         * MODULES.html.sh: Add pthread, nproc.
81307         * lib/nproc.c: New file.
81308         * lib/nproc.h: New file.
81309         * lib/pthread.in.h: New file.
81310         * m4/pthread.m4: New file.
81311         * modules/nproc: New file.
81312         * modules/pthread: New file.
81314 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81316         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
81317         New variable.
81319 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
81321         filevercmp: handle simple~ and numbered.~3~ backup suffixes
81322         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
81323         * tests/test-filevercmp.c: Add tests for backup suffixes.
81325 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81327         * modules/stdlib (Depends-on): Add stdint, needed when defining
81328         struct random_data on, for example, HP-UX 10.20.  Reported by
81329         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81331 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81333         * lib/readline.c (readline): Call fflush on stdout after printing
81334         prompt.
81336 2009-03-20  Bruno Haible  <bruno@clisp.org>
81338         Remove dependency from 'close' module to -lws2_32 on native Windows.
81339         * lib/close-hook.h: New file.
81340         * lib/close-hook.c: New file.
81341         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
81342         w32sock.h.
81343         (_gl_close_fd_maybe_socket): Remove function.
81344         (rpl_close): Invoke execute_all_close_hooks instead of
81345         _gl_close_fd_maybe_socket.
81346         * lib/sockets.c: Include close-hook.h, w32sock.h.
81347         (close_fd_maybe_socket): New function, essentially from lib/close.c.
81348         (close_sockets_hook): New variable.
81349         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
81350         (gl_sockets_cleanup): Unregister it.
81351         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
81352         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
81353         * modules/close-hook: New file.
81354         * modules/close (Files): Remove lib/w32sock.h.
81355         (Depends-on): Add close-hook.
81356         (Link): Remove section.
81357         * modules/sockets (Files): Add lib/w32sock.h.
81358         (Depends-on): Add close-hook.
81359         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
81360         invocation.
81361         * NEWS: Mention that LIB_CLOSE is gone.
81363 2009-03-23  Eric Blake  <ebb9@byu.net>
81365         signal-tests: test previous patch
81366         * tests/test-signal.c: New file.
81367         * modules/signal-tests: Likewise.
81369         signal.h: always support 'volatile sig_atomic_t'
81370         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
81371         (gl_SIGNAL_H_DEFAULTS): Add a default.
81372         * modules/signal (Makefile.am): Substitute if needed.
81373         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
81374         users can blindly add volatile.
81375         * doc/posix-headers/signal.texi (signal.h): Document it.
81376         Reported by Matthew Woehlke.
81378 2009-03-23  Jim Meyering  <meyering@redhat.com>
81380         pathmax: PATH_MAX: use pathconf only when available
81381         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81382         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81383         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81384         This avoids a link failure in a PSP cross-compilation environment
81385         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81387         * lib/vasnprintf.c (divide): Fix typo in comment.
81389 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81391         * gnulib-tool (func_filter_filelist): Fix comment.
81393 2009-03-20  Bruno Haible  <bruno@clisp.org>
81395         Make sockets.h self-contained.
81396         * lib/sockets.c: Include sockets.h first.
81397         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81399 2009-03-19  Eric Blake  <ebb9@byu.net>
81401         doc: mention more functions added in cygwin 1.7.0
81402         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81403         addition.
81404         * doc/posix-functions/log2f.texi: Likewise.
81406 2009-03-19  Jim Meyering  <meyering@redhat.com>
81408         fsusage: avoid syntax error due to statement-before-declaration
81409         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81410         after all declarations.  Reported by Matthew Woehlke in
81411         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81413 2009-03-18  Eric Blake  <ebb9@byu.net>
81415         build-aux/compile: sync from automake
81416         * build-aux/compile: New file, from automake.
81417         * config/srclist.txt: Mention build-aux/compile.
81419 2009-03-17  Bruno Haible  <bruno@clisp.org>
81421         * lib/git-merge-changelog.c: Fix typo in comment.
81422         Reported by Reuben Thomas <rrt@sc3d.org>.
81424 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81426         * m4/regex.m4: update and improve help for
81427         --without-included-regex.
81429 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81431         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81432         failure on missing include files.
81434 2009-03-17  Eric Blake  <ebb9@byu.net>
81436         doc: mention more functions added in cygwin 1.7.0
81437         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81438         addition.
81439         * doc/posix-functions/fwscanf.texi: Likewise.
81440         * doc/posix-functions/swprintf.texi: Likewise.
81441         * doc/posix-functions/swscanf.texi: Likewise.
81442         * doc/posix-functions/vfwprintf.texi: Likewise.
81443         * doc/posix-functions/vfwscanf.texi: Likewise.
81444         * doc/posix-functions/vswprintf.texi: Likewise.
81445         * doc/posix-functions/vswscanf.texi: Likewise.
81446         * doc/posix-functions/vwprintf.texi: Likewise.
81447         * doc/posix-functions/vwscanf.texi: Likewise.
81448         * doc/posix-functions/wcscasecmp.texi: Likewise.
81449         * doc/posix-functions/wcsdup.texi: Likewise.
81450         * doc/posix-functions/wcsftime.texi: Likewise.
81451         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81452         * doc/posix-functions/wprintf.texi: Likewise.
81453         * doc/posix-functions/wscanf.texi: Likewise.
81454         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81456 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81458         maint.mk: really add $(AM_MAKEFLAGS)
81459         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81460         was inadvertently omitted in the last commit.
81461         Spotted by Bruno Haible.
81463         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81464         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81465         $(AM_MAKEFLAGS)' rather than plain `make'.
81467         gnulib-tool: execute $MAKE not make
81468         * gnulib-tool: Default $MAKE to 'make'.
81469         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81470         than make.  Initialize $MAKE in the do-autobuild script.
81472         gnulib-tool: use $MAKE not make in generated files
81473         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81474         make, in generated files.  Initialize $MAKE in the do-autobuild
81475         script.
81477         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81479         GNUmakefile: disable parallelism only for multiple, recursive targets
81480         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81481         additions in the Makefile.
81482         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81483         by Automake.
81484         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81485         are listed on the command line and at least one of them is
81486         listed in $(ALL_RECURSIVE_TARGETS).
81488 2009-03-14  Bruno Haible  <bruno@clisp.org>
81490         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81491         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81492         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81493         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81494         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81495         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81496         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81497         unistr/u8-uctomb.
81498         * modules/unistr/u8-strchr (Depends-on): Likewise.
81499         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81500         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81501         unistr/u16-uctomb.
81502         * modules/unistr/u16-strchr (Depends-on): Likewise.
81503         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81505 2009-03-12  Bruno Haible  <bruno@clisp.org>
81507         Work around select() bug on Interix 3.5.
81508         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81509         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81510         * m4/select.m4: New file.
81511         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81512         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81513         * modules/select (Files): Add m4/select.m4.
81514         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81515         * modules/nanosleep (Depends-on): Add select.
81516         * modules/poll (Depends-on): Likewise.
81517         * doc/posix-functions/select.texi: Mention the Interix bug.
81518         Reported by Markus Duft <mduft@gentoo.org>.
81520         * lib/select.c: Renamed from lib/winsock-select.c.
81521         * modules/select (Files): Add lib/select.c, remove
81522         lib/winsock-select.c.
81523         (configure.ac): Update.
81525 2009-03-12  Jim Meyering  <meyering@redhat.com>
81527         avoid gcc warnings about unused macro definitions
81528         * lib/readtokens.c (STREQ): Remove unused definition.
81529         * lib/xmalloc.c (SIZE_MAX): Likewise.
81530         * lib/openat-die.c (N_): Likewise.
81531         * lib/mountlist.c (SIZE_MAX): Remove definition.
81532         Instead, include <stdint.h>.
81533         * lib/readutmp.c: Likewise.
81534         * modules/readutmp (Depends-on): Add stdint.
81535         * modules/mountlist (Depends-on): Add stdint.
81536         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81538 2009-03-10  Bruno Haible  <bruno@clisp.org>
81540         Tests for module 'mbmemcasecoll'.
81541         * modules/mbmemcasecoll-tests: New file.
81542         * tests/test-mbmemcasecoll1.sh: New file.
81543         * tests/test-mbmemcasecoll2.sh: New file.
81544         * tests/test-mbmemcasecoll3.sh: New file.
81545         * tests/test-mbmemcasecoll.c: New file.
81547         New module 'mbmemcasecoll'.
81548         * lib/mbmemcasecoll.h: New file.
81549         * lib/mbmemcasecoll.c: New file.
81550         * modules/mbmemcasecoll: New file.
81552         * tests/test-mbmemcasecmp.h: New file, extracted from
81553         tests/test-mbmemcasecmp.c.
81554         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81555         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81556         (main): Update.
81557         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81559 2009-03-09  Bruno Haible  <bruno@clisp.org>
81561         Tests for module 'mbmemcasecmp'.
81562         * modules/mbmemcasecmp-tests: New file.
81563         * tests/test-mbmemcasecmp1.sh: New file.
81564         * tests/test-mbmemcasecmp2.sh: New file.
81565         * tests/test-mbmemcasecmp3.sh: New file.
81566         * tests/test-mbmemcasecmp.c: New file.
81568         New module 'mbmemcasecmp'.
81569         * lib/mbmemcasecmp.h: New file.
81570         * lib/mbmemcasecmp.c: New file.
81571         * modules/mbmemcasecmp: New file.
81573 2009-03-09  Bruno Haible  <bruno@clisp.org>
81575         Tests for module 'unicase/ulc-casecoll'.
81576         * modules/unicase/ulc-casecoll-tests: New file.
81577         * tests/unicase/test-ulc-casecoll1.sh: New file.
81578         * tests/unicase/test-ulc-casecoll2.sh: New file.
81579         * tests/unicase/test-ulc-casecoll.c: New file.
81581         New module 'unicase/ulc-casecoll'.
81582         * lib/unicase.h (ulc_casecoll): New declaration.
81583         * lib/unicase/ulc-casecoll.c: New file.
81584         * modules/unicase/ulc-casecoll: New file.
81586         New module 'unicase/ulc-casexfrm'.
81587         * lib/unicase.h (ulc_casexfrm): New declaration.
81588         * lib/unicase/ulc-casexfrm.c: New file.
81589         * modules/unicase/ulc-casexfrm: New file.
81591 2009-03-09  Bruno Haible  <bruno@clisp.org>
81593         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81594         invocations.
81596         * m4/mbscasecmp.m4: Remove file.
81597         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81598         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81600         * m4/mbscasestr.m4: Remove file.
81601         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81602         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81604         * m4/mbschr.m4: Remove file.
81605         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81606         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81608         * m4/mbscspn.m4: Remove file.
81609         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81610         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81612         * m4/mbslen.m4: Remove file.
81613         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81614         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81616         * m4/mbsncasecmp.m4: Remove file.
81617         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81618         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81620         * m4/mbsnlen.m4: Remove file.
81621         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81622         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81624         * m4/mbspbrk.m4: Remove file.
81625         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81626         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81628         * m4/mbspcasecmp.m4: Remove file.
81629         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81630         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81632         * m4/mbsrchr.m4: Remove file.
81633         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81634         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81636         * m4/mbssep.m4: Remove file.
81637         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81638         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81640         * m4/mbsspn.m4: Remove file.
81641         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81642         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81644         * m4/mbsstr.m4: Remove file.
81645         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81646         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81648         * m4/mbstok_r.m4: Remove file.
81649         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81650         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81652         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81654         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81655         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81657         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81659 2009-03-08  Bruno Haible  <bruno@clisp.org>
81661         Tests for module 'unicase/ulc-casecmp'.
81662         * modules/unicase/ulc-casecmp-tests: New file.
81663         * tests/unicase/test-ulc-casecmp1.sh: New file.
81664         * tests/unicase/test-ulc-casecmp2.sh: New file.
81665         * tests/unicase/test-ulc-casecmp.c: New file.
81667         New module 'unicase/ulc-casecmp'.
81668         * lib/unicase.h (ulc_casecmp): New declaration.
81669         * lib/unicase/ulc-casecmp.c: New file.
81670         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81671         'const SRC_UNIT *'.
81672         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81673         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81674         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81675         * modules/unicase/ulc-casecmp: New file.
81677         Tests for module 'unicase/u32-is-cased'.
81678         * modules/unicase/u32-is-cased-tests: New file.
81679         * tests/unicase/test-u32-is-cased.c: New file.
81681         Tests for module 'unicase/u16-is-cased'.
81682         * modules/unicase/u16-is-cased-tests: New file.
81683         * tests/unicase/test-u16-is-cased.c: New file.
81685         Tests for module 'unicase/u8-is-cased'.
81686         * modules/unicase/u8-is-cased-tests: New file.
81687         * tests/unicase/test-u8-is-cased.c: New file.
81688         * tests/unicase/test-is-cased.h: New file.
81690         New module 'unicase/u32-is-cased'.
81691         * lib/unicase/u32-is-cased.c: New file.
81692         * modules/unicase/u32-is-cased: New file.
81694         New module 'unicase/u16-is-cased'.
81695         * lib/unicase/u16-is-cased.c: New file.
81696         * modules/unicase/u16-is-cased: New file.
81698         New module 'unicase/u8-is-cased'.
81699         * lib/unicase/u8-is-cased.c: New file.
81700         * lib/unicase/u-is-cased.h: New file.
81701         * modules/unicase/u8-is-cased: New file.
81703         Tests for module 'unicase/u32-is-casefolded'.
81704         * modules/unicase/u32-is-casefolded-tests: New file.
81705         * tests/unicase/test-u32-is-casefolded.c: New file.
81707         Tests for module 'unicase/u16-is-casefolded'.
81708         * modules/unicase/u16-is-casefolded-tests: New file.
81709         * tests/unicase/test-u16-is-casefolded.c: New file.
81711         Tests for module 'unicase/u8-is-casefolded'.
81712         * modules/unicase/u8-is-casefolded-tests: New file.
81713         * tests/unicase/test-u8-is-casefolded.c: New file.
81714         * tests/unicase/test-is-casefolded.h: New file.
81716         New module 'unicase/u32-is-casefolded'.
81717         * lib/unicase/u32-is-casefolded.c: New file.
81718         * modules/unicase/u32-is-casefolded: New file.
81720         New module 'unicase/u16-is-casefolded'.
81721         * lib/unicase/u16-is-casefolded.c: New file.
81722         * modules/unicase/u16-is-casefolded: New file.
81724         New module 'unicase/u8-is-casefolded'.
81725         * lib/unicase/u8-is-casefolded.c: New file.
81726         * modules/unicase/u8-is-casefolded: New file.
81728         Tests for module 'unicase/u32-is-titlecase'.
81729         * modules/unicase/u32-is-titlecase-tests: New file.
81730         * tests/unicase/test-u32-is-titlecase.c: New file.
81732         Tests for module 'unicase/u16-is-titlecase'.
81733         * modules/unicase/u16-is-titlecase-tests: New file.
81734         * tests/unicase/test-u16-is-titlecase.c: New file.
81736         Tests for module 'unicase/u8-is-titlecase'.
81737         * modules/unicase/u8-is-titlecase-tests: New file.
81738         * tests/unicase/test-u8-is-titlecase.c: New file.
81739         * tests/unicase/test-is-titlecase.h: New file.
81741         New module 'unicase/u32-is-titlecase'.
81742         * lib/unicase/u32-is-titlecase.c: New file.
81743         * modules/unicase/u32-is-titlecase: New file.
81745         New module 'unicase/u16-is-titlecase'.
81746         * lib/unicase/u16-is-titlecase.c: New file.
81747         * modules/unicase/u16-is-titlecase: New file.
81749         New module 'unicase/u8-is-titlecase'.
81750         * lib/unicase/u8-is-titlecase.c: New file.
81751         * modules/unicase/u8-is-titlecase: New file.
81753         Tests for module 'unicase/u32-is-lowercase'.
81754         * modules/unicase/u32-is-lowercase-tests: New file.
81755         * tests/unicase/test-u32-is-lowercase.c: New file.
81757         Tests for module 'unicase/u16-is-lowercase'.
81758         * modules/unicase/u16-is-lowercase-tests: New file.
81759         * tests/unicase/test-u16-is-lowercase.c: New file.
81761         Tests for module 'unicase/u8-is-lowercase'.
81762         * modules/unicase/u8-is-lowercase-tests: New file.
81763         * tests/unicase/test-u8-is-lowercase.c: New file.
81764         * tests/unicase/test-is-lowercase.h: New file.
81766         New module 'unicase/u32-is-lowercase'.
81767         * lib/unicase/u32-is-lowercase.c: New file.
81768         * modules/unicase/u32-is-lowercase: New file.
81770         New module 'unicase/u16-is-lowercase'.
81771         * lib/unicase/u16-is-lowercase.c: New file.
81772         * modules/unicase/u16-is-lowercase: New file.
81774         New module 'unicase/u8-is-lowercase'.
81775         * lib/unicase/u8-is-lowercase.c: New file.
81776         * modules/unicase/u8-is-lowercase: New file.
81778         Tests for module 'unicase/u32-is-uppercase'.
81779         * modules/unicase/u32-is-uppercase-tests: New file.
81780         * tests/unicase/test-u32-is-uppercase.c: New file.
81782         Tests for module 'unicase/u16-is-uppercase'.
81783         * modules/unicase/u16-is-uppercase-tests: New file.
81784         * tests/unicase/test-u16-is-uppercase.c: New file.
81786         Tests for module 'unicase/u8-is-uppercase'.
81787         * modules/unicase/u8-is-uppercase-tests: New file.
81788         * tests/unicase/test-u8-is-uppercase.c: New file.
81789         * tests/unicase/test-is-uppercase.h: New file.
81791         New module 'unicase/u32-is-uppercase'.
81792         * lib/unicase/u32-is-uppercase.c: New file.
81793         * modules/unicase/u32-is-uppercase: New file.
81795         New module 'unicase/u16-is-uppercase'.
81796         * lib/unicase/u16-is-uppercase.c: New file.
81797         * modules/unicase/u16-is-uppercase: New file.
81799         New module 'unicase/u8-is-uppercase'.
81800         * lib/unicase/u8-is-uppercase.c: New file.
81801         * modules/unicase/u8-is-uppercase: New file.
81803         New module 'unicase/u32-is-invariant'.
81804         * lib/unicase/u32-is-invariant.c: New file.
81805         * modules/unicase/u32-is-invariant: New file.
81807         New module 'unicase/u16-is-invariant'.
81808         * lib/unicase/u16-is-invariant.c: New file.
81809         * modules/unicase/u16-is-invariant: New file.
81811         New module 'unicase/u8-is-invariant'.
81812         * lib/unicase/u8-is-invariant.c: New file.
81813         * lib/unicase/invariant.h: New file.
81814         * lib/unicase/u-is-invariant.h: New file.
81815         * modules/unicase/u8-is-invariant: New file.
81817         Tests for module 'unicase/u32-casecoll'.
81818         * modules/unicase/u32-casecoll-tests: New file.
81819         * tests/unicase/test-u32-casecoll.c: New file.
81821         Tests for module 'unicase/u16-casecoll'.
81822         * modules/unicase/u16-casecoll-tests: New file.
81823         * tests/unicase/test-u16-casecoll.c: New file.
81825         Tests for module 'unicase/u8-casecoll'.
81826         * modules/unicase/u8-casecoll-tests: New file.
81827         * tests/unicase/test-u8-casecoll.c: New file.
81829         New module 'unicase/u32-casecoll'.
81830         * lib/unicase/u32-casecoll.c: New file.
81831         * modules/unicase/u32-casecoll: New file.
81833         New module 'unicase/u16-casecoll'.
81834         * lib/unicase/u16-casecoll.c: New file.
81835         * modules/unicase/u16-casecoll: New file.
81837         New module 'unicase/u8-casecoll'.
81838         * lib/unicase/u8-casecoll.c: New file.
81839         * lib/unicase/u-casecoll.h: New file.
81840         * modules/unicase/u8-casecoll: New file.
81842         New module 'unicase/u32-casexfrm'.
81843         * lib/unicase/u32-casexfrm.c: New file.
81844         * modules/unicase/u32-casexfrm: New file.
81846         New module 'unicase/u16-casexfrm'.
81847         * lib/unicase/u16-casexfrm.c: New file.
81848         * modules/unicase/u16-casexfrm: New file.
81850         New module 'unicase/u8-casexfrm'.
81851         * lib/unicase/u8-casexfrm.c: New file.
81852         * lib/unicase/u-casexfrm.h: New file.
81853         * modules/unicase/u8-casexfrm: New file.
81855         Tests for module 'unicase/u32-casecmp'.
81856         * modules/unicase/u32-casecmp-tests: New file.
81857         * tests/unicase/test-u32-casecmp.c: New file.
81859         Tests for module 'unicase/u16-casecmp'.
81860         * modules/unicase/u16-casecmp-tests: New file.
81861         * tests/unicase/test-u16-casecmp.c: New file.
81863         Tests for module 'unicase/u8-casecmp'.
81864         * modules/unicase/u8-casecmp-tests: New file.
81865         * tests/unicase/test-u8-casecmp.c: New file.
81866         * tests/unicase/test-casecmp.h: New file.
81868         New module 'unicase/u32-casecmp'.
81869         * lib/unicase/u32-casecmp.c: New file.
81870         * modules/unicase/u32-casecmp: New file.
81872         New module 'unicase/u16-casecmp'.
81873         * lib/unicase/u16-casecmp.c: New file.
81874         * modules/unicase/u16-casecmp: New file.
81876         New module 'unicase/u8-casecmp'.
81877         * lib/unicase/u8-casecmp.c: New file.
81878         * lib/unicase/u-casecmp.h: New file.
81879         * modules/unicase/u8-casecmp: New file.
81881         Tests for module 'unicase/u32-casefold'.
81882         * modules/unicase/u32-casefold-tests: New file.
81883         * tests/unicase/test-u32-casefold.c: New file.
81885         Tests for module 'unicase/u16-casefold'.
81886         * modules/unicase/u16-casefold-tests: New file.
81887         * tests/unicase/test-u16-casefold.c: New file.
81889         Tests for module 'unicase/u8-casefold'.
81890         * modules/unicase/u8-casefold-tests: New file.
81891         * tests/unicase/test-u8-casefold.c: New file.
81893         New module 'unicase/u32-casefold'.
81894         * lib/unicase/u32-casefold.c: New file.
81895         * modules/unicase/u32-casefold: New file.
81897         New module 'unicase/u16-casefold'.
81898         * lib/unicase/u16-casefold.c: New file.
81899         * modules/unicase/u16-casefold: New file.
81901         New module 'unicase/u8-casefold'.
81902         * lib/unicase/u8-casefold.c: New file.
81903         * lib/unicase/u-casefold.h: New file.
81904         * modules/unicase/u8-casefold: New file.
81906         New module 'unicase/tocasefold'.
81907         * lib/unicase/casefold.h: New file.
81908         * lib/unicase/tocasefold.c: New file.
81909         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81910         * modules/unicase/tocasefold: New file.
81912         Tests for module 'unicase/u32-totitle'.
81913         * modules/unicase/u32-totitle-tests: New file.
81914         * tests/unicase/test-u32-totitle.c: New file.
81916         Tests for module 'unicase/u16-totitle'.
81917         * modules/unicase/u16-totitle-tests: New file.
81918         * tests/unicase/test-u16-totitle.c: New file.
81920         Tests for module 'unicase/u8-totitle'.
81921         * modules/unicase/u8-totitle-tests: New file.
81922         * tests/unicase/test-u8-totitle.c: New file.
81924         New module 'unicase/u32-totitle'.
81925         * lib/unicase/u32-totitle.c: New file.
81926         * modules/unicase/u32-totitle: New file.
81928         New module 'unicase/u16-totitle'.
81929         * lib/unicase/u16-totitle.c: New file.
81930         * modules/unicase/u16-totitle: New file.
81932         New module 'unicase/u8-totitle'.
81933         * lib/unicase/u8-totitle.c: New file.
81934         * lib/unicase/u-totitle.h: New file.
81935         * modules/unicase/u8-totitle: New file.
81937         Tests for module 'unicase/u32-tolower'.
81938         * modules/unicase/u32-tolower-tests: New file.
81939         * tests/unicase/test-u32-tolower.c: New file.
81941         Tests for module 'unicase/u16-tolower'.
81942         * modules/unicase/u16-tolower-tests: New file.
81943         * tests/unicase/test-u16-tolower.c: New file.
81945         Tests for module 'unicase/u8-tolower'.
81946         * modules/unicase/u8-tolower-tests: New file.
81947         * tests/unicase/test-u8-tolower.c: New file.
81949         New module 'unicase/u32-tolower'.
81950         * lib/unicase/u32-tolower.c: New file.
81951         * modules/unicase/u32-tolower: New file.
81953         New module 'unicase/u16-tolower'.
81954         * lib/unicase/u16-tolower.c: New file.
81955         * modules/unicase/u16-tolower: New file.
81957         New module 'unicase/u8-tolower'.
81958         * lib/unicase/u8-tolower.c: New file.
81959         * modules/unicase/u8-tolower: New file.
81961         Tests for module 'unicase/u32-toupper'.
81962         * modules/unicase/u32-toupper-tests: New file.
81963         * tests/unicase/test-u32-toupper.c: New file.
81965         Tests for module 'unicase/u16-toupper'.
81966         * modules/unicase/u16-toupper-tests: New file.
81967         * tests/unicase/test-u16-toupper.c: New file.
81969         Tests for module 'unicase/u8-toupper'.
81970         * modules/unicase/u8-toupper-tests: New file.
81971         * tests/unicase/test-u8-toupper.c: New file.
81973         New module 'unicase/u32-toupper'.
81974         * lib/unicase/u32-toupper.c: New file.
81975         * modules/unicase/u32-toupper: New file.
81977         New module 'unicase/u16-toupper'.
81978         * lib/unicase/u16-toupper.c: New file.
81979         * modules/unicase/u16-toupper: New file.
81981         New module 'unicase/u8-toupper'.
81982         * lib/unicase/u8-toupper.c: New file.
81983         * modules/unicase/u8-toupper: New file.
81985         New module 'unicase/u32-casemap'.
81986         * lib/unicase/u32-casemap.c: New file.
81987         * modules/unicase/u32-casemap: New file.
81989         New module 'unicase/u16-casemap'.
81990         * lib/unicase/u16-casemap.c: New file.
81991         * modules/unicase/u16-casemap: New file.
81993         New module 'unicase/u8-casemap'.
81994         * lib/unicase/unicasemap.h: New file.
81995         * lib/unicase/u8-casemap.c: New file.
81996         * lib/unicase/u-casemap.h: New file.
81997         * modules/unicase/u8-casemap: New file.
81999         New module 'unicase/special-casing'.
82000         * lib/unicase/special-casing.h: New file.
82001         * lib/unicase/special-casing.c: New file.
82002         * lib/unicase/special-casing-table.gperf: New file, generated by
82003         gen-uni-tables.c.
82004         * modules/unicase/special-casing: New file.
82006         Tests for module 'unicase/locale-language'.
82007         * modules/unicase/locale-language-tests: New file.
82008         * tests/unicase/test-locale-language.sh: New file.
82009         * tests/unicase/test-locale-language.c: New file.
82011         New module 'unicase/locale-language'.
82012         * lib/unicase/locale-language.c: New file.
82013         * lib/unicase/locale-languages.gperf: New file.
82014         * modules/unicase/locale-language: New file.
82016         Generate more tables for case conversion and case folding.
82017         * lib/gen-uni-tables.c (SCC_*): New enum items.
82018         (struct special_casing_rule): New type.
82019         (casing_rules, num_casing_rules, allocated_casing_rules): New
82020         variables.
82021         (add_casing_rule, fill_casing_rules): New functions.
82022         (struct casefold_rule): New type.
82023         (casefolding_rules, num_casefolding_rules,
82024         allocated_casefolding_rules): New variables.
82025         (fill_casefolding_rules): New function.
82026         (unicode_casefold): New variable.
82027         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
82028         sort_casing_rules, output_casing_rules): New functions.
82029         (main): Accept to more arguments: SpecialCasing.txt and
82030         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
82031         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
82032         Output mapping for casefolding.
82034         * lib/unicase.h: Include stdbool.h, uninorm.h.
82035         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
82036         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
82037         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
82038         arguments.
82039         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
82040         resultp arguments.
82041         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
82042         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
82043         resultp arguments.
82044         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
82045         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
82046         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
82047         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
82048         declarations.
82049         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
82051 2009-03-08  Bruno Haible  <bruno@clisp.org>
82053         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82054         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
82055         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
82056         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82058 2009-03-07  Bruno Haible  <bruno@clisp.org>
82060         Adjust u*_normcmp, u*_normcoll API.
82061         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82062         u16_normcoll, u32_normcoll): Change failure conventions.
82063         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
82064         errno and return -1.
82065         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82067 2009-03-07  Bruno Haible  <bruno@clisp.org>
82069         Tests for module 'uninorm/u32-normcoll'.
82070         * modules/uninorm/u32-normcoll-tests: New file.
82071         * tests/uninorm/test-u32-normcoll.c: New file.
82073         Tests for module 'uninorm/u16-normcoll'.
82074         * modules/uninorm/u16-normcoll-tests: New file.
82075         * tests/uninorm/test-u16-normcoll.c: New file.
82077         Tests for module 'uninorm/u8-normcoll'.
82078         * modules/uninorm/u8-normcoll-tests: New file.
82079         * tests/uninorm/test-u8-normcoll.c: New file.
82081 2009-03-07  Bruno Haible  <bruno@clisp.org>
82083         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
82084         tests/uninorm/test-u32-normcmp.c.
82085         * tests/uninorm/test-u32-normcmp.c: Include it.
82086         (test_nonascii): New function, extracted from main. Add some more
82087         tests.
82088         (main): Invoke test_ascii and test_nonascii.
82089         * modules/uninorm/u32-normcmp-tests (Files): Add
82090         tests/uninorm/test-u32-normcmp.h.
82091         (Depends-on): Remove uninorm/u32-normcmp.
82093         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
82094         tests/uninorm/test-u16-normcmp.c.
82095         * tests/uninorm/test-u16-normcmp.c: Include it.
82096         (test_nonascii): New function, extracted from main. Add some more
82097         tests.
82098         (main): Invoke test_ascii and test_nonascii.
82099         * modules/uninorm/u16-normcmp-tests (Files): Add
82100         tests/uninorm/test-u16-normcmp.h.
82101         (Depends-on): Remove uninorm/u16-normcmp.
82103         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
82104         tests/uninorm/test-u8-normcmp.c.
82105         * tests/uninorm/test-u8-normcmp.c: Include it.
82106         (test_nonascii): New function, extracted from main. Add some more
82107         tests.
82108         (main): Invoke test_ascii and test_nonascii.
82109         * modules/uninorm/u8-normcmp-tests (Files): Add
82110         tests/uninorm/test-u8-normcmp.h.
82111         (Depends-on): Remove uninorm/u8-normcmp.
82113 2009-03-07  Bruno Haible  <bruno@clisp.org>
82115         New module 'uninorm/u32-normcoll'.
82116         * lib/uninorm/u32-normcoll.c: New file.
82117         * modules/uninorm/u32-normcoll: New file.
82119         New module 'uninorm/u16-normcoll'.
82120         * lib/uninorm/u16-normcoll.c: New file.
82121         * modules/uninorm/u16-normcoll: New file.
82123         New module 'uninorm/u8-normcoll'.
82124         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
82125         declarations.
82126         * lib/uninorm/u8-normcoll.c: New file.
82127         * lib/uninorm/u-normcoll.h: New file.
82128         * modules/uninorm/u8-normcoll: New file.
82130         New module 'uninorm/u32-normxfrm'.
82131         * lib/uninorm/u32-normxfrm.c: New file.
82132         * modules/uninorm/u32-normxfrm: New file.
82134         New module 'uninorm/u16-normxfrm'.
82135         * lib/uninorm/u16-normxfrm.c: New file.
82136         * modules/uninorm/u16-normxfrm: New file.
82138         New module 'uninorm/u8-normxfrm'.
82139         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
82140         declarations.
82141         * lib/uninorm/u8-normxfrm.c: New file.
82142         * lib/uninorm/u-normxfrm.h: New file.
82143         * modules/uninorm/u8-normxfrm: New file.
82145 2009-03-07  Bruno Haible  <bruno@clisp.org>
82147         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
82148         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
82149         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
82151 2009-03-07  Bruno Haible  <bruno@clisp.org>
82153         New module 'memxfrm'.
82154         * lib/memxfrm.h: New file.
82155         * lib/memxfrm.c: New file.
82156         * modules/memxfrm: New file.
82158 2009-03-07  Bruno Haible  <bruno@clisp.org>
82160         New module 'memcmp2'.
82161         * lib/memcmp2.h: New file.
82162         * lib/memcmp2.c: New file.
82163         * modules/memcmp2: New file.
82165 2009-03-07  Bruno Haible  <bruno@clisp.org>
82167         Tests for module 'uninorm/decomposing-form'.
82168         * modules/uninorm/decomposing-form-tests: New file.
82169         * tests/uninorm/test-decomposing-form.c: New file.
82171         New module 'uninorm/decomposing-form'.
82172         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
82173         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
82174         Add 'decomposing_variant' field.
82175         * lib/uninorm/decomposing-form.c: New file.
82176         * lib/uninorm/nfc.c (uninorm_nfc): Update.
82177         * lib/uninorm/nfd.c (uninorm_nfd): Update.
82178         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
82179         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
82180         * modules/uninorm/decomposing-form: New file.
82181         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
82182         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
82184 2009-03-07  Bruno Haible  <bruno@clisp.org>
82186         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
82187         strings.
82189 2009-03-06  Bruno Haible  <bruno@clisp.org>
82191         Tests for module 'uninorm/u32-normcmp'.
82192         * tests/uninorm/test-u32-normcmp.c: New file.
82193         * modules/uninorm/u32-normcmp-tests: New file.
82195         Tests for module 'uninorm/u16-normcmp'.
82196         * tests/uninorm/test-u16-normcmp.c: New file.
82197         * modules/uninorm/u16-normcmp-tests: New file.
82199         Tests for module 'uninorm/u8-normcmp'.
82200         * tests/uninorm/test-u8-normcmp.c: New file.
82201         * modules/uninorm/u8-normcmp-tests: New file.
82203         New module 'uninorm/u32-normcmp'.
82204         * lib/uninorm/u32-normcmp.c: New file.
82205         * modules/uninorm/u32-normcmp: New file.
82207         New module 'uninorm/u16-normcmp'.
82208         * lib/uninorm/u16-normcmp.c: New file.
82209         * modules/uninorm/u16-normcmp: New file.
82211         New module 'uninorm/u8-normcmp'.
82212         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
82213         declarations.
82214         * lib/uninorm/u8-normcmp.c: New file.
82215         * lib/uninorm/u-normcmp.h: New file.
82216         * modules/uninorm/u8-normcmp: New file.
82218 2009-03-06  Bruno Haible  <bruno@clisp.org>
82220         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
82221         Reported by Eric Blake.
82223 2009-03-06  Eric Blake  <ebb9@byu.net>
82224             Bruno Haible  <bruno@clisp.org>
82226         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
82227         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
82228         condition.
82229         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82230         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
82231         condition.
82232         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82234 2009-03-06  Eric Blake  <ebb9@byu.net>
82236         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
82237         to avoid compiler warnings.
82238         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
82240 2009-03-05  Bruno Haible  <bruno@clisp.org>
82242         * tests/test-ftell.c (main): Disable test beyond end of file on
82243         FreeMiNT.
82244         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82246 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
82248         * lib/filevercmp.c: Move hidden files up in ordering.
82249         * tests/test-filevercmp.c: Add tests for hidden files.
82251 2009-03-04  Bruno Haible  <bruno@clisp.org>
82253         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
82254         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
82255         AM_CFLAGS.
82256         Reported by Simon Josefsson.
82258 2009-03-03  Bruno Haible  <bruno@clisp.org>
82260         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
82261         Reported by Simon Josefsson.
82263         * doc/ld-version-script.texi: Update node reference.
82265 2009-03-03  Bruno Haible  <bruno@clisp.org>
82267         * modules/visibility (License): Change to 'unlimited'.
82268         Suggested by Simon Josefsson.
82270 2009-03-03  Jim Meyering  <meyering@redhat.com>
82272         unlinkdir: cannot_unlink_dir may modify process state
82273         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
82274         it's neither thread-safe nor appropriate for use in a library.
82276 2009-03-03  Eric Blake  <ebb9@byu.net>
82278         test-closein: silence test under Darwin
82279         * tests/test-closein.sh: Ignore stderr from cat, since we don't
82280         care if it dies from EPIPE or EBADF.
82282 2009-03-03  Bruno Haible  <bruno@clisp.org>
82284         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
82285         earlier.
82286         * doc/visibility.texi: Fix @node and @section.
82288 2009-03-03  Simon Josefsson  <simon@josefsson.org>
82290         * doc/gnulib.texi: Link to sections for ld version script and
82291         visibility.
82292         * doc/visibility.texi: Add @node and @section.
82293         * modules/ld-version-script: New module.
82294         * m4/ld-version-script.m4: New file.
82295         * doc/ld-version-script.texi: New file.
82297 2009-03-02  David Lutterkort  <lutter@redhat.com>
82299         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
82300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82302 2009-03-02  Bruno Haible  <bruno@clisp.org>
82304         * doc/visibility.texi: Mention libtool's -export-symbols option.
82306 2009-03-02  Jim Meyering  <meyering@redhat.com>
82308         announce-gen: new option: --no-print-checksums
82309         * build-aux/announce-gen (usage): Describe it.
82310         (print_checksums): Print a newline here, not in the [*] footnote.
82311         (main): Honor it.
82313 2009-03-01  Bruno Haible  <bruno@clisp.org>
82315         Use socklen_t in the native Windows replacements prototypes.
82316         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
82317         instead of 'int'.
82318         * lib/getsockopt.c (rpl_getsockopt): Likewise.
82319         * lib/setsockopt.c (rpl_setsockopt): Likewise.
82320         * modules/getsockopt (Depends-on): Add socklen.
82321         * modules/setsockopt (Depends-on): Add socklen.
82323 2009-03-01  Bruno Haible  <bruno@clisp.org>
82325         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
82326         least 4.2.
82328 2009-03-01  Eric Blake  <ebb9@byu.net>
82329             Bruno Haible  <bruno@clisp.org>
82331         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
82332         error messages.
82333         * lib/wait-process.c (wait_subprocess): Omit error message about
82334         deadly signal sent to the child of termsigp != NULL.
82336 2009-03-01  Eric Blake  <ebb9@byu.net>
82338         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
82340 2009-03-01  Bruno Haible  <bruno@clisp.org>
82342         Avoid a gcc warning.
82343         * tests/test-sched.c (b): Make global.
82344         Reported by Eric Blake.
82346 2009-01-19  Martin Lambers  <marlam@marlam.de>
82348         Provide POSIX semantics for socket timeout options on W32.
82349         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
82350         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
82351         * modules/setsockopt: Depend on sys_time module for struct timeval.
82352         * modules/getsockopt: Depend on sys_time module for struct timeval.
82354 2009-03-01  Simon Josefsson  <simon@josefsson.org>
82356         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
82357         __USE_GNU, for consistency with netdb.in.h.
82358         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82360 2009-03-01  Bruno Haible  <bruno@clisp.org>
82362         More support for FreeMiNT.
82363         * lib/fseeko.c (rpl_fseeko): Complete last commit.
82364         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82366 2009-03-01  Bruno Haible  <bruno@clisp.org>
82368         More support for FreeMiNT.
82369         * lib/fpurge.c (fpurge): Correct last commit.
82370         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82372 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82374         Fix unportable awk script in vc-list-files.
82375         * build-aux/vc-list-files: In the replacement awk script, use
82376         substr with a second argument of 1, not zero.
82377         Report by Simon Josefsson.
82379 2009-02-28  Bruno Haible  <bruno@clisp.org>
82381         More support for FreeMiNT.
82382         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82383         to FreeMiNT today.
82384         * lib/fwriting.c (fwriting): Likewise.
82385         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82387 2009-02-28  Bruno Haible  <bruno@clisp.org>
82389         * tests/test-freadseek.c (main): Disable test beyond end of file on
82390         FreeMiNT.
82391         * tests/test-ftello.c (main): Likewise.
82392         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82394 2009-02-28  Bruno Haible  <bruno@clisp.org>
82396         Add tentative support for FreeMiNT.
82397         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82398         * lib/fpurge.c (fpurge): Likewise.
82399         * lib/freadable.c (freadable): Likewise.
82400         * lib/freading.c (freading): Likewise.
82401         * lib/freadptr.c (freadptr): Likewise.
82402         * lib/freadseek.c (freadptrinc): Likewise.
82403         * lib/fseeko.c (rpl_fseeko): Likewise.
82404         * lib/fseterr.c (fseterr): Likewise.
82405         * lib/fwritable.c (fwritable): Likewise.
82406         * lib/fwriting.c (fwriting): Likewise.
82407         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82408         Hourihane.
82409         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82411 2009-02-28  Bruno Haible  <bruno@clisp.org>
82413         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82414         SIGCHLD.
82415         Reported by Jim Meyering.
82417 2009-02-28  Bruno Haible  <bruno@clisp.org>
82419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82420         Mention the results of these tests on various platforms.
82421         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82422         order.
82423         * doc/posix-functions/printf.texi: Likewise.
82424         * doc/posix-functions/snprintf.texi: Likewise.
82425         * doc/posix-functions/sprintf.texi: Likewise.
82426         * doc/posix-functions/vfprintf.texi: Likewise.
82427         * doc/posix-functions/vprintf.texi: Likewise.
82428         * doc/posix-functions/vsnprintf.texi: Likewise.
82429         * doc/posix-functions/vsprintf.texi: Likewise.
82430         * doc/glibc-functions/obstack_printf.texi: Likewise.
82431         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82433 2009-02-28  Bruno Haible  <bruno@clisp.org>
82435         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82436         Reported by Loïc Minier <lool@dooz.org>.
82438 2009-02-27  Bruno Haible  <bruno@clisp.org>
82440         * gnulib-tool (func_import): Make the sed expression used to create the
82441         sed script for updating the .gitignore file POSIX compliant.
82442         Reported by Eric Blake.
82444 2009-02-27  Bruno Haible  <bruno@clisp.org>
82446         * gnulib-tool (sed): Don't alias as "sed --posix".
82447         Reported by Eric Blake.
82449 2009-02-27  Bruno Haible  <bruno@clisp.org>
82451         Avoid test link errors.
82452         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82453         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82454         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82455         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82458 2009-02-27  Bruno Haible  <bruno@clisp.org>
82460         Avoid spurious "(cached)" in configure output.
82461         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82462         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82463         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82465         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82466         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82467         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82468         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82469         Reported by Eric Blake.
82471 2009-02-27  Eric Blake  <ebb9@byu.net>
82473         printf: fix regression in previous patch
82474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82476 2009-02-27  Bruno Haible  <bruno@clisp.org>
82478         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82479         value.
82480         * lib/stdint.in.h: Likewise.
82481         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82483 2009-02-27  Eric Blake  <ebb9@byu.net>
82485         doc: mention more functions added in cygwin 1.7.0
82486         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82487         addition.
82488         * doc/posix-functions/open_wmemstream.texi: Likewise.
82489         * doc/posix-functions/wcsnlen.texi: Likewise.
82490         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82491         * doc/posix-functions/wcstod.texi: Likewise.
82492         * doc/posix-functions/wcstof.texi: Likewise.
82493         * doc/posix-functions/wcstoimax.texi: Likewise.
82494         * doc/posix-functions/wcstok.texi: Likewise.
82495         * doc/posix-functions/wcstoumax.texi: Likewise.
82497         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82499         * doc/posix-functions/fprintf.texi: Update.
82500         * doc/posix-functions/printf.texi: Update.
82501         * doc/posix-functions/snprintf.texi: Update.
82502         * doc/posix-functions/sprintf.texi: Update.
82503         * doc/posix-functions/vfprintf.texi: Update.
82504         * doc/posix-functions/vprintf.texi: Update.
82505         * doc/posix-functions/vsnprintf.texi: Update.
82506         * doc/posix-functions/vsprintf.texi: Update.
82507         * doc/glibc-functions/obstack_printf.texi: Update.
82508         * doc/glibc-functions/obstack_vprintf.texi: Update.
82510 2009-02-26  Eric Blake  <ebb9@byu.net>
82512         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82513         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82514         compilation bug by using runtime conversion.
82515         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82516         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82517         * modules/ceill-tests (Files): Use nan.h.
82518         * modules/floorl-tests (Files): Likewise.
82519         * modules/frexpl-tests (Files): Likewise.
82520         * modules/isnanl-tests (Files): Likewise.
82521         * modules/ldexpl-tests (Files): Likewise.
82522         * modules/roundl-tests (Files): Likewise.
82523         * modules/truncl-tests (Files): Likewise.
82524         * tests/test-ceill.c (main): Use a working NaN.
82525         * tests/test-floorl.c (main): Likewise.
82526         * tests/test-frexpl.c (main): Likewise.
82527         * tests/test-isnan.c (test_long_double): Likewise.
82528         * tests/test-isnanl.h (main): Likewise.
82529         * tests/test-ldexpl.h (main): Likewise.
82530         * tests/test-roundl.h (main): Likewise.
82531         * tests/test-truncl.h (main): Likewise.
82532         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82534 2009-02-26  Eric Blake  <ebb9@byu.net>
82535             Bruno Haible  <bruno@clisp.org>
82537         Work around a *printf bug with %ls on Solaris.
82538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82539         precision is specified, sprintf stops converting the wide string
82540         argument when the number of bytes that have been produced by this
82541         conversion equals or exceeds the precision.
82542         * doc/posix-functions/fprintf.texi: Update.
82543         * doc/posix-functions/printf.texi: Update.
82544         * doc/posix-functions/snprintf.texi: Update.
82545         * doc/posix-functions/sprintf.texi: Update.
82546         * doc/posix-functions/vfprintf.texi: Update.
82547         * doc/posix-functions/vprintf.texi: Update.
82548         * doc/posix-functions/vsnprintf.texi: Update.
82549         * doc/posix-functions/vsprintf.texi: Update.
82550         * doc/glibc-functions/obstack_printf.texi: Update.
82551         * doc/glibc-functions/obstack_vprintf.texi: Update.
82553 2009-02-26  Eric Blake  <ebb9@byu.net>
82555         stdlib: favor compiler check of random.h
82556         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82557         to avoid an ObjC random.h installed by Swarm.
82559 2009-02-26  Bruno Haible  <bruno@clisp.org>
82561         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82562         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82563         Reported by Gary V. Vaughan <gary@gnu.org>.
82565 2009-02-26  Bruno Haible  <bruno@clisp.org>
82567         Fix *printf behaviour regarding the %ls directive.
82568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82569         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82570         NEED_PRINTF_DIRECTIVE_LS.
82571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82572         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82574         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82575         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82576         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82577         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82582         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82586         * doc/posix-functions/fprintf.texi: Update.
82587         * doc/posix-functions/printf.texi: Update.
82588         * doc/posix-functions/snprintf.texi: Update.
82589         * doc/posix-functions/sprintf.texi: Update.
82590         * doc/posix-functions/vfprintf.texi: Update.
82591         * doc/posix-functions/vprintf.texi: Update.
82592         * doc/posix-functions/vsnprintf.texi: Update.
82593         * doc/posix-functions/vsprintf.texi: Update.
82594         * doc/glibc-functions/obstack_printf.texi: Update.
82595         * doc/glibc-functions/obstack_vprintf.texi: Update.
82596         Reported by Eric Blake.
82598 2009-02-25  Bruno Haible  <bruno@clisp.org>
82600         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82601         with known value.
82602         Reported by Gary V. Vaughan <gary@gnu.org>.
82604 2009-02-25  Bruno Haible  <bruno@clisp.org>
82606         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82607         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82608         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82609         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82610         Reported by Gary V. Vaughan <gary@gnu.org>.
82612 2009-02-25  Bruno Haible  <bruno@clisp.org>
82614         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82615         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82616         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82617         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82618         Reported by Gary V. Vaughan <gary@gnu.org>.
82620 2009-02-25  Eric Blake  <ebb9@byu.net>
82622         tests: skip fseek/ftell tests if ungetc is broken
82623         * m4/ungetc.m4: New file.
82624         * modules/fseek-tests: Split test, so ungetc dependency is
82625         separate from rest of test.
82626         * modules/fseeko-tests: Likewise.
82627         * modules/ftell-tests: Likewise.
82628         * modules/ftello-tests: Likewise.
82629         * tests/test-fseek.c (main): Isolate ungetc dependency.
82630         * tests/test-fseeko.c (main): Likewise.
82631         * tests/test-ftell.c (main): Likewise.
82632         * tests/test-ftello.c (main): Likewise.
82633         * tests/test-fseek2.sh: New file.
82634         * tests/test-fseeko2.sh: Likewise.
82635         * tests/test-ftell2.sh: Likewise.
82636         * tests/test-ftello2.sh: Likewise.
82638 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82640         test-getaddrinfo: fix usage of skip return code 77
82641         * tests/test-gettaddrinfo.c: Return skip code 77 only
82642         for first occurrence of skip (4x77 is not 77)
82644 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82646         strtod: avoid C99 decl-after-statement
82647         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82649 2009-02-24  Eric Blake  <ebb9@byu.net>
82651         strtod: detect HP-UX 11.31 bug
82652         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82653         Reported by Gary V. Vaughan.
82655 2009-02-23  Bruno Haible  <bruno@clisp.org>
82657         Fix invalid read past end of memory block.
82658         * lib/vasnprintf.c (DCHAR_SET): Define.
82659         (local_wcslen): Define only when needed.
82660         (local_strnlen, local_wcsnlen): New functions.
82661         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82662         directives that involve a conversion ourselves.
82663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82664         wcsnlen, mbrtowc, wcrtomb.
82665         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82666         * tests/test-vasprintf-posix.c (test_function): Likewise.
82667         * tests/test-snprintf-posix.h (test_function): Likewise.
82668         * tests/test-sprintf-posix.h (test_function): Likewise.
82669         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82671 2009-02-22  Bruno Haible  <bruno@clisp.org>
82673         Implement new clarified decomposition of Hangul syllables.
82674         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82675         of type LTV, return only a pairwise decomposition.
82676         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82677         Likewise.
82678         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82679         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82680         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82682 2009-02-22  Bruno Haible  <bruno@clisp.org>
82684         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82685         zero-length results and shrink excess allocated memory.
82686         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82687         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82688         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82689         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82690         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82691         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82692         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82693         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82694         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82695         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82696         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82697         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82699 2009-02-21  Bruno Haible  <bruno@clisp.org>
82701         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82702         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82703         spaces after a period. Put a space between a macro name and its
82704         argument list. Trivial rewordings.
82705         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82706         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82707         (main): Return 0 explicitly.
82709 2009-02-21  Bruno Haible  <bruno@clisp.org>
82711         Tests for module 'uninorm/filter'.
82712         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82713         * modules/uninorm/filter-tests: New file.
82715         New module 'uninorm/filter'.
82716         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82717         uninorm_filter_flush, uninorm_filter_free): New declarations.
82718         * lib/uninorm/uninorm-filter.c: New file.
82719         * modules/uninorm/filter: New file.
82721 2009-02-21  Bruno Haible  <bruno@clisp.org>
82723         Tests for module 'uninorm/nfkc'.
82724         * tests/uninorm/test-nfkc.c: New file.
82725         * tests/uninorm/test-u8-nfkc.c: New file.
82726         * tests/uninorm/test-u16-nfkc.c: New file.
82727         * tests/uninorm/test-u32-nfkc.c: New file.
82728         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82729         * tests/uninorm/test-u32-nfkc-big.c: New file.
82730         * modules/uninorm/nfkc-tests: New file.
82732         New module 'uninorm/nfkc'.
82733         * lib/uninorm/nfkc.c: New file.
82734         * modules/uninorm/nfkc: New file.
82736         Tests for module 'uninorm/nfkd'.
82737         * tests/uninorm/test-nfkd.c: New file.
82738         * tests/uninorm/test-u8-nfkd.c: New file.
82739         * tests/uninorm/test-u16-nfkd.c: New file.
82740         * tests/uninorm/test-u32-nfkd.c: New file.
82741         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82742         * tests/uninorm/test-u32-nfkd-big.c: New file.
82743         * modules/uninorm/nfkd-tests: New file.
82745         New module 'uninorm/nfkd'.
82746         * lib/uninorm/nfkd.c: New file.
82747         * modules/uninorm/nfkd: New file.
82749         Tests for module 'uninorm/nfc'.
82750         * tests/uninorm/test-nfc.c: New file.
82751         * tests/uninorm/test-u8-nfc.c: New file.
82752         * tests/uninorm/test-u16-nfc.c: New file.
82753         * tests/uninorm/test-u32-nfc.c: New file.
82754         * tests/uninorm/test-u32-nfc-big.sh: New file.
82755         * tests/uninorm/test-u32-nfc-big.c: New file.
82756         * modules/uninorm/nfc-tests: New file.
82758         New module 'uninorm/nfc'.
82759         * lib/uninorm/nfc.c: New file.
82760         * modules/uninorm/nfc: New file.
82762         Tests for module 'uninorm/nfd'.
82763         * tests/uninorm/test-nfd.c: New file.
82764         * tests/uninorm/test-u8-nfd.c: New file.
82765         * tests/uninorm/test-u16-nfd.c: New file.
82766         * tests/uninorm/test-u32-nfd.c: New file.
82767         * tests/uninorm/test-u32-nfd-big.sh: New file.
82768         * tests/uninorm/test-u32-nfd-big.c: New file.
82769         * tests/uninorm/test-u32-normalize-big.h: New file.
82770         * tests/uninorm/test-u32-normalize-big.c: New file.
82771         * tests/uninorm/NormalizationTest.txt: New file, created from
82772         Unicode 5.1.0 NormalizationTest.txt.
82773         * modules/uninorm/nfd-tests: New file.
82775         New module 'uninorm/nfd'.
82776         * lib/uninorm/nfd.c: New file.
82777         * modules/uninorm/nfd: New file.
82779         New module 'uninorm/u32-normalize'.
82780         * lib/uninorm/u32-normalize.c: New file.
82781         * modules/uninorm/u32-normalize: New file.
82783         New module 'uninorm/u16-normalize'.
82784         * lib/uninorm/u16-normalize.c: New file.
82785         * modules/uninorm/u16-normalize: New file.
82787         New module 'uninorm/u8-normalize'.
82788         * lib/uninorm/u8-normalize.c: New file.
82789         * lib/uninorm/normalize-internal.h: New file.
82790         * lib/uninorm/u-normalize-internal.h: New file.
82791         * modules/uninorm/u8-normalize: New file.
82793         New module 'uninorm/decompose-internal'.
82794         * lib/uninorm/decompose-internal.c: New file.
82795         * modules/uninorm/decompose-internal: New file.
82797         Tests for module 'uninorm/composition'.
82798         * tests/uninorm/test-composition.c: New file.
82799         * modules/uninorm/composition-tests: New file.
82801         New module 'uninorm/composition'.
82802         * lib/uninorm/composition.c: New file.
82803         * lib/uninorm/composition-table.gperf: New file, generated by
82804         gen-uni-tables.
82805         * modules/uninorm/composition: New file.
82807         Tests for module 'uninorm/compat-decomposition'.
82808         * tests/uninorm/test-compat-decomposition.c: New file.
82809         * modules/uninorm/compat-decomposition-tests: New file.
82811         New module 'uninorm/compat-decomposition'.
82812         * lib/uninorm/decompose-internal.h: New file.
82813         * lib/uninorm/compat-decomposition.c: New file.
82814         * modules/uninorm/compat-decomposition: New file.
82816         Tests for module 'uninorm/canonical-decomposition'.
82817         * tests/uninorm/test-canonical-decomposition.c: New file.
82818         * modules/uninorm/canonical-decomposition-tests: New file.
82820         New module 'uninorm/canonical-decomposition'.
82821         * lib/uninorm/canonical-decomposition.c: New file.
82822         * modules/uninorm/canonical-decomposition: New file.
82824         Tests for module 'uninorm/decomposition'.
82825         * tests/uninorm/test-decomposition.c: New file.
82826         * modules/uninorm/decomposition-tests: New file.
82828         New module 'uninorm/decomposition'.
82829         * lib/uninorm/decomposition.c: New file.
82830         * modules/uninorm/decomposition: New file.
82832         New module 'uninorm/decomposition-table'.
82833         * lib/uninorm/decomposition-table.h: New file.
82834         * lib/uninorm/decomposition-table.c: New file.
82835         * lib/uninorm/decomposition-table1.h: New file, generated by
82836         gen-uni-tables.
82837         * lib/uninorm/decomposition-table2.h: New file, generated by
82838         gen-uni-tables.
82839         * modules/uninorm/decomposition-table: New file.
82841         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82842         (UC_DECOMP_*): New enumeration items.
82843         (get_decomposition): New function.
82844         (struct decomp_table): New type.
82845         (output_decomposition, output_decomposition_tables): New functions.
82846         (unicode_composition_exclusions): New variable.
82847         (fill_composition_exclusions, debug_output_composition_tables): New
82848         functions.
82849         (main): Accept one more argument. Invoke fill_composition_exclusions.
82850         Output decomposition and composition tables.
82852         New module 'uninorm/base'.
82853         * lib/uninorm.h: New file.
82854         * lib/unictype.h: Update comment.
82855         * modules/uninorm/base: New file.
82857 2009-02-21  David Lutterkort  <lutter@redhat.com>
82859         Tests for module 'safe-alloc'.
82860         * tests/test-safe-alloc.c: New file.
82861         * modules/safe-alloc-tests: New file.
82863         New module 'safe-alloc'.
82864         * lib/safe-alloc.h: New file.
82865         * lib/safe-alloc.c: New file.
82866         * m4/safe-alloc.m4: New file.
82867         * modules/safe-alloc: New file.
82868         * doc/safe-alloc.texi: New file.
82869         * doc/gnulib.texi: Include it.
82870         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82871         safe-alloc.
82873 2009-02-18  Bruno Haible  <bruno@clisp.org>
82875         Fix link error on non-glibc systems.
82876         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82877         variable.
82878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82880 2009-02-18  Jim Meyering  <meyering@redhat.com>
82882         fts: avoid used-uninitialized error due to recent change
82883         * lib/fts.c (fts_read): Guard uses of the new member,
82884         parent->fts_n_dirs_remaining, since it's not relevant for
82885         the parent of a directory specified on the command-line.
82887 2009-02-17  James Youngman  <jay@gnu.org>
82888             Bruno Haible  <bruno@clisp.org>
82890         * m4/include_next.m4: Reformulate comment.
82892 2009-02-16  Jim Meyering  <meyering@redhat.com>
82894         fts: add #if guards so that the fts_lgpl module still builds
82895         * lib/fts.c: Guard just-added hash-table-using parts with
82896         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82897         Reported by Simon Josefsson.
82899 2009-02-15  Bruno Haible  <bruno@clisp.org>
82901         * modules/array-mergesort-tests: New file.
82902         * tests/test-array-mergesort.c: New file.
82904         New module 'array-mergesort'.
82905         * modules/array-mergesort: New file.
82906         * lib/array-mergesort.h: New file.
82908 2009-02-15  Bruno Haible  <bruno@clisp.org>
82910         Fix 2009-02-07 commit.
82911         * lib/gen-uni-tables.c (output_predicate, output_category,
82912         output_combclass, output_bidi_category, output_decimal_digit,
82913         output_digit, output_numeric, output_mirror, output_scripts,
82914         output_ident_category, output_simple_mapping): Fix format directives.
82915         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82917 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82919         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82920         fixes are available from IBM.
82922 2009-02-13  Jim Meyering  <meyering@redhat.com>
82924         fts: arrange not to stat non-directories in more cases
82925         This makes GNU find (when it doesn't need to stat each file)
82926         *much* more efficient at traversing reiserfs file systems.
82927         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82928         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82929         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82930         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82931         (leaf_optimization_applies): New function.
82932         (LCO_hash, LCO_compare): New helper functions.
82933         (link_count_optimize_ok): New function.
82934         (fts_stat): Initialize new member (if dir).
82935         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82936         we've just stat'ed a directory.  Skip the stat call when possible.
82937         ---
82938         Note this AFS-related exchange:
82939         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82940         and note find's pioctl call in find/fstype.c.
82941         But that is necessary only if you want to enable the
82942         optimization for AFS, and for now, I don't.
82944         fts: move a function definition "up" (no semantic change)
82945         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82946         "up" to precede upcoming use of a related function.
82948 2009-02-11  Jim Meyering  <meyering@redhat.com>
82950         fts: correct internal computation of nlinks (optimization-related)
82951         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82952         whether the current entry is a directory, so don't test it.
82954 2009-02-10  Bruno Haible  <bruno@clisp.org>
82956         Tests for module 'uniwbrk/ulc-wordbreaks'.
82957         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82958         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82959         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82961         Tests for module 'uniwbrk/u32-wordbreaks'.
82962         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82963         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82965         Tests for module 'uniwbrk/u16-wordbreaks'.
82966         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82967         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82969         Tests for module 'uniwbrk/u8-wordbreaks'.
82970         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82971         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82973 2009-02-10  Bruno Haible  <bruno@clisp.org>
82975         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82976         property.
82977         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82978         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82979         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82981 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82983         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82984         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82986 2009-02-10  Bruno Haible  <bruno@clisp.org>
82988         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82989         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82990         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82991         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82992         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82993         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82995 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82997         * lib/sockets.h (gl_fd_to_handle): New function.
82999         * tests/test-sockets.c: Call gl_fd_to_handle.
83001 2009-02-09  Bruno Haible  <bruno@clisp.org>
83003         * doc/havelib.texi: Document the conventions on bi-arch systems.
83005 2009-02-08  Bruno Haible  <bruno@clisp.org>
83007         Document the AC_LIB_LINKFLAGS macro.
83008         * doc/havelib.texi: New file, mostly written on 2005-05-24.
83009         * doc/gnulib.texi: Include it.
83011 2009-02-08  Bruno Haible  <bruno@clisp.org>
83013         Fix wrong order of sections, compared to TOC.
83014         * doc/gnulib.texi: Include relocatable-maint.texi after the
83015         "Regular expressions" node, not before.
83017 2009-02-08  Bruno Haible  <bruno@clisp.org>
83019         Tests for module 'unicase/totitle'.
83020         * modules/unicase/totitle-tests: New file.
83022         Tests for module 'unicase/tolower'.
83023         * modules/unicase/tolower-tests: New file.
83025         Tests for module 'unicase/toupper'.
83026         * modules/unicase/toupper-tests: New file.
83027         * tests/unicase/test-mapping-part1.h: New file.
83028         * tests/unicase/test-mapping-part2.h: New file.
83030         New module 'unicase/totitle'.
83031         * modules/unicase/totitle: New file.
83032         * lib/unicase/totitle.c: New file.
83034         New module 'unicase/tolower'.
83035         * modules/unicase/tolower: New file.
83036         * lib/unicase/tolower.c: New file.
83038         New module 'unicase/toupper'.
83039         * modules/unicase/toupper: New file.
83040         * lib/unicase/toupper.c: New file.
83041         * lib/unicase/simple-mapping.h: New file.
83043         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
83044         (mapping_table): New structure.
83045         (output_simple_mapping): New function.
83046         (main): Invoke output_simple_mapping_test and output_simple_mapping.
83047         * modules/gen-uni-tables (Description): Update.
83048         * lib/unicase/toupper.h: New file, automatically generated by
83049         gen-uni-tables.
83050         * lib/unicase/tolower.h: New file, automatically generated by
83051         gen-uni-tables.
83052         * lib/unicase/totitle.h: New file, automatically generated by
83053         gen-uni-tables.
83054         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
83055         gen-uni-tables.
83056         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
83057         gen-uni-tables.
83058         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
83059         gen-uni-tables.
83061         New module 'unicase/base'.
83062         * modules/unicase/base: New file.
83063         * lib/unicase.h: New file.
83065 2009-02-08  Bruno Haible  <bruno@clisp.org>
83067         New module 'uniwbrk/ulc-wordbreaks'.
83068         * modules/uniwbrk/ulc-wordbreaks: New file.
83069         * lib/uniwbrk/ulc-wordbreaks.c: New file.
83071         New module 'uniwbrk/u32-wordbreaks'.
83072         * modules/uniwbrk/u32-wordbreaks: New file.
83073         * lib/uniwbrk/u32-wordbreaks.c: New file.
83075         New module 'uniwbrk/u16-wordbreaks'.
83076         * modules/uniwbrk/u16-wordbreaks: New file.
83077         * lib/uniwbrk/u16-wordbreaks.c: New file.
83079         New module 'uniwbrk/u8-wordbreaks'.
83080         * modules/uniwbrk/u8-wordbreaks: New file.
83081         * lib/uniwbrk/u8-wordbreaks.c: New file.
83082         * lib/uniwbrk/u-wordbreaks.h: New file.
83084         New module 'uniwbrk/table'.
83085         * modules/uniwbrk/table: New file.
83086         * lib/uniwbrk/wbrktable.h: New file.
83087         * lib/uniwbrk/wbrktable.c: New file.
83089         New module 'uniwbrk/wordbreak-property'.
83090         * modules/uniwbrk/wordbreak-property: New file.
83091         * lib/uniwbrk/wordbreak-property.c: New file.
83093         * lib/gen-uni-tables.c (WBP_*): New enum items.
83094         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
83095         (unicode_org_wbp): New variable.
83096         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
83097         New functions.
83098         (wbp_table): New structure.
83099         (output_wbp, output_wbrk_tables): New functions.
83100         (main): Accept additional argument. Invoke fill_org_wbp,
83101         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
83102         output_wbrk_tables.
83103         * modules/gen-uni-tables (Description): Update.
83104         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
83105         gen-uni-tables.
83107         New module 'uniwbrk/base'.
83108         * modules/uniwbrk/base: New file.
83109         * lib/uniwbrk.h: New file.
83111 2009-02-08  Bruno Haible  <bruno@clisp.org>
83113         Update to Unicode 5.1.0.
83114         * lib/gen-uni-tables.c (is_property_alphabetic): Include
83115         U+2185..U+2188.
83116         (is_property_default_ignorable_code_point): Don't include characters
83117         of category Cc or Cs and not-a-characters.
83118         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
83119         U+0D79, U+109E, U+109F, U+A60C.
83120         * lib/unictype/bidi_of.h: Regenerated.
83121         * lib/unictype/blocks.h: Regenerated.
83122         * lib/unictype/categ_C.h: Regenerated.
83123         * lib/unictype/categ_Cf.h: Regenerated.
83124         * lib/unictype/categ_Cn.h: Regenerated.
83125         * lib/unictype/categ_L.h: Regenerated.
83126         * lib/unictype/categ_Ll.h: Regenerated.
83127         * lib/unictype/categ_Lm.h: Regenerated.
83128         * lib/unictype/categ_Lo.h: Regenerated.
83129         * lib/unictype/categ_Lu.h: Regenerated.
83130         * lib/unictype/categ_M.h: Regenerated.
83131         * lib/unictype/categ_Mc.h: Regenerated.
83132         * lib/unictype/categ_Me.h: Regenerated.
83133         * lib/unictype/categ_Mn.h: Regenerated.
83134         * lib/unictype/categ_N.h: Regenerated.
83135         * lib/unictype/categ_Nd.h: Regenerated.
83136         * lib/unictype/categ_Nl.h: Regenerated.
83137         * lib/unictype/categ_No.h: Regenerated.
83138         * lib/unictype/categ_P.h: Regenerated.
83139         * lib/unictype/categ_Pd.h: Regenerated.
83140         * lib/unictype/categ_Pe.h: Regenerated.
83141         * lib/unictype/categ_Pf.h: Regenerated.
83142         * lib/unictype/categ_Pi.h: Regenerated.
83143         * lib/unictype/categ_Po.h: Regenerated.
83144         * lib/unictype/categ_Ps.h: Regenerated.
83145         * lib/unictype/categ_S.h: Regenerated.
83146         * lib/unictype/categ_Sk.h: Regenerated.
83147         * lib/unictype/categ_Sm.h: Regenerated.
83148         * lib/unictype/categ_So.h: Regenerated.
83149         * lib/unictype/categ_of.h: Regenerated.
83150         * lib/unictype/combining.h: Regenerated.
83151         * lib/unictype/ctype_alnum.h: Regenerated.
83152         * lib/unictype/ctype_alpha.h: Regenerated.
83153         * lib/unictype/ctype_graph.h: Regenerated.
83154         * lib/unictype/ctype_lower.h: Regenerated.
83155         * lib/unictype/ctype_print.h: Regenerated.
83156         * lib/unictype/ctype_punct.h: Regenerated.
83157         * lib/unictype/ctype_upper.h: Regenerated.
83158         * lib/unictype/decdigit.h: Regenerated.
83159         * lib/unictype/digit.h: Regenerated.
83160         * lib/unictype/mirror.h: Regenerated.
83161         * lib/unictype/numeric.h: Regenerated.
83162         * lib/unictype/pr_alphabetic.h: Regenerated.
83163         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
83164         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
83165         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
83166         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
83167         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
83168         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
83169         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
83170         * lib/unictype/pr_combining.h: Regenerated.
83171         * lib/unictype/pr_dash.h: Regenerated.
83172         * lib/unictype/pr_decimal_digit.h: Regenerated.
83173         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
83174         * lib/unictype/pr_deprecated.h: Regenerated.
83175         * lib/unictype/pr_diacritic.h: Regenerated.
83176         * lib/unictype/pr_extender.h: Regenerated.
83177         * lib/unictype/pr_format_control.h: Regenerated.
83178         * lib/unictype/pr_grapheme_base.h: Regenerated.
83179         * lib/unictype/pr_grapheme_extend.h: Regenerated.
83180         * lib/unictype/pr_grapheme_link.h: Regenerated.
83181         * lib/unictype/pr_id_continue.h: Regenerated.
83182         * lib/unictype/pr_id_start.h: Regenerated.
83183         * lib/unictype/pr_ideographic.h: Regenerated.
83184         * lib/unictype/pr_ignorable_control.h: Regenerated.
83185         * lib/unictype/pr_lowercase.h: Regenerated.
83186         * lib/unictype/pr_math.h: Regenerated.
83187         * lib/unictype/pr_numeric.h: Regenerated.
83188         * lib/unictype/pr_other_alphabetic.h: Regenerated.
83189         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
83190         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
83191         * lib/unictype/pr_other_id_continue.h: Regenerated.
83192         * lib/unictype/pr_other_lowercase.h: Regenerated.
83193         * lib/unictype/pr_other_math.h: Regenerated.
83194         * lib/unictype/pr_punctuation.h: Regenerated.
83195         * lib/unictype/pr_sentence_terminal.h: Regenerated.
83196         * lib/unictype/pr_soft_dotted.h: Regenerated.
83197         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
83198         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
83199         * lib/unictype/pr_unified_ideograph.h: Regenerated.
83200         * lib/unictype/pr_uppercase.h: Regenerated.
83201         * lib/unictype/pr_xid_continue.h: Regenerated.
83202         * lib/unictype/pr_xid_start.h: Regenerated.
83203         * lib/unictype/pr_zero_width.h: Regenerated.
83204         * lib/unictype/scripts.h: Regenerated.
83205         * lib/unictype/scripts_byname.gperf: Regenerated.
83206         * lib/unictype/sy_java_ident.h: Regenerated.
83207         * lib/unilbrk/lbrkprop1.h: Regenerated.
83208         * lib/unilbrk/lbrkprop2.h: Regenerated.
83209         * tests/unictype/test-categ_C.c: Regenerated.
83210         * tests/unictype/test-categ_Cf.c: Regenerated.
83211         * tests/unictype/test-categ_Cn.c: Regenerated.
83212         * tests/unictype/test-categ_L.c: Regenerated.
83213         * tests/unictype/test-categ_Ll.c: Regenerated.
83214         * tests/unictype/test-categ_Lm.c: Regenerated.
83215         * tests/unictype/test-categ_Lo.c: Regenerated.
83216         * tests/unictype/test-categ_Lu.c: Regenerated.
83217         * tests/unictype/test-categ_M.c: Regenerated.
83218         * tests/unictype/test-categ_Mc.c: Regenerated.
83219         * tests/unictype/test-categ_Me.c: Regenerated.
83220         * tests/unictype/test-categ_Mn.c: Regenerated.
83221         * tests/unictype/test-categ_N.c: Regenerated.
83222         * tests/unictype/test-categ_Nd.c: Regenerated.
83223         * tests/unictype/test-categ_Nl.c: Regenerated.
83224         * tests/unictype/test-categ_No.c: Regenerated.
83225         * tests/unictype/test-categ_P.c: Regenerated.
83226         * tests/unictype/test-categ_Pd.c: Regenerated.
83227         * tests/unictype/test-categ_Pe.c: Regenerated.
83228         * tests/unictype/test-categ_Pf.c: Regenerated.
83229         * tests/unictype/test-categ_Pi.c: Regenerated.
83230         * tests/unictype/test-categ_Po.c: Regenerated.
83231         * tests/unictype/test-categ_Ps.c: Regenerated.
83232         * tests/unictype/test-categ_S.c: Regenerated.
83233         * tests/unictype/test-categ_Sk.c: Regenerated.
83234         * tests/unictype/test-categ_Sm.c: Regenerated.
83235         * tests/unictype/test-categ_So.c: Regenerated.
83236         * tests/unictype/test-ctype_alnum.c: Regenerated.
83237         * tests/unictype/test-ctype_alpha.c: Regenerated.
83238         * tests/unictype/test-ctype_graph.c: Regenerated.
83239         * tests/unictype/test-ctype_lower.c: Regenerated.
83240         * tests/unictype/test-ctype_print.c: Regenerated.
83241         * tests/unictype/test-ctype_punct.c: Regenerated.
83242         * tests/unictype/test-ctype_upper.c: Regenerated.
83243         * tests/unictype/test-decdigit.h: Regenerated.
83244         * tests/unictype/test-digit.h: Regenerated.
83245         * tests/unictype/test-numeric.h: Regenerated.
83246         * tests/unictype/test-pr_alphabetic.c: Regenerated.
83247         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
83248         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
83249         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
83250         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
83251         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
83252         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
83253         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
83254         * tests/unictype/test-pr_combining.c: Regenerated.
83255         * tests/unictype/test-pr_dash.c: Regenerated.
83256         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
83257         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
83258         * tests/unictype/test-pr_deprecated.c: Regenerated.
83259         * tests/unictype/test-pr_diacritic.c: Regenerated.
83260         * tests/unictype/test-pr_extender.c: Regenerated.
83261         * tests/unictype/test-pr_format_control.c: Regenerated.
83262         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
83263         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
83264         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
83265         * tests/unictype/test-pr_id_continue.c: Regenerated.
83266         * tests/unictype/test-pr_id_start.c: Regenerated.
83267         * tests/unictype/test-pr_ideographic.c: Regenerated.
83268         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
83269         * tests/unictype/test-pr_lowercase.c: Regenerated.
83270         * tests/unictype/test-pr_math.c: Regenerated.
83271         * tests/unictype/test-pr_numeric.c: Regenerated.
83272         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
83273         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
83274         Regenerated.
83275         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
83276         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
83277         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
83278         * tests/unictype/test-pr_other_math.c: Regenerated.
83279         * tests/unictype/test-pr_punctuation.c: Regenerated.
83280         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
83281         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
83282         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
83283         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
83284         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
83285         * tests/unictype/test-pr_uppercase.c: Regenerated.
83286         * tests/unictype/test-pr_xid_continue.c: Regenerated.
83287         * tests/unictype/test-pr_xid_start.c: Regenerated.
83288         * tests/unictype/test-pr_zero_width.c: Regenerated.
83290         Update to Unicode 5.1.0.
83291         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
83292         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
83293         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
83294         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
83295         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
83296         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
83297         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
83298         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
83299         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
83300         (nonspacing_table_ind): Update.
83301         * tests/uniwidth/test-uc_width2.sh: Update expected result.
83303         Update to Unicode 5.1.0.
83304         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
83305         code transform.
83306         * lib/uniname/uniname.c (unicode_character_name,
83307         unicode_name_character): Add the range 0x1Fxxx to the code transform.
83308         * lib/uniname/uninames.h: Regenerated.
83309         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
83311 2009-02-07  Bruno Haible  <bruno@clisp.org>
83313         Merge gen-ctype and gen-lbrk into a single program.
83314         * lib/gen-uni-tables.c: New file, incorporating
83315         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
83316         Add directory prefixes to the names of the generated files.
83317         * lib/unictype/gen-ctype.c: Remove file.
83318         * lib/unilbrk/gen-lbrk.c: Remove file.
83319         * modules/gen-uni-tables: New file.
83320         * modules/unictype/gen-ctype: Remove file.
83321         * modules/unilbrk/gen-lbrk: Remove file.
83323 2009-02-07  Bruno Haible  <bruno@clisp.org>
83325         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
83327         New module 'unistr/u32-strcoll'.
83328         * modules/unistr/u32-strcoll: New file.
83329         * lib/unistr/u32-strcoll.c: New file.
83331         New module 'unistr/u16-strcoll'.
83332         * modules/unistr/u16-strcoll: New file.
83333         * lib/unistr/u16-strcoll.c: New file.
83335         New module 'unistr/u8-strcoll'.
83336         * modules/unistr/u8-strcoll: New file.
83337         * lib/unistr/u8-strcoll.c: New file.
83338         * lib/unistr/u-strcoll.h: New file.
83340 2009-02-07  Bruno Haible  <bruno@clisp.org>
83342         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
83343         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83344         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83345         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
83346         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
83347         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
83349 2009-02-07  Bruno Haible  <bruno@clisp.org>
83351         Make 64-bit clean.
83352         * lib/unictype/gen-ctype.c (output_predicate, output_category,
83353         output_combclass, output_bidi_category, output_decimal_digit,
83354         output_digit, output_numeric, output_mirror, output_scripts,
83355         output_ident_category): Use proper width specifier in format strings.
83357 2009-02-07  Bruno Haible  <bruno@clisp.org>
83359         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
83360         failure behaviour.
83362 2009-02-07  Jim Meyering  <meyering@redhat.com>
83364         regex: avoid compilation failure with upcoming gcc-4.4
83365         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
83366         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
83367         "... error: integer overflow in preprocessor expression".
83369 2009-02-05  Ben Pfaff  <blp@gnu.org>
83371         Fix link errors on Windows when close module is used.
83372         * modules/close: Add $(LIB_CLOSE) to Link section.
83373         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
83374         $(LIB_CLOSE) on Windows.
83376 2009-02-05  Jim Meyering  <meyering@redhat.com>
83378         still avoid unused-parameter warnings, but do it cleanly
83379         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83380         (get_fs_usage): Cast to void instead.
83381         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83382         (dev_from_mount_options, read_file_system_list): Cast to void.
83383         Prompted by Bruno Haible.
83385 2009-02-04  Jim Meyering  <meyering@redhat.com>
83387         fsusage.c: correct copyright year
83388         * lib/fsusage.c: Reflect year in which the change is pushed into
83390         avoid misc. warnings
83391         * lib/fsusage.c (UNUSED_PARAM): Define.
83392         (get_fs_usage): Mark parameter "disk" as unused.
83393         * lib/getugroups.c (getgrent): Use "void" in prototype.
83394         * lib/mountlist.c: Mark unused parameters.
83395         (read_file_system_list): Declare a local with "const".
83396         * lib/nanosleep.c (getnow): Declare static.
83397         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83399         dirfd: set errno upon failure
83400         * lib/dirfd.c: Include <errno.h>.
83401         Set errno to ENOTSUP when returning -1.
83402         * modules/dirfd (Depends-on): Add errno.
83403         Suggested by John Kodis <kodis@comcast.net>.
83405 2009-02-01  Bruno Haible  <bruno@clisp.org>
83407         Don't assume sizeof (long) >= sizeof (void *).
83408         * lib/memcmp.c: Include stdint.h.
83409         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83410         srcp2 to 'const byte *'.
83411         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83412         types to uintptr_t.
83413         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83414         * modules/memcmp (Depends-on): Add stdint.
83415         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83417 2009-01-30  Eric Blake  <ebb9@byu.net>
83419         fix more require-before-expand issues
83420         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83421         expand, AC_PROG_AWK.
83422         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83424 2009-01-28  Eric Blake  <ebb9@byu.net>
83426         version-etc: use consistent URL formatting
83427         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83428         Improve formatting.  Use fputs for string without %.
83430 2009-01-28  Jim Meyering  <meyering@redhat.com>
83432         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83433         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83434         "underquoted definition of NAME" from autoconf-2.59.
83436 2009-01-28  Bruno Haible  <bruno@clisp.org>
83438         * doc/gnulib.texi: Add "Obsolete modules" to index.
83440 2009-01-28  Jim Meyering  <meyering@redhat.com>
83442         useless-if-before-free: recognize more variants
83443         * build-aux/useless-if-before-free: Also recognize e.g.,
83444         if (NULL != p) free (p);
83446 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83448         test-getaddrinfo: skip (don't fail) this test when there's no network
83449         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83450         on the presumption that it means you lack network access.
83452 2009-01-26  Jim Meyering  <meyering@redhat.com>
83454         fflush: avoid warnings on modern systems
83455         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83456         pos and result, into scopes where they're used.
83458 2009-01-26  Eric Blake  <ebb9@byu.net>
83460         Silence warning reintroduced by recent extensions patch.
83461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83462         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83463         autoconf.
83465         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83466         * m4/00gnulib.m4: New file.
83467         * gnulib-tool (func_get_filelist): Always use it.
83468         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83469         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83471 2009-01-25  Bruno Haible  <bruno@clisp.org>
83473         Make test-quotearg work on MacOS X and AIX.
83474         * tests/test-quotearg.sh: New file.
83475         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83476         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83477         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83478         include <libintl.h>.
83479         (fake_locale): Remove variable.
83480         (gettext, dgettext, dcgettext): Remove functions.
83481         (main): Instead of setting a fake locale, set a real locale. Call
83482         textdomain and bindtextdomain.
83483         * modules/quotearg-tests (Files): Add the new files.
83484         (Depends-on): Add gettext, setenv, unsetenv.
83485         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83486         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83487         Augment TESTS_ENVIRONMENT.
83489 2009-01-25  Bruno Haible  <bruno@clisp.org>
83491         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83492         fr_FR.ISO8859-1 locale on MacOS X.
83493         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83494         ja_JP.eucJP locale on MacOS X.
83495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83496         zh_CN.GB18030 locale on MacOS X.
83498 2009-01-25  Bruno Haible  <bruno@clisp.org>
83500         Avoid link errors on MacOS X 10.3.
83501         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83502         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83504 2009-01-25  Bruno Haible  <bruno@clisp.org>
83506         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83507         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83508         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83509         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83510         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83511         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83512         posix_spawnattr_init, posix_spawnattr_setsigmask,
83513         posix_spawnattr_setflags, posix_spawnattr_destroy.
83515         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83516         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83517         * modules/execute (Files): Remove m4/posix_spawn.m4.
83518         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83519         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83520         posix_spawnattr_init, posix_spawnattr_setsigmask,
83521         posix_spawnattr_setflags, posix_spawnattr_destroy.
83523 2009-01-25  Bruno Haible  <bruno@clisp.org>
83525         * lib/glthread/threadlib.c: Include <stdlib.h>.
83527 2009-01-25  Bruno Haible  <bruno@clisp.org>
83529         * lib/glthread/threadlib.c (dummy): New declaration.
83531 2009-01-25  Bruno Haible  <bruno@clisp.org>
83533         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83534         multibyte characters also for the GB18030 encoding. Don't crash when
83535         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83537 2009-01-25  Bruno Haible  <bruno@clisp.org>
83539         Avoid redefining 'struct random_data' on OSF/1 5.1.
83540         * lib/stdlib.in.h: Include <random.h> if it exists.
83541         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83542         HAVE_RANDOM_H. Include <random.h> when testing whether
83543         'struct random_data' exists.
83544         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83546 2009-01-25  Bruno Haible  <bruno@clisp.org>
83548         Don't install charset.alias on MacOS X >= 10.3.
83549         * lib/localcharset.c (DARWIN7): New macro.
83550         (get_charset_aliases): Hardcode the result for Darwin7.
83551         * modules/localcharset (install-exec-local): Don't install
83552         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83554 2009-01-25  Bruno Haible  <bruno@clisp.org>
83556         Don't install charset.alias on mingw and Cygwin.
83557         * modules/localcharset (install-exec-local): Don't install
83558         charset.alias on mingw and Cygwin, if the file does not yet exist.
83559         The result for these platforms is hardcoded in localcharset.c.
83561 2009-01-25  Bruno Haible  <bruno@clisp.org>
83563         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83565         before requiring AC_USE_SYSTEM_EXTENSIONS.
83567 2009-01-25  Jim Meyering  <meyering@redhat.com>
83569         c-strtod: avoid warnings
83570         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83571         "assignment discards qualifiers from pointer target type" warnings.
83573 2009-01-24  Bruno Haible  <bruno@clisp.org>
83575         Add support for non-UTF-8 locales on MacOS X.
83576         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83577         canonical encodings. For Darwin 7 and newer, don't map traditional
83578         encodings to UTF-8.
83579         Reported by Vincent Lefevre <vincent@vinc17.org>
83580         at <http://savannah.gnu.org/bugs/?25235>.
83582 2009-01-24  Bruno Haible  <bruno@clisp.org>
83584         * doc/gnulib.texi (Obsolete modules): New section.
83585         Reported by Mike Frysinger <vapier@gentoo.org>.
83587 2009-01-24  Bruno Haible  <bruno@clisp.org>
83589         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83590         (%.dvi): New rule.
83592 2009-01-24  Bruno Haible  <bruno@clisp.org>
83594         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83595         Reported by Eric Blake.
83597 2009-01-24  Bruno Haible  <bruno@clisp.org>
83599         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83600         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83601         Reported by Gary V. Vaughan <gary@gnu.org>.
83603 2009-01-24  Bruno Haible  <bruno@clisp.org>
83605         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83607 2009-01-23  Bruno Haible  <bruno@clisp.org>
83609         Make c-strtod, c-strtold usable in libraries.
83610         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83611         (C_STRTOD): Call strdup instead of xstrdup.
83612         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83613         * modules/c-strtold (Depends-on): Likewise.
83614         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83615         * NEWS: Mention the change.
83616         Reported by Michael Gold <mgold@ncf.ca>.
83618 2009-01-23  Jim Meyering  <meyering@redhat.com>
83620         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83621         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83622         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83624 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83626         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83627         GNU CoreUtils.
83628         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83629         * modules/version-etc (Description): Update.
83631 2009-01-22  Bruno Haible  <bruno@clisp.org>
83633         Cache the C locale object.
83634         * lib/c-strtod.c (c_locale_cache): New variable.
83635         (c_locale): New function.
83636         (C_STRTOD): Use it, and don't call freelocale.
83637         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83638         Suggested by Paolo Bonzini.
83640 2009-01-21  Bruno Haible  <bruno@clisp.org>
83642         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83643         conditions other than overflow.
83645 2009-01-21  Bruno Haible  <bruno@clisp.org>
83647         * lib/c-strtod.c: Include errno.h.
83648         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83649         value from STRTOD_L and STRTOD.
83651 2009-01-21  Bruno Haible  <bruno@clisp.org>
83652         and Jim Meyering  <meyering@redhat.com>
83654         nanosleep: skip configure test (fail it) for apple universal builds
83655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83656         universal builds, assume that nanosleep does not work.
83657         * modules/nanosleep (Depends-on): Add multiarch.
83659         mktime: skip configure test (fail it) for apple universal builds
83660         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83661         universal builds, assume that mktime does not work.
83662         * modules/mktime (Depends-on): Add multiarch.
83664 2009-01-21  Eric Blake  <ebb9@byu.net>
83666         multiarch: avoid expand-before-require warning
83667         * modules/multiarch (configure.ac): Require, rather than expand,
83668         gl_MULTIARCH.
83669         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83670         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83671         enforce that all clients require it.  Partial reversion of
83672         2008-12-29 patch.
83674         error: avoid expand-before-require warning
83675         * modules/errno (configure.ac): Require, rather than expand,
83676         gl_HEADER_ERRNO_H.
83677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83678         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83679         enforce that all clients require it.
83681         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83682         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83683         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83684         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83686 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83688         Revert:
83689         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83691         regex: do not depend on obsolete modules.
83692         * modules/regex: Remove memcmp and memmove.
83694 2009-01-20  Bruno Haible  <bruno@clisp.org>
83696         Make the 'link' module link on Windows NT 4.
83697         * lib/link.c (_WIN32_WINNT): Don't define.
83698         (CreateHardLinkFuncType): New type.
83699         (CreateHardLinkFunc, initialized): New variables.
83700         (initialize): New function.
83701         (link): Invoke CreateHardLink indirectly through the function pointer.
83703 2009-01-20  Bruno Haible  <bruno@clisp.org>
83705         Fix compilation failure on mingw.
83706         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83708 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83710         * doc/c-strtod.texi: Mention a couple of restrictions.
83712 2009-01-20  Jim Meyering  <meyering@redhat.com>
83714         gettimeofday: move more declarations out of functions
83715         * lib/gettimeofday.c: Move extern declarations of tzset and
83716         gmtime out of containing functions.  Prompted by Bruno Haible.
83718 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83720         regex: do not depend on obsolete modules.
83721         * modules/regex: Remove memcmp and memmove.
83723 2009-01-19  Bruno Haible  <bruno@clisp.org>
83725         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83726         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83727         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83728         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83729         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83731 2009-01-19  Bruno Haible  <bruno@clisp.org>
83733         * tests/test-link.c: Include <errno.h>.
83734         (main): Exit with code 77 when a hard link cannot be created due to
83735         the file system.
83736         * tests/test-link.sh: Skip test when a hard link cannot be created due
83737         to the file system.
83738         Suggested by Eric Blake.
83740 2009-01-19  Martin Lambers  <marlam@marlam.de>
83742         * modules/link-tests: New file.
83743         * tests/test-link.sh: New file.
83744         * tests/test-link.c: New file.
83746 2009-01-19  Eric Blake  <ebb9@byu.net>
83748         doc: mention another function added in cygwin 1.7.0
83749         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83750         Another new function in cygwin 1.7.
83752 2009-01-19  Bruno Haible  <bruno@clisp.org>
83754         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83755         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83756         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83757         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83758         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83759         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83761         * m4/md4.m4 (gl_MD4): Likewise.
83762         * m4/md5.m4 (gl_MD5): Likewise.
83763         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83764         * m4/sha1.m4 (gl_SHA1): Likewise.
83765         * m4/sha256.m4 (gl_SHA256): Likewise.
83766         * m4/sha512.m4 (gl_SHA512): Likewise.
83768 2009-01-19  Bruno Haible  <bruno@clisp.org>
83770         * modules/uniname/uniname-tests (Depends-on): Add progname.
83771         * tests/uniname/test-uninames.c: Include progname.h.
83772         (main): Call set_program_name.
83774         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83775         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83776         (main): Call set_program_name.
83778         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83779         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83780         (main): Call set_program_name.
83782         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83783         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83784         (main): Call set_program_name.
83786         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83787         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83788         (main): Call set_program_name.
83790         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83791         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83792         (main): Call set_program_name.
83794         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
83795         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
83796         (main): Call set_program_name.
83798         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
83799         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
83800         (main): Call set_program_name.
83802         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
83803         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
83804         (main): Call set_program_name.
83806 2009-01-19  Eric Blake  <ebb9@byu.net>
83808         test-unistd: test previous patch
83809         * tests/test-unistd.c: Test *_FILENO macros.
83811         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
83812         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83813         Guarantee a definition.
83814         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
83815         * modules/unistd-safer (Depends-on): Add dependency on unistd.
83816         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
83817         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83818         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83819         Likewise.
83820         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83821         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83822         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83823         Likewise.
83824         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83825         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83826         (STDERR_FILENO): Likewise.
83827         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83828         (STDERR_FILENO): Likewise.
83829         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83830         (STDERR_FILENO): Likewise.
83831         Reported by Elbert Pol.
83833 2009-01-19  Eric Blake  <ebb9@byu.net>
83835         doc: mention more functions added in cygwin 1.7.0
83836         * doc/posix-functions/abort.texi (abort): Update wording related
83837         to cygwin.
83838         * doc/posix-functions/daylight.texi (daylight): Likewise.
83839         * doc/posix-functions/optarg.texi (optarg): Likewise.
83840         * doc/posix-functions/optarg.texi (opterr): Likewise.
83841         * doc/posix-functions/optarg.texi (optind): Likewise.
83842         * doc/posix-functions/optarg.texi (optopt): Likewise.
83843         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83844         worked in 1.5.x, and was withdrawn in 1.7.
83845         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83846         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83847         cygwin versions.
83848         * doc/posix-functions/perror.texi (perror): Likewise.
83849         * doc/posix-functions/printf.texi (printf): Likewise.
83850         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83851         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83852         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83853         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83854         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83855         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83856         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83857         Likewise.
83858         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83859         Likewise.
83860         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83861         this function.
83862         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83863         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83864         Likewise.
83865         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83866         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83867         * doc/posix-functions/confstr.texi (confstr): Likewise.
83868         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83869         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83870         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83871         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83872         * doc/posix-functions/fputws.texi (fputws): Likewise.
83873         * doc/posix-functions/fwide.texi (fwide): Likewise.
83874         * doc/posix-functions/getwc.texi (getwc): Likewise.
83875         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83876         * doc/posix-functions/putwc.texi (putwc): Likewise.
83877         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83878         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83879         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83880         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83881         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83882         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83883         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83884         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83885         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83886         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83887         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83889 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83891         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83892         * lib/ioctl.c: Include <sys/ioctl.h>.
83894 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83896         * modules/getdate-tests (Depends-on): Add progname.
83897         * tests/test-getdate.c: Use progname module, to avoid link errors
83898         on non-glibc systems.
83900 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83902         * modules/filenamecat-tests (Depends-on): Add progname.
83903         * modules/fstrcmp-tests (Depends-on): Likewise.
83905         * tests/test-filenamecat.c: Use progname module, to avoid link
83906         errors on non-glibc systems.
83907         * tests/test-fstrcmp.c: Likewise.
83909 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83911         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83912         * lib/gettimeofday.c: Move extern declaration out of function.
83914 2009-01-18  Bruno Haible  <bruno@clisp.org>
83916         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83917         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83918         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83920 2009-01-18  Bruno Haible  <bruno@clisp.org>
83922         * lib/strftime.c (MEMPCPY): Remove unused macro.
83923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83925 2009-01-18  Martin Lambers  <marlam@marlam.de>
83927         New module 'link'.
83928         * lib/unistd.in.h (link): New declaration.
83929         * lib/link.c: New file.
83930         * m4/link.m4: New file.
83931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83932         HAVE_LINK.
83933         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83934         * modules/link: New file.
83935         * doc/posix-functions/link.texi: Mention the new module.
83937 2009-01-18  Bruno Haible  <bruno@clisp.org>
83939         * tests/test-avltree_list.c (main): Call set_program_name.
83940         * tests/test-avltree_oset.c (main): Likewise.
83941         * tests/test-obstack-printf.c: Include progname.h.
83942         (main): Call set_program_name.
83943         * tests/test-quotearg.c: Include progname.h.
83944         (main): Call set_program_name.
83945         * tests/test-xmemdup0.c: Include progname.h.
83946         (main): Call set_program_name.
83948 2009-01-18  Bruno Haible  <bruno@clisp.org>
83950         New module 'alphasort'.
83951         * lib/dirent.in.h (alphasort): New declaration.
83952         * lib/alphasort.c: New file, from glibc with modifications.
83953         * m4/alphasort.m4: New file.
83954         * modules/alphasort: New file.
83955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83956         HAVE_ALPHASORT.
83957         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83958         HAVE_ALPHASORT.
83959         * doc/posix-functions/alphasort.texi: Mention the new module and the
83960         portability problems.
83962 2009-01-18  Bruno Haible  <bruno@clisp.org>
83964         New module 'scandir'.
83965         * lib/dirent.in.h (scandir): New declaration.
83966         * lib/scandir.c: New file, from glibc with modifications.
83967         * m4/scandir.m4: New file.
83968         * modules/scandir: New file.
83969         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83970         HAVE_SCANDIR.
83971         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83972         HAVE_SCANDIR.
83973         * doc/posix-functions/scandir.texi: Mention the new module and the
83974         portability problems.
83976 2009-01-17  Bruno Haible  <bruno@clisp.org>
83978         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83979         Update documentation.
83980         (func_remove_suffix): Escape all dots in the suffix. Update
83981         documentation.
83982         (func_filter_filelist): Update documentation.
83983         Reported by Ralf Wildenhues.
83985 2009-01-17  Bruno Haible  <bruno@clisp.org>
83987         * modules/dprintf-posix-tests: New file.
83988         * tests/test-dprintf-posix.sh: New file.
83989         * tests/test-dprintf-posix.c: New file.
83991         New modules 'dprintf', 'dprintf-posix'.
83992         * lib/stdio.in.h (dprintf): New declaration.
83993         * lib/dprintf.c: New file.
83994         * m4/dprintf.m4: New file.
83995         * m4/dprintf-posix.m4: New file.
83996         * modules/dprintf: New file.
83997         * modules/dprintf-posix: New file.
83998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83999         HAVE_DPRINTF, REPLACE_DPRINTF.
84000         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
84001         HAVE_DPRINTF, REPLACE_DPRINTF.
84002         * doc/posix-functions/dprintf.texi: Mention the new modules.
84004 2009-01-17  Bruno Haible  <bruno@clisp.org>
84006         * modules/vdprintf-posix-tests: New file.
84007         * tests/test-vdprintf-posix.sh: New file.
84008         * tests/test-vdprintf-posix.c: New file.
84010         New modules 'vdprintf', 'vdprintf-posix'.
84011         * lib/stdio.in.h (vdprintf): New declaration.
84012         * lib/vdprintf.c: New file.
84013         * m4/vdprintf.m4: New file.
84014         * m4/vdprintf-posix.m4: New file.
84015         * modules/vdprintf: New file.
84016         * modules/vdprintf-posix: New file.
84017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
84018         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84019         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
84020         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84021         * doc/posix-functions/vdprintf.texi: Mention the new modules.
84023 2009-01-17  Bruno Haible  <bruno@clisp.org>
84025         Fix replacement of fopen on mingw.
84026         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
84027         mingw.
84029 2009-01-17  Bruno Haible  <bruno@clisp.org>
84031         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
84032         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
84034 2009-01-17  Bruno Haible  <bruno@clisp.org>
84036         Avoid test-fflush2.sh failure on mingw.
84037         * tests/test-fflush2.c: Include binary-io.h.
84038         (main): Put standard input into binary mode.
84039         * modules/fflush-tests (Depends-on): Add binary-io.
84041 2009-01-17  Bruno Haible  <bruno@clisp.org>
84043         * lib/wchar.in.h: In another particular situation, include only the
84044         system's <wchar.h> file.
84045         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
84046         Reported by Albert Chin-A-Young <china@thewrittenword.com>
84047         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
84049 2009-01-17  Bruno Haible  <bruno@clisp.org>
84051         Support for stripping executables in --enable-relocatable.
84052         * build-aux/install-reloc: Expect one more argument, or an environment
84053         variable RELOC_STRIP_PROG. If set, strip the destination program and
84054         its wrapper.
84055         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
84056         RELOC_STRIP_PROG.
84057         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
84058         to set RELOCATABLE_STRIP.
84059         * NEWS: Mention the new Makefile requirement.
84061 2009-01-17  Bruno Haible  <bruno@clisp.org>
84063         * build-aux/install-reloc: Remove debugging information left over by
84064         C compiler on MacOS X.
84066 2009-01-17  Bruno Haible  <bruno@clisp.org>
84068         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
84069         * lib/progreloc.c (find_executable): Fix type of pointer passed to
84070         _NSGetExecutablePath.
84072 2009-01-16  Jim Meyering  <meyering@redhat.com>
84074         strerror: avoid warnings about discarding "const"
84075         * lib/strerror.c (rpl_strerror): Instead of returning a const
84076         string from each and every "case", use a variable, and add a single
84077         cast after the switch.
84079 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
84081         * lib/arpa_inet.in.h: Add extern "C" block for C++.
84083 2009-01-16  Bruno Haible  <bruno@clisp.org>
84085         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
84086         array initializer syntax that also works in C++ mode.
84087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84089 2009-01-16  Jim Meyering  <meyering@redhat.com>
84091         poll: suppress a warning
84092         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
84093         to ignore "...unsigned expression < 0 is always false" warnings.
84095 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
84097         poll: remove declarations of unused variables
84098         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
84099         sockbuf and optlen.
84101 2009-01-15  Bruno Haible  <bruno@clisp.org>
84103         Make fflush-after-ungetc POSIX compliant on BSD systems.
84104         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
84105         (clear_ungetc_buffer): Implement also for other systems.
84106         (rpl_fflush): On glibc systems, invoke
84107         clear_ungetc_buffer_preserving_position. Otherwise, invoke
84108         clear_ungetc_buffer after fetching the stream's position, not before.
84110 2009-01-15  Bruno Haible  <bruno@clisp.org>
84112         Make fflush-after-ungetc POSIX compliant on glibc systems.
84113         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
84114         after ungetc.
84115         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
84116         (rpl_fflush): On glibc systems, simply call the system's fflush
84117         function after clearing the ungetc buffer.
84118         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
84119         Instead, lseek only to the end of file, then use the system's fseeko
84120         for the rest. On glibc systems, reset the EOF indicator bit.
84122 2009-01-15  Jim Meyering  <meyering@redhat.com>
84124         openmp.m4: revert quote-adding change, for portability to older autoconf
84125         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
84126         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
84127         Simon Josefsson noticed the problem when using autoconf-2.61.
84129 2009-01-15  Bruno Haible  <bruno@clisp.org>
84131         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
84132         * tests/test-fflush2.c (ASSERT): Always fail.
84133         (main): Add two tests for fflush() after ungetc(), taking into account
84134         the Austin Group's clarification.
84135         Suggested by Eric Blake.
84137 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
84139         mktime.m4: remove K&R-style function prototypes
84140         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
84141         for the Sun C++ compiler.
84143 2009-01-14  Bruno Haible  <bruno@clisp.org>
84145         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
84146         while including <wchar.h>.
84147         * lib/wchar.in.h: In two particular situations on HP-UX, include only
84148         the system's <wchar.h> file.
84149         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84151 2009-01-14  Bruno Haible  <bruno@clisp.org>
84153         * m4/csharp.m4: Don't mention gettext on the serial number line.
84154         * m4/csharpexec.m4: Likewise.
84155         * m4/eaccess.m4: Likewise.
84156         * m4/javaexec.m4: Likewise.
84157         * m4/sig_atomic_t.m4: Likewise.
84158         * m4/tmpdir.m4: Likewise.
84159         * m4/intldir.m4: Bump gettext version.
84160         * m4/lib-ld.m4: Likewise.
84162 2009-01-14  Bruno Haible  <bruno@clisp.org>
84164         * lib/progname.c (set_program_name): Add more comments.
84165         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
84167 2009-01-14  Simon Josefsson  <simon@josefsson.org>
84169         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
84170         were sys/stat.h does not define it.
84172 2009-01-14  Jim Meyering  <meyering@redhat.com>
84174         many *.m4 files: improve m4 quoting
84175         99% of this change was performed by running the following commands:
84176         git ls-files | grep '\.m4$' | xargs perl -pi \
84177           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
84178           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84179           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84180           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
84181         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
84182         The remainder were to add Copyright dates, increment serial numbers,
84183         undo some changes in comments, exclude m4/intl.m4, and add quotes
84184         around the "1" in ",1" where the unusual spacing prohibited the
84185         above regexps from doing the job.  For more details, see
84186         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
84187         * m4/acl.m4: Modified.
84188         * m4/afs.m4: Likewise.
84189         * m4/alloca.m4: Likewise.
84190         * m4/argp.m4: Likewise.
84191         * m4/argz.m4: Likewise.
84192         * m4/atexit.m4: Likewise.
84193         * m4/bison-i18n.m4: Likewise.
84194         * m4/bison.m4: Likewise.
84195         * m4/byteswap.m4: Likewise.
84196         * m4/c-stack.m4: Likewise.
84197         * m4/c-strtod.m4: Likewise.
84198         * m4/calloc.m4: Likewise.
84199         * m4/canonicalize-lgpl.m4: Likewise.
84200         * m4/chown.m4: Likewise.
84201         * m4/clock_time.m4: Likewise.
84202         * m4/codeset.m4: Likewise.
84203         * m4/copy-file.m4: Likewise.
84204         * m4/csharp.m4: Likewise.
84205         * m4/csharpcomp.m4: Likewise.
84206         * m4/csharpexec.m4: Likewise.
84207         * m4/d-ino.m4: Likewise.
84208         * m4/d-type.m4: Likewise.
84209         * m4/dirfd.m4: Likewise.
84210         * m4/double-slash-root.m4: Likewise.
84211         * m4/eaccess.m4: Likewise.
84212         * m4/eealloc.m4: Likewise.
84213         * m4/environ.m4: Likewise.
84214         * m4/errno_h.m4: Likewise.
84215         * m4/euidaccess.m4: Likewise.
84216         * m4/execute.m4: Likewise.
84217         * m4/fatal-signal.m4: Likewise.
84218         * m4/fchdir.m4: Likewise.
84219         * m4/fcntl_h.m4: Likewise.
84220         * m4/fileblocks.m4: Likewise.
84221         * m4/filenamecat.m4: Likewise.
84222         * m4/findprog.m4: Likewise.
84223         * m4/flexmember.m4: Likewise.
84224         * m4/fnmatch.m4: Likewise.
84225         * m4/fopen.m4: Likewise.
84226         * m4/fpending.m4: Likewise.
84227         * m4/fprintf-posix.m4: Likewise.
84228         * m4/free.m4: Likewise.
84229         * m4/frexp.m4: Likewise.
84230         * m4/frexpl.m4: Likewise.
84231         * m4/fsusage.m4: Likewise.
84232         * m4/ftruncate.m4: Likewise.
84233         * m4/gc-camellia.m4: Likewise.
84234         * m4/gc-random.m4: Likewise.
84235         * m4/gc.m4: Likewise.
84236         * m4/getaddrinfo.m4: Likewise.
84237         * m4/getcwd-abort-bug.m4: Likewise.
84238         * m4/getcwd-path-max.m4: Likewise.
84239         * m4/getdate.m4: Likewise.
84240         * m4/getdomainname.m4: Likewise.
84241         * m4/getgroups.m4: Likewise.
84242         * m4/gethostname.m4: Likewise.
84243         * m4/gethrxtime.m4: Likewise.
84244         * m4/getline.m4: Likewise.
84245         * m4/getloadavg.m4: Likewise.
84246         * m4/getndelim2.m4: Likewise.
84247         * m4/getpass.m4: Likewise.
84248         * m4/gettext.m4: Likewise.
84249         * m4/gettime.m4: Likewise.
84250         * m4/gettimeofday.m4: Likewise.
84251         * m4/gnulib-common.m4: Likewise.
84252         * m4/group-member.m4: Likewise.
84253         * m4/host-os.m4: Likewise.
84254         * m4/iconv.m4: Likewise.
84255         * m4/iconv_open.m4: Likewise.
84256         * m4/inet_ntop.m4: Likewise.
84257         * m4/inet_pton.m4: Likewise.
84258         * m4/inline.m4: Likewise.
84259         * m4/intldir.m4: Likewise.
84260         * m4/intlmacosx.m4: Likewise.
84261         * m4/intmax.m4: Likewise.
84262         * m4/intmax_t.m4: Likewise.
84263         * m4/inttypes.m4: Likewise.
84264         * m4/inttypes_h.m4: Likewise.
84265         * m4/inttypes-pri.m4: Likewise.
84266         * m4/isapipe.m4: Likewise.
84267         * m4/isnand.m4: Likewise.
84268         * m4/isnanf.m4: Likewise.
84269         * m4/isnanl.m4: Likewise.
84270         * m4/javacomp.m4: Likewise.
84271         * m4/javaexec.m4: Likewise.
84272         * m4/jm-winsz1.m4: Likewise.
84273         * m4/jm-winsz2.m4: Likewise.
84274         * m4/lchown.m4: Likewise.
84275         * m4/lcmessage.m4: Likewise.
84276         * m4/ldexpl.m4: Likewise.
84277         * m4/lib-ld.m4: Likewise.
84278         * m4/lib-link.m4: Likewise.
84279         * m4/libsigsegv.m4: Likewise.
84280         * m4/link-follow.m4: Likewise.
84281         * m4/localcharset.m4: Likewise.
84282         * m4/locale-fr.m4: Likewise.
84283         * m4/locale-ja.m4: Likewise.
84284         * m4/locale-tr.m4: Likewise.
84285         * m4/locale-zh.m4: Likewise.
84286         * m4/lock.m4: Likewise.
84287         * m4/longlong.m4: Likewise.
84288         * m4/ls-mntd-fs.m4: Likewise.
84289         * m4/lstat.m4: Likewise.
84290         * m4/malloc.m4: Likewise.
84291         * m4/mathl.m4: Likewise.
84292         * m4/mbrtowc.m4: Likewise.
84293         * m4/mbstate_t.m4: Likewise.
84294         * m4/mbswidth.m4: Likewise.
84295         * m4/memchr.m4: Likewise.
84296         * m4/memcmp.m4: Likewise.
84297         * m4/memcpy.m4: Likewise.
84298         * m4/memmem.m4: Likewise.
84299         * m4/memmove.m4: Likewise.
84300         * m4/mempcpy.m4: Likewise.
84301         * m4/memrchr.m4: Likewise.
84302         * m4/memset.m4: Likewise.
84303         * m4/minmax.m4: Likewise.
84304         * m4/mkdir-slash.m4: Likewise.
84305         * m4/mkdtemp.m4: Likewise.
84306         * m4/mktime.m4: Likewise.
84307         * m4/mmap-anon.m4: Likewise.
84308         * m4/mountlist.m4: Likewise.
84309         * m4/nanosleep.m4: Likewise.
84310         * m4/nls.m4: Likewise.
84311         * m4/nocrash.m4: Likewise.
84312         * m4/open.m4: Likewise.
84313         * m4/openat.m4: Likewise.
84314         * m4/openmp.m4: Likewise.
84315         * m4/pathmax.m4: Likewise.
84316         * m4/perl.m4: Likewise.
84317         * m4/physmem.m4: Likewise.
84318         * m4/pipe.m4: Likewise.
84319         * m4/po.m4: Likewise.
84320         * m4/poll.m4: Likewise.
84321         * m4/posixtm.m4: Likewise.
84322         * m4/posixver.m4: Likewise.
84323         * m4/printf-frexp.m4: Likewise.
84324         * m4/printf-frexpl.m4: Likewise.
84325         * m4/printf-posix.m4: Likewise.
84326         * m4/printf-posix-rpl.m4: Likewise.
84327         * m4/printf.m4: Likewise.
84328         * m4/progtest.m4: Likewise.
84329         * m4/putenv.m4: Likewise.
84330         * m4/readline.m4: Likewise.
84331         * m4/readlink.m4: Likewise.
84332         * m4/readutmp.m4: Likewise.
84333         * m4/realloc.m4: Likewise.
84334         * m4/regex.m4: Likewise.
84335         * m4/relocatable.m4: Likewise.
84336         * m4/relocatable-lib.m4: Likewise.
84337         * m4/rename-dest-slash.m4: Likewise.
84338         * m4/rename.m4: Likewise.
84339         * m4/rmdir-errno.m4: Likewise.
84340         * m4/rmdir.m4: Likewise.
84341         * m4/roundf.m4: Likewise.
84342         * m4/roundl.m4: Likewise.
84343         * m4/rpmatch.m4: Likewise.
84344         * m4/save-cwd.m4: Likewise.
84345         * m4/selinux-selinux-h.m4: Likewise.
84346         * m4/setenv.m4: Likewise.
84347         * m4/settime.m4: Likewise.
84348         * m4/sig2str.m4: Likewise.
84349         * m4/sig_atomic_t.m4: Likewise.
84350         * m4/signalblocking.m4: Likewise.
84351         * m4/signbit.m4: Likewise.
84352         * m4/sigpipe.m4: Likewise.
84353         * m4/sockets.m4: Likewise.
84354         * m4/sockpfaf.m4: Likewise.
84355         * m4/st_dm_mode.m4: Likewise.
84356         * m4/stat-time.m4: Likewise.
84357         * m4/stdbool.m4: Likewise.
84358         * m4/stdint.m4: Likewise.
84359         * m4/stdint_h.m4: Likewise.
84360         * m4/stpcpy.m4: Likewise.
84361         * m4/stpncpy.m4: Likewise.
84362         * m4/strcase.m4: Likewise.
84363         * m4/strchrnul.m4: Likewise.
84364         * m4/strcspn.m4: Likewise.
84365         * m4/strdup.m4: Likewise.
84366         * m4/strftime.m4: Likewise.
84367         * m4/strndup.m4: Likewise.
84368         * m4/strnlen.m4: Likewise.
84369         * m4/strpbrk.m4: Likewise.
84370         * m4/strptime.m4: Likewise.
84371         * m4/strsep.m4: Likewise.
84372         * m4/strtod.m4: Likewise.
84373         * m4/strtoimax.m4: Likewise.
84374         * m4/strtok_r.m4: Likewise.
84375         * m4/strtol.m4: Likewise.
84376         * m4/strtoll.m4: Likewise.
84377         * m4/strtoul.m4: Likewise.
84378         * m4/strtoull.m4: Likewise.
84379         * m4/strtoumax.m4: Likewise.
84380         * m4/strverscmp.m4: Likewise.
84381         * m4/threadlib.m4: Likewise.
84382         * m4/timegm.m4: Likewise.
84383         * m4/tm_gmtoff.m4: Likewise.
84384         * m4/tmpdir.m4: Likewise.
84385         * m4/tmpfile.m4: Likewise.
84386         * m4/tzset.m4: Likewise.
84387         * m4/uintmax_t.m4: Likewise.
84388         * m4/unlinkdir.m4: Likewise.
84389         * m4/unlocked-io.m4: Likewise.
84390         * m4/uptime.m4: Likewise.
84391         * m4/userspec.m4: Likewise.
84392         * m4/utimbuf.m4: Likewise.
84393         * m4/utime.m4: Likewise.
84394         * m4/utimes-null.m4: Likewise.
84395         * m4/utimes.m4: Likewise.
84396         * m4/vararrays.m4: Likewise.
84397         * m4/vasnprintf.m4: Likewise.
84398         * m4/vfprintf-posix.m4: Likewise.
84399         * m4/vprintf-posix.m4: Likewise.
84400         * m4/wait-process.m4: Likewise.
84401         * m4/wchar_t.m4: Likewise.
84402         * m4/wint_t.m4: Likewise.
84403         * m4/write-any-file.m4: Likewise.
84404         * m4/yield.m4: Likewise.
84406 2009-01-13  Bruno Haible  <bruno@clisp.org>
84408         Avoid test-copy-file.sh failures when ACL support insufficient.
84409         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84410         TESTS_ENVIRONMENT.
84411         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84412         Reported by Jim Meyering.
84414 2009-01-13  Bruno Haible  <bruno@clisp.org>
84416         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84417         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84418         * modules/unistdio/u8-printf-parse (Files): Likewise.
84419         * modules/unistdio/u32-printf-parse (Files): Likewise.
84420         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84422 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84424         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84425         and m4/inttypes_h.m4 too.
84427 2009-01-12  Eric Blake  <ebb9@byu.net>
84429         tests: IRIX 6.2 cc can't compile -0.0 into .data
84430         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84431         rather than at compile-time.
84432         * tests/test-floorl.c (minus_zero): Likewise.
84433         * tests/test-frexpl.c (minus_zero): Likewise.
84434         * tests/test-isnan.c (minus_zerol): Likewise.
84435         * tests/test-isnanl.h (minus_zero): Likewise.
84436         * tests/test-ldexpl.c (minus_zero): Likewise.
84437         * tests/test-roundl.c (minus_zero): Likewise.
84438         * tests/test-signbit.c (minus_zerol): Likewise.
84439         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84440         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84441         * tests/test-truncl.c (minus_zero): Likewise.
84442         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84443         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84444         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84446 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84448         regex: fix glibc bug 9697
84449         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84450         handling.
84452 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84454         regex: fix glibc bug 697
84455         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84456         being NULL also if there are no backreferences.
84458 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84460         regex: merge glibc changes
84461         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84462         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84463         re_string_skip_chars, re_string_reconstruct): Likewise.
84464         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84466 2009-01-07  Jim Meyering  <meyering@redhat.com>
84468         poll: filter through cppi
84469         * lib/poll.c: Indent cpp directives to reflect nesting.
84471 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84473         poll: don't return uninitialized
84474         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84476 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84478         avoid compile failure on AIX 6.1
84479         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84480         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84482 2009-01-04  Jim Meyering  <meyering@redhat.com>
84484         remove duplicate inclusion of <stdio.h>
84485         * tests/test-fprintf-posix.c: Likewise.
84486         * tests/test-printf-posix.c: Likewise.
84487         * tests/test-snprintf-posix.c: Likewise.
84488         * tests/test-sprintf-posix.c: Likewise.
84489         * tests/test-vasprintf-posix.c: Likewise.
84490         * tests/test-vfprintf-posix.c: Likewise.
84491         * tests/test-vprintf-posix.c: Likewise.
84492         * tests/test-vsnprintf-posix.c: Likewise.
84493         * tests/test-vsprintf-posix.c: Likewise.
84495 2009-01-03  Jim Meyering  <meyering@redhat.com>
84497         gnulib-tool: fix sed-based filtering
84498         * gnulib-tool (func_filter_filelist): Remove extra backslash
84499         in sed_fff_filter definition.
84501 2009-01-02  Jim Meyering  <meyering@redhat.com>
84503         strftime: avoid compilation failure on Solaris 2.6
84504         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84505         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84506         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84507         be available.  Reported by Tom G. Christensen.  Details in
84508         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84510 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84511             Bruno Haible  <bruno@clisp.org>
84513         Speed up gnulib-tool by doing more string processing through shell
84514         built-ins.
84515         * gnulib-tool (fast_func_append): New variable.
84516         (func_remove_prefix, func_remove_suffix): New functions.
84517         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84518         (func_filter_filelist): New function.
84519         (func_get_dependencies): Use func_remove_suffix instead of sed.
84520         (func_get_automake_snippet): Use func_filter_filelist instead of a
84521         subshell and sed invocation.
84523 2009-01-01  Bruno Haible  <bruno@clisp.org>
84525         Fix a security bug.
84526         * gnulib-tool (func_import, import, update): Don't allow the characters
84527         '"', '$', '`', '\' in macro arguments that become part of commands that
84528         are evaluated.
84530 2009-01-01  Bruno Haible  <bruno@clisp.org>
84532         * gnulib-tool (func_reset_sigpipe): Add more comments.
84534 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84536         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84537         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84538         already know the answer.
84540 2009-01-01  Jim Meyering  <meyering@redhat.com>
84542         * lib/version-etc.c (version_etc_va): Update copyright year.
84544 2008-12-30  Bruno Haible  <bruno@clisp.org>
84546         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84547         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84548         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84550 2008-12-29  Eric Blake  <ebb9@byu.net>
84552         multiarch: avoid autoconf AC_REQUIRE bug
84553         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84554         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84555         2.63 and older.
84556         Reported by Bruno Haible, and analyzed in
84557         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84559 2008-12-29  Bruno Haible  <bruno@clisp.org>
84561         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84562         files in subdirectories correctly.
84563         Reported by Ralf Wildenhues.
84565 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84567         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84568         rather than 'join FILE -', for Solaris join.
84570 2008-12-29  Bruno Haible  <bruno@clisp.org>
84572         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84573         quoting.
84574         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84575         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84576         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84577         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84578         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84579         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84580         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84582         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84583         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84584         * m4/nls.m4 (AM_NLS): Likewise.
84585         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84586         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84587         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84588         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84589         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84590         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84591         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84592         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84593         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84594         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84595         * m4/xsize.m4 (gl_XSIZE): Likewise.
84596         Suggested by Jim Meyering.
84598 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84600         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84601         * lib/parse-duration.c: use a switch instead of cascading if's.
84603 2008-12-29  Eric Blake  <ebb9@byu.net>
84605         wchar.h: supply WEOF on Irix 5.3
84606         * lib/wchar.in.h (wint_t): Also supply WEOF.
84607         * lib/wctype.in.h (wint_t): Likewise.
84608         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84609         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84610         Reported by Tom G. Christensen.
84612 2008-12-26  Bruno Haible  <bruno@clisp.org>
84614         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84615         i486, i586, i686.
84617 2008-12-26  Bruno Haible  <bruno@clisp.org>
84619         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84621 2008-12-26  Bruno Haible  <bruno@clisp.org>
84623         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84624         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84625         not __STDC_CONSTANT_MACROS.
84626         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84628 2008-12-25  Bruno Haible  <bruno@clisp.org>
84630         Add support for universal builds to vasnprintf.
84631         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84632         universal builds, guess no.
84633         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84634         * modules/vasprintf-posix (Depends-on): Likewise.
84635         * modules/fprintf-posix (Depends-on): Likewise.
84636         * modules/vfprintf-posix (Depends-on): Likewise.
84637         * modules/snprintf-posix (Depends-on): Likewise.
84638         * modules/vsnprintf-posix (Depends-on): Likewise.
84639         * modules/sprintf-posix (Depends-on): Likewise.
84640         * modules/vsprintf-posix (Depends-on): Likewise.
84641         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84642         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84643         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84644         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84645         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84646         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84647         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84649         Add support for universal builds to <inttypes.h>.
84650         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84651         _SCNu64_PREFIX): In Apple
84652         universal builds, define directly, using _LP64.
84653         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84654         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84655         * modules/inttypes (Depends-on): Add multiarch.
84656         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84658         Add support for universal builds to <stdint.h>.
84659         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84660         universal builds, define directly, using _LP64.
84661         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84662         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84663         and size_t.
84664         * modules/stdint (Depends-on): Add multiarch.
84665         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84667         New module 'multiarch'.
84668         * modules/multiarch: New file.
84669         * m4/multiarch.m4: New file.
84671 2008-12-25  Bruno Haible  <bruno@clisp.org>
84673         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84675 2008-12-25  Bruno Haible  <bruno@clisp.org>
84677         * modules/btowc (License): Relicense under LGPLv2+.
84678         * modules/mbsinit (License): Likewise.
84679         * modules/mbrtowc (License): Likewise.
84680         * modules/wcrtomb (License): Likewise.
84681         * modules/streq (License): Likewise.
84682         Reported by David Lutterkort <lutter@redhat.com>.
84684 2008-12-23  Bruno Haible  <bruno@clisp.org>
84686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84688 2008-12-23  Bruno Haible  <bruno@clisp.org>
84690         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84692         GETADDRINFO_LIB, not in LIBS.
84693         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84694         * modules/canon-host (Link): Likewise.
84695         * NEWS: Mention the change.
84696         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84697         GETADDRINFO_LIB.
84699 2008-12-22  Bruno Haible  <bruno@clisp.org>
84701         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84702         * doc/posix-functions/iswalpha_l.texi: Likewise.
84703         * doc/posix-functions/iswblank_l.texi: Likewise.
84704         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84705         * doc/posix-functions/iswctype_l.texi: Likewise.
84706         * doc/posix-functions/iswdigit_l.texi: Likewise.
84707         * doc/posix-functions/iswgraph_l.texi: Likewise.
84708         * doc/posix-functions/iswlower_l.texi: Likewise.
84709         * doc/posix-functions/iswprint_l.texi: Likewise.
84710         * doc/posix-functions/iswpunct_l.texi: Likewise.
84711         * doc/posix-functions/iswspace_l.texi: Likewise.
84712         * doc/posix-functions/iswupper_l.texi: Likewise.
84713         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84714         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84715         * doc/posix-functions/open_wmemstream.texi: Likewise.
84716         * doc/posix-functions/swscanf.texi: Likewise.
84717         * doc/posix-functions/towctrans_l.texi: Likewise.
84718         * doc/posix-functions/towlower.texi: Likewise.
84719         * doc/posix-functions/towlower_l.texi: Likewise.
84720         * doc/posix-functions/towupper.texi: Likewise.
84721         * doc/posix-functions/towupper_l.texi: Likewise.
84722         * doc/posix-functions/vfwprintf.texi: Likewise.
84723         * doc/posix-functions/vfwscanf.texi: Likewise.
84724         * doc/posix-functions/vswscanf.texi: Likewise.
84725         * doc/posix-functions/vwprintf.texi: Likewise.
84726         * doc/posix-functions/vwscanf.texi: Likewise.
84727         * doc/posix-functions/wcpcpy.texi: Likewise.
84728         * doc/posix-functions/wcpncpy.texi: Likewise.
84729         * doc/posix-functions/wcscasecmp.texi: Likewise.
84730         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84731         * doc/posix-functions/wcscoll_l.texi: Likewise.
84732         * doc/posix-functions/wcsdup.texi: Likewise.
84733         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84734         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84735         * doc/posix-functions/wcsnlen.texi: Likewise.
84736         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84737         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84738         * doc/posix-functions/wctrans_l.texi: Likewise.
84739         * doc/posix-functions/wctype_l.texi: Likewise.
84740         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84741         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84742         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84743         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84744         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84745         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84746         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84747         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84748         * doc/glibc-functions/wcschrnul.texi: Likewise.
84749         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84750         * doc/glibc-functions/wcstod_l.texi: Likewise.
84751         * doc/glibc-functions/wcstof_l.texi: Likewise.
84752         * doc/glibc-functions/wcstol_l.texi: Likewise.
84753         * doc/glibc-functions/wcstold_l.texi: Likewise.
84754         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84755         * doc/glibc-functions/wcstoq.texi: Likewise.
84756         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84757         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84758         * doc/glibc-functions/wcstouq.texi: Likewise.
84759         * doc/glibc-functions/wmempcpy.texi: Likewise.
84761 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84762             Eric Blake  <ebb9@byu.net>
84763             Paolo Bonzini  <bonzini@gnu.org>
84764             Bruno Haible  <bruno@clisp.org>
84766         Make c-stack work on Haiku.
84767         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84768         (c_stack_action): Use SA_ONSTACK flag.
84770 2008-12-22  Bruno Haible  <bruno@clisp.org>
84772         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84774 2008-12-22  Bruno Haible  <bruno@clisp.org>
84776         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84777         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84778         being overridden.
84779         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84780         New macros.
84781         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84783         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84784         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84786 2008-12-22  Bruno Haible  <bruno@clisp.org>
84788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84789         from test code.
84791 2008-12-22  Eric Blake  <ebb9@byu.net>
84793         Avoid gcc warnings on cygwin.
84794         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
84795         Avoid unused variable.
84796         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
84797         Likewise.
84799 2008-12-22  Bruno Haible  <bruno@clisp.org>
84801         Remove HAVE_MBRTOWC conditionals.
84802         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
84803         (mbscasecmp): Assume mbrtowc function.
84804         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
84805         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
84806         * lib/mbschr.c: Include mbuiter.h unconditionally.
84807         (mbschr): Assume mbrtowc function.
84808         * lib/mbscspn.c: Include mbuiter.h unconditionally.
84809         (mbscspn): Assume mbrtowc function.
84810         * lib/mbslen.c: Include mbuiter.h unconditionally.
84811         (mbslen): Assume mbrtowc function.
84812         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
84813         (mbsncasecmp): Assume mbrtowc function.
84814         * lib/mbsnlen.c: Include mbiter.h unconditionally.
84815         (mbsnlen): Assume mbrtowc function.
84816         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
84817         (mbspbrk): Assume mbrtowc function.
84818         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84819         (mbspcasecmp): Assume mbrtowc function.
84820         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84821         (mbsrchr): Assume mbrtowc function.
84822         * lib/mbssep.c: Include mbuiter.h unconditionally.
84823         (mbssep): Assume mbrtowc function.
84824         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84825         (mbsspn): Assume mbrtowc function.
84826         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84827         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84828         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84829         (mbstok_r): Assume mbrtowc function.
84830         * lib/propername.c: Include mbuiter.h unconditionally.
84831         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84832         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84833         (trim2): Assume mbrtowc function.
84834         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84835         (mbsnwidth): Assume mbrtowc function.
84836         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84837         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84838         fallback definitions.
84839         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84841 2008-12-22  Bruno Haible  <bruno@clisp.org>
84843         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84845 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84847         * modules/regex: Request emulations for the mb*/wc* functions we need.
84848         * m4/regex.m4: Don't look for those functions here.
84849         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84851 2008-12-22  Bruno Haible  <bruno@clisp.org>
84853         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84855 2008-12-21  Bruno Haible  <bruno@clisp.org>
84857         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84858         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84859         (Include): Remove conditionalization.
84860         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84861         (Include): Remove conditionalization.
84862         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84863         (Include): Remove conditionalization.
84864         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84865         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84866         * NEWS: Mention the change.
84867         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84868         via Sergey Poznyakoff <gray@gnu.org.ua>.
84870 2008-12-21  Bruno Haible  <bruno@clisp.org>
84872         * MODULES.html.sh (Extended multibyte and wide character utilities
84873         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84874         wcrtomb, wcsrtombs.
84875         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84876         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84877         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84878         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84880 2008-12-21  Bruno Haible  <bruno@clisp.org>
84882         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84884 2008-12-21  Bruno Haible  <bruno@clisp.org>
84886         * modules/wcsnrtombs-tests: New file.
84887         * tests/test-wcsnrtombs1.sh: New file.
84888         * tests/test-wcsnrtombs2.sh: New file.
84889         * tests/test-wcsnrtombs3.sh: New file.
84890         * tests/test-wcsnrtombs4.sh: New file.
84891         * tests/test-wcsnrtombs.c: New file.
84893         New module 'wcsnrtombs'.
84894         * lib/wchar.in.h (wcsnrtombs): New declaration.
84895         * lib/wcsnrtombs.c: New file.
84896         * lib/wcsrtombs-state.c: New file.
84897         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84898         (internal_state): Remove variable.
84899         * m4/wcsnrtombs.m4: New file.
84900         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84901         compilation units.
84902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84903         HAVE_WCSNRTOMBS.
84904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84905         HAVE_WCSNRTOMBS.
84906         * modules/wcsnrtombs: New file.
84907         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84908         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84910 2008-12-21  Bruno Haible  <bruno@clisp.org>
84912         * modules/wcsrtombs-tests: New file.
84913         * tests/test-wcsrtombs1.sh: New file.
84914         * tests/test-wcsrtombs2.sh: New file.
84915         * tests/test-wcsrtombs3.sh: New file.
84916         * tests/test-wcsrtombs4.sh: New file.
84917         * tests/test-wcsrtombs.c: New file.
84919         New module 'wcsrtombs'.
84920         * lib/wchar.in.h (wcsrtombs): New declaration.
84921         * lib/wcsrtombs.c: New file.
84922         * m4/wcsrtombs.m4: New file.
84923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84924         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84926         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84927         * modules/wcsrtombs: New file.
84928         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84929         bugs.
84931 2008-12-21  Bruno Haible  <bruno@clisp.org>
84933         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84934         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84936         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84937         if not correct.
84938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84939         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84940         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84941         m4/locale-zh.m4, m4/codeset.m4.
84942         * doc/posix-functions/wcrtomb.texi: Document the bug.
84944 2008-12-21  Bruno Haible  <bruno@clisp.org>
84946         Work around a btowc() bug on IRIX 6.5.
84947         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84948         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84949         REPLACE_WTOBC if not.
84950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84951         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84952         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84954 2008-12-21  Bruno Haible  <bruno@clisp.org>
84956         * modules/wcrtomb-tests: New file.
84957         * tests/test-wcrtomb.sh: New file.
84958         * tests/test-wcrtomb.c: New file.
84960         New module 'wcrtomb'.
84961         * lib/wchar.in.h (wcrtomb): New declaration.
84962         * lib/wcrtomb.c: New file.
84963         * m4/wcrtomb.m4: New file.
84964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84965         HAVE_WCRTOMB.
84966         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84967         HAVE_WCRTOMB.
84968         * modules/wcrtomb: New file.
84969         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84971 2008-12-21  Bruno Haible  <bruno@clisp.org>
84973         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84974         * modules/mbsrtowcs (Files): Likewise.
84975         * modules/wctob (Files): Likewise.
84976         * modules/c-strcase-tests (Files): Likewise.
84977         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84978         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84979         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84980         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84981         * modules/vasnprintf-posix-tests (Files): Likewise.
84983 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84985         gitlog-to-changelog: pass all command-line arguments to git-log
84986         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84987         it is sometimes convenient to filter the commits in various ways.
84988         gitlog-to-changelog only allows --since to specify a start date,
84989         but git-log itself supports many other filtering mechanisms.
84990         At the moment, I want to filter by branch name.  Rather than
84991         adding a --branch option to gitlog-to-changelog, it seems more
84992         flexible to simply pass all options directly to git-log and let
84993         git do the work.  Notice that this effectively makes --since a
84994         redundant option for gitlog-to-changelog, but removing it would
84995         require current usage to change since calls would then require
84996         an additional '--'.
84998 2008-12-21  Bruno Haible  <bruno@clisp.org>
85000         * modules/mbsnrtowcs-tests: New file.
85001         * tests/test-mbsnrtowcs1.sh: New file.
85002         * tests/test-mbsnrtowcs2.sh: New file.
85003         * tests/test-mbsnrtowcs3.sh: New file.
85004         * tests/test-mbsnrtowcs4.sh: New file.
85005         * tests/test-mbsnrtowcs.c: New file.
85007         New module 'mbsnrtowcs'.
85008         * lib/wchar.in.h (mbsnrtowcs): New declaration.
85009         * lib/mbsnrtowcs.c: New file.
85010         * lib/mbsrtowcs-state.c: New file.
85011         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
85012         (internal_state): Remove variable.
85013         * m4/mbsnrtowcs.m4: New file.
85014         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
85015         compilation units.
85016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
85017         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85018         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
85019         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85020         * modules/mbsnrtowcs: New file.
85021         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
85022         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
85023         portability problem.
85025 2008-12-21  Bruno Haible  <bruno@clisp.org>
85027         Work around mbsrtowcs bug.
85028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
85029         (gl_FUNC_MBSRTOWCS): Invoke it.
85030         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85031         m4/locale-zh.m4.
85032         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
85034 2008-12-21  Bruno Haible  <bruno@clisp.org>
85036         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
85038 2008-12-21  Bruno Haible  <bruno@clisp.org>
85040         Update doc for AIX.
85041         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
85042         16-bit wchar_t type.
85043         * doc/posix-functions/btowc.texi: Likewise.
85044         * doc/posix-functions/fgetwc.texi: Likewise.
85045         * doc/posix-functions/fgetws.texi: Likewise.
85046         * doc/posix-functions/fputwc.texi: Likewise.
85047         * doc/posix-functions/fputws.texi: Likewise.
85048         * doc/posix-functions/fwide.texi: Likewise.
85049         * doc/posix-functions/fwprintf.texi: Likewise.
85050         * doc/posix-functions/fwscanf.texi: Likewise.
85051         * doc/posix-functions/getwchar.texi: Likewise.
85052         * doc/posix-functions/getwc.texi: Likewise.
85053         * doc/posix-functions/iswalnum.texi: Likewise.
85054         * doc/posix-functions/iswalpha.texi: Likewise.
85055         * doc/posix-functions/iswblank.texi: Likewise.
85056         * doc/posix-functions/iswcntrl.texi: Likewise.
85057         * doc/posix-functions/iswctype.texi: Likewise.
85058         * doc/posix-functions/iswdigit.texi: Likewise.
85059         * doc/posix-functions/iswgraph.texi: Likewise.
85060         * doc/posix-functions/iswlower.texi: Likewise.
85061         * doc/posix-functions/iswprint.texi: Likewise.
85062         * doc/posix-functions/iswpunct.texi: Likewise.
85063         * doc/posix-functions/iswspace.texi: Likewise.
85064         * doc/posix-functions/iswupper.texi: Likewise.
85065         * doc/posix-functions/iswxdigit.texi: Likewise.
85066         * doc/posix-functions/mbrtowc.texi: Likewise.
85067         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85068         * doc/posix-functions/mbstowcs.texi: Likewise.
85069         * doc/posix-functions/mbtowc.texi: Likewise.
85070         * doc/posix-functions/putwchar.texi: Likewise.
85071         * doc/posix-functions/putwc.texi: Likewise.
85072         * doc/posix-functions/swprintf.texi: Likewise.
85073         * doc/posix-functions/tolower.texi: Likewise.
85074         * doc/posix-functions/toupper.texi: Likewise.
85075         * doc/posix-functions/towctrans.texi: Likewise.
85076         * doc/posix-functions/ungetwc.texi: Likewise.
85077         * doc/posix-functions/vswprintf.texi: Likewise.
85078         * doc/posix-functions/wcrtomb.texi: Likewise.
85079         * doc/posix-functions/wcscat.texi: Likewise.
85080         * doc/posix-functions/wcschr.texi: Likewise.
85081         * doc/posix-functions/wcscmp.texi: Likewise.
85082         * doc/posix-functions/wcscoll.texi: Likewise.
85083         * doc/posix-functions/wcscpy.texi: Likewise.
85084         * doc/posix-functions/wcscspn.texi: Likewise.
85085         * doc/posix-functions/wcsftime.texi: Likewise.
85086         * doc/posix-functions/wcslen.texi: Likewise.
85087         * doc/posix-functions/wcsncat.texi: Likewise.
85088         * doc/posix-functions/wcsncmp.texi: Likewise.
85089         * doc/posix-functions/wcsncpy.texi: Likewise.
85090         * doc/posix-functions/wcspbrk.texi: Likewise.
85091         * doc/posix-functions/wcsrchr.texi: Likewise.
85092         * doc/posix-functions/wcsrtombs.texi: Likewise.
85093         * doc/posix-functions/wcsspn.texi: Likewise.
85094         * doc/posix-functions/wcsstr.texi: Likewise.
85095         * doc/posix-functions/wcstod.texi: Likewise.
85096         * doc/posix-functions/wcstof.texi: Likewise.
85097         * doc/posix-functions/wcstoimax.texi: Likewise.
85098         * doc/posix-functions/wcstok.texi: Likewise.
85099         * doc/posix-functions/wcstold.texi: Likewise.
85100         * doc/posix-functions/wcstoll.texi: Likewise.
85101         * doc/posix-functions/wcstol.texi: Likewise.
85102         * doc/posix-functions/wcstombs.texi: Likewise.
85103         * doc/posix-functions/wcstoull.texi: Likewise.
85104         * doc/posix-functions/wcstoul.texi: Likewise.
85105         * doc/posix-functions/wcstoumax.texi: Likewise.
85106         * doc/posix-functions/wcswidth.texi: Likewise.
85107         * doc/posix-functions/wcsxfrm.texi: Likewise.
85108         * doc/posix-functions/wctob.texi: Likewise.
85109         * doc/posix-functions/wctomb.texi: Likewise.
85110         * doc/posix-functions/wctrans.texi: Likewise.
85111         * doc/posix-functions/wctype.texi: Likewise.
85112         * doc/posix-functions/wcwidth.texi: Likewise.
85113         * doc/posix-functions/wmemchr.texi: Likewise.
85114         * doc/posix-functions/wmemcmp.texi: Likewise.
85115         * doc/posix-functions/wmemcpy.texi: Likewise.
85116         * doc/posix-functions/wmemmove.texi: Likewise.
85117         * doc/posix-functions/wmemset.texi: Likewise.
85118         * doc/posix-functions/wprintf.texi: Likewise.
85119         * doc/posix-functions/wscanf.texi: Likewise.
85121 2008-12-21  Bruno Haible  <bruno@clisp.org>
85123         Update doc for HP-UX 11.11.
85124         * doc/posix-functions/btowc.texi: Clarify that the function is missing
85125         in HP-UX version 11.00, not in all versions of HP-UX 11.
85126         * doc/posix-functions/fwide.texi: Likewise.
85127         * doc/posix-functions/fwprintf.texi: Likewise.
85128         * doc/posix-functions/fwscanf.texi: Likewise.
85129         * doc/posix-functions/inet_ntop.texi: Likewise.
85130         * doc/posix-functions/inet_pton.texi: Likewise.
85131         * doc/posix-functions/mbrlen.texi: Likewise.
85132         * doc/posix-functions/mbrtowc.texi: Likewise.
85133         * doc/posix-functions/mbsinit.texi: Likewise.
85134         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85135         * doc/posix-functions/swprintf.texi: Likewise.
85136         * doc/posix-functions/swscanf.texi: Likewise.
85137         * doc/posix-functions/towctrans.texi: Likewise.
85138         * doc/posix-functions/vfwprintf.texi: Likewise.
85139         * doc/posix-functions/vswprintf.texi: Likewise.
85140         * doc/posix-functions/vwprintf.texi: Likewise.
85141         * doc/posix-functions/wcrtomb.texi: Likewise.
85142         * doc/posix-functions/wcsrtombs.texi: Likewise.
85143         * doc/posix-functions/wcsstr.texi: Likewise.
85144         * doc/posix-functions/wctob.texi: Likewise.
85145         * doc/posix-functions/wctrans.texi: Likewise.
85146         * doc/posix-functions/wmemchr.texi: Likewise.
85147         * doc/posix-functions/wmemcmp.texi: Likewise.
85148         * doc/posix-functions/wmemcpy.texi: Likewise.
85149         * doc/posix-functions/wmemmove.texi: Likewise.
85150         * doc/posix-functions/wmemset.texi: Likewise.
85151         * doc/posix-functions/wprintf.texi: Likewise.
85152         * doc/posix-functions/wscanf.texi: Likewise.
85154 2008-12-21  Bruno Haible  <bruno@clisp.org>
85156         Work around a portability problem.
85157         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
85158         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
85160 2008-12-20  Bruno Haible  <bruno@clisp.org>
85162         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
85163         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
85164         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
85165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
85166         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
85168         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
85169         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
85170         set.
85171         (GNULIB_defined_mbstate_t): New macro.
85172         (mbsinit): Redefine if REPLACE_MBSINIT is set.
85173         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
85174         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
85175         reuses the system's mbrtowc function but works around the bugs.
85176         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
85177         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
85178         macros.
85179         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
85180         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
85181         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
85182         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
85183         REPLACE_MBSINIT if mbsinit needs to be overridden.
85184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
85185         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85186         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
85187         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85188         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85189         m4/locale-zh.m4.
85190         (Depends): Add mbsinit.
85191         * modules/mbsinit (Depends): Add mbrtowc.
85192         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
85194 2008-12-20  Bruno Haible  <bruno@clisp.org>
85196         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
85197         so that there are no conversion errors on AIX.
85198         * tests/test-mbsrtowcs.c (main): LIkewise.
85200 2008-12-20  Bruno Haible  <bruno@clisp.org>
85202         Work around wctob bug on Solaris <= 9.
85203         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
85204         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
85205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
85206         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
85207         * modules/wctob (Files): Add m4/locale-fr.m4.
85208         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
85210 2008-12-20  Bruno Haible  <bruno@clisp.org>
85212         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
85213         /dev/null.
85214         * tests/test-select-in.sh: Likewise.
85215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85217 2008-12-20  Bruno Haible  <bruno@clisp.org>
85219         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
85220         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
85221         Cygwin 1.5.x.
85223 2008-12-20  Bruno Haible  <bruno@clisp.org>
85225         Ensure mbstate_t is defined on HP-UX 11.11.
85226         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
85227         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
85228         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
85229         AC_USE_SYSTEM_EXTENSIONS.
85230         * modules/fnmatch (Depends-on): Add extensions.
85231         * modules/mbrlen (Depends-on): Likewise.
85232         * modules/mbrtowc (Depends-on): Likewise.
85233         * modules/mbsinit (Depends-on): Likewise.
85234         * modules/mbsrtowcs (Depends-on): Likewise.
85235         * modules/mbswidth (Depends-on): Likewise.
85236         * modules/quotearg (Depends-on): Likewise.
85237         * modules/strftime (Depends-on): Likewise.
85239 2008-12-20  Bruno Haible  <bruno@clisp.org>
85241         Ensure wctob is declared on IRIX 6.5.
85242         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
85243         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
85244         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
85245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
85246         of HAVE_WCTOB.
85247         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
85248         HAVE_WCTOB.
85249         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
85251 2008-12-19  Bruno Haible  <bruno@clisp.org>
85253         * modules/mbsrtowcs-tests: New file.
85254         * tests/test-mbsrtowcs1.sh: New file.
85255         * tests/test-mbsrtowcs2.sh: New file.
85256         * tests/test-mbsrtowcs3.sh: New file.
85257         * tests/test-mbsrtowcs4.sh: New file.
85258         * tests/test-mbsrtowcs.c: New file.
85260         New module 'mbsrtowcs'.
85261         * lib/wchar.in.h (mbsrtowcs): New declaration.
85262         * lib/mbsrtowcs.c: New file.
85263         * m4/mbsrtowcs.m4: New file.
85264         * modules/mbsrtowcs: New file.
85265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
85266         HAVE_MBSRTOWCS.
85267         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
85268         HAVE_MBSRTOWCS.
85269         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
85271 2008-12-19  Bruno Haible  <bruno@clisp.org>
85273         New module 'mbrlen'.
85274         * lib/wchar.in.h (mbrlen): New declaration.
85275         * lib/mbrlen.c: New file.
85276         * m4/mbrlen.m4: New file.
85277         * modules/mbrlen: New file.
85278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
85279         HAVE_MBRLEN.
85280         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
85281         HAVE_MBRLEN.
85282         * doc/posix-functions/mbrlen.texi: Document the new module.
85284 2008-12-19  Bruno Haible  <bruno@clisp.org>
85286         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
85287         * modules/mbrtowc (Depends-on): Add verify.
85288         Suggested by Paul Eggert.
85290 2008-12-18  Bruno Haible  <bruno@clisp.org>
85292         * modules/mbsinit-tests: New file.
85293         * tests/test-mbsinit.sh: New file.
85294         * tests/test-mbsinit.c: New file.
85296 2008-12-18  Bruno Haible  <bruno@clisp.org>
85298         * modules/mbrtowc-tests: New file.
85299         * tests/test-mbrtowc1.sh: New file.
85300         * tests/test-mbrtowc2.sh: New file.
85301         * tests/test-mbrtowc3.sh: New file.
85302         * tests/test-mbrtowc4.sh: New file.
85303         * tests/test-mbrtowc.c: New file.
85305         New module 'mbrtowc'.
85306         * lib/wchar.in.h (mbstate_t): Override when the system does not have
85307         mbsinit and mbrtowc.
85308         (mbrtowc): New declaration.
85309         * lib/mbrtowc.c: New file.
85310         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
85311         * modules/mbrtowc: New file.
85312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
85313         HAVE_MBRTOWC.
85314         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
85315         HAVE_MBRTOWC.
85316         * doc/posix-functions/mbrtowc.texi: Document the new module.
85318 2008-12-18  Bruno Haible  <bruno@clisp.org>
85320         New module 'wctob'.
85321         * lib/wchar.in.h (wctob): New declaration.
85322         * lib/wctob.c: New file.
85323         * m4/wctob.m4: New file.
85324         * modules/wctob: New file.
85325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
85326         HAVE_WCTOB.
85327         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
85328         * doc/posix-functions/wctob.texi: Document the new module.
85330 2008-12-18  Bruno Haible  <bruno@clisp.org>
85332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
85333         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
85335 2008-12-18  Simon Josefsson  <simon@josefsson.org>
85337         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
85338         G. Christensen" <tgc@jupiterrise.com>.
85340         * lib/flock.c: Need to include errno.h.  Reported by "Tom
85341         G. Christensen" <tgc@jupiterrise.com>.
85343         * lib/flock.c: Need to include string.h.  Reported by "Tom
85344         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
85345         <ebb9@byu.net>.
85347 2008-12-18  Bruno Haible  <bruno@clisp.org>
85349         * m4/locale-ja.m4: New file, from GNU gettext.
85351 2008-12-17  Bruno Haible  <bruno@clisp.org>
85353         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
85354         Suggested by Eric Blake.
85356 2008-12-17  Bruno Haible  <bruno@clisp.org>
85358         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
85360 2008-12-17  Bruno Haible  <bruno@clisp.org>
85362         * lib/mbsinit.c: Include verify.h. Verify an assumption.
85363         * modules/mbsinit (Depends-on): Add verify.
85364         Suggested by Paul Eggert.
85366 2008-12-17  Bruno Haible  <bruno@clisp.org>
85368         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
85369         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
85370         gl_FUNC_MBRTOWC.
85371         * m4/mbiter.m4 (gl_MBITER): LIkewise.
85372         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
85373         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
85374         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
85375         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
85376         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
85377         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
85378         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
85379         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85380         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85381         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85382         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85383         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85384         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85385         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85386         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85387         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85388         * modules/trim (configure.ac): Likewise.
85390 2008-12-17  Bruno Haible  <bruno@clisp.org>
85392         * modules/btowc-tests: New file.
85393         * tests/test-btowc1.sh: New file.
85394         * tests/test-btowc2.sh: New file.
85395         * tests/test-btowc.c: New file.
85397         New module 'btowc'.
85398         * lib/wchar.in.h (btowc): New declaration.
85399         * lib/btowc.c: New file.
85400         * m4/btowc.m4: New file.
85401         * modules/btowc: New file.
85402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85403         HAVE_BTOWC.
85404         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85405         * doc/posix-functions/btowc.texi: Document the new module.
85407 2008-12-17  Bruno Haible  <bruno@clisp.org>
85409         New module 'mbsinit'.
85410         * lib/wchar.in.h (mbsinit): New declaration.
85411         * lib/mbsinit.c: New file.
85412         * m4/mbsinit.m4: New file.
85413         * modules/mbsinit: New file.
85414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85415         HAVE_MBSINIT.
85416         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85417         HAVE_MBSINIT.
85418         * doc/posix-functions/mbsinit.texi: Document the new module.
85420 2008-12-16  Bruno Haible  <bruno@clisp.org>
85422         * lib/unistd.in.h: Add comment.
85423         * tests/test-environ.c: Don't include <stdlib.h>.
85425 2008-12-16  Bruno Haible  <bruno@clisp.org>
85427         * lib/parse-duration.h (parse_duration): Document return value
85428         convention.
85429         * lib/parse-duration.c: Include specification header first. Add
85430         comments.
85431         (_): Remove macro.
85432         (parse_year_month_day, parse_hour_minute_second): Move side effects
85433         outside of strchr call.
85434         (parse_non_iso8601): Move side effects outside of isspace call.
85435         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85436         call.
85438 2008-12-16  Bruno Haible  <bruno@clisp.org>
85440         * tests/test-parse-duration.sh: Produce no output when the test
85441         succeeds.
85443 2008-12-16  Bruno Haible  <bruno@clisp.org>
85445         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85446         expressions.
85448 2008-12-15  Bruno Haible  <bruno@clisp.org>
85450         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85451         * doc/glibc-functions/flistxattr.texi: Likewise.
85452         * doc/glibc-functions/fopencookie.texi: Likewise.
85453         * doc/glibc-functions/fremovexattr.texi: Likewise.
85454         * doc/glibc-functions/fsetxattr.texi: Likewise.
85455         * doc/glibc-functions/getxattr.texi: Likewise.
85456         * doc/glibc-functions/lgetxattr.texi: Likewise.
85457         * doc/glibc-functions/listxattr.texi: Likewise.
85458         * doc/glibc-functions/llistxattr.texi: Likewise.
85459         * doc/glibc-functions/lremovexattr.texi: Likewise.
85460         * doc/glibc-functions/lsetxattr.texi: Likewise.
85461         * doc/glibc-functions/removexattr.texi: Likewise.
85462         * doc/glibc-functions/setxattr.texi: Likewise.
85463         * doc/posix-functions/open_memstream.texi: Likewise.
85465 2008-12-15  Eric Blake  <ebb9@byu.net>
85467         Update doc for cygwin 1.7.
85468         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85469         functions.
85470         * doc/posix-functions/fchmodat.texi: Likewise.
85471         * doc/posix-functions/fchownat.texi: Likewise.
85472         * doc/posix-functions/fdopendir.texi: Likewise.
85473         * doc/posix-functions/fmemopen.texi: Likewise.
85474         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85475         * doc/posix-functions/fstatat.texi: Likewise.
85476         * doc/posix-functions/futimens.texi: Likewise.
85477         * doc/posix-functions/gai_strerror.texi: Likewise.
85478         * doc/posix-functions/getaddrinfo.texi: Likewise.
85479         * doc/posix-functions/getnameinfo.texi: Likewise.
85480         * doc/posix-functions/if_freenameindex.texi: Likewise.
85481         * doc/posix-functions/if_indextoname.texi: Likewise.
85482         * doc/posix-functions/if_nameindex.texi: Likewise.
85483         * doc/posix-functions/if_nametoindex.texi: Likewise.
85484         * doc/posix-functions/insque.texi: Likewise.
85485         * doc/posix-functions/linkat.texi: Likewise.
85486         * doc/posix-functions/llrint.texi: Likewise.
85487         * doc/posix-functions/llrintf.texi: Likewise.
85488         * doc/posix-functions/llrintl.texi: Likewise.
85489         * doc/posix-functions/lockf.texi: Likewise.
85490         * doc/posix-functions/lrintl.texi: Likewise.
85491         * doc/posix-functions/mkdirat.texi: Likewise.
85492         * doc/posix-functions/mkfifoat.texi: Likewise.
85493         * doc/posix-functions/mknodat.texi: Likewise.
85494         * doc/posix-functions/mq_close.texi: Likewise.
85495         * doc/posix-functions/mq_getattr.texi: Likewise.
85496         * doc/posix-functions/mq_notify.texi: Likewise.
85497         * doc/posix-functions/mq_open.texi: Likewise.
85498         * doc/posix-functions/mq_receive.texi: Likewise.
85499         * doc/posix-functions/mq_send.texi: Likewise.
85500         * doc/posix-functions/mq_setattr.texi: Likewise.
85501         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85502         * doc/posix-functions/mq_timedsend.texi: Likewise.
85503         * doc/posix-functions/mq_unlink.texi: Likewise.
85504         * doc/posix-functions/open_memstream.texi: Likewise.
85505         * doc/posix-functions/openat.texi: Likewise.
85506         * doc/posix-functions/posix_fadvise.texi: Likewise.
85507         * doc/posix-functions/posix_fallocate.texi: Likewise.
85508         * doc/posix-functions/posix_madvise.texi: Likewise.
85509         * doc/posix-functions/posix_memalign.texi: Likewise.
85510         * doc/posix-functions/posix_openpt.texi: Likewise.
85511         * doc/posix-functions/readlinkat.texi: Likewise.
85512         * doc/posix-functions/remque.texi: Likewise.
85513         * doc/posix-functions/renameat.texi: Likewise.
85514         * doc/posix-functions/rintl.texi: Likewise.
85515         * doc/posix-functions/sem_unlink.texi: Likewise.
85516         * doc/posix-functions/shm_open.texi: Likewise.
85517         * doc/posix-functions/shm_unlink.texi: Likewise.
85518         * doc/posix-functions/signgam.texi: Likewise.
85519         * doc/posix-functions/sigset.texi: Likewise.
85520         * doc/posix-functions/stpcpy.texi: Likewise.
85521         * doc/posix-functions/stpncpy.texi: Likewise.
85522         * doc/posix-functions/strerror.texi: Likewise.
85523         * doc/posix-functions/strtod.texi: Likewise.
85524         * doc/posix-functions/symlinkat.texi: Likewise.
85525         * doc/posix-functions/unlinkat.texi: Likewise.
85526         * doc/posix-functions/utimensat.texi: Likewise.
85527         * doc/glibc-functions/bindresvport.texi: Likewise.
85528         * doc/glibc-functions/dn_expand.texi: Likewise.
85529         * doc/glibc-functions/exp10.texi: Likewise.
85530         * doc/glibc-functions/exp10f.texi: Likewise.
85531         * doc/glibc-functions/fgetxattr.texi: Likewise.
85532         * doc/glibc-functions/flistxattr.texi: Likewise.
85533         * doc/glibc-functions/fopencookie.texi: Likewise.
85534         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85535         * doc/glibc-functions/fremovexattr.texi: Likewise.
85536         * doc/glibc-functions/fsetxattr.texi: Likewise.
85537         * doc/glibc-functions/getifaddrs.texi: Likewise.
85538         * doc/glibc-functions/getxattr.texi: Likewise.
85539         * doc/glibc-functions/lgetxattr.texi: Likewise.
85540         * doc/glibc-functions/listxattr.texi: Likewise.
85541         * doc/glibc-functions/llistxattr.texi: Likewise.
85542         * doc/glibc-functions/lremovexattr.texi: Likewise.
85543         * doc/glibc-functions/lsetxattr.texi: Likewise.
85544         * doc/glibc-functions/pow10.texi: Likewise.
85545         * doc/glibc-functions/pow10f.texi: Likewise.
85546         * doc/glibc-functions/rcmd_af.texi: Likewise.
85547         * doc/glibc-functions/removexattr.texi: Likewise.
85548         * doc/glibc-functions/res_init.texi: Likewise.
85549         * doc/glibc-functions/res_mkquery.texi: Likewise.
85550         * doc/glibc-functions/res_query.texi: Likewise.
85551         * doc/glibc-functions/res_querydomain.texi: Likewise.
85552         * doc/glibc-functions/res_send.texi: Likewise.
85553         * doc/glibc-functions/rresvport_af.texi: Likewise.
85554         * doc/glibc-functions/setxattr.texi: Likewise.
85555         * doc/glibc-functions/strcasestr.texi: Likewise.
85557 2008-12-15  Bruno Haible  <bruno@clisp.org>
85559         Fix compilation error on OSF/1 4.0.
85560         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85561         <sys/time.h>, simply delegate to the system header.
85562         Reported by Daniel Richard G. <oss@teragram.com>.
85564 2008-12-15  Bruno Haible  <bruno@clisp.org>
85566         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85567         * doc/posix-functions/fchmodat.texi: Likewise.
85568         * doc/posix-functions/fchownat.texi: Likewise.
85569         * doc/posix-functions/fdopendir.texi: Likewise.
85570         * doc/posix-functions/fstatat.texi: Likewise.
85571         * doc/posix-functions/mkdirat.texi: Likewise.
85572         * doc/posix-functions/unlinkat.texi: Likewise.
85574 2008-12-14  Bruno Haible  <bruno@clisp.org>
85576         Update doc for POSIX:2008.
85577         * doc/posix-functions/faccessat.texi: New file.
85578         * doc/posix-functions/fchmodat.texi: New file.
85579         * doc/posix-functions/fchownat.texi: New file.
85580         * doc/posix-functions/fdopendir.texi: New file.
85581         * doc/posix-functions/fstatat.texi: New file.
85582         * doc/posix-functions/futimens.texi: New file.
85583         * doc/posix-functions/linkat.texi: New file.
85584         * doc/posix-functions/mkdirat.texi: New file.
85585         * doc/posix-functions/mkfifoat.texi: New file.
85586         * doc/posix-functions/mknodat.texi: New file.
85587         * doc/posix-functions/open_wmemstream.texi: New file.
85588         * doc/posix-functions/openat.texi: New file.
85589         * doc/posix-functions/psiginfo.texi: New file.
85590         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85591         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85592         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85593         * doc/posix-functions/readlinkat.texi: New file.
85594         * doc/posix-functions/renameat.texi: New file.
85595         * doc/posix-functions/strerror_l.texi: New file.
85596         * doc/posix-functions/symlinkat.texi: New file.
85597         * doc/posix-functions/unlinkat.texi: New file.
85598         * doc/posix-functions/utimensat.texi: New file.
85599         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85601 2008-12-14  Bruno Haible  <bruno@clisp.org>
85603         Update doc for POSIX:2008.
85604         * doc/posix-functions/alphasort.texi: Renamed from
85605         doc/glibc-functions/alphasort.texi.
85606         * doc/posix-functions/dirfd.texi: Renamed from
85607         doc/glibc-functions/dirfd.texi.
85608         * doc/posix-functions/dprintf.texi: Renamed from
85609         doc/glibc-functions/dprintf.texi.
85610         * doc/posix-functions/duplocale.texi: Renamed from
85611         doc/glibc-functions/duplocale.texi.
85612         * doc/posix-functions/fexecve.texi: Renamed from
85613         doc/glibc-functions/fexecve.texi.
85614         * doc/posix-functions/fmemopen.texi: Renamed from
85615         doc/glibc-functions/fmemopen.texi.
85616         * doc/posix-functions/freelocale.texi: Renamed from
85617         doc/glibc-functions/freelocale.texi.
85618         * doc/posix-functions/getdate_err.texi: Renamed from
85619         doc/glibc-functions/getdate_err.texi.
85620         * doc/posix-functions/isalnum_l.texi: Renamed from
85621         doc/glibc-functions/isalnum_l.texi.
85622         * doc/posix-functions/isalpha_l.texi: Renamed from
85623         doc/glibc-functions/isalpha_l.texi.
85624         * doc/posix-functions/isblank_l.texi: Renamed from
85625         doc/glibc-functions/isblank_l.texi.
85626         * doc/posix-functions/iscntrl_l.texi: Renamed from
85627         doc/glibc-functions/iscntrl_l.texi.
85628         * doc/posix-functions/isdigit_l.texi: Renamed from
85629         doc/glibc-functions/isdigit_l.texi.
85630         * doc/posix-functions/isgraph_l.texi: Renamed from
85631         doc/glibc-functions/isgraph_l.texi.
85632         * doc/posix-functions/islower_l.texi: Renamed from
85633         doc/glibc-functions/islower_l.texi.
85634         * doc/posix-functions/isprint_l.texi: Renamed from
85635         doc/glibc-functions/isprint_l.texi.
85636         * doc/posix-functions/ispunct_l.texi: Renamed from
85637         doc/glibc-functions/ispunct_l.texi.
85638         * doc/posix-functions/isspace_l.texi: Renamed from
85639         doc/glibc-functions/isspace_l.texi.
85640         * doc/posix-functions/isupper_l.texi: Renamed from
85641         doc/glibc-functions/isupper_l.texi.
85642         * doc/posix-functions/iswalnum_l.texi: Renamed from
85643         doc/glibc-functions/iswalnum_l.texi.
85644         * doc/posix-functions/iswalpha_l.texi: Renamed from
85645         doc/glibc-functions/iswalpha_l.texi.
85646         * doc/posix-functions/iswblank_l.texi: Renamed from
85647         doc/glibc-functions/iswblank_l.texi.
85648         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85649         doc/glibc-functions/iswcntrl_l.texi.
85650         * doc/posix-functions/iswctype_l.texi: Renamed from
85651         doc/glibc-functions/iswctype_l.texi.
85652         * doc/posix-functions/iswdigit_l.texi: Renamed from
85653         doc/glibc-functions/iswdigit_l.texi.
85654         * doc/posix-functions/iswgraph_l.texi: Renamed from
85655         doc/glibc-functions/iswgraph_l.texi.
85656         * doc/posix-functions/iswlower_l.texi: Renamed from
85657         doc/glibc-functions/iswlower_l.texi.
85658         * doc/posix-functions/iswprint_l.texi: Renamed from
85659         doc/glibc-functions/iswprint_l.texi.
85660         * doc/posix-functions/iswpunct_l.texi: Renamed from
85661         doc/glibc-functions/iswpunct_l.texi.
85662         * doc/posix-functions/iswspace_l.texi: Renamed from
85663         doc/glibc-functions/iswspace_l.texi.
85664         * doc/posix-functions/iswupper_l.texi: Renamed from
85665         doc/glibc-functions/iswupper_l.texi.
85666         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85667         doc/glibc-functions/iswxdigit_l.texi.
85668         * doc/posix-functions/isxdigit_l.texi: Renamed from
85669         doc/glibc-functions/isxdigit_l.texi.
85670         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85671         doc/glibc-functions/mbsnrtowcs.texi.
85672         * doc/posix-functions/mkdtemp.texi: Renamed from
85673         doc/glibc-functions/mkdtemp.texi.
85674         * doc/posix-functions/newlocale.texi: Renamed from
85675         doc/glibc-functions/newlocale.texi.
85676         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85677         doc/glibc-functions/nl_langinfo_l.texi.
85678         * doc/posix-functions/open_memstream.texi: Renamed from
85679         doc/glibc-functions/open_memstream.texi.
85680         * doc/posix-functions/opterr.texi: Renamed from
85681         doc/glibc-functions/opterr.texi.
85682         * doc/posix-functions/optind.texi: Renamed from
85683         doc/glibc-functions/optind.texi.
85684         * doc/posix-functions/optopt.texi: Renamed from
85685         doc/glibc-functions/optopt.texi.
85686         * doc/posix-functions/psignal.texi: Renamed from
85687         doc/glibc-functions/psignal.texi.
85688         * doc/posix-functions/scandir.texi: Renamed from
85689         doc/glibc-functions/scandir.texi.
85690         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85691         doc/glibc-functions/sched_get_priority_min.texi.
85692         * doc/posix-functions/signgam.texi: Renamed from
85693         doc/glibc-functions/signgam.texi.
85694         * doc/posix-functions/stpcpy.texi: Renamed from
85695         doc/glibc-functions/stpcpy.texi.
85696         * doc/posix-functions/stpncpy.texi: Renamed from
85697         doc/glibc-functions/stpncpy.texi.
85698         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85699         doc/glibc-functions/strcasecmp_l.texi.
85700         * doc/posix-functions/strcoll_l.texi: Renamed from
85701         doc/glibc-functions/strcoll_l.texi.
85702         * doc/posix-functions/strfmon_l.texi: Renamed from
85703         doc/glibc-functions/strfmon_l.texi.
85704         * doc/posix-functions/strftime_l.texi: Renamed from
85705         doc/glibc-functions/strftime_l.texi.
85706         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85707         doc/glibc-functions/strncasecmp_l.texi.
85708         * doc/posix-functions/strndup.texi: Renamed from
85709         doc/glibc-functions/strndup.texi.
85710         * doc/posix-functions/strnlen.texi: Renamed from
85711         doc/glibc-functions/strnlen.texi.
85712         * doc/posix-functions/strsignal.texi: Renamed from
85713         doc/glibc-functions/strsignal.texi.
85714         * doc/posix-functions/strxfrm_l.texi: Renamed from
85715         doc/glibc-functions/strxfrm_l.texi.
85716         * doc/posix-functions/timer_gettime.texi: Renamed from
85717         doc/glibc-functions/timer_gettime.texi.
85718         * doc/posix-functions/tolower_l.texi: Renamed from
85719         doc/glibc-functions/tolower_l.texi.
85720         * doc/posix-functions/toupper_l.texi: Renamed from
85721         doc/glibc-functions/toupper_l.texi.
85722         * doc/posix-functions/towctrans_l.texi: Renamed from
85723         doc/glibc-functions/towctrans_l.texi.
85724         * doc/posix-functions/towlower_l.texi: Renamed from
85725         doc/glibc-functions/towlower_l.texi.
85726         * doc/posix-functions/towupper_l.texi: Renamed from
85727         doc/glibc-functions/towupper_l.texi.
85728         * doc/posix-functions/uselocale.texi: Renamed from
85729         doc/glibc-functions/uselocale.texi.
85730         * doc/posix-functions/vdprintf.texi: Renamed from
85731         doc/glibc-functions/vdprintf.texi.
85732         * doc/posix-functions/wcpcpy.texi:
85733         Renamed from doc/glibc-functions/wcpcpy.texi.
85734         * doc/posix-functions/wcpncpy.texi: Renamed from
85735         doc/glibc-functions/wcpncpy.texi.
85736         * doc/posix-functions/wcscasecmp.texi: Renamed from
85737         doc/glibc-functions/wcscasecmp.texi.
85738         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85739         doc/glibc-functions/wcscasecmp_l.texi.
85740         * doc/posix-functions/wcscoll_l.texi: Renamed from
85741         doc/glibc-functions/wcscoll_l.texi.
85742         * doc/posix-functions/wcsdup.texi: Renamed from
85743         doc/glibc-functions/wcsdup.texi.
85744         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85745         doc/glibc-functions/wcsncasecmp.texi.
85746         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85747         doc/glibc-functions/wcsncasecmp_l.texi.
85748         * doc/posix-functions/wcsnlen.texi: Renamed from
85749         doc/glibc-functions/wcsnlen.texi.
85750         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85751         doc/glibc-functions/wcsnrtombs.texi.
85752         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85753         doc/glibc-functions/wcsxfrm_l.texi.
85754         * doc/posix-functions/wctrans_l.texi: Renamed from
85755         doc/glibc-functions/wctrans_l.texi.
85756         * doc/posix-functions/wctype_l.texi: Renamed from
85757         doc/glibc-functions/wctype_l.texi.
85758         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85759         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85760         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85761         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85762         these subsections.
85763         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85764         Remove sections.
85766 2008-12-14  Bruno Haible  <bruno@clisp.org>
85768         Update doc for POSIX:2008.
85769         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85771 2008-12-14  Bruno Haible  <bruno@clisp.org>
85773         Update doc for POSIX:2008.
85774         * doc/pastposix-functions/bcmp.texi: Renamed from
85775         doc/posix-functions/bcmp.texi.
85776         * doc/pastposix-functions/bcopy.texi: Renamed from
85777         doc/posix-functions/bcopy.texi.
85778         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85779         doc/posix-functions/bsd_signal.texi.
85780         * doc/pastposix-functions/bzero.texi: Renamed from
85781         doc/posix-functions/bzero.texi.
85782         * doc/pastposix-functions/ecvt.texi: Renamed from
85783         doc/posix-functions/ecvt.texi.
85784         * doc/pastposix-functions/fcvt.texi: Renamed from
85785         doc/posix-functions/fcvt.texi.
85786         * doc/pastposix-functions/ftime.texi: Renamed from
85787         doc/posix-functions/ftime.texi.
85788         * doc/pastposix-functions/gcvt.texi: Renamed from
85789         doc/posix-functions/gcvt.texi.
85790         * doc/pastposix-functions/getcontext.texi: Renamed from
85791         doc/posix-functions/getcontext.texi.
85792         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
85793         doc/posix-functions/gethostbyaddr.texi.
85794         * doc/pastposix-functions/gethostbyname.texi: Renamed from
85795         doc/posix-functions/gethostbyname.texi.
85796         * doc/pastposix-functions/getwd.texi: Renamed from
85797         doc/posix-functions/getwd.texi.
85798         * doc/pastposix-functions/h_errno.texi: Renamed from
85799         doc/posix-functions/h_errno.texi.
85800         * doc/pastposix-functions/index.texi: Renamed from
85801         doc/posix-functions/index.texi.
85802         * doc/pastposix-functions/makecontext.texi: Renamed from
85803         doc/posix-functions/makecontext.texi.
85804         * doc/pastposix-functions/mktemp.texi: Renamed from
85805         doc/posix-functions/mktemp.texi.
85806         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
85807         doc/posix-functions/pthread_attr_getstackaddr.texi.
85808         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
85809         doc/posix-functions/pthread_attr_setstackaddr.texi.
85810         * doc/pastposix-functions/rindex.texi: Renamed from
85811         doc/posix-functions/rindex.texi.
85812         * doc/pastposix-functions/scalb.texi: Renamed from
85813         doc/posix-functions/scalb.texi.
85814         * doc/pastposix-functions/setcontext.texi: Renamed from
85815         doc/posix-functions/setcontext.texi.
85816         * doc/pastposix-functions/swapcontext.texi: Renamed from
85817         doc/posix-functions/swapcontext.texi.
85818         * doc/pastposix-functions/ualarm.texi: Renamed from
85819         doc/posix-functions/ualarm.texi.
85820         * doc/pastposix-functions/usleep.texi: Renamed from
85821         doc/posix-functions/usleep.texi.
85822         * doc/pastposix-functions/vfork.texi: Renamed from
85823         doc/posix-functions/vfork.texi.
85824         * doc/pastposix-functions/wcswcs.texi: Renamed from
85825         doc/posix-functions/wcswcs.texi.
85826         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85827         (Function Substitutes): Update.
85829 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85831         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85832         m4/strerror.m4.
85834 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85835             Bruno Haible  <bruno@clisp.org>
85837         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85839 2008-12-13  Bruno Haible  <bruno@clisp.org>
85841         * modules/strtoull (Depends-on): Remove unistd.
85843 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85845         * modules/strtoull (Depends-on): Add stdlib.
85847 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85849         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85851 2008-12-10  Jim Meyering  <meyering@redhat.com>
85853         gl_ASSERT: don't say assertions are disabled when they're not
85854         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85855         "checking whether to enable assertions... no", when they are in
85856         fact enabled.  This is solely a bug in the output of configure.
85857         In spite of saying "no", NDEBUG was not defined in that case.
85858         Also, as noted by Eric Blake, leave assertions enabled upon
85859         --enable-assert=INVALID.
85861 2008-12-10  Bruno Haible  <bruno@clisp.org>
85863         Change MODULES.html to refer to POSIX:2008 where possible.
85864         * MODULES.html.sh (POSIX2008_URL): New variable.
85865         (posix_headers): Remove sys/timeb, ucontext.
85866         (posix2001_headers): New variable.
85867         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85868         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85869         index, makecontext, mktemp, pthread_attr_getstackaddr,
85870         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85871         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85872         (posix2001_functions): New variable.
85873         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85874         otherwise.
85876 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85878         add missing include to parse-duration.c
85879         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85880         * modules/parse-duration (Depends-on): Add xalloc.
85882         fix sed script reading maint.mk
85883         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85884         (syntax-check-rules): Use it.
85886 2008-12-09  Bruno Haible  <bruno@clisp.org>
85888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85889         MacOS X 10.4/PowerPC.
85890         Reported by Simon Josefsson.
85892 2008-12-08  Jim Meyering  <meyering@redhat.com>
85894         work around mingw's lack of some S_IF definitions
85895         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85896         Reported by Simon Josefsson.
85898 2008-12-08  Bruno Haible  <bruno@clisp.org>
85900         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85901         applied to variables. Needed on MacOS X 10.4/PowerPC.
85902         Reported by Simon Josefsson.
85904 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85905         and Eric Blake  <ebb9@byu.net>
85907         assert: honor --enable-assert
85908         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85909         order to honor --enable-assert, rather than treating it as a
85910         synonym for --disable-assert.
85912 2008-12-08  Jim Meyering  <meyering@redhat.com>
85914         * lib/posixtm.c: Remove now-useless declaration of mktime.
85916         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85918 2008-12-07  Bruno Haible  <bruno@clisp.org>
85920         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85921         test_once): Mark functions as static.
85922         * tests/test-tls.c (test_tls): Likewise.
85924 2008-12-07  Bruno Haible  <bruno@clisp.org>
85926         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85927         iconv_register_autodetect.
85929 2008-12-07  Jim Meyering  <meyering@redhat.com>
85931         posixtm.c: avoid a warning
85932         * lib/posixtm.c (posixtime): Don't initialize tm0.
85933         It's no longer needed to placate gcc4's -Wuninitialized,
85934         and the attempt to placate would elicit a new warning.
85936         unicodeio.c: mark unused parameters
85937         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85938         (fallback_failure_callback): Likewise.
85940 2008-12-07  Bruno Haible  <bruno@clisp.org>
85942         * gnulib-tool (func_create_testdir): When building the tests
85943         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85944         Reported by Simon Josefsson.
85946 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85948         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85950 2008-12-06  Bruno Haible  <bruno@clisp.org>
85952         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85953         Suggested by Eric Blake.
85955 2008-12-06  Bruno Haible  <bruno@clisp.org>
85957         Fix a c-stack test failure on MacOS X.
85958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85959         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85960         handler for SIGBUS as well.
85961         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85962         install a signal handler for SIGBUS as well.
85963         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85965 2008-12-06  Bruno Haible  <bruno@clisp.org>
85967         Advocacy documentation.
85968         * doc/gnulib-intro.texi (Benefits): New section.
85969         * doc/gnulib.texi: Update.
85971 2008-12-06  Bruno Haible  <bruno@clisp.org>
85973         Document the 'manywarnings' module.
85974         * doc/manywarnings.texi: New file.
85975         * doc/gnulib.texi: Include it.
85977 2008-12-05  Eric Blake  <ebb9@byu.net>
85979         tests: silence some gcc warnings
85980         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85981         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85982         type mismatches.
85984 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85985             Bruno Haible  <bruno@clisp.org>
85987         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85989 2008-11-29  Jim Meyering  <meyering@redhat.com>
85991         unicodeio.c: mark unused parameters
85992         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85993         (fallback_failure_callback): Likewise.
85995         fts: fix a thinko
85996         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85997         (set_stat_type): Return S_IF*-valued "type" directly.
85998         Prompted by James Youngman's spotting a related bug.
85999         Confirmed by further testing through find.
86001         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
86002         * lib/fts.c (D_TYPE): Define.
86003         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
86004         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
86005         (s_ifmt_shift_bits): New function.
86006         (set_stat_type): New function.
86007         (fts_build): When not calling fts_stat, call set_stat_type
86008         to propagate dirent.d_type info to fts_read caller.
86009         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
86010         fts_statp->st_mode type information may be valid.
86012 2008-11-28  Simon Josefsson  <simon@josefsson.org>
86014         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
86015         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
86016         <sds@gnu.org>.
86018 2008-11-20  Bruno Haible  <bruno@clisp.org>
86020         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
86021         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
86022         INCLUDE_NEXT.
86023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
86024         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
86025         * modules/math (Makefile.am): Substitute
86026         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
86027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86029 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
86030             Bruno Haible  <bruno@clisp.org>
86032         * lib/stdint.in.h: Define all type macros so that their expansion is
86033         a single typedef'ed token. Fixes a compilation failure in Boost which
86034         does "using ::int8_t;".
86036 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86038         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
86039         gl_MANYWARN_ALL_GCC.
86040         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
86041         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
86042         * modules/manywarnings: New file.
86043         * MODULES.html.sh: Mention manywarnings module.
86045 2008-11-18  Bruno Haible  <bruno@clisp.org>
86047         * doc/gnulib-tool.texi (Unit tests): New section.
86049 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86051         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
86052         paths like 'lib/po/foo.po'.
86054 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86056         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
86057         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
86059 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86061         * m4/warnings.m4: Use CPPFLAGS to really check whether the
86062         parameter works.
86064 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86066         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
86068 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86070         * modules/parse-duration-tests: New file.
86071         * tests/test-parse-duration.sh: New file.
86072         * tests/test-parse-duration.c: New file.
86074         New module 'parse-duration'.
86075         * lib/parse-duration.h: New file.
86076         * lib/parse-duration.c: New file.
86077         * modules/parse-duration: New file.
86079 2008-11-17  Bruno Haible  <bruno@clisp.org>
86081         * tests/test-select-out.sh: Comment out the first pipe test.
86082         Reported by Simon Josefsson.
86084 2008-11-17  Bruno Haible  <bruno@clisp.org>
86086         * modules/getaddrinfo (Depends-on): Add servent, hostent.
86087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
86088         gl_HOSTENT.
86090 2008-11-17  Bruno Haible  <bruno@clisp.org>
86092         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
86093         -lnetwork and -lnet. Needed for Haiku and BeOS.
86095 2008-11-16  Bruno Haible  <bruno@clisp.org>
86097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
86099 2008-11-16  Bruno Haible  <bruno@clisp.org>
86101         Avoid test failure on Haiku.
86102         * tests/test-fsync.c: Include <errno.h>.
86103         (main): Don't require that fsync (0) fails.
86105 2008-11-15  Bruno Haible  <bruno@clisp.org>
86107         New module 'hostent'.
86108         * modules/hostent: New file.
86109         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
86111 2008-11-15  Bruno Haible  <bruno@clisp.org>
86113         New module 'servent'.
86114         * modules/servent: New file.
86115         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
86117 2008-11-15  Bruno Haible  <bruno@clisp.org>
86119         Avoid generating same test program with two different rules.
86120         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
86121         test-frexp to test-frexp-nolibm.
86122         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
86123         test-frexpl to test-frexpl-nolibm.
86125 2008-11-15  Bruno Haible  <bruno@clisp.org>
86127         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
86128         $(FREXPL_LIBM).
86130 2008-11-15  Bruno Haible  <bruno@clisp.org>
86132         * lib/netdb.in.h: Activate the definitions also when the system's
86133         <netdb.h> has 'struct addrinfo'.
86134         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
86135         EAI_OVERFLOW or AI_NUMERICSERV.
86136         * doc/posix-headers/netdb.texi: Document the problem.
86138 2008-11-15  Bruno Haible  <bruno@clisp.org>
86140         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
86142         Make the 'sched' module work on platforms where <sched.h> exists but
86143         is incomplete (such as Haiku).
86144         * lib/sched.in.h; Include the system's <sched.h> if it exists.
86145         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
86146         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
86147         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
86148         HAVE_STRUCT_SCHED_PARAM.
86149         * modules/sched (Depends-on): Add include_next.
86150         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
86151         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
86152         * doc/posix-headers/sched.texi: Document the issue.
86154 2008-11-13  Jim Meyering  <meyering@redhat.com>
86156         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
86157         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
86158         test would fail due to the difference in the Report bugs to ...
86159         line.  The expected address is empty, "<>", while the actual
86160         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
86162 2008-11-12  Bruno Haible  <bruno@clisp.org>
86164         lstat: don't compile lstat.c on systems lacking lstat
86165         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
86166         which don't have lstat; this is handled by lib/sys_stat.in.h already.
86167         Reported by Daniel P. Berrange via Jim Meyering.
86169 2008-11-12  Jim Meyering  <meyering@redhat.com>
86171         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
86173 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86175         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
86176         instead.
86178 2008-11-12  Bruno Haible  <bruno@clisp.org>
86180         * lib/unicodeio.c: Include unistr.h.
86181         (utf8_wctomb): Remove function.
86182         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
86184 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86186         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
86187         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
86188         <bruno@clisp.org>.
86189         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
86191 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86193         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
86194         * doc/gnulib.texi: Add section for warnings.
86196 2008-11-11  Bruno Haible  <bruno@clisp.org>
86198         * lib/sockets.h: Add a comment.
86200 2008-11-11  Karl Berry  <karl@gnu.org>
86202         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
86204 2008-11-11  Eric Blake  <ebb9@byu.net>
86206         fdl.texi: avoid git symlinks
86207         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
86209 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86211         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
86213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86215         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
86216         (gl_WARN_ADD): Substitute $2 if literal.
86218 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86220         * m4/warning.m4: Remove.
86222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86224         * m4/warnings.m4: Almost complete rewrite. :-)
86226 2008-11-10  Simon Josefsson  <simon@josefsson.org>
86228         * modules/warnings: New module.
86229         * m4/warnings.m4: New file.
86230         * MODULES.html.sh: Mention warnings module.
86231         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
86232         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86234 2008-11-10  Eric Blake  <ebb9@byu.net>
86236         fdl.texi: make a symlink to the latest version
86237         * doc/standards.texi: Revert today's earlier change.
86238         * doc/fdl-1.2.texi: Rename from old fdl.texi...
86239         * doc/fdl.texi: ...and replace this with a symlink to the newer
86240         fdl-1.3.texi.
86242 2008-11-10  Bruno Haible  <bruno@clisp.org>
86244         * tests/test-select-fd.c (main): Accept the result file name as fourth
86245         argument.
86246         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
86247         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
86249 2008-11-10  Bruno Haible  <bruno@clisp.org>
86251         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
86252         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
86253         as autoconf-substituted macros.
86254         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
86255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
86256         gl_NETDB_H_DEFAULTS. Set these variables.
86257         * modules/netdb (Makefile.am): Substitute these variables.
86259 2008-11-10  Eric Blake  <ebb9@byu.net>
86261         standards.texi: include correct file for FDL 1.3
86262         * doc/standards.texi (GNU Free Documentation License): Change
86263         include file to pull in FDL 1.3, not 1.2.
86265         fdl.texi: revert accidental change to license
86266         * doc/fdl.texi: This is FDL 1.2, not 1.3.
86268 2008-11-10  Bruno Haible  <bruno@clisp.org>
86270         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
86271         cross-compiling guesses also when the native compile gives no result.
86273 2008-11-10  Bruno Haible  <bruno@clisp.org>
86275         * lib/spawni.c (__spawni): Force variable into the stack.
86277 2008-11-10  Bruno Haible  <bruno@clisp.org>
86279         Add support for Haiku.
86280         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
86281         glibc and BeOS, but also on Haiku.
86282         * lib/fpurge.c (fpurge): Likewise.
86283         * lib/freadable.c (freadable): Likewise.
86284         * lib/freadahead.c (freadahead): Likewise.
86285         * lib/freading.c (freading): Likewise.
86286         * lib/freadptr.c (freadptr): Likewise.
86287         * lib/freadseek.c (freadptrinc): Likewise.
86288         * lib/fseeko.c (rpl_fseeko): Likewise.
86289         * lib/fseterr.c (fseterr): Likewise.
86290         * lib/fwritable.c (fwritable): Likewise.
86291         * lib/fwriting.c (fwriting): Likewise.
86292         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
86294 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86296         * lib/config.charset: Treat Haiku like BeOS.
86298 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86300         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
86301         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
86303 2008-11-08  Bruno Haible  <bruno@clisp.org>
86305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
86306         AC_CACHE_CHECK.
86308 2008-11-08  Bruno Haible  <bruno@clisp.org>
86310         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
86312 2008-11-08  Bruno Haible  <bruno@clisp.org>
86314         * tests/test-select-fd.c: New file.
86315         * tests/test-select-in.sh: New file.
86316         * tests/test-select-out.sh: New file.
86317         * tests/test-select-stdin.c: New file.
86318         * modules/select-tests (Files): Add the new files.
86319         (Depends-on): Add gettimeofday.
86320         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
86321         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
86322         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
86324 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
86325             Bruno Haible  <bruno@clisp.org>
86327         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
86329 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
86331         * build-aux/pmccabe2html: Added support for C++ source files.
86333 2008-11-05  Ben Pfaff  <blp@gnu.org>
86335         Fix lib/close.c build on Windows.
86336         * modules/close (Files): Add lib/w32sock.h.
86338 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
86340         Accept Bison's NEWS format.
86341         * build-aux/announce-gen (print_news_deltas): Tweak
86342         $re_prefix.
86344 2008-11-04  Bruno Haible  <bruno@clisp.org>
86346         * modules/random_r (Maintainer): Add glibc.
86348 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86350         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
86351         by karl@freefriends.org (Karl Berry).
86352         * doc/alloca.texi: Likewise.
86353         * doc/c-ctype.texi: Likewise.
86354         * doc/c-strcase.texi: Likewise.
86355         * doc/c-strcaseeq.texi: Likewise.
86356         * doc/c-strcasestr.texi: Likewise.
86357         * doc/c-strstr.texi: Likewise.
86358         * doc/c-strtod.texi: Likewise.
86359         * doc/c-strtold.texi: Likewise.
86360         * doc/ctime.texi: Likewise.
86361         * doc/error.texi: Likewise.
86362         * doc/fdl.texi: Likewise.
86363         * doc/gcd.texi: Likewise.
86364         * doc/getdate.texi: Likewise.
86365         * doc/gnulib-intro.texi: Likewise.
86366         * doc/gnulib-tool.texi: Likewise.
86367         * doc/gnulib.texi: Likewise.
86368         * doc/inet_ntoa.texi: Likewise.
86369         * doc/maintain.texi: Likewise.
86370         * doc/make-stds.texi: Likewise.
86371         * doc/quote.texi: Likewise.
86372         * doc/regexprops-generic.texi: Likewise.
86373         * doc/standards.texi: Likewise.
86374         * doc/verify.texi: Likewise.
86375         * doc/visibility.texi: Likewise.
86376         * doc/gnulib.texi (GNU Free Documentation License): Include
86377         fdl-1.3.texi instead of fdl.texi.
86379 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86381         * doc/fdl-1.3.texi: New file, from
86382         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86383         * modules/fdl-1.3: Add.
86384         * MODULES.html.sh: Add fdl-1.3.
86386 2008-11-03  Bruno Haible  <bruno@clisp.org>
86388         Make determination of absolute name of header file work with AIX xlc.
86389         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86390         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86391         preprocessing.
86392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86393         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86395 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86397         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86398         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86399         <ludo@gnu.org>.
86401 2008-11-02  Bruno Haible  <bruno@clisp.org>
86403         Mark 'strpbrk' obsolete.
86404         * modules/strpbrk (Status, Notice): New sections.
86405         * modules/strtok_r (Depends-on): Add strpbrk.
86407 2008-11-02  Bruno Haible  <bruno@clisp.org>
86409         Mark 'strdup' obsolete.
86410         * modules/strdup (Status, Notice): New sections.
86411         * modules/findprog (Depends-on): Add strdup.
86412         * modules/getaddrinfo (Depends-on): Likewise.
86413         * modules/localename (Depends-on): Likewise.
86414         * modules/relocatable-lib (Depends-on): Likewise.
86415         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86416         * modules/relocatable-prog (Depends-on): Likewise.
86417         * modules/trim (Depends-on): Likewise.
86418         * modules/unictype/gen-ctype (Depends-on): Likewise.
86419         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86421 2008-11-02  Bruno Haible  <bruno@clisp.org>
86423         Mark 'strcspn' obsolete.
86424         * modules/strcspn (Status, Notice): New sections.
86426 2008-11-02  Bruno Haible  <bruno@clisp.org>
86428         Mark 'rmdir' obsolete.
86429         * modules/rmdir (Status, Notice): New sections.
86430         * modules/clean-temp (Depends-on): Add rmdir.
86431         * modules/openat (Depends-on): Likewise.
86433 2008-11-02  Bruno Haible  <bruno@clisp.org>
86435         Mark 'raise' obsolete.
86436         * modules/raise (Status, Notice): New sections.
86437         (Include): Specify <signal.h>.
86438         * modules/stdio (Depends-on): Add raise.
86439         * modules/write (Depends-on): Likewise.
86441 2008-11-02  Bruno Haible  <bruno@clisp.org>
86443         Mark 'memset' obsolete.
86444         * modules/memset (Status, Notice): New sections.
86446 2008-11-02  Bruno Haible  <bruno@clisp.org>
86448         Mark 'memmove' obsolete.
86449         * modules/memmove (Status, Notice): New sections.
86450         * modules/argp (Depends-on): Add memmove.
86451         * modules/argz (Depends-on): Likewise.
86452         * modules/canonicalize (Depends-on): Likewise.
86453         * modules/canonicalize-lgpl (Depends-on): Likewise.
86454         * modules/fts (Depends-on): Likewise.
86455         * modules/getcwd (Depends-on): Likewise.
86456         * modules/human (Depends-on): Likewise.
86457         * modules/regex (Depends-on): Likewise.
86458         * modules/striconveh (Depends-on): Likewise.
86459         * modules/trim (Depends-on): Likewise.
86460         * modules/unistr/u8-move (Depends-on): Likewise.
86461         * modules/unistr/u16-move (Depends-on): Likewise.
86462         * modules/unistr/u32-move (Depends-on): Likewise.
86464 2008-11-02  Bruno Haible  <bruno@clisp.org>
86466         Mark 'memcpy' obsolete.
86467         * modules/memcpy (Status, Notice): New sections.
86469 2008-11-02  Bruno Haible  <bruno@clisp.org>
86471         Mark 'memcmp' obsolete.
86472         * modules/memcmp (Status, Notice): New sections.
86473         * modules/argmatch (Depends-on): Add memchr.
86474         * modules/backupfile (Depends-on): Likewise.
86475         * modules/c-strcasestr (Depends-on): Likewise.
86476         * modules/crypto/des (Depends-on): Likewise.
86477         * modules/csharpcomp (Depends-on): Likewise.
86478         * modules/fnmatch (Depends-on): Likewise.
86479         * modules/git-merge-changelog (Depends-on): Likewise.
86480         * modules/isnand (Depends-on): Likewise.
86481         * modules/isnand-nolibm (Depends-on): Likewise.
86482         * modules/isnanf (Depends-on): Likewise.
86483         * modules/isnanf-nolibm (Depends-on): Likewise.
86484         * modules/isnanl (Depends-on): Likewise.
86485         * modules/isnanl-nolibm (Depends-on): Likewise.
86486         * modules/mbchar (Depends-on): Likewise.
86487         * modules/memcoll (Depends-on): Likewise.
86488         * modules/quotearg (Depends-on): Likewise.
86489         * modules/regex (Depends-on): Likewise.
86490         * modules/relocatable-prog (Depends-on): Likewise.
86491         * modules/same (Depends-on): Likewise.
86492         * modules/signbit (Depends-on): Likewise.
86493         * modules/strcasestr-simple (Depends-on): Likewise.
86494         * modules/unictype/gen-ctype (Depends-on): Likewise.
86495         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86496         * modules/uniname/uniname (Depends-on): Likewise.
86497         * modules/unistr/u8-cmp (Depends-on): Likewise.
86499 2008-11-02  Bruno Haible  <bruno@clisp.org>
86501         Mark 'memchr' obsolete.
86502         * modules/memchr (Status, Notice): New sections.
86503         * modules/argp (Depends-on): Add memchr.
86504         * modules/base64 (Depends-on): Likewise.
86505         * modules/c-strcasestr (Depends-on): Likewise.
86506         * modules/chdir-long (Depends-on): Likewise.
86507         * modules/fnmatch (Depends-on): Likewise.
86508         * modules/getsubopt (Depends-on): Likewise.
86509         * modules/git-merge-changelog (Depends-on): Likewise.
86510         * modules/glob (Depends-on): Likewise.
86511         * modules/strcasestr-simple (Depends-on): Likewise.
86512         * modules/strnlen (Depends-on): Likewise.
86514 2008-11-02  Bruno Haible  <bruno@clisp.org>
86516         Mark 'atexit' obsolete.
86517         * modules/atexit (Status, Notice): New sections.
86518         * modules/chdir-long (Depends-on): Add atexit.
86519         * modules/wait-process (Depends-on): Likewise.
86521 2008-11-02  Bruno Haible  <bruno@clisp.org>
86523         * gnulib-tool: New option --with-obsolete.
86524         (func_usage): Document it.
86525         (func_modules_transitive_closure): Drop obsolete dependencies if
86526         incobsolete is not true.
86527         (func_import): Read and save the incobsolete variable to the cache.
86529 2008-11-02  Bruno Haible  <bruno@clisp.org>
86531         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86532         * gnulib-tool: New option --extract-status.
86533         (func_usage): Document it.
86534         (sed_extract_prog): Recognize it.
86535         (func_get_status): New function.
86537 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86539         * modules/sockets (License): Change from LGPL to LGPLv2+.
86541 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86543         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86547         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86548         Mention times and sys_times.
86549         * modules/sys_times, modules/sys_times-tests: New modules.
86550         * modules/times, modules/times-tests: Likewise
86551         * m4/sys_times_h.m4: New file.
86552         * lib/sys_times.in.h: Likewise
86553         * lib/times.c: Likewise.
86554         * tests/test-sys_times.c: Likewise.
86555         * tests/test-times.c: Likewise.
86556         * doc/posix-headers/sys_times.texi: Update.
86557         * doc/posix-functions/times.texi: Update.
86559 2008-10-28  Jim Meyering  <meyering@redhat.com>
86561         * modules/tempname (Depends-on): Add lstat.
86563         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86565 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86567         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86568         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86569         using idiom used elsewhere in gnulib.
86571 2008-10-27  Jim Meyering  <meyering@redhat.com>
86573         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86575 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86577         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86578         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86579         programs.
86580         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86584         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86586 2008-10-27  Bruno Haible  <bruno@clisp.org>
86588         * tests/test-lstat.c: Include <stdio.h>.
86590 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86592         * modules/lstat-tests: New module.
86593         * tests/test-lstat.c: New file.
86595 2008-10-26  Jim Meyering  <meyering@redhat.com>
86597         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86600             Bruno Haible  <bruno@clisp.org>
86602         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86603         * modules/configmake (Include): Add a note that the include must come
86604         after all system headers.
86605         * lib/javaversion.c: Include configmake.h after all other includes.
86607 2008-10-26  Bruno Haible  <bruno@clisp.org>
86609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86610         HAVE_STRUCT_RANDOM_DATA to 1.
86611         (gl_STDLIB_H): Simplify.
86613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86615         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86616         substitute HAVE_STRUCT_RANDOM_DATA.
86617         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86618         random_data.
86619         * modules/stdlib (Makefile.am): Substitute
86620         HAVE_STRUCT_RANDOM_DATA.
86622 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86624         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86625         * doc/gnulib-intro.texi (Copyright): Likewise.
86627 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86629         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86630         findings.
86632 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86633             Bruno Haible  <bruno@clisp.org>
86635         * lib/unistd.in.h: Include <winsock2.h>.
86636         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86637         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86638         Provide dummy declarations.
86639         (gethostname): Override.
86640         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86642         gl_PREREQ_SYS_H_WINSOCK2.
86643         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86644         * doc/posix-functions/gethostname.texi: More details.
86646 2008-10-25  Bruno Haible  <bruno@clisp.org>
86648         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86649         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86650         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86652         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86653         here ...
86654         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86655         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86656         gl_UNISTD_H_DEFAULTS.
86658 2008-10-25  Eric Blake  <ebb9@byu.net>
86660         signbit: avoid spurious compiler failure
86661         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86662         declarations inside function.
86664 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86665             Bruno Haible  <bruno@clisp.org>
86667         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86668         * modules/random_r (Depends-on): Add stdint.
86670 2008-10-24  Bruno Haible  <bruno@clisp.org>
86672         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86673         Eggert.
86674         * modules/strerror (License): Likewise.
86676 2008-10-24  Jim Meyering  <meyering@redhat.com>
86678         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86679         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86681 2008-10-24  Eric Blake  <ebb9@byu.net>
86683         getgroups: fix compilation when getgroups is available
86684         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86685         but with <config.h> override of getgroups disabled.
86687 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86689         * doc/gnulib.texi (Header files): Add note about C++ problems.
86690         Explained by Bruno Haible <bruno@clisp.org>.
86692 2008-10-23  Bruno Haible  <bruno@clisp.org>
86694         Define a dummy SA_NODEFER macro on Interix.
86695         * lib/signal.in.h (SA_NODEFER): Define fallback.
86696         Reported by Aleksey Cheusov <cheusov@tut.by> via
86697         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86699 2008-10-23  Bruno Haible  <bruno@clisp.org>
86701         * modules/freadahead (License): Change to LGPLv2+.
86702         Suggested by Simon Josefsson.
86704 2008-10-23  Jim Meyering  <meyering@redhat.com>
86706         random_r: new module
86707         * modules/random_r: New file.
86708         * m4/random_r.m4: New file.
86709         * lib/random_r.c: New file, from glibc.
86710         * modules/random_r-tests: New file.
86711         * tests/test-random_r.c: New file.
86712         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86713          Declare.
86714         (RAND_MAX): Define.
86715         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86716         * modules/stdlib: Substitute them, too.
86717         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86718         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86719         * doc/glibc-functions/random_r.texi: Likewise.
86720         * doc/glibc-functions/setstate_r.texi: Likewise.
86721         * doc/glibc-functions/srandom_r.texi: Likewise.
86722         * config/srclist.txt: Mention it.
86724 2008-10-23  David Lutterkort  <lutter@redhat.com>
86726         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86727         link requirement
86729 2008-10-23  Jim Meyering  <meyering@redhat.com>
86731         selinux-h: mark parameters of stub functions as intentionally unused
86732         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86733         * lib/se-context.in.h: Likewise.
86735 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86737         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86739 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86741         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86743 2008-10-22  Eric Blake  <ebb9@byu.net>
86745         glthread/thread: avoid compiler warning
86746         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86747         Add unreachable abort to silence compiler.
86749 2008-10-22  Eric Blake  <ebb9@byu.net>
86751         netdb: also supply struct addrinfo for cygwin 1.5.x
86752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86753         older cygwin.
86754         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86755         cygwin.
86756         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86758 2008-10-22  Bruno Haible  <bruno@clisp.org>
86760         * users.txt: Update entry about pspp.
86762 2008-10-21  Bruno Haible  <bruno@clisp.org>
86764         Simplification.
86765         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86766         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86768         Simplification.
86769         * lib/ioctl.c (ioctl): Don't undefine.
86770         * lib/socket.c (socket): Don't undefine.
86772         Remove unused module indicator macros.
86773         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86774         GNULIB_$1 as a C macro.
86776         * doc/posix-functions/close.texi: Undo last change.
86777         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86778         Windows platforms.
86780 2008-10-21  Bruno Haible  <bruno@clisp.org>
86782         Add gethostname() declaration to <unistd.h>.
86783         * lib/unistd.in.h (gethostname): New declaration.
86784         * lib/gethostname.c: Include <unistd.h>.
86785         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86786         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86788         and HAVE_GETHOSTNAME.
86789         * modules/gethostname (Depends-on): Add unistd.
86790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86791         (Include): Specify <unistd.h>.
86792         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
86793         HAVE_GETHOSTNAME.
86794         * tests/test-gethostname.c: Include <unistd.h> first.
86796 2008-10-21  Bruno Haible  <bruno@clisp.org>
86798         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
86799         * modules/select-tests (Depends-on): Likewise.
86800         Reported by Simon Josefsson.
86802 2008-10-21  Simon Josefsson  <simon@josefsson.org>
86804         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
86805         * lib/accept.c: New file, based on winsock.c.
86806         * lib/bind.c: New file, based on winsock.c.
86807         * lib/connect.c: New file, based on winsock.c.
86808         * lib/getpeername.c: New file, based on winsock.c.
86809         * lib/getsockname.c: New file, based on winsock.c.
86810         * lib/getsockopt.c: New file, based on winsock.c.
86811         * lib/ioctl.c: New file, based on winsock.c.
86812         * lib/listen.c: New file, based on winsock.c.
86813         * lib/recv.c: New file, based on winsock.c.
86814         * lib/recvfrom.c: New file, based on winsock.c.
86815         * lib/send.c: New file, based on winsock.c.
86816         * lib/sendto.c: New file, based on winsock.c.
86817         * lib/setsockopt.c: New file, based on winsock.c.
86818         * lib/shutdown.c: New file, based on winsock.c.
86819         * lib/socket.c: New file, based on winsock.c.
86820         * lib/w32sock.h: New file, based on winsock.c.
86821         * lib/winsock.c: Remove file.
86822         * modules/accept: Likewise.
86823         * modules/bind: Likewise.
86824         * modules/connect: Likewise.
86825         * modules/getpeername: Likewise.
86826         * modules/getsockname: Likewise.
86827         * modules/getsockopt: Likewise.
86828         * modules/ioctl: Likewise.
86829         * modules/listen: Likewise.
86830         * modules/recv: Likewise.
86831         * modules/recvfrom: Likewise.
86832         * modules/send: Likewise.
86833         * modules/sendto: Likewise.
86834         * modules/setsockopt: Likewise.
86835         * modules/shutdown: Likewise.
86836         * modules/socket: Use socket.c instead of winsock.c.
86837         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86838         * doc/posix-functions/accept.texi: Doc fix.
86839         * doc/posix-functions/bind.texi: Doc fix.
86840         * doc/posix-functions/close.texi: Doc fix.
86841         * doc/posix-functions/connect.texi: Doc fix.
86842         * doc/posix-functions/getpeername.texi: Doc fix.
86843         * doc/posix-functions/getsockname.texi: Doc fix.
86844         * doc/posix-functions/getsockopt.texi: Doc fix.
86845         * doc/posix-functions/ioctl.texi: Doc fix.
86846         * doc/posix-functions/listen.texi: Doc fix.
86847         * doc/posix-functions/recv.texi: Doc fix.
86848         * doc/posix-functions/recvfrom.texi: Doc fix.
86849         * doc/posix-functions/send.texi: Doc fix.
86850         * doc/posix-functions/sendto.texi: Doc fix.
86851         * doc/posix-functions/setsockopt.texi: Doc fix.
86852         * doc/posix-functions/shutdown.texi: Doc fix.
86853         * doc/posix-functions/socket.texi: Doc fix.
86855 2008-10-20  Bruno Haible  <bruno@clisp.org>
86857         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86858         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86859         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86860         as an alias for SIGABRT.
86861         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86862         (sigaction): Map it to SIGABRT.
86863         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86865 2008-10-20  Bruno Haible  <bruno@clisp.org>
86867         * lib/fts.c: Don't include lstat.h.
86868         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86870         Move the lstat() declaration to <sys/stat.h>.
86871         * lib/lstat.h: Remove file.
86872         * lib/sys_stat.in.h: Add special invocation convention.
86873         (lstat): New declaration.
86874         * lib/lstat.c (orig_lstat): New function.
86875         (rpl_lstat): Use orig_lstat instead of lstat.
86876         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86877         AC_C_INLINE. Set REPLACE_LSTAT.
86878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86879         and REPLACE_LSTAT.
86880         * modules/lstat (Files): Remove lib/lstat.h.
86881         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86882         (Include): Specify <sys/stat.h> instead of lstat.h.
86883         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86884         REPLACE_LSTAT.
86885         * NEWS: Mention the change.
86887 2008-10-20  Bruno Haible  <bruno@clisp.org>
86889         * modules/posix_spawn-tests: New file.
86890         * tests/test-posix_spawn3.c: New file.
86892 2008-10-20  Bruno Haible  <bruno@clisp.org>
86894         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86895         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86896         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86897         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86898         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86900 2008-10-20  Bruno Haible  <bruno@clisp.org>
86902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86903         of posix_spawn on AIX 5.3.
86905 2008-10-20  Bruno Haible  <bruno@clisp.org>
86907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86909 2008-10-20  Bruno Haible  <bruno@clisp.org>
86911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86912         of AC_LANG_PROGRAM.
86914 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86916         * lib/netdb.in.h: Don't define GNU specific constants until they
86917         are supported or needed.  Reported by Bruno Haible
86918         <bruno@clisp.org>.
86920 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86922         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86924 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86926         * lib/getaddrinfo.h: Remove file.
86927         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86928         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86929         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86930         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86931         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86932         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86933         * tests/test-getaddrinfo.c: Likewise.
86934         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86935         * NEWS: Mention change.
86937 2008-10-19  Bruno Haible  <bruno@clisp.org>
86939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86941 2008-10-19  Bruno Haible  <bruno@clisp.org>
86943         * lib/wait-process.c: Include simply <sys/wait.h>.
86944         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86945         WIFSTOPPED): Remove fallback definitions.
86946         * modules/wait-process (Depends-on): Add sys_wait.
86948         New module 'sys_wait'.
86949         * modules/sys_wait: New file.
86950         * lib/sys_wait.in.h: New file, partially copied from
86951         lib/wait-process.c.
86952         * m4/sys_wait_h.m4: New file.
86953         * doc/posix-headers/sys_wait.texi: Mention the new module.
86955 2008-10-19  Bruno Haible  <bruno@clisp.org>
86957         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86959 2008-10-19  Bruno Haible  <bruno@clisp.org>
86961         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86962         * lib/wait-process.c (WAIT_T): Remove type.
86963         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86964         (wait_subprocess): Update.
86966 2008-10-19  Bruno Haible  <bruno@clisp.org>
86968         New module 'atoll'.
86969         * modules/atoll: New file.
86970         * lib/stdlib.in.h (atoll): New declaration.
86971         * lib/atoll.c: New file, from glibc with modifications.
86972         * m4/atoll.m4: New file.
86973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86974         HAVE_ATOLL.
86975         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86976         * doc/posix-functions/atoll.texi: Mention the new module.
86978 2008-10-19  Bruno Haible  <bruno@clisp.org>
86980         Add strtoull() declaration to <stdlib.h>.
86981         * lib/stdlib.in.h (strtoull): New declaration.
86982         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86983         Set HAVE_STRTOULL.
86984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86985         HAVE_STRTOULL.
86986         * modules/strtoull (Depends-on): Add stdlib.
86987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86988         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86989         HAVE_STRTOULL.
86991 2008-10-19  Bruno Haible  <bruno@clisp.org>
86993         Add strtoll() declaration to <stdlib.h>.
86994         * lib/stdlib.in.h (strtoll): New declaration.
86995         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86996         Set HAVE_STRTOLL.
86997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86998         HAVE_STRTOLL.
86999         * modules/strtoll (Depends-on): Add stdlib.
87000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87001         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
87003 2008-10-19  Bruno Haible  <bruno@clisp.org>
87005         * modules/bcopy (Depends-on): Add strings.
87006         (Include): Specify <strings.h>.
87008 2008-10-19  Bruno Haible  <bruno@clisp.org>
87010         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
87012 2008-10-19  Bruno Haible  <bruno@clisp.org>
87014         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
87015         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
87016         mingw.
87018 2008-10-19  Bruno Haible  <bruno@clisp.org>
87020         * lib/atanl.c: Don't include isnanl.h.
87021         * lib/cosl.c: Likewise.
87022         * lib/ldexpl.c: Likewise.
87023         * lib/logl.c: Likewise.
87024         * lib/sinl.c: Likewise.
87025         * lib/sqrtl.c: Likewise.
87026         * lib/tanl.c: Likewise.
87028         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
87029         * lib/isnanf.h: Remove file.
87030         * lib/isnand.h: Remove file.
87031         * lib/isnanl.h: Remove file.
87032         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
87033         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
87034         macros.
87035         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
87036         HAVE_ISNANF, don't define it as a C macro.
87037         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
87038         HAVE_ISNAND, don't define it as a C macro.
87039         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
87040         HAVE_ISNANL, don't define it as a C macro.
87041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
87042         HAVE_ISNAN[FDL].
87043         * modules/isnanf (Files): Remove lib/isnanf.h.
87044         (Depends-on): Add math.
87045         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87046         (Include): Specify <math.h> instead of isnanf.h.
87047         * modules/isnand (Files): Remove lib/isnand.h.
87048         (Depends-on): Add math.
87049         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87050         (Include): Specify <math.h> instead of isnand.h.
87051         * modules/isnanl (Files): Remove lib/isnanl.h.
87052         (Depends-on): Add math.
87053         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87054         (Include): Specify <math.h> instead of isnanl.h.
87055         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
87056         HAVE_ISNAN[FDL].
87057         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
87058         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
87059         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
87060         * NEWS: Mention the change.
87062 2008-10-18  Bruno Haible  <bruno@clisp.org>
87064         Add getusershell(), setusershell(), endusershell() declarations to
87065         <unistd.h>.
87066         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
87067         declarations.
87068         * lib/getusershell.c: Include unistd.h.
87069         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
87070         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87071         HAVE_GETUSERSHELL.
87072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
87073         and HAVE_GETUSERSHELL.
87074         * modules/getusershell (Depends-on): Add unistd, extensions.
87075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87076         (Include): Specify <unistd.h>.
87077         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
87078         HAVE_GETUSERSHELL.
87080 2008-10-18  Bruno Haible  <bruno@clisp.org>
87082         Add a getloadavg() declaration to <stdlib.h>.
87083         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
87084         getloadavg declaration.
87085         (getloadavg): New declaration.
87086         * lib/getloadavg.c: Include <stdlib.h> first.
87087         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
87088         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
87089         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
87090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
87091         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87092         * modules/getloadavg (Depends-on): Add stdlib, extensions.
87093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87094         (Include): Specify <stdlib.h>.
87095         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
87096         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87098 2008-10-18  Bruno Haible  <bruno@clisp.org>
87100         * lib/dirchownmod.c: Don't include lchmod.h.
87102         Move the lchmod() declaration to <sys/stat.h>.
87103         * lib/lchmod.h: Remove file.
87104         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
87105         (lchmod): New declaration, moved here from lib/lchown.h.
87106         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
87107         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
87108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
87109         and HAVE_LCHMOD.
87110         * modules/lchmod (Files): Remove lib/lchmod.h.
87111         (Depends-on): Add sys_stat, extensions.
87112         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87113         (Include): Specify <sys/stat.h> instead of lchmod.h.
87114         * modules/sys_stat (Depends-on): Add link-warning.
87115         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
87116         definition of GL_LINK_WARNING.
87117         * NEWS: Mention the change.
87119 2008-10-18  Bruno Haible  <bruno@clisp.org>
87121         * lib/fchdir.c: Don't include dirfd.h.
87122         * lib/fts.c: Likewise.
87123         * lib/getcwd.c: Likewise.
87124         * lib/glob.c: Likewise.
87126         Move the dirfd() declaration to <dirent.h>.
87127         * lib/dirfd.h: Remove file.
87128         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
87129         (dirfd): New declaration.
87130         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
87131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
87132         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
87133         HAVE_DECL_DIRFD.
87134         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
87135         HAVE_DECL_DIRFD.
87136         * modules/dirfd (Files): Remove lib/dirfd.h.
87137         (Depends-on): Add dirent, extensions.
87138         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
87139         (Include): Specify <dirent.h> instead of dirfd.h.
87140         * modules/dirent (Depends-on): Add link-warning.
87141         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
87142         definition of GL_LINK_WARNING.
87143         * NEWS: Mention the change.
87145 2008-10-18  Bruno Haible  <bruno@clisp.org>
87147         Move the euidaccess() declaration to <unistd.h>.
87148         * lib/euidaccess.h: Remove file.
87149         * lib/unistd.in.h (euidaccess): New declaration.
87150         * lib/euidaccess.c: Don't include euidaccess.h.
87151         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
87152         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
87153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
87154         and HAVE_EUIDACCESS.
87155         * modules/euidaccess (Files): Remove lib/euidaccess.h.
87156         (Depends-on): Add unistd.
87157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87158         (Include): Specify <unistd.h> instead of euidaccess.h.
87159         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
87160         HAVE_EUIDACCESS.
87161         * NEWS: Mention the change.
87163 2008-10-18  Bruno Haible  <bruno@clisp.org>
87165         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
87167         Move the getdomainname() declaration to <unistd.h>.
87168         * lib/getdomainname.h: Remove file.
87169         * lib/unistd.in.h (getdomainname): New declaration.
87170         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
87171         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
87172         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87173         HAVE_GETDOMAINNAME.
87174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87175         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
87176         * modules/getdomainname (Files): Remove lib/getdomainname.h.
87177         (Depends-on): Add unistd, extensions.
87178         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87179         (Includes): Specify <unistd.h> instead of getdomainname.h.
87180         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
87181         HAVE_GETDOMAINNAME.
87182         * NEWS: Mention the change.
87184 2008-10-18  Bruno Haible  <bruno@clisp.org>
87186         * modules/dirent: New file.
87187         * m4/dirent_h.m4: New file.
87188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
87189         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
87190         * modules/fchdir (Files): Remove lib/dirent.in.h.
87191         (Depends-on): Add dirent.
87192         (Makefile.am): Move rules to modules/dirent.
87193         * doc/posix-headers/dirent.texi: Mention the new module.
87195 2008-10-18  Bruno Haible  <bruno@clisp.org>
87197         Avoid -Wunused-parameter warnings in public gnulib header files.
87198         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
87199         macro.
87200         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
87202 2008-10-18  Bruno Haible  <bruno@clisp.org>
87204         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
87205         * doc/glibc-functions/error.texi: Mention the module 'error'.
87206         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
87207         * doc/glibc-functions/getdomainname.texi: Mention the module
87208         'getdomainname'.
87209         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
87210         * doc/glibc-functions/getpagesize.texi: Mention the module
87211         'getpagesize'.
87212         * doc/glibc-functions/getusershell.texi: Mention the module
87213         'getusershell'.
87214         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
87215         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
87216         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
87217         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
87218         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
87219         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
87220         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
87221         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
87222         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
87223         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
87224         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
87225         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
87226         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
87227         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
87229 2008-10-17  Bruno Haible  <bruno@clisp.org>
87231         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
87232         HP-UX and IRIX, use -0.0L.
87233         * tests/test-ceill.c (minus_zero): Likewise.
87234         * tests/test-floorl.c (minus_zero): Likewise.
87235         * tests/test-frexpl.c (minus_zero): Likewise.
87236         * tests/test-isnan.c (minus_zerol): Likewise.
87237         * tests/test-isnanl.h (minus_zero): Likewise.
87238         * tests/test-ldexpl.c (minus_zero): Likewise.
87239         * tests/test-roundl.c (minus_zero): Likewise.
87240         * tests/test-signbit.c (minus_zerol): Likewise.
87241         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87242         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87243         * tests/test-truncl.c (minus_zero): Likewise.
87244         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87245         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87246         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
87247         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87249 2008-10-17  Bruno Haible  <bruno@clisp.org>
87251         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
87252         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
87253         that it gets activated only for gcc >= 3.0.
87254         * lib/dirent.in.h: Likewise.
87255         * lib/errno.in.h: Likewise.
87256         * lib/fcntl.in.h: Likewise.
87257         * lib/float.in.h: Likewise.
87258         * lib/iconv.in.h: Likewise.
87259         * lib/inttypes.in.h: Likewise.
87260         * lib/locale.in.h: Likewise.
87261         * lib/math.in.h: Likewise.
87262         * lib/netdb.in.h: Likewise.
87263         * lib/netinet_in.in.h: Likewise.
87264         * lib/search.in.h: Likewise.
87265         * lib/signal.in.h: Likewise.
87266         * lib/spawn.in.h: Likewise.
87267         * lib/stdarg.in.h: Likewise.
87268         * lib/stdint.in.h: Likewise.
87269         * lib/stdio.in.h: Likewise.
87270         * lib/stdlib.in.h: Likewise.
87271         * lib/string.in.h: Likewise.
87272         * lib/strings.in.h: Likewise.
87273         * lib/sys_file.in.h: Likewise.
87274         * lib/sys_ioctl.in.h: Likewise.
87275         * lib/sys_select.in.h: Likewise.
87276         * lib/sys_socket.in.h: Likewise.
87277         * lib/sys_stat.in.h: Likewise.
87278         * lib/sys_time.in.h: Likewise.
87279         * lib/sysexits.in.h: Likewise.
87280         * lib/time.in.h: Likewise.
87281         * lib/unistd.in.h: Likewise.
87282         * lib/wchar.in.h: Likewise.
87283         * lib/wctype.in.h: Likewise.
87284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87286 2008-10-17  Jim Meyering  <meyering@redhat.com>
87288         ignore-value: don't depend on inline module
87289         * modules/ignore-value (Depends-on): Remove 'inline'.
87290         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
87291         Suggestion from Bruno Haible.
87293 2008-10-17  Bruno Haible  <bruno@clisp.org>
87295         New implementation of condition variables for Win32.
87296         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
87297         (gl_linked_waitqueue_t): New type.
87298         (gl_cond_t): Use it.
87299         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
87300         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
87301         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
87302         (glthread_cond_init_func, glthread_cond_wait_func,
87303         glthread_cond_timedwait_func, glthread_cond_signal_func,
87304         glthread_cond_broadcast_func, glthread_cond_destroy_func):
87305         Reimplemented on the basis of gl_linked_waitqueue_t.
87306         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
87307         gl_waitqueue_t.
87308         (gl_rwlock_t): Update.
87309         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
87311 2008-10-17  Simon Josefsson  <simon@josefsson.org>
87313         * modules/recvfrom (Depends-on): Add dependency on getpeername.
87314         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87316 2008-10-17  Jim Meyering  <meyering@redhat.com>
87318         ignore-value: new module
87319         * modules/ignore-value: New file.
87320         * lib/ignore-value.h: New file.
87321         * MODULES.html.sh (Compiler warning management): New section,
87322         just for this module.  More to come.
87324 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87326         open-safer.c: avoid 'signed and unsigned in conditional...' warning
87327         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
87328         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
87330 2008-10-16  Jim Meyering  <meyering@redhat.com>
87332         openat-die.c: avoid 'no previous prototype' warning
87333         * lib/openat-die.c: Include "openat.h".
87334         Reported by Reuben Thomas <rrt@sc3d.org>.
87336 2008-10-16  Simon Josefsson  <simon@josefsson.org>
87338         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
87339         * lib/netdb.in.h: Fix typo.
87340         Reported by Bruno Haible  <bruno@clisp.org>
87342         * lib/netdb.in.h: Include sys/socket.h for platforms without
87343         netdb.h, to get structures like hostent on MinGW.
87344         * modules/netdb (Depends-on): Add sys_socket.
87346 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87348         * modules/netdb, modules/netdb-tests: New file.
87349         * m4/netdb_h.m4: New file.
87350         * lib/netdb.in.h: Add, currently just an empty file pending
87351         definitions.
87352         * tests/test-netdb.c: New file.
87353         * doc/posix-headers/netdb.texi: Mention that we replace it if
87354         needed.
87355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87356         netdb.
87358 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87360         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
87361         with code.
87363 2008-10-13  Bruno Haible  <bruno@clisp.org>
87365         * lib/glthread/cond.c (glthread_cond_wait_func,
87366         glthread_cond_timedwait_func): Add a comment.
87368 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87370         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
87371         * tests/test-select.c: Likewise,
87373 2008-10-13  Bruno Haible  <bruno@clisp.org>
87375         * lib/glthread/cond.c (glthread_cond_wait_func,
87376         glthread_cond_timedwait_func): Fix variable name.
87377         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87379 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87381         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87383         struct sockaddr.sa_len.
87384         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87386 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87388         * build-aux/pmccabe2html: Add css and css_url parameters.
87390 2008-10-12  Bruno Haible  <bruno@clisp.org>
87392         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87393         calling aclx_get.
87394         Reported by Rainer Tammer <tammer@tammer.net>.
87396 2008-10-12  Bruno Haible  <bruno@clisp.org>
87398         Use msvcrt aware primitives for creation/termination of Win32 threads.
87399         * lib/glthread/thread.c: Include <process.h>.
87400         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87401         (wrapper_func): Update signature.
87402         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87404 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87405             Bruno Haible  <bruno@clisp.org>
87407         Provide a Win32 implementation of the 'cond' module.
87408         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87409         * lib/glthread/cond.c (glthread_cond_init_func,
87410         glthread_cond_wait_func, glthread_cond_timedwait_func,
87411         glthread_cond_signal_func, glthread_cond_broadcast_func,
87412         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87413         * modules/cond (Dependencies): Add gettimeofday.
87415 2008-10-11  Bruno Haible  <bruno@clisp.org>
87417         Make sleep work on older versions of mingw.
87418         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87419         only whether it exists.
87420         * doc/posix-functions/sleep.texi: Mention the problem with older
87421         versions of mingw.
87423 2008-10-11  Bruno Haible  <bruno@clisp.org>
87425         New module 'shutdown'.
87426         * modules/shutdown: New file.
87427         * lib/sys_socket.in.h (shutdown): New declaration.
87428         * lib/winsock.c (shutdown): New function.
87429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87430         GNULIB_SHUTDOWN.
87431         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87432         * doc/posix-functions/shutdown.texi: Document the new module.
87434 2008-10-11  Jim Meyering  <meyering@redhat.com>
87436         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87438 2008-10-11  Bruno Haible  <bruno@clisp.org>
87440         New module 'fclose'.
87441         * modules/fclose: New file.
87442         * lib/stdio.in.h (fclose): New declaration.
87443         * lib/fclose.c: New file.
87444         * m4/fclose.m4: New file.
87445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87446         REPLACE_FCLOSE.
87447         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87448         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87449         REPLACE_FCLOSE.
87450         * modules/close (Depends-on): fclose.
87451         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87453 2008-10-11  Bruno Haible  <bruno@clisp.org>
87455         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87456         set errno and don't call _close.
87458 2008-10-10  Bruno Haible  <bruno@clisp.org>
87460         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87461         ACL, not afterwards. Fixes test failure on Cygwin.
87463 2008-10-09  Ben Pfaff  <blp@gnu.org>
87465         * build-aux/announce-gen: Fix gnulib version related part of usage
87466         message.  Die with a useful error message if no tarballs are
87467         found.
87469 2008-10-10  Jim Meyering  <meyering@redhat.com>
87471         bootstrap: use git's --depth=N option only if it's supported
87472         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87473         recognize the --depth option.  Reported by Pádraig Brady.
87475 2008-10-09  Bruno Haible  <bruno@clisp.org>
87477         New module 'ioctl'.
87478         * modules/ioctl: New file.
87479         * lib/sys_socket.in.h (ioctl): Remove declaration.
87480         * lib/winsock.c: Include <sys/ioctl.h>.
87481         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87482         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87483         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87484         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87485         * doc/posix-functions/ioctl.texi: Mention the new module.
87487 2008-10-09  Bruno Haible  <bruno@clisp.org>
87489         New module 'sys_ioctl'.
87490         * lib/sys_ioctl.in.h: New file.
87491         * m4/sys_ioctl_h.m4: New file.
87492         * modules/sys_ioctl: New file.
87493         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87495 2008-10-09  Bruno Haible  <bruno@clisp.org>
87497         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87498         * lib/winsock.c: Include <stdarg.h>.
87499         (rpl_ioctl): Change to second argument 'int' and then varargs.
87501 2008-10-09  Bruno Haible  <bruno@clisp.org>
87503         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87504         when the sys_socket module is present and the system has <winsock2.h>.
87506 2008-10-09  Bruno Haible  <bruno@clisp.org>
87508         * doc/posix-functions/close.texi: Mention module 'close' instead of
87509         module 'sys_socket'.
87511 2008-10-09  Bruno Haible  <bruno@clisp.org>
87513         * doc/glibc-headers/sys_ioctl.texi: New file.
87514         * doc/gnulib.texi: Include it.
87516 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87517             Bruno Haible  <bruno@clisp.org>
87519         Combine the two replacements of 'close'.
87520         * lib/sys_socket.in.h (close): Define to a reminder to include
87521         <unistd.h>.
87522         (_gl_close_fd_maybe_socket): New declaration.
87523         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87524         * lib/winsock.c (close): Remove undefinition.
87525         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87526         needed for the gnulib module 'close'.
87527         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87528         define to an error symbol or to a warning, if suitable.
87529         * lib/close.c: Include <sys/socket.h>.
87530         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87531         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87532         UNISTD_H_HAVE_WINSOCK2_H.
87533         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87535         UNISTD_H_HAVE_WINSOCK2_H.
87536         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87537         (configure.ac): Set a module indicator.
87538         (Makefile.am): Substitute GNULIB_CLOSE.
87539         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87540         * modules/poll-tests (Depends-on): Add close.
87541         * modules/select-tests (Depends-on): Likewise.
87543 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87544             Bruno Haible  <bruno@clisp.org>
87546         New module 'close'.
87547         * modules/close: New file.
87548         * lib/unistd.in.h (close): Move declaration out of the
87549         FCHDIR_REPLACEMENT scope.
87550         (_gl_unregister_fd): New declaration.
87551         * lib/close.c: New file.
87552         * lib/fchdir.c (rpl_close): Remove function.
87553         * m4/close.m4: New file.
87554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87555         close.
87556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87557         REPLACE_CLOSE.
87558         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87559         REPLACE_CLOSE.
87560         * modules/fchdir (Depends-on): Add close.
87562 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87563             Bruno Haible  <bruno@clisp.org>
87565         * lib/fcntl.in.h (open): Simplify conditionals.
87566         (_gl_register_fd): New declaration.
87567         * lib/fchdir.c (rpl_open): Remove function.
87568         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87569         also.
87570         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87572         open.
87574 2008-10-09  Jim Meyering  <meyering@redhat.com>
87576         GNUmakefile: use the more name-space-friendly "_version"
87577         * top/GNUmakefile (_dummy): Update.
87578         (_version): Rename from "version".
87580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87581             Bruno Haible  <bruno@clisp.org>
87583         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87584         rpl_close.
87585         (_gl_register_fd): New function, extracted from rpl_open.
87586         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87587         (rpl_open, rpl_opendir): Use _gl_register_fd.
87589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87591         Fix organization of 'open' replacement.
87592         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87593         (gl_FUNC_OPEN): Use it.
87594         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87596 2008-10-08  Bruno Haible  <bruno@clisp.org>
87598         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87600 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87602         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87603         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87604         listen).
87606 2008-10-08  Eric Blake  <ebb9@byu.net>
87608         GNUmakefile: add 'make version' target
87609         * top/GNUmakefile (_curr-ver): Split version update rules...
87610         (version): ...into a target.
87612 2008-10-07  Bruno Haible  <bruno@clisp.org>
87614         Use a more portable replacement expression for -0.0L.
87615         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87616         instead of -0.0L. Fix m4 quotation.
87618         * tests/test-signbit.c: Include <float.h>.
87619         (minus_zero): New variable.
87620         (test_signbitl): Use minus_zero instead of -zero.
87621         * modules/signbit-tests (Depends-on): Add float.
87623         * tests/test-ceill.c: Include <float.h>.
87624         (zero): Remove variable.
87625         (minus_zero): New variable.
87626         (main): Use minus_zero instead of -zero.
87627         * modules/ceill-tests (Depends-on): Add float.
87629         * tests/test-floorl.c: Include <float.h>.
87630         (zero): Remove variable.
87631         (minus_zero): New variable.
87632         (main): Use minus_zero instead of -zero.
87633         * modules/floorl-tests (Depends-on): Add float.
87635         * tests/test-roundl.c: Include <float.h>.
87636         (zero): Remove variable.
87637         (minus_zero): New variable.
87638         (main): Use minus_zero instead of -zero.
87639         * modules/roundl-tests (Depends-on): Add float.
87641         * tests/test-truncl.c: Include <float.h>.
87642         (zero): Remove variable.
87643         (minus_zero): New variable.
87644         (main): Use minus_zero instead of -zero.
87645         * modules/truncl-tests (Depends-on): Add float.
87647         * tests/test-frexpl.c (zero): Remove variable.
87648         (minus_zero): New variable.
87649         (main): Use minus_zero instead of -zero.
87650         * modules/frexpl-tests (Depends-on): Add float.
87652         * tests/test-isnan.c (zerol): Remove variable.
87653         (minus_zerol): New variable.
87654         (test_long_double): Use minus_zerol instead of -zerol.
87655         * modules/isnan-tests (Depends-on): Add float.
87657         * tests/test-isnanl.h (zero): Remove variable.
87658         (minus_zero): New variable.
87659         (main): Use minus_zero instead of -zero.
87660         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87661         * modules/isnanl-tests (Depends-on): Add float.
87663         * tests/test-ldexpl.c (zero): Remove variable.
87664         (minus_zero): New variable.
87665         (main): Use minus_zero instead of -zero.
87666         * modules/ldexpl-tests (Depends-on): Add float.
87668         * tests/test-snprintf-posix.h (zerol): Remove variable.
87669         (minus_zerol): New variable.
87670         (test_function): Use minus_zerol instead of -zerol.
87671         * modules/snprintf-posix-tests (Depends-on): Add float.
87672         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87674         * tests/test-sprintf-posix.h (zerol): Remove variable.
87675         (minus_zerol): New variable.
87676         (test_function): Use minus_zerol instead of -zerol.
87677         * modules/sprintf-posix-tests (Depends-on): Add float.
87678         * modules/vsprintf-posix-tests (Depends-on): Add float.
87680         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87681         (minus_zerol): New variable.
87682         (test_function): Use minus_zerol instead of -zerol.
87683         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87685         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87686         (minus_zerol): New variable.
87687         (test_function): Use minus_zerol instead of -zerol.
87688         * modules/vasprintf-posix-tests (Depends-on): Add float.
87690 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87692         * MODULES.html.sh (Support for building documentation): Mention
87693         pmccabe2html.  Sort entries.
87695         Add pmccabe2html module, from gnupdf.
87696         * build-aux/pmccabe.css: New file.
87697         * build-aux/pmccabe2html: New file.
87698         * m4/pmccabe2html.m4: New file.
87699         * modules/pmccabe2html: New file.
87701 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87703         flock: new module
87704         * MODULES.html.sh: Add to list of modules.
87705         * lib/flock.c: flock implementation for Windows and Unix systems
87706         which have fcntl.
87707         * doc/glibc-functions/flock.texi: Update documentation.
87708         * lib/sys_file.in.h: <sys/file.h> header file.
87709         * m4/flock.m4: M4 macros.
87710         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87711         * modules/flock: flock module.
87712         * modules/flock-tests: flock tests module.
87713         * modules/sys_file: sys/file.h module.
87714         * tests/test-flock.c: test suite for flock.
87716 2008-10-06  Jim Meyering  <meyering@redhat.com>
87718         bootstrap: check for LT_INIT more portably still ;-)
87719         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87720         Spotted by Bruno Haible.
87722 2008-10-06  Eric Blake  <ebb9@byu.net>
87724         test-signbit: avoid tripping Irix cc bug on -0.0L
87725         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87726         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87727         entire testsuite consistent and avoids an Irix 6.2 bug.
87729 2008-10-05  Bruno Haible  <bruno@clisp.org>
87730             Jim Meyering  <jim@meyering.net>
87732         Add an option for ignoring EPIPE during close_stdout.
87733         * lib/closeout.h: Include <stdbool.h>.
87734         (close_stdout_set_ignore_EPIPE): New declaration.
87735         * lib/closeout.c: Include <stdbool.h>.
87736         (ignore_EPIPE): New variable.
87737         (close_stdout_set_ignore_EPIPE): New function.
87738         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87739         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87740         failure.
87741         * modules/closeout (Depends-on): Add stdbool.
87743 2008-10-05  Bruno Haible  <bruno@clisp.org>
87745         * modules/accept: New file.
87746         * modules/bind: New file.
87747         * modules/connect: New file.
87748         * modules/getpeername: New file.
87749         * modules/getsockname: New file.
87750         * modules/getsockopt: New file.
87751         * modules/listen: New file.
87752         * modules/recv: New file.
87753         * modules/recvfrom: New file.
87754         * modules/send: New file.
87755         * modules/sendto: New file.
87756         * modules/setsockopt: New file.
87757         * modules/socket: New file.
87758         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87759         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87760         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87761         the particular module is requested. Add a link warning when the
87762         particular module is not requested.
87763         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87764         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87765         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87766         the particular module is requested.
87767         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87768         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87769         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87770         * modules/sys_socket (Depends-on): Add link-warning.
87771         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87772         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87773         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87774         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87775         GL_LINK_WARNING.
87776         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87777         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87778         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87779         * doc/posix-functions/getpeername.texi: Mention the new module
87780         'getpeername'.
87781         * doc/posix-functions/getsockname.texi: Mention the new module
87782         'getsockname'.
87783         * doc/posix-functions/getsockopt.texi: Mention the new module
87784         'getsockopt'.
87785         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87786         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87787         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87788         * doc/posix-functions/send.texi: Mention the new module 'send'.
87789         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87790         * doc/posix-functions/setsockopt.texi: Mention the new module
87791         'setsockopt'.
87792         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
87793         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
87794         listen, connect, accept.
87795         * modules/select-tests (Depends-on): Likewise.
87797 2008-10-05  Bruno Haible  <bruno@clisp.org>
87799         * lib/winsock.c (strerror): Remove unused #undef.
87800         (rpl_close): Remove unused local variable.
87802         * modules/sys_socket (Depends-on); Add errno.
87804 2008-10-05  Bruno Haible  <bruno@clisp.org>
87806         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
87807         (select): Add a link warning when the 'select' module is not used.
87808         * modules/sys_select (Depends-on): Add link-warning.
87809         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
87810         Suggested by Paolo Bonzini.
87812 2008-10-05  Jim Meyering  <meyering@redhat.com>
87814         bootstrap: check for LT_INIT more portably
87815         * build-aux/bootstrap: Avoid using grep -E, since it's not
87816         portable enough.  Suggestion from Bruno Haible.
87818 2008-10-05  Bruno Haible  <bruno@clisp.org>
87820         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87821         as being fixed by gnulib.
87823 2008-10-05  Bruno Haible  <bruno@clisp.org>
87825         * modules/select-tests: New file, mostly copied from
87826         modules/sys_select-tests.
87827         * tests/test-select.c: New file, mostly copied from
87828         tests/test-sys_select.c.
87829         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87830         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87831         (Makefile.am): Remove test_sys_select_LDADD.
87833         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87834         to an undefined symbol, for an error message.
87835         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87836         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87837         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87838         winsock-select.c here.
87839         * modules/sys_select (Files): Remove lib/winsock-select.c.
87840         (Depends-on): Remove alloca.
87841         (Makefile.am): Substitute GNULIB_SELECT.
87842         * modules/select: New file.
87843         * doc/posix-functions/select.texi: Update.
87845 2008-10-05  Bruno Haible  <bruno@clisp.org>
87847         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87848         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87849         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87850         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87851         getdtablesize.
87852         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87853         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87855 2008-10-05  Bruno Haible  <bruno@clisp.org>
87857         * modules/getdtablesize-tests: New file.
87858         * tests/test-getdtablesize.c: New file.
87860         New module 'getdtablesize'.
87861         * lib/unistd.in.h (getdtablesize): New declaration.
87862         * lib/getdtablesize.c: New file.
87863         * m4/getdtablesize.m4: New file.
87864         * modules/getdtablesize: New file.
87865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87866         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87867         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87868         HAVE_GETDTABLESIZE.
87869         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87871 2008-10-05  Bruno Haible  <bruno@clisp.org>
87873         * modules/sched (Makefile.am): Fix typo.
87874         Reported by Simon Josefsson.
87876 2008-10-05  Jim Meyering  <meyering@redhat.com>
87878         bootstrap: check for LT_INIT, too
87879         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87880         are deprecated.  Suggestion from Ralf Wildenhues.
87882 2008-10-05  Bruno Haible  <bruno@clisp.org>
87884         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87885         overriding them by ours.
87886         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87888 2008-10-05  Jim Meyering  <meyering@redhat.com>
87890         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87891         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87892         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87894 2008-10-04  Bruno Haible  <bruno@clisp.org>
87896         * modules/dup2 (License): Change to LGPLv2+.
87897         * modules/sleep (License): Likewise.
87898         * modules/perror (License): Likewise.
87899         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87900         Blake.
87901         * modules/signal (License): Likewise.
87902         * modules/sigprocmask (License): Likewise.
87903         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87904         Meyering.
87906 2008-10-04  Bruno Haible  <bruno@clisp.org>
87908         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87909         Reported by Rainer Tammer <tammer@tammer.net>.
87911 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87912             Bruno Haible  <bruno@clisp.org>
87914         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87915         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87916         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87918 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87920         filevercmp: new module
87921         * lib/filevercmp.h: New function filevercmp comparing version strings.
87922         * lib/filevercmp.c: Implementation of filevercmp function.
87923         * modules/filevercmp: Module metadata.
87924         * tests/test-filevercmp.c: Unit test for new module.
87925         * modules/filevercmp-tests: Unit test metadata.
87926         * MODULES.html.sh: Add filevercmp module.
87928 2008-10-03  Bruno Haible  <bruno@clisp.org>
87930         * lib/c-ctype.h: Add comment.
87931         Reported by Jim Meyering.
87933 2008-10-02  Bruno Haible  <bruno@clisp.org>
87935         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87937 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87939         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87940         name of bootstrap.conf accordingly.
87942 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87944         * build-aux/bootstrap: Install git-merge-changelog configuration
87945         items into .gitconfig if needed.
87947 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87949         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87950         git repository, and initialize/update it accordingly.
87952 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87954         * modules/fsync-tests: New file.
87955         * tests/test-fsync.c: New file.
87957         New module 'fsync'.
87958         * lib/fsync.c: New file.
87959         * m4/fsync.m4: New file.
87960         * modules/fsync: New file.
87961         * lib/unistd.in.h (fsync): New declaration.
87962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87963         GNULIB_FSYNC and HAVE_FSYNC.
87964         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87965         * MODULES.html.sh (posix_functions): Add fsync.
87966         * doc/posix-functions/fsync.texi: Mention the new module.
87968 2008-10-02  Jim Meyering  <meyering@redhat.com>
87970         fts.c: sync with similar code from coreutils' remove.c
87971         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87972         Guard also with "#if defined __linux__", since for now at least,
87973         this code is Linux-kernel-specific.
87975 2008-10-02  Jim Meyering  <meyering@redhat.com>
87977         fts: bug fixes
87978         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87979         Include <sys/vfs.h>, not <sys/statfs.h>.
87981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87982         Include <sys/vfs.h>, not <sys/statfs.h>.
87984 2008-10-01  Bruno Haible  <bruno@clisp.org>
87986         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87988         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87989         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87990         * doc/posix-functions/posix_spawnp.texi: Likewise.
87991         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87992         whether posix_spawn actually works.
87993         * m4/pipe.m4 (gl_PIPE): Likewise.
87994         * modules/execute (Files): Add m4/posix_spawn.m4.
87995         * modules/pipe (Files): Add m4/posix_spawn.m4.
87996         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87998 2008-10-01  Jim Meyering  <meyering@redhat.com>
88000         remove trailing spaces
88001         * NEWS: Likewise.
88002         * lib/poll.c (poll): Likewise.
88003         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
88004         * lib/winsock.c (rpl_close): Likewise.
88005         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
88006         * modules/yield: Likewise.
88007         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
88008         * tests/test-sys_select.c (connect_to_socket): Likewise.
88010         fts.c: adjust a new interface to be more generally useful
88011         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
88012         (fts_build): Adjust caller.
88014 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88016         * modules/cond-tests: New file.
88017         * tests/test-cond.c: New file.
88019 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88020             Bruno Haible  <bruno@clisp.org>
88022         * modules/cond (Dependencies): Add errno, time.
88023         * lib/glthread/cond.h: Include <time.h>.
88024         (gl_cond_define, gl_cond_define_initialized): Use the same definition
88025         across platforms.
88027 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88028             Bruno Haible  <bruno@clisp.org>
88030         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
88032 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88033             Bruno Haible  <bruno@clisp.org>
88035         * modules/tls-tests (Depends-on): Add thread, yield.
88036         (configure.ac): Remove all checks.
88037         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
88038         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88039         gl_thread_self): Remove definitions. Include glthread/thread.h and
88040         glthread/yield.h instead.
88041         (test_tls): Pass an additional NULL argument to gl_thread_join.
88043 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88044             Bruno Haible  <bruno@clisp.org>
88046         * modules/lock-tests (Depends-on): Add thread, yield.
88047         (configure.ac): Remove all checks.
88048         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
88049         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88050         gl_thread_self): Remove definitions. Include glthread/thread.h and
88051         glthread/yield.h instead.
88052         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
88053         additional NULL argument to gl_thread_join.
88055 2008-09-30  Bruno Haible  <bruno@clisp.org>
88057         Fix the Win32 implementation of the 'thread' module.
88058         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
88059         pointer type.
88060         (gl_thread_self): Invoke gl_thread_self_func.
88061         (gl_thread_self_func): New declaration.
88062         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
88063         (do_init_self_key, init_self_key): New functions.
88064         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
88065         Remove some fields.
88066         (running_threads, running_lock): Remove variables.
88067         (get_current_thread_handle): New function.
88068         (gl_thread_self_func, wrapper_func, glthread_create_func,
88069         glthread_join_func, gl_thread_exit_func): Largely rewritten and
88070         simplified.
88072 2008-09-30  Bruno Haible  <bruno@clisp.org>
88074         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
88075         files.
88077 2008-09-30  Jim Meyering  <meyering@redhat.com>
88079         fts.m4: correct the test for statfs.f_type
88080         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
88081         when checking for statfs.f_type.
88083 2008-09-15  Simon Josefsson  <simon@josefsson.org>
88085         tests: avoid some compiler warnings
88086         * tests/test-memchr.c (main): Pass NULL indirectly.
88087         * tests/test-getdate.c (main): Remove unused variable 'ret'.
88089 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
88091         getdate.y: disallow countable dayshifts like "4 yesterday ago"
88092         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
88093         exactly specified dayshifts.
88094         (dayshift): New rule.
88095         (rel): Add dayshift.
88096         (relative_time_table) [tomorrow, yesterday, today, now]:
88097         Use tDAY_SHIFT in place of tDAY_UNIT.
88098         * tests/test-getdate.c: Add tests for now-disallowed countable
88099         dayshifts, e.g., "4 yesterday ago".
88101 2008-09-29  Bruno Haible  <bruno@clisp.org>
88103         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
88104         * tests/test-posix_spawn1.in.sh: Renamed from
88105         tests/test-posix_spawn.in.sh.
88106         * tests/test-posix_spawn2.c: New file.
88107         * tests/test-posix_spawn2.in.sh: New file.
88108         * modules/posix_spawnp-tests (Files): Update.
88109         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
88111 2008-09-29  Bruno Haible  <bruno@clisp.org>
88113         Propagate effects of putenv/setenv/unsetenv to child processes.
88114         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
88115         * lib/pipe.c (create_pipe): Likewise.
88117 2008-09-29  Bruno Haible  <bruno@clisp.org>
88119         Enable use of shell scripts as executables in mingw.
88120         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
88121         run the program as a shell script.
88122         * lib/pipe.c (create_pipe): Likewise.
88123         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
88124         resulting array.
88126 2008-09-29  Eric Blake  <ebb9@byu.net>
88128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
88130 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
88132         * doc/posix-functions/accept.texi: Update mingw problems.
88133         * doc/posix-functions/bind.texi: Update mingw problems.
88134         * doc/posix-functions/close.texi: Update mingw problems.
88135         * doc/posix-functions/connect.texi: Update mingw problems.
88136         * doc/posix-functions/getpeername.texi: Update mingw problems.
88137         * doc/posix-functions/getsockname.texi: Update mingw problems.
88138         * doc/posix-functions/getsockopt.texi: Update mingw problems.
88139         * doc/posix-functions/ioctl.texi: Update mingw problems.
88140         * doc/posix-functions/listen.texi: Update mingw problems.
88141         * doc/posix-functions/recv.texi: Update mingw problems.
88142         * doc/posix-functions/recvfrom.texi: Update mingw problems.
88143         * doc/posix-functions/select.texi: Update mingw problems.
88144         * doc/posix-functions/send.texi: Update mingw problems.
88145         * doc/posix-functions/sendto.texi: Update mingw problems.
88146         * doc/posix-functions/setsockopt.texi: Update mingw problems.
88147         * doc/posix-functions/socket.texi: Update mingw problems.
88149 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
88150             Bruno Haible  <bruno@clisp.org>
88152         * lib/sys_select.in.h: Include sys/time.h.
88153         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
88154         * modules/sys_select: Depend on sys_time.
88155         * tests/test-sys_select.c: Test that sys/select.h defines struct
88156         timeval fully.
88158 2008-09-29  Bruno Haible  <bruno@clisp.org>
88160         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
88161         * lib/sys_select.in.h: Likewise.
88163 2008-09-29  Bruno Haible  <bruno@clisp.org>
88165         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
88167 2008-09-29  Bruno Haible  <bruno@clisp.org>
88169         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
88170         Set LIBSOCKET instead of augmenting LIBS.
88171         * modules/sockets (Link): New section.
88172         * modules/sockets-tests (test_sockets_LDADD): New variable.
88173         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
88174         * modules/poll-tests (test_poll_LDADD): New variable.
88175         * NEWS: Document the change.
88177 2008-09-29  Bruno Haible  <bruno@clisp.org>
88179         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
88180         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
88181         ARPA_INET_H directly.
88182         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88184 2008-09-28  Bruno Haible  <bruno@clisp.org>
88186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
88187         from gl_HEADER_SYS_SOCKET.
88188         (gl_HEADER_SYS_SOCKET): Invoke it.
88189         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
88191 2008-09-28  Bruno Haible  <bruno@clisp.org>
88193         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
88194         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
88195         Needed on OSF/1 4.0.
88197 2008-09-28  Bruno Haible  <bruno@clisp.org>
88199         Override open more carefully.
88200         * lib/open.c (orig_open): New function.
88201         (rpl_open): Use orig_open instead of open.
88202         * lib/fcntl.in.h: Add special invocation convention.
88203         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
88204         (gl_FUNC_OPEN): Invoke it.
88206         Override freopen more carefully.
88207         * lib/freopen.c (orig_freopen): New function.
88208         (rpl_freopen): Use orig_freopen instead of freopen.
88209         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
88210         (gl_FUNC_FREOPEN): Invoke it.
88212         Override fopen more carefully.
88213         * lib/fopen.c (orig_fopen): New function.
88214         (rpl_fopen): Use orig_fopen instead of fopen.
88215         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
88216         (gl_FUNC_FOPEN): Invoke it.
88217         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
88219 2008-09-28  Bruno Haible  <bruno@clisp.org>
88221         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
88222         SIGPIPE.
88224 2008-09-28  Bruno Haible  <bruno@clisp.org>
88226         * tests/test-sigaction.c (handler, main): Disable the check whether
88227         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
88228         glibc systems with LinuxThreads.
88230 2008-09-28  Bruno Haible  <bruno@clisp.org>
88232         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
88234         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
88235         with AIX xlc.
88236         * lib/fcntl.in.h (open): Likewise.
88237         Reported by Rainer Tammer <tammer@tammer.net>.
88239 2008-09-28  Bruno Haible  <bruno@clisp.org>
88241         * modules/posix_spawnp-tests: New file.
88242         * tests/test-posix_spawn.c: New file.
88243         * tests/test-posix_spawn.in.sh: New file.
88245         New module 'posix_spawnp'.
88246         * modules/posix_spawnp: New file.
88247         * lib/spawnp.c: New file, from GNU libc with modifications.
88248         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
88250         New module 'posix_spawn'.
88251         * modules/posix_spawn: New file.
88252         * lib/spawn.c: New file, from GNU libc with modifications.
88253         * doc/posix-functions/posix_spawn.texi: Mention the new module.
88255         New module 'posix_spawnattr_destroy'.
88256         * modules/posix_spawnattr_destroy: New file.
88257         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
88258         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
88259         module.
88261         New module 'posix_spawnattr_setsigmask'.
88262         * modules/posix_spawnattr_setsigmask: New file.
88263         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
88264         modifications.
88265         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
88266         new module.
88268         New module 'posix_spawnattr_getsigmask'.
88269         * modules/posix_spawnattr_getsigmask: New file.
88270         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
88271         modifications.
88272         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
88273         new module.
88275         New module 'posix_spawnattr_setsigdefault'.
88276         * modules/posix_spawnattr_setsigdefault: New file.
88277         * lib/spawnattr_setdefault.c: New file, from GNU libc with
88278         modifications.
88279         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
88280         new module.
88282         New module 'posix_spawnattr_getsigdefault'.
88283         * modules/posix_spawnattr_getsigdefault: New file.
88284         * lib/spawnattr_getdefault.c: New file, from GNU libc with
88285         modifications.
88286         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
88287         new module.
88289         New module 'posix_spawnattr_setschedpolicy'.
88290         * modules/posix_spawnattr_setschedpolicy: New file.
88291         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
88292         modifications.
88293         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
88294         new module.
88296         New module 'posix_spawnattr_getschedpolicy'.
88297         * modules/posix_spawnattr_getschedpolicy: New file.
88298         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
88299         modifications.
88300         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
88301         new module.
88303         New module 'posix_spawnattr_setschedparam'.
88304         * modules/posix_spawnattr_setschedparam: New file.
88305         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
88306         modifications.
88307         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
88308         new module.
88310         New module 'posix_spawnattr_getschedparam'.
88311         * modules/posix_spawnattr_getschedparam: New file.
88312         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
88313         modifications.
88314         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
88315         new module.
88317         New module 'posix_spawnattr_setpgroup'.
88318         * modules/posix_spawnattr_setpgroup: New file.
88319         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
88320         modifications.
88321         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
88322         module.
88324         New module 'posix_spawnattr_getpgroup'.
88325         * modules/posix_spawnattr_getpgroup: New file.
88326         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
88327         modifications.
88328         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
88329         module.
88331         New module 'posix_spawnattr_setflags'.
88332         * modules/posix_spawnattr_setflags: New file.
88333         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
88334         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
88335         module.
88337         New module 'posix_spawnattr_getflags'.
88338         * modules/posix_spawnattr_getflags: New file.
88339         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
88340         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
88341         module.
88343         New module 'posix_spawnattr_init'.
88344         * modules/posix_spawnattr_init: New file.
88345         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
88346         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
88347         module.
88349         New module 'posix_spawn_file_actions_destroy'.
88350         * modules/posix_spawn_file_actions_destroy: New file.
88351         * lib/spawn_faction_destroy.c: New file, from GNU libc with
88352         modifications.
88353         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
88354         the new module.
88356         New module 'posix_spawn_file_actions_addopen'.
88357         * modules/posix_spawn_file_actions_addopen: New file.
88358         * lib/spawn_faction_addopen.c: New file, from GNU libc with
88359         modifications.
88360         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
88361         the new module.
88363         New module 'posix_spawn_file_actions_adddup2'.
88364         * modules/posix_spawn_file_actions_adddup2: New file.
88365         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
88366         modifications.
88367         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
88368         the new module.
88370         New module 'posix_spawn_file_actions_addclose'.
88371         * modules/posix_spawn_file_actions_addclose: New file.
88372         * lib/spawn_faction_addclose.c: New file, from GNU libc with
88373         modifications.
88374         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
88375         the new module.
88377         New module 'posix_spawn_file_actions_init'.
88378         * modules/posix_spawn_file_actions_init: New file.
88379         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88380         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88381         new module.
88383         New module 'posix_spawn-internal'.
88384         * modules/posix_spawn-internal: New file.
88385         * lib/spawn_int.h: New file, from GNU libc with modifications.
88386         * lib/spawni.c: New file, from GNU libc with modifications.
88387         * m4/posix_spawn.m4: New file.
88389         New module 'spawn'.
88390         * modules/spawn: New file.
88391         * lib/spawn.in.h: New file, from GNU libc with modifications.
88392         * m4/spawn_h.m4: New file.
88393         * doc/posix-headers/spawn.texi: Mention the new module.
88395 2008-09-28  Bruno Haible  <bruno@clisp.org>
88397         * modules/sched-tests: New file.
88398         * tests/test-sched.c: New file.
88400         New module 'sched'.
88401         * modules/sched: New file.
88402         * lib/sched.in.h: New file.
88403         * m4/sched_h.m4: New file.
88404         * doc/posix-headers/sched.texi: Mention the new module.
88406 2008-09-27  Eric Blake  <ebb9@byu.net>
88408         Fix previous patch, and tweak references to $0.
88409         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88410         (func_version, func_gnulib_dir): Don't call this program
88411         gnulib-tool.
88412         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88413         with using $0 in function.
88414         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88415         (func_fatal_error): Reuse the name the user invoked us with.
88417 2008-09-27  Bruno Haible  <bruno@clisp.org>
88419         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88420         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88421         (gl_ICONV_H): Not here.
88422         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88423         instead of assigning ICONV_H directly.
88425         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88427         WCHAR_H directly.
88429 2008-09-27  Bruno Haible  <bruno@clisp.org>
88431         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88432         * modules/arpa_inet (Depends-on): Add link-warning.
88433         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88434         * modules/unistd (Makefile.am): Likewise.
88436 2008-09-26  Bruno Haible  <bruno@clisp.org>
88438         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88439         variables.
88440         (func_version): Essentially copied from gnulib-tool.
88441         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88442         func_readlink): Copied from gnulib-tool.
88444 2008-09-26  Bruno Haible  <bruno@clisp.org>
88446         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88447         invoking git-version-gen.
88449 2008-09-26  Bruno Haible  <bruno@clisp.org>
88451         * posix-modules: Update to directory names changed on 2008-01-19.
88452         Remove commas in output before splitting into words. No more need to
88453         avoid 'ftruncate' since 2007-02-19.
88455 2008-09-26  Bruno Haible  <bruno@clisp.org>
88457         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88459 2008-09-26  Bruno Haible  <bruno@clisp.org>
88461         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88462         * modules/fwriteerror (Depends-on): Add errno.
88464 2008-09-26  Bruno Haible  <bruno@clisp.org>
88466         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88467         * tests/test-vc-list-files-cvs.sh: Likewise.
88469 2008-09-26  Bruno Haible  <bruno@clisp.org>
88471         * doc/posix-headers/sys_resource.texi: Reorder items.
88473 2008-09-26  Jim Meyering  <meyering@redhat.com>
88475         fts: tweak inode comparison function
88476         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88477         inode numbers, as documented.
88479         fts: sort dirent entries on inode number before traversing
88480         This avoids a quadratic, seek-related performance penalty when
88481         operating on a directory containing many entries (measurable at 10k;
88482         3.5 hours at 2 million entries with a cold cache) on certain types
88483         of file systems, including ext3 and ext4, but not tmpfs.
88484         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88485         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88486         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88487         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88488         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88489         (fts_build): Set the stat.st_ino member from D_INO.
88490         If it is likely to be useful, sort dirent entries on inode number.
88492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88493         and the struct statfs.f_type member.
88494         * modules/fts (Depends-on): Add d-ino.
88496 2008-09-26  Bruno Haible  <bruno@clisp.org>
88498         * modules/sigpipe-die (Depends-on): Add sigpipe.
88500         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88501         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88502         and GNULIB_STDIO_H_SIGPIPE are set.
88503         * lib/stdio-write.c: New file.
88504         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88505         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88506         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88507         REPLACE_STDIO_WRITE_FUNCS.
88508         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88509         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88510         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88511         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88512         * modules/stdio (Files): Add lib/stdio-write.c.
88513         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88514         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88515         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88516         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88517         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88518         REPLACE_FPRINTF_POSIX.
88519         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88520         REPLACE_PRINTF_POSIX.
88521         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88522         REPLACE_VFPRINTF_POSIX.
88523         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88524         REPLACE_VPRINTF_POSIX.
88525         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88526         SIGPIPE issue.
88527         * doc/posix-functions/fputc.texi: Likewise.
88528         * doc/posix-functions/fputs.texi: Likewise.
88529         * doc/posix-functions/fwrite.texi: Likewise.
88530         * doc/posix-functions/printf.texi: Likewise.
88531         * doc/posix-functions/putc.texi: Likewise.
88532         * doc/posix-functions/putchar.texi: Likewise.
88533         * doc/posix-functions/puts.texi: Likewise.
88534         * doc/posix-functions/vfprintf.texi: Likewise.
88535         * doc/posix-functions/vprintf.texi: Likewise.
88537         * modules/safe-write (Depends-on): Add write.
88539         * modules/sigpipe-tests: New file.
88540         * tests/test-sigpipe.c: New file.
88541         * tests/test-sigpipe.sh: New file.
88543         * modules/write: New file.
88544         * lib/unistd.in.h: Include <sys/types.h>.
88545         (write): New declaration.
88546         * lib/write.c: New file.
88547         * m4/write.m4: New file.
88548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88549         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88550         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88551         GNULIB_WRITE, REPLACE_WRITE.
88552         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88553         and the SIGPIPE issue.
88555         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88556         (raise): New declaration.
88557         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88558         (ext_signal): New function.
88559         (rpl_raise): New function.
88560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88561         GNULIB_SIGNAL_H_SIGPIPE.
88562         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88563         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88565         * modules/sigpipe: New file.
88566         * m4/sigpipe.m4: New file.
88568 2008-09-25  Derek Price  <derek@ximbiot.com>
88569             Bruno Haible  <bruno@clisp.org>
88571         * gnulib-tool (func_import): Report all license incompatibilities, not
88572         just the first one.
88574 2008-09-25  Bruno Haible  <bruno@clisp.org>
88576         * gnulib-tool (func_import): When computing the edits, consider not
88577         only the Makefile.ams that exist but also those that will be generated.
88579 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88581         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88582         fixes gnulib-tool --test warning about duplicate dependency.
88584 2008-09-25  Bruno Haible  <bruno@clisp.org>
88586         * gnulib-tool: Don't ask the user to perform edits in the generated
88587         Makefile.ams.
88588         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88589         apply to the Makefile.am being generated.
88590         (func_emit_tests_Makefile_am): Execute edits that apply to the
88591         Makefile.am being generated.
88592         (func_import): Setup list of Makefile.am edits before emitting the
88593         Makefile.ams, not at the end.
88594         (func_create_testdir): Update.
88595         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88597 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88599         * gnulib-tool (func_import): Store the --tests-base option in the
88600         comment in gnulib-cache.m4.
88602 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88604         * NEWS: Document increased portability that sys_select now provides.
88606         * lib/sys_select.in.h: Install select wrapper.
88607         * lib/sys_socket.in.h: Use more descriptive name when there is no
88608         select wrapper.
88609         * lib/winsock-select.c: New.
88610         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88611         Require gl_HEADER_SYS_SOCKET.
88612         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88613         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88614         * tests/test-sys_select.c: Add functional tests.
88616 2008-09-24  Eric Blake  <ebb9@byu.net>
88618         open, fopen: close fd leak in last patch
88619         * lib/open.c (rpl_open): Close fd before returning error.
88620         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88621         * doc/posix-functions/open.texi (open): Document that Irix also
88622         has the bug.
88623         * doc/posix-functions/fopen.texi (fopen): Likewise.
88624         Reported by Paolo Bonzini.
88626 2008-09-24  Bruno Haible  <bruno@clisp.org>
88628         Ensure that a filename ending in a slash cannot be used to access a
88629         non-directory.
88630         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88631         to check whether it's really a directory.
88632         * lib/fopen.c: Include fcntl.h, unistd.h.
88633         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88634         and fdopen().
88635         * modules/fopen (Depends-on): Add unistd.
88636         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88637         * tests/test-fopen.c (main): Likewise.
88638         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88639         * doc/posix-functions/fopen.texi: Likewise.
88640         Reported by Eric Blake.
88642 2008-09-23  Eric Blake  <ebb9@byu.net>
88644         c-stack: avoid compiler optimizations when provoking overflow
88645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88646         recursion harder to optimize, to ensure a stack overflow occurs.
88647         * tests/test-c-stack.c (recurse): Likewise.
88648         Borrowed from libsigsegv.
88650         c-stack: work around Irix sigaltstack bug
88651         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88652         whether sigaltstack uses wrong end of stack_t (copied in part from
88653         libsigsegv).
88654         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88655         Irix bug, without requiring an over-allocation.
88656         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88657         bug.
88659         fopen: document mingw bug on directories
88660         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88661         not allowing a stream visiting a directory, even though reading
88662         from such a stream is not portable.
88664 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88666         * lib/poll.c: Rewrite.
88667         * modules/poll: Depend on alloca.
88669 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88671         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88672         instead define prototypes for a full set of wrappers.  Ensure
88673         that Cygwin does not use the compatibility code, which is only
88674         for MinGW.
88675         * lib/winsock.c: New.
88676         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88677         * modules/sys_socket: Add lib/winsock.c.
88679         * modules/poll-tests: Add errno and perror.
88680         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88682 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88684         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88686 2008-09-23  Bruno Haible  <bruno@clisp.org>
88688         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88689         * doc/glibc-functions/*: Likewise.
88691 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88693         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88694         success.
88696 2008-09-22  Eric Blake  <ebb9@byu.net>
88697             Bruno Haible  <bruno@clisp.org>
88699         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88700         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88701         supply %A but mishandle pseudo-NaN.
88702         Reported by Simon Josefsson.
88704 2008-09-21  Bruno Haible  <bruno@clisp.org>
88706         * tests/test-lock.c (main): Tweak skip message.
88707         * tests/test-tls.c (main): Likewise.
88709 2008-09-21  Bruno Haible  <bruno@clisp.org>
88711         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88712         whether 'struct sigaction' has sa_sigaction here...
88713         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88714         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88716 2008-09-21  Bruno Haible  <bruno@clisp.org>
88718         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88719         section.
88720         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88721         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88722         the new section.
88723         (Support for obsolete systems lacking POSIX:2001): New section.
88724         (String handling <string.h>): Move strdup to the new section.
88725         Suggested by Simon Josefsson and Paolo Bonzini.
88727 2008-09-21  Bruno Haible  <bruno@clisp.org>
88729         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88730         exponents in %e and %g results on 'long double'. Needed for mingw's
88731         improved *printf functions.
88732         * tests/test-vasprintf-posix.c (test_function): Likewise.
88733         * tests/test-snprintf-posix.h (test_function): Likewise.
88734         * tests/test-sprintf-posix.h (test_function): Likewise.
88735         Reported by Eric Blake.
88737 2008-09-21  Bruno Haible  <bruno@clisp.org>
88739         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88740         * tests/test-sprintf-posix.h (test_function): Likewise.
88742 2008-09-21  Bruno Haible  <bruno@clisp.org>
88744         * modules/getpass (Depends-on): Add strdup-posix.
88746         New module 'strdup-posix'.
88747         * modules/strdup-posix: New file.
88748         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88749         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88751         REPLACE_STRDUP.
88752         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88753         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88755         strdup-posix.
88757         * modules/strdup (Depends-on): Remove malloc-posix.
88759 2008-09-20  Bruno Haible  <bruno@clisp.org>
88761         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88762         Wildenhues.
88764 2008-09-20  Bruno Haible  <bruno@clisp.org>
88766         Ensure that wint_t gets defined on IRIX 5.3.
88767         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88768         * lib/wctype.in.h (wint_t): Likewise.
88769         (__wctype_wint_t): Remove type.
88770         (isw*): Use wint_t instead of __wctype_wint_t.
88771         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88772         * modules/wchar (Files): Add m4/wint_t.m4.
88773         (Makefile.am): Substitute HAVE_WINT_T.
88774         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88775         * tests/test-wctype.c: Check that wint_t is defined.
88776         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88777         * doc/posix-headers/wctype.texi: Likewise.
88778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88780 2008-09-18  Bruno Haible  <bruno@clisp.org>
88782         * gnulib-tool (func_exit): Update comment.
88784 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88786         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88787         assumes strdup exists and does not depend on strdup to return
88788         ENOMEM on out of memory conditions.
88790 2008-09-18  Bruno Haible  <bruno@clisp.org>
88792         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
88793         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
88794         digits for the exponent.
88796 2008-09-18  Jim Meyering  <meyering@redhat.com>
88797             Bruno Haible  <bruno@clisp.org>
88799         * lib/vasnprintf.c (decimal_point_char): Define also if
88800         NEED_PRINTF_INFINITE_LONG_DOUBLE.
88802 2008-09-16  Bruno Haible  <bruno@clisp.org>
88803         and Eric Blake  <ebb9@byu.net>
88805         vasnprintf: support Irix 5.3
88806         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
88807         that mishandle long double infinity.
88808         Reported by Tom G. Christensen.
88810 2008-09-16  Bruno Haible  <bruno@clisp.org>
88812         * doc/glibc-functions/scandir.texi: Mention the function is missing on
88813         Solaris 9.
88814         * doc/glibc-functions/alphasort.texi: Likewise.
88815         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
88817 2008-09-16  Jim Meyering  <meyering@redhat.com>
88819         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88820         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88821         a umask modification leak out of a subshell.  Otherwise, the
88822         opensolaris /bin/sh would be accepted and thus cause unwarranted
88823         failures in the coreutils test suite.
88825 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88827         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88828         to succeed.
88830 2008-09-16  Jim Meyering  <meyering@redhat.com>
88832         avoid spurious test failure when library is built without ACL support
88833         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88834         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88835         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88836         * tests/test-copy-acl.sh: Likewise.
88838 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88840         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88841         based on character occurrence counts.
88843 2008-09-15  Eric Blake  <ebb9@byu.net>
88845         tests: avoid some compiler warnings
88846         * tests/test-memchr.c (main): Pass NULL indirectly.
88847         * tests/test-closein.c (main): Avoid unused variable.
88849 2008-09-15  Bruno Haible  <bruno@clisp.org>
88851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88852         are missing on OpenBSD 4.0 individually.
88853         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88855 2008-09-15  Bruno Haible  <bruno@clisp.org>
88857         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88858         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88859         * doc/posix-functions/perror.texi: Likewise.
88860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88861         is missing.
88862         Reported by Eric Blake.
88864         * lib/errno.in.h: Use replacement values >= 2000.
88865         Reported by Eric Blake.
88867 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88869         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88870         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88871         limit.
88872         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88873         compareseq was aborted.
88875 2008-09-14  Bruno Haible  <bruno@clisp.org>
88877         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88878         yvec_edit_count.
88879         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88880         (fstrcmp_bounded): Simplify result computation accordingly.
88882 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88884         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88885         (fstrcmp): Define in terms of fstrcmp_bounded.
88886         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88887         lower_bound argument.
88888         Return quickly if the result is certainly < lower_bound.
88889         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88891 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88893         * lib/diffseq.h (EARLY_ABORT): New macro.
88894         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88895         evaluates to true.
88897 2008-09-14  Bruno Haible  <bruno@clisp.org>
88899         * modules/perror-tests: New file.
88900         * tests/test-perror.sh: New file.
88901         * tests/test-perror.c: New file.
88903         New module 'perror'.
88904         * lib/stdio.in.h (perror): New declaration.
88905         * lib/perror.c: New file.
88906         * m4/perror.m4: New file.
88907         * modules/perror: New file.
88908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88909         * doc/posix-functions/perror.texi: Mention the perror module.
88910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88911         REPLACE_PERROR.
88912         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88913         REPLACE_PERROR.
88915 2008-09-14  Bruno Haible  <bruno@clisp.org>
88917         * modules/stdio (Makefile.am): Reorder to match the order in
88918         lib/stdio.in.h.
88919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88921 2008-09-13  Bruno Haible  <bruno@clisp.org>
88923         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88925 2008-09-13  Bruno Haible  <bruno@clisp.org>
88927         Extend strerror to cover the added errno values.
88928         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88929         (rpl_strerror): Provide error messages for the added errno values and
88930         for the WSA* values.
88931         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88932         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88933         strerror.
88934         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88935         * modules/strerror (Depends-on): Add errno.
88936         * doc/posix-functions/strerror.texi: Document the change.
88937         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88938         and EOVERFLOW.
88940 2008-09-13  Bruno Haible  <bruno@clisp.org>
88942         * modules/EOVERFLOW: Remove file.
88943         * m4/eoverflow.m4: Remove file.
88944         * modules/EOVERFLOW-tests: Remove file.
88945         * tests/test-EOVERFLOW.c: Remove file.
88946         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88947         * modules/ftell (Depends-on): Likewise.
88948         * modules/getdelim (Depends-on): Likewise.
88949         * modules/getugroups (Depends-on): Likewise.
88950         * modules/poll (Depends-on): Likewise.
88951         * modules/snprintf (Depends-on): Likewise.
88952         * modules/sprintf-posix (Depends-on): Likewise.
88953         * modules/vasnprintf (Depends-on): Likewise.
88954         * modules/vasprintf (Depends-on): Likewise.
88955         * modules/vfprintf-posix (Depends-on): Likewise.
88956         * modules/vsnprintf (Depends-on): Likewise.
88957         * modules/vsprintf-posix (Depends-on): Likewise.
88958         * modules/xvasprintf (Depends-on): Likewise.
88959         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88960         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88961         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88962         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88963         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88964         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88965         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88966         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88967         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88968         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88969         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88970         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88972         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88973         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88974         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88976         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88977         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88978         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88980         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88981         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88982         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88983         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88984         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88985         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88986         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88987         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88988         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88989         * MODULES.html.sh: Remove EOVERFLOW.
88990         * NEWS: Mention the change.
88992 2008-09-13  Bruno Haible  <bruno@clisp.org>
88994         * modules/errno-tests: New file.
88995         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88997         * lib/errno.in.h: New file.
88998         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88999         * modules/errno: New file.
89000         * doc/posix-headers/errno.texi: Update documentation.
89001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
89003 2008-09-13  Bruno Haible  <bruno@clisp.org>
89005         * tests/test-poll.c: Use #if for native Windows, rather than testing
89006         __MSVCRT__.
89008 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89009             Bruno Haible  <bruno@clisp.org>
89011         * lib/glob.c: Don't include <pwd.h> on native Windows.
89012         (WINDOWS32): New macro.
89013         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
89015 2008-09-13  Bruno Haible  <bruno@clisp.org>
89017         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
89018         (ETIMEDOUT): Remove macro.
89019         (glthread_cond_timedwait_multithreaded): New declaration.
89020         (glthread_cond_timedwait): Use it.
89021         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
89022         (glthread_cond_timedwait_multithreaded): New function.
89024 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89026         * modules/poll-tests: Do not check for io.h.
89027         * tests/test-poll.c: Check for __MSVCRT__ instead.
89029 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89031         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
89032         * modules/poll-tests: Add inet_pton, stdbool, sockets.
89033         * tests/test-poll.c: Use them.  Use _pipe on Windows.
89035 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89037         * modules/poll-tests: New.
89038         * tests/test-poll.c: New.
89040 2008-09-12  Eric Blake  <ebb9@byu.net>
89042         frexp: test for NetBSD failure on -0.0
89043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
89044         not all, bugs from NetBSD 3.0 have been fixed.
89045         * doc/posix-functions/frexp.texi (frexp): Document bug.
89046         Reported by Thomas Klausner.
89048         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
89049         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
89050         literal -0.0.
89051         Reported by Jonathan C. Patschke <jp@centtech.com>.
89053 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89055         * lib/glthread/cond.h: Use dummy implementation also if
89056         USE_WIN32_THREADS.
89058 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89060         * modules/fnmatch-posix (License): Change to LGPLv2+.
89061         * modules/fnmatch-gnu (License): Likewise.
89063 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89065         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
89067 2008-09-11  Jim Meyering  <meyering@redhat.com>
89069         * users.txt: Add gtk-vnc.
89071 2008-09-08  Simon Josefsson  <simon@josefsson.org>
89073         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
89074         rotate amounts.
89076         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
89077         required for 16-bit and 8-bit rotates.
89078         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
89079         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
89080         UINT8_MAX instead of hard-coded constants.
89081         Suggested by Paul Eggert.
89083 2008-09-07  Bruno Haible  <bruno@clisp.org>
89085         * tests/test-striconveh.c (main): Check behaviour when converting from
89086         UTF-7.
89088         Make striconveh work better with stateful encodings.
89089         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
89090         that iconv does not increment the inptr when returning -1/EINVAL.
89092 2008-09-07  Bruno Haible  <bruno@clisp.org>
89094         * build-aux/config.rpath: Update according to libtool-2.2.6.
89095         * build-aux/config.libpath: Likewise.
89097 2008-09-06  Bruno Haible  <bruno@clisp.org>
89099         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
89100         * lib/freadptr.c (freadptr): Likewise.
89101         * lib/freadseek.c (freadptrinc): Likewise.
89102         Reported by Simon Josefsson.
89104 2008-09-06  Bruno Haible  <bruno@clisp.org>
89106         * modules/freadptr (License): Change to LGPLv2+.
89107         * modules/freadseek (License): Likewise.
89108         Suggested by Eric Blake.
89110         * modules/memchr2 (License): Change to LGPLv2+.
89111         Approved by Eric Blake.
89113 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89114             Bruno Haible  <bruno@clisp.org>
89116         Make gnulib-tool work with native 'sed' on AIX.
89117         * gnulib-tool (sed_noop): New variable.
89118         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
89119         func_add_or_update, func_create_testdir): Use it to initialize sed
89120         script variables.
89121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89123 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
89124             Bruno Haible  <bruno@clisp.org>
89126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
89127         also works after #include directives.
89129 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
89131         getdate.y: reject an out-of-range timezone value
89132         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
89133         the range [-24...+24].  When specified with only one or two digits,
89134         * tests/test-getdate.c: Tests for the fix.
89135         * doc/getdate.texi: Document this change.
89137 2008-09-03  Bruno Haible  <bruno@clisp.org>
89139         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
89141 2008-09-02  Simon Josefsson  <simon@josefsson.org>
89143         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
89144         <bruce.korb@gmail.com> with ideas from Ben Pfaff
89145         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
89146         Blake <ebb9@byu.net>.
89148         * tests/test-bitrotate.c: Add more test vectors.
89150 2008-09-02  Eric Blake  <ebb9@byu.net>
89152         vasnprintf-posix: handle large precision via %.*d
89153         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
89154         when handling it ourselves.
89155         * tests/test-vasnprintf-posix.c (test_function): Add test.
89156         * tests/test-snprintf-posix.h (test_function): Likewise.
89157         * tests/test-sprintf-posix.h (test_function): Likewise.
89158         * tests/test-vasprintf-posix.c (test_function): Likewise.
89159         Reported by Alain Guibert.
89161 2008-09-01  Eric Blake  <ebb9@byu.net>
89163         c-stack: make configure-time check more robust
89164         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
89165         successful sigaction call.
89166         Reported by Tom G. Christensen.
89168 2008-09-01  Bruno Haible  <bruno@clisp.org>
89170         New module 'findprog-lgpl'.
89171         * modules/findprog-lgpl: New file.
89172         * lib/findprog-lgpl.c: New file.
89173         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
89174         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
89175         to decide whether to use strdup or xstrdup, concatenated_filename or
89176         xconcatenated_filename.
89178 2008-09-01  Bruno Haible  <bruno@clisp.org>
89180         Split module 'concat-filename' into 'concat-filename' (LGPL) and
89181         'xconcat-filename' (GPL).
89182         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
89183         (License): Change to LGPLv2+.
89184         * modules/xconcat-filename: New file.
89185         * lib/concat-filename.h (concatenated_filename): Change specification.
89186         (xconcatenated_filename): New declaration.
89187         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
89188         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
89189         memory situations.
89190         * lib/xconcat-filename.c: New file.
89191         * NEWS: Mention the change.
89192         * lib/findprog.c: Include concat-filename.h, not filename.h.
89193         (find_in_path): Use xconcatenated_filename instead of
89194         concatenated_filename.
89195         * lib/javacomp.c: Include concat-filename.h, not filename.h.
89196         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89197         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89198         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89199         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
89200         instead of concatenated_filename.
89201         * lib/javaexec.c: Include concat-filename.h, not filename.h.
89202         (execute_java_class): Use xconcatenated_filename instead of
89203         concatenated_filename.
89204         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
89205         * modules/javacomp (Depends-on): Likewise.
89206         * modules/javaexec (Depends-on): Likewise.
89208 2008-09-01  Bruno Haible  <bruno@clisp.org>
89210         Split module 'filename' into 'filename' and 'concat-filename'.
89211         * modules/filename: Keep only lib/filename.h.
89212         (License): Change to LGPLv2+.
89213         * modules/concat-filename: New file, extracted from modules/filename.
89214         * lib/filename.h (concatenated_filename): Remove declaration.
89215         * lib/concat-filename.h: New file, extracted from lib/filename.h.
89216         * lib/concat-filename.c: Include concat-filename.h.
89217         * NEWS: Mention the change.
89219 2008-09-01  Simon Josefsson  <simon@josefsson.org>
89221         * lib/bitrotate.h (rotl8, rotr8): Add.
89223         * modules/bitrotate (configure.ac): Need
89224         AC_REQUIRE([AC_C_INLINE]).
89225         (Description): Mention stdint.h.  Reported by Bruno Haible
89226         <bruno@clisp.org>.
89228         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
89229         Paolo Bonzini <bonzini@gnu.org>.
89231 2008-08-31  Bruno Haible  <bruno@clisp.org>
89233         Assume Solaris specific bi-arch conventions on Solaris systems.
89234         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
89235         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
89236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
89237         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
89238         like acl_libdirstem.
89239         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
89240         acl_libdirstem.
89241         * NEWS: Mention the change.
89242         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
89244 2008-08-31  Jim Meyering  <meyering@redhat.com>
89246         * lib/strftime.h: Add comments describing the two added arguments.
89248         remove duplicate #include directives
89249         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
89250         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
89252 2008-08-31  Bruno Haible  <bruno@clisp.org>
89254         New module 'sigpipe-die'.
89255         * modules/sigpipe-die: New file.
89256         * lib/sigpipe-die.h: New file.
89257         * lib/sigpipe-die.c: New file.
89258         * MODULES.html.sh (Signal handling): Add sigpipe-die.
89260 2008-08-31  Bruno Haible  <bruno@clisp.org>
89262         Don't override previously installed signal handlers.
89263         * lib/fatal-signal.c (saved_sigactions): New variable.
89264         (uninstall_handlers): Reset the signal to the saved handler, not
89265         to SIG_DFL (except when ignored).
89266         (install_handlers): Save the previous handlers.
89268 2008-08-30  Bruno Haible  <bruno@clisp.org>
89270         * gnulib-tool (func_reset_sigpipe): New function.
89271         (func_get_automake_snippet, func_modules_transitive_closure,
89272         func_import): Invoke it before a join command that reads from stdin,
89273         to avoid "echo: write error: Broken pipe" error messages on stderr.
89274         Reported by Sam Steingold <sds@gnu.org>.
89276 2008-08-30  Bruno Haible  <bruno@clisp.org>
89278         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
89279         Code copied from m4/open.m4.
89280         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
89281         access and the filename ends in a slash. Code copied from lib/open.c.
89282         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
89283         * tests/test-fopen.c (main): Check against bug with trailing slash.
89285 2008-08-29  Bruno Haible  <bruno@clisp.org>
89287         Avoid some "gcc -pedantic" warnings.
89288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
89289         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
89290         * lib/dirent.in.h: Likewise.
89291         * lib/fcntl.in.h: Likewise.
89292         * lib/float.in.h: Likewise.
89293         * lib/iconv.in.h: Likewise.
89294         * lib/inttypes.in.h: Likewise.
89295         * lib/locale.in.h: Likewise.
89296         * lib/math.in.h: Likewise.
89297         * lib/netinet_in.in.h: Likewise.
89298         * lib/search.in.h: Likewise.
89299         * lib/signal.in.h: Likewise.
89300         * lib/stdarg.in.h: Likewise.
89301         * lib/stdint.in.h: Likewise.
89302         * lib/stdio.in.h: Likewise.
89303         * lib/stdlib.in.h: Likewise.
89304         * lib/string.in.h: Likewise.
89305         * lib/strings.in.h: Likewise.
89306         * lib/sys_select.in.h: Likewise.
89307         * lib/sys_socket.in.h: Likewise.
89308         * lib/sys_stat.in.h: Likewise.
89309         * lib/sys_time.in.h: Likewise.
89310         * lib/sysexits.in.h: Likewise.
89311         * lib/time.in.h: Likewise.
89312         * lib/unistd.in.h: Likewise.
89313         * lib/wchar.in.h: Likewise.
89314         * lib/wctype.in.h: Likewise.
89315         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
89316         * modules/fchdir (Makefile.am): Likewise.
89317         * modules/fcntl (Makefile.am): Likewise.
89318         * modules/float (Makefile.am): Likewise.
89319         * modules/iconv_open (Makefile.am): Likewise.
89320         * modules/inttypes (Makefile.am): Likewise.
89321         * modules/locale (Makefile.am): Likewise.
89322         * modules/math (Makefile.am): Likewise.
89323         * modules/netinet_in (Makefile.am): Likewise.
89324         * modules/search (Makefile.am): Likewise.
89325         * modules/signal (Makefile.am): Likewise.
89326         * modules/stdarg (Makefile.am): Likewise.
89327         * modules/stdint (Makefile.am): Likewise.
89328         * modules/stdio (Makefile.am): Likewise.
89329         * modules/stdlib (Makefile.am): Likewise.
89330         * modules/string (Makefile.am): Likewise.
89331         * modules/strings (Makefile.am): Likewise.
89332         * modules/sys_select (Makefile.am): Likewise.
89333         * modules/sys_socket (Makefile.am): Likewise.
89334         * modules/sys_stat (Makefile.am): Likewise.
89335         * modules/sys_time (Makefile.am): Likewise.
89336         * modules/sysexits (Makefile.am): Likewise.
89337         * modules/time (Makefile.am): Likewise.
89338         * modules/unistd (Makefile.am): Likewise.
89339         * modules/wchar (Makefile.am): Likewise.
89340         * modules/wctype (Makefile.am): Likewise.
89341         Reported by Reuben Thomas <rrt@sc3d.org>.
89343 2008-08-29  Bruno Haible  <bruno@clisp.org>
89345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
89346         any more.
89348 2008-08-29  Simon Josefsson  <simon@josefsson.org>
89350         * MODULES.html.sh (Misc): Add bitrotate.
89352         * modules/bitrotate: New file.
89354         * lib/bitrotate.h: New file.
89356         * modules/bitrotate-tests: New file.
89358         * tests/test-bitrotate.c: New file.
89360         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
89361         on the bitrotate module.
89363         * lib/arctwo.c: Use new bitrotate module.
89365 2008-08-29  Jim Meyering  <meyering@redhat.com>
89367         bootstrap: merge changes from coreutils
89368         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
89369         of copied files.  Remove a kludge, now that this is fixed.
89370         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
89371         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
89372         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89374 2008-08-29  Bruno Haible  <bruno@clisp.org>
89376         * MODULES.html.sh: Remove --cvs-urls option.
89378 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89380         maint.mk: adjust to file name change
89381         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89383 2008-08-28  Jim Meyering  <meyering@redhat.com>
89385         * modules/getndelim2 (License): Relicense to LGPLv2+.
89386         Approved by Richard Stallman for the version of 1995, and by
89387         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89389 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89391         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89392         dummy if one is not available.  Do not touch them if
89393         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89394         (getc_maybe_unlocked): New.
89395         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89397 2008-08-26  Eric Blake  <ebb9@byu.net>
89399         doc/INSTALL: resync from autoconf
89400         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89401         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89402         moving...
89403         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89404         * INSTALL: Regenerate.
89405         * INSTALL.ISO: New file.
89406         * INSTALL.UTF-8: Likewise.
89408 2008-08-26  Jim Meyering  <meyering@redhat.com>
89410         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89411         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89412         these definitions conditional, so that they may be overridden, too.
89414 2008-08-26  Bruno Haible  <bruno@clisp.org>
89416         Generate INSTALL file variants with prettier quotes.
89417         * doc/Makefile (INSTALL_PRELUDE): New macro.
89418         (INSTALL): Use it.
89419         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89421 2008-08-26  Bruno Haible  <bruno@clisp.org>
89423         Run makeinfo in an English locale.
89424         * doc/Makefile (MAKEINFO): New variable.
89426 2008-08-26  Bruno Haible  <bruno@clisp.org>
89428         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89429         Suggested by Eric Blake.
89431 2008-08-25  Bruno Haible  <bruno@clisp.org>
89433         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89435 2008-08-25  Eric Blake  <ebb9@byu.net>
89437         c-stack: test that stack overflow can be caught
89438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89439         that platform allows handling stack overflow; at least OS/2 EMX
89440         has sigaltstack, but crashes before transferring control to
89441         handler on stack overflow.
89442         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89443         check for HAVE_STACK_OVERFLOW_HANDLING.
89444         Reported by Elbert Pol.
89446 2008-08-25  Bruno Haible  <bruno@clisp.org>
89448         * doc/posix-functions/strftime.texi: Fix description of strftime
89449         module.
89451 2008-08-24  Bruno Haible  <bruno@clisp.org>
89453         * tests/uniwidth/test-uc_width2.c: New file.
89454         * tests/uniwidth/test-uc_width2.sh: New file.
89455         * modules/uniwidth/width-tests (Files): Add the new files.
89456         (TESTS): Add uniwidth/test-uc_width2.sh.
89457         (TESTS_ENVIRONMENT): New variable.
89458         (check_PROGRAMS): Add test-uc_width2.
89459         (test_uc_width2_SOURCES): New variable.
89461         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89462         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89463         not 0x00AB.
89464         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89466 2008-08-22  Eric Blake  <ebb9@byu.net>
89468         test-lock, test-tls: mention why a test is skipped
89469         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89470         skipped.
89471         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89473         count-one-bits: relax license
89474         * modules/count-one-bits (License): Relicense to LGPLv2+.
89475         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89477 2008-08-22  Andreas Schwab  <schwab@suse.de>
89479         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89480         Remove spurious space in assignment.
89482 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89484         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89485         Paul Eggert <eggert@CS.UCLA.EDU>.
89487 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89489         * modules/gettext: Add m4/threadlib.m4.
89491 2008-08-19  Eric Blake  <ebb9@byu.net>
89493         test-c-stack: fix compilation failure on FreeBSD 5.0
89494         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89495         headers before <sys/resource.h>.
89496         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89497         the bug.
89498         Reported by Nelson H. F. Beebe.
89500         strverscmp: migrate from "strverscmp.h" to <string.h>
89501         * modules/string (Makefile.am): Add new hooks.
89502         * modules/strverscmp (Files): Remove strverscmp.h.
89503         (Depends-on): Add string.
89504         (configure.ac): Add indicator.
89505         (Include): Mention new header.
89506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89507         defaults.
89508         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89509         results.
89510         * lib/strverscmp.h: Delete.
89511         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89512         * tests/test-strverscmp.c (includes): Adjust client.
89513         * lib/check-version.c (includes): Likewise.
89514         * NEWS: Document the change.
89516         strverscmp: add unit test
89517         * modules/strverscmp-tests: New file.
89518         * tests/test-strverscmp.c: Likewise.
89520 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89522         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89523         regarding Windows crypto stuff, from Mono.
89525 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89527         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89528         if present, for intel RND.  Return error on failures.
89530 2008-08-18  Ben Pfaff  <blp@gnu.org>
89532         gitlog-to-changelog: give better diagnostic for failed pipe-open
89533         * build-aux/gitlog-to-changelog: Improve error message: suggest
89534         that the version of Git may be too old.
89536 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89538         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89539         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89541 2008-08-18  Bruno Haible  <bruno@clisp.org>
89543         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89544         pthread_in_use().
89546 2008-08-18  Bruno Haible  <bruno@clisp.org>
89548         * lib/glthread/threadlib.c: Include <pthread.h>.
89550 2008-08-18  Bruno Haible  <bruno@clisp.org>
89552         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89553         glthread_recursive_lock_* macros.
89554         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89555         Fix syntax error.
89557 2008-08-18  Bruno Haible  <bruno@clisp.org>
89559         * lib/glthread/thread.c: Avoid forcing a context switch right after
89560         thread creation.
89562 2008-08-17  Bruno Haible  <bruno@clisp.org>
89564         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89565         * lib/glthread/thread.h: Provide Win32 specific implementation.
89566         * modules/thread (Files): Add lib/glthread/thread.c.
89567         (Depends-on): Add lock.
89568         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89570 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89572         New module 'yield'.
89573         * modules/yield: New file.
89574         * lib/glthread/yield.h: New file.
89575         * m4/yield.m4: New file.
89576         * MODULES.html.sh (Multithreading): Add yield.
89578 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89580         New module 'thread'.
89581         * modules/thread: New file.
89582         * lib/glthread/thread.h: New file.
89583         * m4/thread.m4: New file.
89584         * MODULES.html.sh (Multithreading): Add thread.
89586 2008-08-17  Bruno Haible  <bruno@clisp.org>
89588         * lib/glthread/lock.h: Include <stdlib.h> always.
89589         * lib/glthread/tls.h: Likewise.
89590         * lib/glthread/cond.h: Likewise.
89592 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89594         New module 'cond'.
89595         * modules/cond: New file.
89596         * lib/glthread/cond.h: New file.
89597         * lib/glthread/cond.c: New file.
89598         * m4/cond.m4: New file.
89599         * MODULES.html.sh (Multithreading): Add cond.
89601 2008-08-16  Eric Blake  <ebb9@byu.net>
89603         c-stack: fix regression on Irix 5.3 from 2008-06-21
89604         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89605         sa_sigaction...
89606         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89607         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89608         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89609         * modules/signal (Makefile.am): Use the value.
89610         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89611         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89612         * doc/posix-headers/signal.texi (signal.h): Document this
89613         portability issue.
89614         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89615         Reported by Tom G. Christensen.
89617 2008-08-17  Bruno Haible  <bruno@clisp.org>
89619         New module 'threadlib'.
89620         * modules/threadlib: New file.
89621         * lib/glthread/threadlib.c: New file, extracted from
89622         lib/glthread/lock.c.
89623         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89624         functions.
89625         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89626         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89627         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89628         macros.
89629         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89630         (gl_DISABLE_THREADS): Remove macro.
89631         * modules/lock (Files): Remove build-aux/config.rpath.
89632         (Depends-on): Remove havelib. Add threadlib.
89633         (configure.ac-early): Remove section.
89634         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89635         * modules/tls (Depends-on): Remove lock. Add threadlib.
89636         (Link): New section, copied from threadlib.
89637         * MODULES.html.sh (Multithreading): Add threadlib.
89639 2008-08-14  Bruno Haible  <bruno@clisp.org>
89641         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89642         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89643         glthread_rwlock_unlock, glthread_rwlock_destroy,
89644         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89645         glthread_recursive_lock_destroy): Define as macros always.
89646         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89647         glthread_lock_lock.
89648         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89649         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89650         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89651         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89652         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89653         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89654         (glthread_recursive_lock_lock_func): Renamed from
89655         glthread_recursive_lock_lock.
89656         (glthread_recursive_lock_unlock_func): Renamed from
89657         glthread_recursive_lock_unlock.
89658         (glthread_recursive_lock_destroy_func): Renamed from
89659         glthread_recursive_lock_destroy.
89661 2008-08-14  Bruno Haible  <bruno@clisp.org>
89663         * lib/glthread/lock.h: Renamed from lib/lock.h.
89664         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89665         * lib/glthread/tls.h: Renamed from lib/tls.h.
89666         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89667         * lib/fstrcmp.c: Update includes.
89668         * lib/strsignal.c: Update includes.
89669         * modules/lock (Files, Makefile.am): Update.
89670         (Include): Change to "glthread/lock.h".
89671         * modules/tls (Files, Makefile.am): Update.
89672         (Include): Change to "glthread/tls.h".
89673         * tests/test-lock.c: Update includes.
89674         * tests/test-tls.c: Update includes.
89675         * NEWS: Mention the renamed header files.
89677 2008-08-11  Jim Meyering  <meyering@redhat.com>
89679         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89681 2008-08-11  Eric Blake  <ebb9@byu.net>
89683         test-c-stack: avoid C99-ism
89684         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89685         before statement.
89686         Reported by Alain Guibert.
89688 2008-08-10  Jim Meyering  <meyering@redhat.com>
89690         ensure that return value of uinttostr et al are not ignored
89691         * lib/inttostr.h (__GNUC_PREREQ): Define.
89692         (__attribute_warn_unused_result__): Define.
89693         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89695 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89697         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89698         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89700 2008-08-07  Jim Meyering  <meyering@redhat.com>
89702         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89704         * modules/mkstemp (License): Relicense under LGPLv2+.
89705         * modules/tempname (License): Likewise.
89707 2008-08-06  Bruno Haible  <bruno@clisp.org>
89709         * lib/poll.c (poll): Further micro-optimization.
89711 2008-08-06  Jim Meyering  <meyering@redhat.com>
89713         inet_pton.c: use locale-independent tolower
89714         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89715         (inet_pton6): Use c_tolower rather than tolower.
89716         * modules/inet_pton (Depends-on): Add c-ctype.
89718 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89720         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89721         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89723 2008-08-06  Jim Meyering  <meyering@redhat.com>
89725         * modules/inet_pton (License): Relicense under LGPLv2+.
89727 2008-08-03  Bruno Haible  <bruno@clisp.org>
89729         Additional non-aborting API for lock and tls.
89730         * lib/lock.h: Include <errno.h>.
89731         (glthread_lock_init): New macro/function.
89732         (gl_lock_init): Define as wrapper around glthread_lock_init.
89733         (glthread_lock_lock): New macro/function.
89734         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89735         (glthread_lock_unlock): New macro/function.
89736         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89737         (glthread_lock_destroy): New macro/function.
89738         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89739         (glthread_rwlock_init): New macro/function.
89740         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89741         (glthread_rwlock_rdlock): New macro/function.
89742         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89743         (glthread_rwlock_wrlock): New macro/function.
89744         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89745         (glthread_rwlock_unlock): New macro/function.
89746         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89747         (glthread_rwlock_destroy): New macro/function.
89748         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89749         (glthread_recursive_lock_init): New macro/function.
89750         (gl_recursive_lock_init): Define as wrapper around
89751         glthread_recursive_lock_init.
89752         (glthread_recursive_lock_lock): New macro/function.
89753         (gl_recursive_lock_lock): Define as wrapper around
89754         glthread_recursive_lock_lock.
89755         (glthread_recursive_lock_unlock): New macro/function.
89756         (gl_recursive_lock_unlock): Define as wrapper around
89757         glthread_recursive_lock_unlock.
89758         (glthread_recursive_lock_destroy): New macro/function.
89759         (gl_recursive_lock_destroy): Define as wrapper around
89760         glthread_recursive_lock_destroy.
89761         (glthread_once): New macro/function.
89762         (gl_once): Define as wrapper around glthread_once.
89763         Update function declarations.
89764         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89765         glthread_rwlock_init. Return error code.
89766         (glthread_rwlock_rdlock_multithreaded): Renamed from
89767         glthread_rwlock_rdlock. Return error code.
89768         (glthread_rwlock_wrlock_multithreaded): Renamed from
89769         glthread_rwlock_wrlock. Return error code.
89770         (glthread_rwlock_unlock_multithreaded): Renamed from
89771         glthread_rwlock_unlock. Return error code.
89772         (glthread_rwlock_destroy_multithreaded): Renamed from
89773         glthread_rwlock_destroy. Return error code.
89774         (glthread_recursive_lock_init_multithreaded): Renamed from
89775         glthread_recursive_lock_init. Return error code.
89776         (glthread_recursive_lock_lock_multithreaded): Renamed from
89777         glthread_recursive_lock_lock. Return error code.
89778         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89779         glthread_recursive_lock_unlock. Return error code.
89780         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89781         glthread_recursive_lock_destroy. Return error code.
89782         (glthread_once_call): Make static.
89783         (glthread_once_multithreaded): Renamed from glthread_once.
89784         * lib/tls.h: Include <errno.h>.
89785         (glthread_tls_key_init): New macro/function.
89786         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89787         (glthread_tls_set): New macro/function.
89788         (gl_tls_set): Define as wrapper around glthread_tls_set.
89789         (glthread_tls_key_destroy): New macro/function.
89790         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89791         Update function declarations.
89792         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
89793         glthread_tls_get.
89794         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89796 2008-08-04  Eric Blake  <ebb9@byu.net>
89798         gnumakefile: use space, not TAB, outside of targets
89799         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
89801 2008-08-02  Jim Meyering  <meyering@redhat.com>
89803         getdate.y: avoid locale-dependent date parsing failure
89804         In Turkish locales, getdate would fail to recognize keywords
89805         containing a lowercase "i".  The solution is not to rely on
89806         locale-sensitive case-conversion.
89807         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
89808         (lookup_word): Use c_toupper in place of toupper.
89809         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
89810         Reported by Vefa Bicakci <bicave@superonline.com> in
89811         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
89812         * modules/getdate (Depends-on): Add c-ctype.
89814 2008-08-02  Bruno Haible  <bruno@clisp.org>
89816         * gnulib-tool (func_import): When updating or creating a .gitignore
89817         file, prepend each added line with a slash, and ignore leading slashes
89818         from the existing lines.
89819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89821 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89823         Portability fix for GNU make 3.79.1.
89824         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89825         versions do not understand.
89827 2008-08-01  Bruno Haible  <bruno@clisp.org>
89829         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89830         * tests/test-isnanf.h (zero): New variable.
89831         (main): Avoid literal -0.0f.
89832         * tests/test-isnand.h (zero): New variable.
89833         (main): Avoid literal -0.0.
89834         * tests/test-isnanl.h (zero): New variable.
89835         (main): Avoid literal -0.0L.
89836         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89837         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89838         -0.0, -0.0L.
89839         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89840         (test_signbitd): Avoid literal -0.0.
89841         (test_signbitl): Avoid literal -0.0L.
89842         * tests/test-ceilf1.c (zero): New variable.
89843         (main): Avoid literal -0.0f.
89844         * tests/test-ceill.c (zero): New variable.
89845         (main): Avoid literal -0.0L.
89846         * tests/test-floorf1.c (zero): New variable.
89847         (main): Avoid literal -0.0f.
89848         * tests/test-floorl.c (zero): New variable.
89849         (main): Avoid literal -0.0L.
89850         * tests/test-roundf1.c (zero): New variable.
89851         (main): Avoid literal -0.0f.
89852         * tests/test-round1.c (zero): New variable.
89853         (main): Avoid literal -0.0.
89854         * tests/test-roundl.c (zero): New variable.
89855         (main): Avoid literal -0.0L.
89856         * tests/test-truncf1.c (zero): New variable.
89857         (main): Avoid literal -0.0f.
89858         * tests/test-trunc1.c (zero): New variable.
89859         (main): Avoid literal -0.0.
89860         * tests/test-truncl.c (zero): New variable.
89861         (main): Avoid literal -0.0L.
89862         * tests/test-frexp.c (zero): New variable.
89863         (main): Avoid literal -0.0.
89864         * tests/test-frexpl.c (zero): New variable.
89865         (main): Avoid literal -0.0L.
89866         * tests/test-ldexpl.c (zero): New variable.
89867         (main): Avoid literal -0.0L.
89868         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89869         (zerod, zerol): New variables.
89870         (test_function): Avoid literals -0.0, -0.0L.
89871         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89872         (zerod, zerol): New variables.
89873         (test_function): Avoid literals -0.0, -0.0L.
89874         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89875         (zerod, zerol): New variables.
89876         (test_function): Avoid literals -0.0, -0.0L.
89877         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89878         (zerod, zerol): New variables.
89879         (test_function): Avoid literals -0.0, -0.0L.
89880         * tests/test-strtod.c (zero): New variable.
89881         (main): Avoid literal -0.0.
89882         Reported by Jonathan C. Patschke <jp@centtech.com>.
89884 2008-07-31  Jim Meyering  <meyering@redhat.com>
89886         sha256.h: correct definition of SHA224_DIGEST_SIZE
89887         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89888         Reported by Paulie Pena IV <paulie4@gmail.com>.
89889         Define as 224 / 8, rather than as a literal.
89890         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89891         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89892         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89894 2008-07-31  Bruno Haible  <bruno@clisp.org>
89896         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89897         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89898         Reported by Jonathan Patschke <jp@centtech.com>.
89900 2008-07-31  Bruno Haible  <bruno@clisp.org>
89902         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89903         Reported by Paolo Bonzini <bonzini@gnu.org>.
89905 2008-07-30  Eric Blake  <ebb9@byu.net>
89907         test-strtod: allow compilation without -lm
89908         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89909         Reported by Dennis Clarke <blastwave@gmail.com>.
89911 2008-07-28  Jim Meyering  <meyering@redhat.com>
89913         bootstrap: work also when there are no .po files in po/
89914         * build-aux/bootstrap (update_po_files): Complete the change
89915         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89917 2008-07-27  Jim Meyering  <meyering@redhat.com>
89919         * users.txt: Add zile.
89921 2008-07-26  Ben Pfaff  <blp@gnu.org>
89923         Add missing dependencies on new m4/exponent[fdl].m4 files.
89924         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89925         * modules/isnand-nolibm: Add m4/exponentd.m4.
89926         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89927         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89928         m4/isnan[fdl].m4, because the macros actually used moved.
89929         Reported by Jim Meyering.
89931 2008-07-14  Ben Pfaff  <blp@gnu.org>
89933         Add isinf module.
89934         * lib/isinf.c: New file.
89935         * lib/math.in.h: Define isinf macro if we have decided to replace
89936         it.
89937         * m4/isinf.m4: New file.
89938         * m4/math_h.m4: Initialize and substitute variables for isinf
89939         module.
89940         * modules/isinf: New file.
89941         * modules/isinf-tests: New file.
89942         * modules/math: Add substitutions for new module.
89943         * tests/test-isinf.c: New file.
89944         * doc/posix-functions/isinf.texi: Mention new module.
89945         * MODULES.html.sh: Mention new module.
89947 2008-07-14  Ben Pfaff  <blp@gnu.org>
89949         Factor out some macros for use by additional modules.
89950         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89951         exponentf.m4.
89952         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89953         exponentd.m4.
89954         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89955         file exponentl.m4.
89956         * m4/exponentf.m4: New file.
89957         * m4/exponentd.m4: New file.
89958         * m4/exponentl.m4: New file.
89959         * modules/isnanf: Use new file m4/exponentf.m4.
89960         * modules/isnand: Use new file m4/exponentd.m4.
89961         * modules/isnanl: Use new file m4/exponentl.m4.
89963 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89965         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89966         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89967         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89968         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89970         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89971         readlink on platforms without PATH_MAX.
89973 2008-07-21  Eric Blake  <ebb9@byu.net>
89975         Warn, not fail, on stale version.
89976         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89978         Don't allow installation with stale devel version number.
89979         * top/GNUmakefile (_is-install-target): New macro.
89980         (_curr-ver): Forbid installation with stale version number.
89982 2008-07-20  Bruno Haible  <bruno@clisp.org>
89984         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89985         TESTS_ENVIRONMENT.
89986         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89988 2008-07-20  Bruno Haible  <bruno@clisp.org>
89990         * lib/c-stack.h (c_stack_action): Add documentation.
89991         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89993 2008-07-20  Bruno Haible  <bruno@clisp.org>
89995         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89996         * modules/readlink (License): Likewise.
89998 2008-07-17  Eric Blake  <ebb9@byu.net>
90000         * modules/c-stack (Link): Fix typo.
90002         Make c-stack use libsigsegv, when available.
90003         * modules/c-stack (Depends-on): Add libsigsegv.
90004         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
90005         needed.
90006         * lib/c-stack.c (SIGSTKSZ): Define fallback.
90007         (segv_handler, overflow_handler, c_stack_action)
90008         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
90009         implementation when libsigsegv is available, but only when using
90010         the library is necessary.
90011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
90012         comment, explaining why XSI check fails on Linux.
90013         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
90014         * tests/test-c-stack2.sh: Tweak skip message.
90015         * NEWS: Document new link-time requirements.
90017 2008-07-16  Eric Blake  <ebb9@byu.net>
90019         c-stack: Expose false positives when not using libsigsegv.
90020         * modules/c-stack-tests (Files): Expand test.
90021         * tests/test-c-stack.c (main): Add means to conditionally trigger
90022         non-overflow SIGSEGV.
90023         * tests/test-c-stack2.sh: New file.
90025 2008-07-14  Bruno Haible  <bruno@clisp.org>
90027         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
90028         Reported by Eric Blake.
90030 2008-07-14  Sam Steingold  <sds@gnu.org>
90031             Bruno Haible  <bruno@clisp.org>
90033         New module libsigsegv.
90034         * modules/libsigsegv: New file.
90035         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
90036         modifications.
90037         * MODULES.html.sh (Signal handling): New section.
90039 2008-07-14  Bruno Haible  <bruno@clisp.org>
90041         * modules/unictype/ctype-* (Description): Add the word "function".
90042         Improves the resulting doc in MODULES.html.
90044 2008-07-12  Ben Pfaff  <blp@gnu.org>
90046         Add longlong module.
90047         * modules/longlong: New file.
90049 2008-07-12  Bruno Haible  <bruno@clisp.org>
90051         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
90052         to empty.
90054 2008-07-10  Ben Pfaff  <blp@gnu.org>
90056         Add isnan module.
90057         * doc/posix-functions/isnan.texi: Mention new module.
90058         * lib/math.in.h: Define isnan macro if we have decided to replace
90059         it.
90060         * m4/isnan.m4: New file.
90061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
90062         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
90063         also.
90064         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
90065         redundancy.
90066         * m4/math_h.m4: Initialize and substitute variables for isnan
90067         module.
90068         * modules/isnan: New file.
90069         * modules/isnan-tests: New file.
90070         * modules/math: Add substitutions for new module.
90071         * tests/test-isnan.c: New file.
90072         * MODULES.html.sh: Mention new module.
90074 2008-07-10  Ben Pfaff  <blp@gnu.org>
90076         Add isnanf module.
90077         * lib/isnanf.m4: New file.
90078         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
90079         (gl_HAVE_ISNANF_IN_LIBM): New macro.
90080         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
90081         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
90082         * modules/isnanf: New file.
90083         * modules/isnanf-tests: New file.
90084         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
90085         files.
90086         * tests/test-isnanf-nolibm.c: factored most of its contents into
90087         new file tests/test-isnanf.h.
90088         * tests/test-isnanf.h: New file.
90089         * tests/test-isnanf.c: New file.
90090         * MODULES.html.sh: Mention new module.
90091         * doc/glibc-functions/isnanf.texi: Mention new module.
90093 2008-07-10  Ben Pfaff  <blp@gnu.org>
90095         Add isnand module.
90096         * lib/isnand.h: New file.
90097         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
90098         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
90099         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
90100         functionality also.
90101         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
90102         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
90103         (gl_HAVE_ISNAND_IN_LIBM): New macro.
90104         * modules/isnand: New file.
90105         * modules/isnand-tests: New file.
90106         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
90107         files.
90108         * tests/test-isnand-nolibm.c: factored most of its contents into
90109         new file tests/test-isnand.h.
90110         * tests/test-isnand.h: New file.
90111         * tests/test-isnand.c: New file.
90112         * MODULES.html.sh: Mention new module.
90114 2008-07-10  Ben Pfaff  <blp@gnu.org>
90116         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
90117         * lib/isnand.h: Rename lib/isnand-nolibm.h.
90118         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
90119         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
90120         * modules/isnanf-nolibm: Update references to renamed files.
90121         * modules/isnand-nolibm: Likewise.
90122         * modules/isnanf-nolibm-tests: Likewise.
90123         * modules/isnand-nolibm-tests: Likewise.
90124         * lib/frexp.c: Likewise.
90125         * lib/isfinite.c: Likewise.
90126         * lib/signbitd.c: Likewise.
90127         * lib/signbitf.c: Likewise.
90128         * lib/vasnprintf.c: Likewise.
90129         * tests/test-ceilf1.c: Likewise.
90130         * tests/test-ceilf2.c: Likewise.
90131         * tests/test-floorf1.c: Likewise.
90132         * tests/test-floorf2.c: Likewise.
90133         * tests/test-frexp.c: Likewise.
90134         * tests/test-round1.c: Likewise.
90135         * tests/test-round2.c: Likewise.
90136         * tests/test-roundf1.c: Likewise.
90137         * tests/test-strtod.c: Likewise.
90138         * tests/test-trunc1.c: Likewise.
90139         * tests/test-trunc2.c: Likewise.
90140         * tests/test-truncf1.c: Likewise.
90141         * tests/test-truncf2.c: Likewise.
90142         * NEWS: Mention the renamed header files.
90144 2008-07-11  Jim Meyering  <meyering@redhat.com>
90146         vc-list-files: make the last-resort awk code more portable
90147         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
90148         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
90149         does not support it.
90151 2008-07-10  Eric Blake  <ebb9@byu.net>
90153         Work with tar's bootstrap.
90154         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
90155         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
90156         an m4 comment.
90158 2008-07-09  Jim Meyering  <meyering@redhat.com>
90160         posix-shell.m4: fix typo that made this test malfunction
90161         * m4/posix-shell.m4: Remove capitalization in variable name.
90163 2008-07-08  Bruno Haible  <bruno@clisp.org>
90165         * m4/onceonly.m4: Update comments.
90166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90168 2008-07-04  Jim Meyering  <meyering@redhat.com>
90170         * users.txt: Add vc-dwim.
90171         (bison, coreutils): Use the gitweb URL.
90173 2008-07-03  Jim Meyering  <meyering@redhat.com>
90175         * users.txt: Add libffcall.  From Sam Steingold.
90177 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
90179         getdate.y: do not ignore TZ with relative day, month or year offset
90180         * lib/getdate.y (get_date): Move the tz-handling block to follow the
90181         relative-date-handling, since otherwise, the latter would clobber the
90182         sole output (an updated Start value) of the tz-handling block.
90183         * tests/test-getdate.c: Tests for the fix
90185 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90187         Recognize 'foo_LIBRARIES += libgnu.a'.
90188         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
90189         makefile snippet has already specified an installation location,
90190         also using '+='.
90192 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
90194         getdate.y: factor out common actions
90195         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
90196         Use them in place of open-coded actions.
90198 2008-07-01  Simon Josefsson  <simon@josefsson.org>
90200         Add self-test for getdate module.
90201         * modules/getdate-tests: New file.
90202         * tests/test-getdate.c: New file.
90204 2008-06-29  Bruno Haible  <bruno@clisp.org>
90206         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
90207         .gitignore.
90208         Reported by Sylvain Beucler <beuc@beuc.net>.
90210 2008-06-29  Bruno Haible  <bruno@clisp.org>
90212         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
90213         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
90215 2008-06-29  Bruno Haible  <bruno@clisp.org>
90217         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
90218         EXTRA_DIST.
90219         Reported by Sylvain Beucler <beuc@beuc.net>.
90221 2008-06-26  Jim Meyering  <meyering@redhat.com>
90223         make several modules depend on the "open" module
90224         This provides slightly increased consistency when opening-for-write
90225         the name of a non-directory spelled with a trailing slash.
90226         * modules/chdir-safer: Likewise.
90227         * modules/chown: Likewise.
90228         * modules/clean-temp: Likewise.
90229         * modules/copy-file: Likewise.
90230         * modules/fchdir: Likewise.
90231         * modules/fcntl-safer: Likewise.
90232         * modules/pipe: Likewise.
90233         * modules/utime: Likewise.
90234         Prompted by Eric Blake and Bruno Haible.
90236 2008-06-24  Andreas Schwab  <schwab@suse.de>
90238         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
90239         literals can be used as initializers for global variables.
90241 2008-06-23  Eric Blake  <ebb9@byu.net>
90243         Make gnulib-cache.m4 easier to diff.
90244         * gnulib-tool (func_import): Allow newlines when reading cached
90245         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
90247 2008-06-23  Bruno Haible  <bruno@clisp.org>
90249         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
90250         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
90251         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
90252         m4/signalblocking.m4.
90253         (gl_PREREQ_SIGACTION): Don't invoke it.
90254         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
90255         gl_PREREQ_SIG_HANDLER_H.
90256         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90257         Don't check for sigaction here.
90259 2008-06-23  Bruno Haible  <bruno@clisp.org>
90261         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
90262         (install_handlers): Don't set the SA_RESETHAND flag.
90264 2008-06-23  Bruno Haible  <bruno@clisp.org>
90266         * m4/sigaction.m4: Comment fixes.
90267         * lib/signal.in.h: Likewise.
90269 2008-06-23  Eric Blake  <ebb9@byu.net>
90271         Fix typo.
90272         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
90274         Avoid SA_ namespace.
90275         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
90276         Reported by Ralf Wildenhues.
90278         Avoid test failure due to SA_RESTORER.
90279         * tests/test-sigaction.c (SA_MASK): New macro.
90280         (main): Avoid failing due to extension flags being set.
90281         Reported by Jim Meyering.
90283         Revert use of sig-handler.h in sigprocmask.c.
90284         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
90285         it requires the existence of struct sigaction.
90286         * lib/sigprocmask.c (handler_t): Restore typedef.
90287         (rpl_signal, old_handlers): Use local type.
90289 2008-06-22  Bruno Haible  <bruno@clisp.org>
90291         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
90292         conditionally.
90293         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90295 2008-06-22  Bruno Haible  <bruno@clisp.org>
90297         * doc/posix-functions/siginterrupt.texi: Move note.
90299         * lib/signal.in.h (SA_RESTART): New macro.
90300         * lib/sigaction.c: Update comment.
90302         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
90304         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
90305         (gl_PREREQ_SIGPROCMASK): Invoke it.
90306         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
90308         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
90310         * lib/sigprocmask.c: Update a comment.
90312 2008-06-21  Eric Blake  <ebb9@byu.net>
90314         Use sigaction module rather than signal().
90315         * modules/c-stack (Depends-on): Add sigaction.
90316         * modules/fatal-signal (Depends-on): Likewise.
90317         * modules/nanosleep (Depends-on): Likewise.
90318         * modules/sigprocmask (Files): Add sig-handler.h.
90319         * modules/sigaction (Files): Likewise.
90320         * lib/sig-handler.h (get_handler): New file, suggested by Paul
90321         Eggert.
90322         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
90323         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
90324         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
90325         (init_fatal_signals): Likewise.
90326         * lib/nanosleep.c (rpl_nanosleep): Likewise.
90327         (siginterrupt): Delete fallback.
90328         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
90329         instead.
90330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
90331         siginterrupt.
90333         New module sigaction, for mingw.
90334         * modules/sigaction: New module...
90335         * modules/sigaction-tests: ...and its test.
90336         * m4/sigaction.m4: New file.
90337         * lib/sigaction.c: Likewise.
90338         * tests/test-sigaction.c: Likewise.
90339         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
90340         * modules/signal (Makefile.am): Likewise.
90341         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
90342         needed.
90343         * doc/posix-headers/signal.texi (signal.h): Mention provided
90344         types.
90345         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
90346         that sigaction is preferable.
90347         * doc/posix-functions/sigaction.texi (sigaction): Mention new
90348         module.
90349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90350         sigaction.
90352         Improve robustness of sigprocmask by overriding signal.
90353         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
90354         is in use.
90355         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
90356         (SIGKILL, SIGSTOP): Provide fallbacks.
90357         (rpl_signal): Implement.
90358         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
90359         signal can be called inside handlers.
90361         Fix nanosleep module on mingw.
90362         * modules/nanosleep (Depends-on): Add sys_select.
90363         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
90365         Fix licensing of sigprocmask.
90366         * modules/raise (License): Relicense as LGPL.
90368 2008-06-21  Bruno Haible  <bruno@clisp.org>
90370         * lib/propername.c (proper_name_utf8): Don't use the transliterated
90371         result if it contains question marks.
90372         Reported by Michael Geng <linux@michaelgeng.de>.
90374 2008-06-19  Bruno Haible  <bruno@clisp.org>
90376         Fix CVS-ism.
90377         * doc/gnulib.texi: Include updated-stamp.texi.
90378         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
90379         (updated-stamp.texi): New rule.
90380         (gnulib.info): Depend on it.
90381         * doc/.gitignore: Add updated-stamp.texi.
90382         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90384 2008-06-19  Bruno Haible  <bruno@clisp.org>
90386         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90389 2008-06-19  Eric Blake  <ebb9@byu.net>
90391         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90392         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90393         Reported by Stepan Kasal.
90395 2008-06-18  Bruno Haible  <bruno@clisp.org>
90397         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90398         Reported by Eric Blake.
90400 2008-06-18  Eric Blake  <ebb9@byu.net>
90402         Work around cygwin 1.5.25 strsignal bug.
90403         * tests/test-strsignal.c: Allow for const char *.
90404         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90406 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90408         * users.txt: Update URL to article and add author/date
90409         information.
90411 2008-06-17  Bruno Haible  <bruno@clisp.org>
90413         New macro gl_DISABLE_THREADS.
90414         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90415         if the user did not pass --enable-threads or --disable-threads option.
90416         (gl_DISABLE_THREADS): New macro.
90417         Reported by Eric Blake <ebb9@byu.net>.
90419 2008-06-17  Bruno Haible  <bruno@clisp.org>
90421         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90422         when the macro ignores it.
90423         Based on a patch by Eric Blake <ebb9@byu.net>.
90425 2008-06-17  Bruno Haible  <bruno@clisp.org>
90427         * modules/tls (License): Change to LGPLv2+.
90428         Reported by Eric Blake.
90430 2008-06-17  Eric Blake  <ebb9@byu.net>
90432         Simplify c-stack prerequisites.
90433         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90435         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90436         check.
90437         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90438         <sys/resource.h>.
90440         Move c-stack test into testsuite.
90441         * modules/c-stack-tests: New file.
90442         * lib/c-stack.c [DEBUG]: Move test program...
90443         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90444         fail test if sigaltstack is lacking.
90445         * tests/test-c-stack.sh: New driver file.
90447 2008-06-16  Eric Blake  <ebb9@byu.net>
90449         Use raise module consistently.
90450         * modules/fatal-signal (Depends-on): Add raise.
90451         * modules/sigprocmask (Depends-on): Likewise.
90452         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90453         * lib/sigprocmask.c (sigprocmask): Likewise.
90454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90455         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90457         Fix compliance bug in sigpending.
90458         * lib/sigprocmask.c (sigpending): Return pending array via
90459         parameter, not return value.
90461 2008-06-14  Eric Blake  <ebb9@byu.net>
90463         Improve obstack-printf test code.
90464         * tests/test-obstack-printf.c (test_function): Fix comment, and
90465         simplify usage of obstack_* in macros.  Add a test for coverage.
90466         Reported by Bruno Haible.
90468 2008-06-14  Bruno Haible  <bruno@clisp.org>
90470         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90471         array size as a constant, not as a const variable.
90472         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90473         AC_USE_SYSTEM_EXTENSIONS.
90474         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90475         Test whether the obstack_printf function actually exists.
90476         * modules/obstack-printf (Depends-on): Add extensions.
90477         (Include): Remove obstack.h.
90478         * modules/obstack-printf-posix (Depends-on): Add extensions.
90479         (Include): Remove obstack.h.
90481 2008-06-13  Eric Blake  <ebb9@byu.net>
90483         Add obstack-printf and obstack-printf-posix modules.
90484         * modules/obstack-printf: New file.
90485         * modules/obstack-printf-posix: Likewise.
90486         * MODULES.html.sh (Misc): Mention them.
90487         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90488         Likewise.
90489         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90490         Likewise.
90491         * modules/stdio (Makefile.am): Accomodate new modules.
90492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90493         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90494         Declare.
90495         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90496         functions.
90497         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90498         (gl_REPLACE_OBSTACK_PRINTF): New macros
90499         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90500         * tests/test-obstack-printf.c: New file.
90501         * modules/obstack-printf-tests: Likewise.
90502         * modules/obstack-printf-posix-tests: Likewise.
90504 2008-06-11  Bruno Haible  <bruno@clisp.org>
90506         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90507         * lib/open.c: Include errno.h.
90508         (open): Fail when attempting to write to a file that has a trailing
90509         slash.
90510         * tests/test-open.c (main): Test against trailing slash bug.
90511         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90513 2008-06-10  Bruno Haible  <bruno@clisp.org>
90515         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90516         for $? to work inside the trap command, with various /bin/sh-s.
90517         * tests/test-vc-list-files-cvs.sh: Likewise.
90519 2008-06-10  Bruno Haible  <bruno@clisp.org>
90521         * lib/acl-internal.h: Don't include gettext.h here.
90522         * lib/set-mode-acl.c: Include gettext.h here.
90523         * lib/copy-acl.c: Likewise.
90525 2008-06-10  Bruno Haible  <bruno@clisp.org>
90527         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90528         * lib/wait-process.c (wait_subprocess): Likewise.
90529         * lib/execute.h (execute): Add termsigp argument.
90530         * lib/execute.c (execute): Likewise.
90531         * lib/csharpcomp.c (compile_csharp_using_pnet,
90532         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90533         * lib/csharpexec.c (execute_csharp_using_pnet,
90534         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90535         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90536         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90537         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90538         is_jikes_present): Update.
90539         * lib/javaexec.c (execute_java_class): Update.
90540         * lib/javaversion.c (execute_and_read_line): Update.
90541         * NEWS: Document the changes.
90542         Reported by Eric Blake.
90544 2008-06-10  Eric Blake  <ebb9@byu.net>
90546         Add missing include.
90547         * tests/test-strstr.c (includes): Add <signal.h>.
90548         * tests/test-strcasestr.c (includes): Likewise.
90549         * tests/test-memmem.c (includes): Likewise.
90551 2008-06-10  Bruno Haible  <bruno@clisp.org>
90553         * lib/wait-process.c (wait_subprocess): Add an assertion.
90555 2008-06-10  Bruno Haible  <bruno@clisp.org>
90557         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90559 2008-06-10  Bruno Haible  <bruno@clisp.org>
90561         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90562         using alarm().
90563         * tests/test-strcasestr.c (main): Likewise.
90564         * tests/test-strstr.c (main): Likewise.
90566 2008-06-09  Bruno Haible  <bruno@clisp.org>
90568         Work around the Solaris 10 ACE ACLs ABI change.
90569         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90570         declare if ACL_NO_TRIVIAL is present.
90571         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90572         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90573         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90574         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90575         define if ACL_NO_TRIVIAL is present.
90576         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90577         and use the current ABI.
90578         (file_has_acl): Use same #if condition as elsewhere.
90579         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90580         in use, and use the current ABI.
90581         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90582         Reported by Jim Meyering.
90584 2008-06-09  Eric Blake  <ebb9@byu.net>
90586         Work around environments that (stupidly) ignore SIGALRM.
90587         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90588         before using alarm().
90589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90591         Reported by Ian Beckwith <ianb@erislabs.net>.
90593         Produce autobuild blurb earlier in log.
90594         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90596 2008-06-09  Jim Meyering  <meyering@redhat.com>
90597         and Ondřej Vašík  <ovasik@redhat.com>
90599         utimens.c: correct kernel bug work-around
90600         Ondřej Vašík found that the invalid return value of 280 indicates
90601         failure, not success, and the kernel bug we're trying to work
90602         around affects not just the utimensat call, but also the fallback
90603         futimens call.
90604         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90605         not success.
90606         [HAVE_FUTIMENS]: Use the same work-around, here.
90608 2008-06-09  Jim Meyering  <meyering@redhat.com>
90610         add more guards around definition of ACE_-related code
90611         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90612         ALLOW and ACE_OWNER are also defined.
90614 2008-06-08  Bruno Haible  <bruno@clisp.org>
90616         * lib/acl-internal.h: Add me as co-author.
90617         * lib/file-has-acl.c: Likewise.
90618         * lib/set-mode-acl.c: Likewise.
90619         * lib/copy-acl.c: Likewise.
90621 2008-06-08  Bruno Haible  <bruno@clisp.org>
90623         Add support for AIX ACLs.
90624         * lib/acl-internal.h (acl_nontrivial): New declaration.
90625         * lib/file-has-acl.c (acl_nontrivial): New function.
90626         (file_has_acl): Add implementation using AIX 4 ACL API.
90627         * lib/set-mode-acl.c (qset_acl): Likewise.
90628         * lib/copy-acl.c (qcopy_acl): Likewise.
90630 2008-06-08  Bruno Haible  <bruno@clisp.org>
90632         Add support for HP-UX ACLs.
90633         * lib/acl-internal.h (acl_nontrivial): New declaration.
90634         * lib/file-has-acl.c (acl_nontrivial): New function.
90635         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90636         * lib/set-mode-acl.c (qset_acl): Likewise.
90637         * lib/copy-acl.c (qcopy_acl): Likewise.
90639 2008-06-08  Bruno Haible  <bruno@clisp.org>
90641         Add support for Cygwin ACLs.
90642         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90643         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90644         the chmod_or_fchmod call.
90645         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90647 2008-06-08  Bruno Haible  <bruno@clisp.org>
90649         Fix bug with setuid modes in Solaris 10+ code.
90650         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90651         succeeded, when the mode contains some special bits.
90653 2008-06-08  Bruno Haible  <bruno@clisp.org>
90655         Add support for Solaris 7..10 ACLs.
90656         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90657         declarations.
90658         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90659         functions.
90660         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90661         * lib/set-mode-acl.c (qset_acl): Likewise.
90662         * lib/copy-acl.c (qcopy_acl): Likewise.
90664 2008-06-08  Bruno Haible  <bruno@clisp.org>
90666         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90667         declaration.
90668         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90669         (acl_access_nontrivial): Remove MacOS X case.
90670         (file_has_acl): Use acl_extended_nontrivial.
90671         * lib/copy-acl.c (qcopy_acl): Likewise.
90673 2008-06-08  Bruno Haible  <bruno@clisp.org>
90675         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90677 2008-06-08  Jim Meyering  <meyering@redhat.com>
90679         * modules/acl (Maintainer): Add Bruno Haible.
90681 2008-06-07  Bruno Haible  <bruno@clisp.org>
90683         Improve support for Tru64 ACLs.
90684         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90685         ACL on OSF/1.
90687 2008-06-07  Bruno Haible  <bruno@clisp.org>
90689         Add support for MacOS X ACLs.
90690         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90691         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90692         * lib/set-mode-acl.c (qset_acl): Likewise.
90693         * lib/copy-acl.c (qcopy_acl): Likewise.
90695 2008-06-07  Bruno Haible  <bruno@clisp.org>
90697         Fix memory leak introduced on 2008-05-22.
90698         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90699         use.
90701 2008-06-07  Bruno Haible  <bruno@clisp.org>
90703         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90704         to construct an empty ACL.
90706 2008-06-07  Bruno Haible  <bruno@clisp.org>
90708         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90709         precisely.
90710         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90712 2008-06-07  Bruno Haible  <bruno@clisp.org>
90714         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90715         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90717 2008-06-07  Bruno Haible  <bruno@clisp.org>
90719         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90720         regardless of POSIX.
90721         * doc/posix-functions/_longjmp.texi: Likewise.
90722         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90723         SystemV platform in this case.
90725 2008-06-06  Eric Blake  <ebb9@byu.net>
90727         Document abort() bugs.
90728         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90730         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90731         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90732         sigsetjmp.
90733         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90734         siglongjmp, but only as a macro.
90735         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90736         is obsolete.
90737         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90739         Tweak documentation to cover cygwin argz bugs.
90740         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90741         argz bug fix; no code change needed since no cygwin releases
90742         occurred between the last fix and the bug being tested.
90743         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90744         module and recently fixed cygwin bugs.
90745         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90746         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90747         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90748         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90749         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90750         Likewise.
90751         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90752         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90753         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90754         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90755         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90756         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90757         Likewise.
90759         Avoid gcc warning on cygwin.
90760         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90761         !ACL_NO_TRIVIAL]: Avoid unused variable.
90763 2008-06-05  Eric Blake  <ebb9@byu.net>
90765         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90766         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90767         git-version-gen fails to come up with a version.
90768         Reported by Simon Josefsson.
90770 2008-06-05  Jim Meyering  <meyering@redhat.com>
90771             Paul Eggert  <eggert@cs.ucla.edu>
90773         utimens.c: work around a probable Linux kernel bug
90774         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90775         appears to be a kernel bug that causes utimensat to return 280
90776         instead of 0, indicating success.
90778 2008-06-04  Bruno Haible  <bruno@clisp.org>
90780         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90781         2008-06-01 commit.
90783 2008-06-04  Bruno Haible  <bruno@clisp.org>
90785         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90786         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90787         (file_has_acl): Use it. Save errno afterwards.
90788         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90790 2008-06-03  Bruno Haible  <bruno@clisp.org>
90792         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
90793         draft code. Simplify #ifs.
90794         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
90795         Put Solaris code after POSIX-draft code. Fix comments regarding
90796         Solaris 10, HP-UX. Mention Cygwin.
90797         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
90799 2008-06-03  Eric Blake  <ebb9@byu.net>
90801         Provide fallback for older kernels.
90802         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
90803         Provide runtime fallback if kernel lacks support.
90804         Reported by Mike Frysinger.
90806 2008-06-02  Bruno Haible  <bruno@clisp.org>
90808         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
90809         it exists.
90811 2008-06-02  Bruno Haible  <bruno@clisp.org>
90813         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
90814         * lib/copy-acl.c (qcopy_acl): Update comment.
90816 2008-06-02  Bruno Haible  <bruno@clisp.org>
90818         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90819         like ACL APIs.
90821 2008-06-02  Bruno Haible  <bruno@clisp.org>
90823         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90824         * tests/test-set-mode-acl.sh: Likewise.
90825         * tests/test-copy-acl.sh: Likewise.
90826         * tests/test-copy-file.sh: Likewise.
90828 2008-06-02  Bruno Haible  <bruno@clisp.org>
90830         * tests/test-file-has-acl.sh: Remove unused code.
90832 2008-06-01  Bruno Haible  <bruno@clisp.org>
90834         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90835         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90836         messages.
90837         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90839 2008-06-01  Bruno Haible  <bruno@clisp.org>
90841         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90842         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90843         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90844         APIs.
90845         * modules/acl-tests (configure.ac): Remove tests now contained in
90846         m4/acl.m4.
90848 2008-06-02  Jim Meyering  <meyering@redhat.com>
90850         announce-gen: use a better key-server host name
90851         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90852         it may be more consistently reliable.  Suggested by Werner Koch
90853         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90855 2008-06-01  Bruno Haible  <bruno@clisp.org>
90857         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90858         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90860 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90862         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90864 2008-06-01  Bruno Haible  <bruno@clisp.org>
90866         New ACL tests.
90867         * tests/test-file-has-acl.sh: New file.
90868         * tests/test-file-has-acl.c: New file.
90869         * tests/test-set-mode-acl.sh: New file.
90870         * tests/test-set-mode-acl.c: New file.
90871         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90872         * tests/test-copy-acl.c: New file.
90873         * modules/acl-tests: New file, based on modules/copy-file-tests.
90874         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90875         (Depends-on): Add acl-tests.
90876         (configure.ac): Remove checks.
90877         (Makefile.am): Don't create test-sameacls program here any more.
90879 2008-06-01  Bruno Haible  <bruno@clisp.org>
90881         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90882         * tests/test-sameacls.c: Include progname.h.
90883         (main): Invoke set_program_name. Portability fixes for MacOS X,
90884         Solaris, HP-UX.
90886 2008-06-01  Bruno Haible  <bruno@clisp.org>
90888         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90889         function.
90890         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90892 2008-06-01  Bruno Haible  <bruno@clisp.org>
90894         * modules/rpmatch (Depends-on): Add strdup.
90896 2008-06-01  Bruno Haible  <bruno@clisp.org>
90898         * lib/pipe.c: Include unistd-safer.h.
90899         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90900         * modules/pipe (Depends-on): Add unistd-safer.
90902 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90904         * modules/autobuild (configure.ac): Call AB_INIT.
90906 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90908         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90909         Suggested by Bruno Haible <bruno@clisp.org>.
90911 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90913         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90914         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90915         <bruno@clisp.org>.
90917 2008-05-29  Eric Blake  <ebb9@byu.net>
90919         Prefer new POSIX 200x interfaces over futimesat.
90920         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90921         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90922         when available.
90923         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90925 2008-05-28  Bruno Haible  <bruno@clisp.org>
90927         * modules/stpcpy (License): Change to LGPLv2+.
90928         Requested by David Lutterkort <dlutter@redhat.com>.
90930 2008-05-27  Bruno Haible  <bruno@clisp.org>
90932         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90933         current mingw.
90934         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90936 2008-05-27  Bruno Haible  <bruno@clisp.org>
90938         * modules/iconv_open (Link): New section, from module 'iconv'.
90939         * modules/striconv (Link): Likewise.
90940         * modules/striconveh (Link): Likewise.
90941         * modules/xstriconv (Link): Likewise.
90942         * modules/unicodeio (Link): Likewise.
90943         * modules/propername (Link): Likewise.
90944         Reported by Jim Meyering.
90946 2008-05-26  Jim Meyering  <meyering@redhat.com>
90948         sha256: do not artificially restrict buffer length to be < 2^32
90949         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90950         uint32_t to size_t.
90951         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90952         to match.
90954         avoid unaligned access errors, e.g., on sparc
90955         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90956         direct access through a possibly-unaligned uint64* pointer.
90957         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90958         direct access through a possibly-unaligned uint32* pointer.
90959         Prompted by this patch from Tom "spot" Callaway:
90960         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90962         sha512.c: fix typo in comment
90963         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90965 2008-05-25  Bruno Haible  <bruno@clisp.org>
90967         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90968         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90969         (Makefile.am): Update lib_SOURCES.
90971 2008-05-25  Bruno Haible  <bruno@clisp.org>
90973         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90975 2008-05-25  Jim Meyering  <meyering@redhat.com>
90977         useless-if-before-free: freed expr may have white-space differences
90978         * build-aux/useless-if-before-free: Recognize cases in which the
90979         freed expression differs from the tested one in embedded white
90980         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90981         $1 was used, so we can't make any regexp shy.  Improved tests now
90982         detect this.
90984         useless-if-before-free: accept white space in the expression.
90985         * build-aux/useless-if-before-free: For now, any white space
90986         in the expression must be identical in the free argument.
90988         useless-if-before-free: efficiency tweak
90989         * build-aux/useless-if-before-free: Make the expression-matching
90990         regexp "shy".
90991         Make the *outer* regexp shy, not the expr-matching one.
90993         update code-in-comment to accept cast of free arg
90994         * build-aux/useless-if-before-free: Update regexp.
90996 2008-05-25  Bruno Haible  <bruno@clisp.org>
90998         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90999         * modules/copy-file-tests (Files, Makefile.am): Update.
91000         * tests/test-copy-file.c (func_test_copy): Update.
91002 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
91004         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
91006 2008-05-23  Bruno Haible  <bruno@clisp.org>
91008         Improve support for ACLs on OSF/1.
91009         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
91010         Remove fallback for unknown flavors of ACLs.
91012 2008-05-22  Bruno Haible  <bruno@clisp.org>
91014         Add support for ACLs on OSF/1.
91015         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
91016         replacements.
91017         (acl_free_text): New macro fallback.
91018         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
91019         acl_free.
91020         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
91021         acl_free_text function. Require AC_C_INLINE.
91023 2008-05-22  Bruno Haible  <bruno@clisp.org>
91025         Make copy_acl work on MacOS X 10.5.
91026         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
91027         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
91028         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
91029         If MODE_INSIDE_ACL, don't assume that every system has the same text
91030         representation for ACLs as FreeBSD.
91031         * lib/copy-acl.c (copy_acl): Add support for platforms with
91032         !MODE_INSIDE_ACL.
91033         * lib/file-has-acl.c (file_has_acl): Likewise.
91034         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
91035         FreeBSD, MacOS X, or IRIX, respectively.
91037 2008-05-22  Bruno Haible  <bruno@clisp.org>
91039         * lib/acl.h: Don't include <sys/acl.h>.
91040         (GETACLCNT): Move fallback to lib/acl-internal.h.
91041         * lib/acl-internal.h: Include <sys/acl.h> here.
91042         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
91044 2008-05-22  Bruno Haible  <bruno@clisp.org>
91046         Split off copy_acl function to separate file.
91047         * lib/copy-acl.c: New file, extracted from lib/acl.c.
91048         * lib/acl.c (copy_acl): Moved function to separate file.
91049         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
91050         * modules/acl (Files): Add lib/copy-acl.c.
91051         (Makefiles.am): Augment lib_SOURCES.
91053 2008-05-22  Bruno Haible  <bruno@clisp.org>
91055         * modules/copy-file-tests: New file.
91056         * tests/test-copy-file.sh: New file.
91057         * tests/test-copy-file.c: New file.
91058         * tests/test-copy-file-sameacls.c: New file.
91060 2008-05-22  Eric Blake  <ebb9@byu.net>
91062         Avoid gcc warning.
91063         * tests/test-memcmp.c (main): Pass NULL indirectly.
91065 2008-05-21  Bruno Haible  <bruno@clisp.org>
91067         Add reference doc about ACLs.
91068         * doc/acl-resources.txt: New file.
91069         * doc/acl-cygwin.txt: New file.
91071 2008-05-21  Bruno Haible  <bruno@clisp.org>
91073         Avoid one more warning from gcc.
91074         * lib/vasnprintf.c (IF_LINT): Update comments.
91075         (VASNPRINTF): Use it also for the 'prefix' array initializer.
91077 2008-05-21  Jim Meyering  <meyering@redhat.com>
91079         avoid a warning from gcc
91080         * lib/vasnprintf.c (IF_LINT): Define.
91081         (scale10_round_decimal_long_double):
91082         Use it to avoid a "may be used uninitialized" warning.
91083         (scale10_round_decimal_double): Likewise.
91085 2008-05-21  Simon Josefsson  <simon@josefsson.org>
91087         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
91088         declared.
91090 2008-05-20  Bruno Haible  <bruno@clisp.org>
91092         * tests/test-memcmp.c (main): Test also the sign of the result. Test
91093         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
91095 2008-05-20  Simon Josefsson  <simon@josefsson.org>
91097         * modules/memcmp-tests: New file.
91098         * tests/test-memcmp.c: New file.
91100 2008-05-19  Bruno Haible  <bruno@clisp.org>
91102         * modules/propername (Notice, configure.ac): Put quoted "..." into
91103         --keyword option.
91104         * lib/propername.h: Update comments accordingly.
91105         Reported by Eric Blake.
91107 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
91109         * modules/getpass-gnu (Depends-on): Add fseeko.
91111 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91113         * modules/base64-tests: New file.
91115 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
91117         * lib/base64.c (base64_decode_ctx): If a decode context structure
91118         was passed in use it to ignore newlines.  If a context structure
91119         was _not_ passed in, continue to treat newlines as garbage (this
91120         is the historical behavior).  Formerly base64_decode.
91121         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91122         takes a decode context structure.
91123         * lib/base64.h (base64_decode): Macro for four-argument calls.
91124         (base64_decode_alloc): Likewise.
91125         * lib/base64.c (base64_decode_ctx): If a decode context structure
91126         was passed in use it to ignore newlines.  If a context structure
91127         was _not_ passed in, continue to treat newlines as garbage (this
91128         is the historical behavior).  Formerly base64_decode.
91129         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91130         takes a decode context structure.
91131         * lib/base64.h (base64_decode): Macro for four-argument calls.
91132         (base64_decode_alloc): Likewise.
91134 2008-05-19  Jim Meyering  <meyering@redhat.com>
91136         avoid a warning from gcc
91137         * lib/trim.c (IF_LINT): Define.
91138         (trim2): Use it to avoid a "may be used uninitialized" warning.
91140         Fix doc typo.
91141         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
91143 2008-05-19  Bruno Haible  <bruno@clisp.org>
91145         * doc/glibc-functions/getpass.texi: Document limits of other
91146         implementations.
91148 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91149             Bruno Haible <bruno@clisp.org>
91151         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
91153 2008-05-18  Bruno Haible  <bruno@clisp.org>
91155         * modules/propername: New file, from GNU gettext.
91156         * lib/propername.h: New file, from GNU gettext.
91157         * lib/propername.c: New file, from GNU gettext.
91158         * MODULES.html.sh (Internationalization functions): Add propername.
91160 2008-05-16  Jim Meyering  <meyering@redhat.com>
91161             Bruno Haible  <bruno@clisp.org>
91163         Avoid some warnings from "gcc -Wshadow".
91164         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
91166 2008-05-15  Eric Blake  <ebb9@byu.net>
91168         Extend previous patch to cygwin 1.7.0.
91169         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
91170         fast implementation in cygwin >= 1.7.0.
91171         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91174 2008-05-15  Bruno Haible  <bruno@clisp.org>
91176         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
91177         implementation in glibc >= 2.9.
91178         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91181 2008-05-15  Bruno Haible  <bruno@clisp.org>
91183         * MODULES.html.sh (Internationalization functions): Remove linebreak.
91184         (Unicode string functions): Add unilbrk/*.
91185         Reported by Karl Berry.
91187 2008-05-15  Eric Blake  <ebb9@byu.net>
91189         Fix violation of <stdbool.h> replacement in regex.
91190         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
91191         * lib/regexec.c (re_search_internal): Likewise.
91192         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
91194 2008-05-15  Jim Meyering  <meyering@redhat.com>
91196         avoid distracting test output when git or cvs is not found
91197         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
91198         * tests/test-vc-list-files-git.sh: Likewise.
91200 2008-05-15  Eric Blake  <ebb9@byu.net>
91202         Glibc finally accepted the memmem speedup code, bugzilla #5514.
91203         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
91204         glibc version.
91205         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
91206         * doc/posix-functions/strstr.texi (strstr): Likewise.
91207         * lib/str-two-way.h (MAX): Sychronize with glibc.
91209 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
91211         * lib/regcomp.c (optimize_utf8): Add a note on why we test
91212         opr.ctx_type.
91213         (calc_first): Initialize constraint field.
91214         (duplicate_node_closure): Use it instead of special casing ANCHORS.
91215         Fix grammar.
91216         (duplicate_node): Merge constraint field for all node types.
91217         (calc_eclosure_iter): Look at constraint field for all node types.
91218         * lib/regex_internal.c (create_cd_newstate): Don't look at
91219         opr.ctx_type.
91221 2008-05-14  Bruno Haible  <bruno@clisp.org>
91223         Help GCC to do better code generation.
91224         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
91225         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
91226         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
91227         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
91228         Declare with attribute 'malloc' if supported.
91230 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
91232         use "echo STR|wc -c" rather than unportable "expr length STR"
91233         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
91234         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
91236 2008-05-14  Jim Meyering  <meyering@redhat.com>
91238         use dd ibs=$n count=1 ... rather than less-portable head -c$n
91239         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
91240         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
91241         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
91242         via Collin Lasse.
91244 2008-05-14  Eric Blake  <ebb9@byu.net>
91246         Avoid quadratic growth in gl_LIBSOURCES.
91247         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
91248         Suggested by Bruno Haible.
91250         Test xmemdup0.
91251         * modules/xmemdup0-tests: New file.
91252         * tests/test-xmemdup0.c: Likewise.
91254 2008-05-13  Eric Blake  <ebb9@byu.net>
91256         Split xmemdup0 into its own module.
91257         * modules/xmemdup0: New file.
91258         * lib/xmemdup0.h: Likewise.
91259         * lib/xmemdup0.c: Likewise.
91260         * MODULES.html.sh (Memory management functions): Add xmemdup0.
91261         * lib/xalloc.h (xmemdup0): Remove.
91262         * lib/xmalloc.c (xmemdup0): Likewise.
91264 2008-05-13  Eric Blake  <ebb9@byu.net>
91265             Bruno Haible  <bruno@clisp.org>
91267         Reduce number of forks required during autoconf.
91268         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
91269         and gl_LIBSOURCES_DIR.
91270         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
91271         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
91272         m4_syscmd per file.
91273         <m4_foreach_w>: Move...
91274         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
91276 2008-05-13  Eric Blake  <ebb9@byu.net>
91278         * gnulib-tool: Fix various comment typos.
91280 2008-05-12  Bruno Haible  <bruno@clisp.org>
91282         Tailor the linebreaking algorithm.
91283         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
91285 2008-05-12  Bruno Haible  <bruno@clisp.org>
91287         Update to Unicode 5.0.0.
91288         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91289         LBP_JV, LBP_JT. Redistribute values.
91290         (unilbrk_table): Change size.
91291         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
91292         Unicode TR#14 rev. 22.
91293         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91294         LBP_JV, LBP_JT. Redistribute values.
91295         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
91296         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
91297         Update.
91298         * lib/unilbrk/lbrkprop1.h: Regenerated.
91299         * lib/unilbrk/lbrkprop2.h: Regenerated.
91300         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
91301         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
91302         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
91303         Likewise.
91304         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
91305         Likewise.
91306         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
91307         result.
91308         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
91309         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
91310         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
91311         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
91312         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
91313         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
91315 2008-05-11  Bruno Haible  <bruno@clisp.org>
91317         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
91319 2008-05-11  Bruno Haible  <bruno@clisp.org>
91321         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
91322         * modules/unilbrk/gen-lbrk: New file.
91324 2008-05-11  Bruno Haible  <bruno@clisp.org>
91326         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
91327         * m4/sha512.m4 (gl_SHA512): Likewise.
91329 2008-05-11  Jim Meyering  <meyering@redhat.com>
91331         New modules: crypto/sha256, crypto/sha512 (from coreutils)
91332         * modules/crypto/sha256: New file.
91333         * modules/crypto/sha512: Likewise.
91334         * lib/sha256.c: Likewise.
91335         * lib/sha256.h: Likewise.
91336         * lib/sha512.c: Likewise.
91337         * lib/sha512.h: Likewise.
91338         * lib/u64.h: Likewise.
91339         * m4/sha256.m4: Likewise.
91340         * m4/sha512.m4: Likewise.
91341         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
91343 2008-05-10  Bruno Haible  <bruno@clisp.org>
91345         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
91346         (Input/Output <stdio.h>): Add xprintf.
91347         (Signal handling <signal.h>): Add strsignal.
91348         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
91349         (Core language properties): Add func.
91350         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
91351         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
91352         strings.
91353         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
91354         (Input/output): New section.
91355         (File system functions): Add openat-die, stat-macros.
91356         (Networking functions): Add sockets.
91357         (Unicode string functions): Add unictype/*.
91358         (Support for building libraries and executables): Add gperf.
91359         (Support for building documentation): Add agpl-3.0.
91360         (Misc): Add nocrash.
91362 2008-05-10  Bruno Haible  <bruno@clisp.org>
91364         * modules/unictype/gen-ctype: New file.
91366 2008-05-10  Jim Meyering  <meyering@redhat.com>
91368         Make chdir-safer.c more efficient on a system with no symlinks.
91369         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
91370         also if ELOOP is zero.  Suggested by Bruno Haible.
91372         Make chdir-safer.c slightly safer.
91373         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
91374         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
91376         Avoid compile failure on systems without ELOOP (like mingw).
91377         * lib/chdir-safer.c (ELOOP): Define if not already defined.
91378         Reported by Bruno Haible.
91380 2008-05-10  Bruno Haible  <bruno@clisp.org>
91382         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91383         (is_utf8_encoding): Use a case-insensitive comparison.
91384         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91385         streq.
91387 2008-05-10  Bruno Haible  <bruno@clisp.org>
91389         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91390         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91391         * lib/unilbrk/ulc-common.h (iconv_string_length,
91392         iconv_string_keeping_offsets): Remove declarations.
91393         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91394         Don't include <iconv.h>, streq.h, xsize.h.
91395         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91396         conversion.
91397         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91398         <iconv.h>, streq.h, xsize.h.
91399         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91400         conversion.
91401         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91402         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91403         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91404         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91406 2008-05-10  Bruno Haible  <bruno@clisp.org>
91408         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91409         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91411         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91412         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91414         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91415         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91417         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91418         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91420         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91421         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91423         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91424         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91426         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91427         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91429         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91430         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91432 2008-05-10  Bruno Haible  <bruno@clisp.org>
91434         Split up 'linebreak' module.
91435         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91436         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91437         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91438         modifications.
91439         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91440         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91441         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91442         lib/linebreak.c.
91443         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91444         lib/linebreak.c.
91445         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91446         lib/linebreak.c.
91447         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91448         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91449         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91450         lib/linebreak.c.
91451         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91452         lib/linebreak.c.
91453         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91454         lib/linebreak.c.
91455         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91456         lib/linebreak.c.
91457         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91458         lib/linebreak.c.
91459         * modules/unilbrk/base: New file.
91460         * modules/unilbrk/tables: New file.
91461         * modules/unilbrk/u8-possible-linebreaks: New file.
91462         * modules/unilbrk/u16-possible-linebreaks: New file.
91463         * modules/unilbrk/u32-possible-linebreaks: New file.
91464         * modules/unilbrk/ulc-common: New file.
91465         * modules/unilbrk/ulc-possible-linebreaks: New file.
91466         * modules/unilbrk/u8-width-linebreaks: New file.
91467         * modules/unilbrk/u16-width-linebreaks: New file.
91468         * modules/unilbrk/u32-width-linebreaks: New file.
91469         * modules/unilbrk/ulc-width-linebreaks: New file.
91470         * lib/linebreak.h: Remove file.
91471         * lib/linebreak.c: Remove file.
91472         * m4/linebreak.m4: Remove file.
91473         * modules/linebreak: Remove file.
91474         * NEWS: Mention the changes.
91476 2008-05-09  Eric Blake  <ebb9@byu.net>
91478         Add xmemdup0.
91479         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91480         implementation.
91481         * lib/xmalloc.c (xmemdup0): New C implementation.
91483 2008-05-08  Bruno Haible  <bruno@clisp.org>
91485         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91487 2008-05-07  Eric Blake  <ebb9@byu.net>
91489         Support cross-compilation of <wctype.h>.
91490         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91491         AC_CACHE_CHECK.
91493 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91495         * build-aux/vc-list-files: Add support for bzr.
91497 2008-05-03  Jim Meyering  <meyering@redhat.com>
91499         avoid failed assertion with tight malloc
91500         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91502 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91504         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91505         are needed from arpa/inet.h.
91506         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91507         Reported by Bruno Haible.
91509 2008-05-02  Jim Meyering  <meyering@redhat.com>
91511         avoid compilation error on FreeBSD 6
91512         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91514 2008-05-01  Jim Meyering  <meyering@redhat.com>
91516         useless-if-before-free: correct --help's exit status description
91517         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91518         for one or more matches, etc.  Reported by Bruno Haible.
91520         vc-list-files: make the stand-alone gnulib test work
91521         * modules/vc-list-files-tests (configure.ac):
91522         Define and AC_SUBST abs_aux_dir.
91523         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91524         $(abs_top_srcdir) to each script and having each of them
91525         duplicate the work of setting PATH, set PATH here, using
91526         the new variable, abs_aux_dir instead.
91527         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91528         * tests/test-vc-list-files-git.sh: Likewise.
91529         Reported by Bruno Haible.
91531 2008-05-01  Bruno Haible  <bruno@clisp.org>
91533         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91534         reallocation. Rename 'done' to 'found_delimiter'.
91536 2008-05-01  Jim Meyering  <meyering@redhat.com>
91538         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91539         * build-aux/vc-list-files: Use `...`, not $(...).
91541 2008-04-30  Jim Meyering  <meyering@redhat.com>
91543         add tests for vc-list-files
91544         * modules/vc-list-files-tests: New module.
91545         * tests/test-vc-list-files-cvs.sh: New file.
91546         * tests/test-vc-list-files-git.sh: New file.
91548         avoid a warning from gcc
91549         * lib/getndelim2.c (IF_LINT): Define.
91550         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91552         vc-list-files: work properly with build-aux/cvsu, too
91553         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91554         to all cvs-based clauses.
91556         vc-list-files: work properly in the CVS+awk case, too
91557         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91559         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91560         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91561         take more than one file argument, so .  Add quotes, just in case $dir
91562         ever contains a shell meta-character.  Prompted by Soren Hansen in
91563         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91565 2008-04-29  Eric Blake  <ebb9@byu.net>
91567         Optimize getndelim2 to use block operations when possible.
91568         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91569         freadseek, and memchr2.
91570         * lib/getndelim2.c (getndelim2): Use them for block reads.
91572 2008-04-29  Bruno Haible  <bruno@clisp.org>
91574         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91575         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91576         * modules/inet_ntop (Depends-on): Add extensions.
91577         * modules/inet_pton (Depends-on): Likewise.
91578         Reported by Simon Josefsson.
91580 2008-04-29  Jim Meyering  <meyering@redhat.com>
91582         When the is more than one match in a block, match all of them.
91583         * build-aux/useless-if-before-free: Iterate through each block
91584         until there are no more matches.
91586         Fix broken useless-if-before-free script.
91587         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91588         the expression to match cast of argument to free-like function.
91590 2008-04-29  Eric Blake  <ebb9@byu.net>
91592         Use new header.
91593         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91595 2008-04-29  Jim Meyering  <meyering@redhat.com>
91597         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91598         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91599         by gnulib to exist and to declare e.g., inet_ntop.
91600         Don't include "inet_ntop.h", now removed.
91602         * m4/arpa_inet_h.m4: Remove trailing blanks.
91604 2008-04-29  Eric Blake  <ebb9@byu.net>
91606         Silence valgrind on safe reads beyond potential array bounds.
91607         * lib/rawmemchr.valgrind: New file.
91608         * lib/strchrnul.valgrind: Likewise.
91609         * modules/rawmemchr (Files): Distribute new file.
91610         * modules/strchrnul (Files): Likewise.
91611         Suggested by Bruno Haible.
91613 2008-04-29  Bruno Haible  <bruno@clisp.org>
91615         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91616         (inet_ntop, inet_pton): Change portability warning's wording.
91617         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91618         Invoke gl_CHECK_NEXT_HEADERS.
91619         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91620         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91621         set ARPA_INET_H.
91622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91623         * modules/arpa_inet (Description): No longer only for systems that
91624         lack it.
91625         (Depends-on): Add include_next.
91626         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91627         HAVE_ARPA_INET_H.
91629 2008-04-29  Jim Meyering  <meyering@redhat.com>
91631         * modules/mkdir (License): Re-license as LGPLv2+.
91633 2008-04-29  Bruno Haible  <bruno@clisp.org>
91635         * modules/rawmemchr (Maintainer): Set to Eric.
91636         * modules/strchrnul (Maintainer): Likewise.
91638 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91640         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91641         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91643         * modules/arpa_inet (arpa/inet.h): Use them.
91645 2008-04-28  Eric Blake  <ebb9@byu.net>
91647         Test getndelim2.
91648         * modules/getndelim2-tests: New file.
91649         * tests/test-getndelim2.c: Likewise.
91650         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91651         stream.
91652         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91654         * MODULES.html.sh: Document new module.
91656 2008-04-20  Bruno Haible  <bruno@clisp.org>
91658         * lib/c-stack.c (die): Use raise.
91659         * modules/c-stack (Depends-on): Add raise.
91661 2008-04-28  Bruno Haible  <bruno@clisp.org>
91663         Expect rpmatch to be declared.
91664         * lib/yesno.c (rpmatch): Remove declaration.
91666         Declare rpmatch.
91667         * lib/stdlib.in.h (rpmatch): New declaration.
91668         * lib/rpmatch.c: Include <stdlib.h> first.
91669         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91670         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91672         HAVE_RPMATCH.
91673         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91675         (Include): Set to <stdlib.h>.
91676         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91677         HAVE_RPMATCH.
91678         * NEWS: Document the change.
91680 2008-04-28  Bruno Haible  <bruno@clisp.org>
91682         Change rpmatch to use nl_langinfo when appropriate.
91683         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91684         (N_): New macro.
91685         (localized_pattern): New function/macro.
91686         (try): Remove match, nomatch arguments. Copy the pattern into safe
91687         memory before caching it.
91688         (rpmatch): Use localized_pattern. Add translator comments.
91689         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91690         Suggested by Eric Blake.
91691         * modules/rpmatch (Depends-on): Add stdbool.
91693 2008-04-28  Eric Blake  <ebb9@byu.net>
91695         Add rawmemchr module, matching glibc.
91696         * modules/string (Makefile.am): New indicator.
91697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91698         * lib/string.in.h (rawmemchr): Declare when appropriate.
91699         * modules/rawmemchr: New file.
91700         * m4/rawmemchr.m4: Likewise.
91701         * lib/rawmemchr.c: Likewise.
91702         * modules/rawmemchr-tests: Likewise.
91703         * tests/test-rawmemchr.c: Likewise.
91704         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91705         module.
91706         * modules/strchrnul (Depends-on): Add rawmemchr.
91707         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91709         Whitespace cleanup.
91710         * tests/test-strchrnul.c: Reindent.
91711         * lib/strchrnul.c: Likewise.
91713         Optimize and test strchrnul.
91714         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91715         * modules/strchrnul-tests: New file.
91716         * tests/test-strchrnul.c: Likewise.
91718         Remove intprops dependency.
91719         * modules/memchr (Depends-on): Remove intprops.
91720         * modules/memrchr (Depends-on): Likewise.
91721         * modules/memchr2 (Depends-on): Likewise.
91722         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91723         * lib/memrchr.c (__memrchr): Likewise.
91724         * lib/memrchr2.c (memchr2): Likewise.
91725         Reported by Simon Josefsson.
91727 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91729         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91730         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91732 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91734         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91736         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91738         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91740         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91741         declarations.
91742         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91744         * m4/inet_pton.m4: Don't check for header files.
91746         * m4/inet_ntop.m4: Don't check for header files.
91748 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91750         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91751         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91752         trigger for cygwin).
91753         Reported by Bruno Haible  <bruno@clisp.org>.
91755 2008-04-28  Bruno Haible  <bruno@clisp.org>
91757         * doc/posix-functions/strdup.texi: Mention mingw problem.
91759 2008-04-27  Bruno Haible  <bruno@clisp.org>
91761         * modules/stat-time-tests (Depends-on): Add sleep.
91762         * tests/test-stat-time.c (force_unlink): New function.
91763         (cleanup): Use it.
91764         (test_mtime): Remove the ctime related tests.
91765         (test_ctime): New function, containing the ctime related tests.
91766         (main): Call test_ctime, except on native Windows platforms.
91768 2008-04-27  Bruno Haible  <bruno@clisp.org>
91770         * lib/rpmatch.c (rpmatch): Add some comments.
91771         Reported by James Youngman <jay@gnu.org>.
91773 2008-04-27  Bruno Haible  <bruno@clisp.org>
91775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91776         quiet NaNs.
91778 2008-04-27  Bruno Haible  <bruno@clisp.org>
91780         Make test-yesno.sh work on mingw.
91781         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91782         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91783         (main): Set stdin to binary mode.
91784         * modules/yesno-tests (Depends-on): Add binary-io.
91786 2008-04-27  Bruno Haible  <bruno@clisp.org>
91788         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91789         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91790         argument that lie outside the IEEE 854 domain.
91791         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91792         (gl_ISFINITE): Use it.
91793         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
91795 2008-04-27  Bruno Haible  <bruno@clisp.org>
91797         Allow local renaming in config.h.
91798         * lib/memrchr.c (memrchr): Don't undefine outside libc.
91800 2008-04-27  Bruno Haible  <bruno@clisp.org>
91802         * lib/memchr.c (__memchr): Change type of 'i'.
91803         * lib/memchr2.c (memchr2): Likewise.
91805 2008-04-26  Eric Blake  <ebb9@byu.net>
91806         and Bruno Haible  <bruno@clisp.org>
91808         Optimize and test memrchr.
91809         * modules/memrchr (Depends-on): Add intprops.
91810         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
91811         * modules/memrchr-tests: New file.
91812         * tests/test-memrchr.c: New file.
91814 2008-04-26  Bruno Haible  <bruno@clisp.org>
91816         Add tentative support for DragonFly BSD.
91817         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91818         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91819         fp.
91820         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91821         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91822         * lib/fpurge.c (fpurge): Likewise.
91823         * lib/freadable.c (freaadable): Likewise.
91824         * lib/freadahead.c (freadahead): Likewise.
91825         * lib/freading.c (freading): Likewise.
91826         * lib/freadptr.c (freadptr): Likewise.
91827         * lib/freadseek.c (freadptrinc): Likewise.
91828         * lib/fseeko.c (fseeko): Likewise.
91829         * lib/fseterr.c (fseterr): Likewise.
91830         * lib/fwritable.c (fwritable): Likewise.
91831         * lib/fwriting.c (fwriting): Likewise.
91833 2008-04-26  Bruno Haible  <bruno@clisp.org>
91835         * lib/stdio-impl.h: New file.
91836         * lib/fbufmode.c: Include stdio-impl.h.
91837         (fbufmode): Use fp_, remove redundant #defines.
91838         * lib/fflush.c: Include stdio-impl.h.
91839         (clear_ungetc_buffer): Remove redundant #defines.
91840         * lib/fpurge.c: Include stdio-impl.h.
91841         (fpurge): Remove redundant #defines.
91842         * lib/freadable.c: Include stdio-impl.h.
91843         (freadable): Remove redundant #defines.
91844         * lib/freadahead.c: Include stdio-impl.h.
91845         (freadahead): Remove redundant #defines.
91846         * lib/freading.c: Include stdio-impl.h.
91847         (freading): Remove redundant #defines.
91848         * lib/freadptr.c: Include stdio-impl.h.
91849         (freadptr): Remove redundant #defines.
91850         * lib/freadseek.c: Include stdio-impl.h.
91851         (freadptrinc): Remove redundant #defines.
91852         * lib/fseeko.c: Include stdio-impl.h.
91853         (rpl_fseeko): Remove redundant #defines.
91854         * lib/fseterr.c: Include stdio-impl.h.
91855         (fseterr): Remove redundant #defines.
91856         * lib/fwritable.c: Include stdio-impl.h.
91857         (fwritable: Remove redundant #defines.
91858         * lib/fwriting.c: Include stdio-impl.h.
91859         (fwriting): Remove redundant #defines.
91860         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91861         * modules/fflush (Files): Likewise.
91862         * modules/fpurge (Files): Likewise.
91863         * modules/freadable (Files): Likewise.
91864         * modules/freadahead (Files): Likewise.
91865         * modules/freading (Files): Likewise.
91866         * modules/freadptr (Files): Likewise.
91867         * modules/freadseek (Files): Likewise.
91868         * modules/fseeko (Files): Likewise.
91869         * modules/fseterr (Files): Likewise.
91870         * modules/fwritable (Files): Likewise.
91871         * modules/fwriting (Files): Likewise.
91873 2008-04-26  Bruno Haible  <bruno@clisp.org>
91875         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91876         restore_seek_optimization, update_fpos_cache): New functions, extracted
91877         from rpl_fflush.
91878         (rpl_fflush): Use them.
91879         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91880         (gl_REPLACE_FFLUSH): Use it.
91882 2008-04-26  Bruno Haible  <bruno@clisp.org>
91884         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91885         on Solaris.
91886         * tests/test-xstrtoimax.sh: Likewise.
91887         * tests/test-xstrtoumax.sh: Likewise.
91888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91890 2008-04-26  Bruno Haible  <bruno@clisp.org>
91892         * modules/memchr-tests: New file.
91893         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91895 2008-04-26  Eric Blake  <ebb9@byu.net>
91896             Bruno Haible  <bruno@clisp.org>
91898         * lib/memchr.c: Include intprops.h.
91899         (__memchr): Optimize parallel detection of matching bytes. Rename local
91900         variables. Add explanatory comments.
91902 2008-04-26  Bruno Haible  <bruno@clisp.org>
91904         Fix module 'memchr', broken since 2000-10-28.
91905         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91907 2008-04-26  Bruno Haible  <bruno@clisp.org>
91909         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91910         comments.
91912 2008-04-25  Eric Blake  <ebb9@byu.net>
91914         Use native fstatat on cygwin 1.7.0.
91915         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91916         first.
91918 2008-04-23  Eric Blake  <ebb9@byu.net>
91920         Improve memchr2 performance.
91921         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91922         NUL bytes.
91923         * modules/memchr2 (Depends-on): Use intprops.h.
91925 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91927         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91928         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91929         <blp@cs.stanford.edu>.
91931 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91933         * lib/arpa_inet.in.h: New file.
91935         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91936         (Makefile.am): Sed in substitute header file.
91938         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91939         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91941         * modules/inet_ntop (configure.ac): Use
91942         gl_ARPA_INET_MODULE_INDICATOR.
91944         * modules/inet_pton (configure.ac): Use
91945         gl_ARPA_INET_MODULE_INDICATOR.
91947 2008-04-22  Jim Meyering  <meyering@redhat.com>
91949         * modules/verify (License): Re-license as LGPLv2+.
91951 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91953         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91954         parameter to void* as per POSIX standard (MinGW uses char*).
91956 2008-04-21  Bruno Haible  <bruno@clisp.org>
91958         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91959         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91960         Define to replacements if REPLACE_ISWCNTRL is 1.
91961         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91962         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91963         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91964         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91965         what it fixes.
91966         * doc/posix-functions/iswalpha.texi: Likewise.
91967         * doc/posix-functions/iswblank.texi: Likewise.
91968         * doc/posix-functions/iswcntrl.texi: Likewise.
91969         * doc/posix-functions/iswdigit.texi: Likewise.
91970         * doc/posix-functions/iswgraph.texi: Likewise.
91971         * doc/posix-functions/iswlower.texi: Likewise.
91972         * doc/posix-functions/iswprint.texi: Likewise.
91973         * doc/posix-functions/iswpunct.texi: Likewise.
91974         * doc/posix-functions/iswspace.texi: Likewise.
91975         * doc/posix-functions/iswupper.texi: Likewise.
91976         * doc/posix-functions/iswxdigit.texi: Likewise.
91977         Reported by Alain Guibert.
91979 2008-04-21  Bruno Haible  <bruno@clisp.org>
91981         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91982         Patch by Alain Guibert.
91984 2008-04-21  Bruno Haible  <bruno@clisp.org>
91986         Fix test failures on mingw.
91987         * tests/test-xstrtol.c (print_no_progname): New function.
91988         (main): Install it in error_print_progname hook.
91989         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91990         * tests/test-xstrtoimax.sh: Likewise.
91991         * tests/test-xstrtoumax.sh: Likewise.
91993 2008-04-21  Bruno Haible  <bruno@clisp.org>
91995         Fix test failure on mingw.
91996         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91998 2008-04-21  Bruno Haible  <bruno@clisp.org>
92000         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
92001         Actually assign a value.
92003 2008-04-20  Bruno Haible  <bruno@clisp.org>
92005         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
92006         take 2.
92007         * lib/canonicalize.c (canonicalize_file_name): Elide if the
92008         'canonicalize-lgpl' module is also used.
92009         * lib/canonicalize-lgpl.c: Undo last change.
92010         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
92012 2008-04-20  Bruno Haible  <bruno@clisp.org>
92014         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
92015         config.h. Provide _mkdir based fallback for mingw.
92016         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
92017         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
92018         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
92019         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
92020         rather than defining mkdir in config.h.
92021         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
92022         (gl_SYS_STAT_H_DEFAULTS): New macro.
92023         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
92024         HAVE_IO_H any more.
92025         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
92026         HAVE_DECL_MKDIR and HAVE_IO_H.
92028 2008-04-20  Bruno Haible  <bruno@clisp.org>
92030         * lib/isapipe.c: Port to native Windows platforms.
92032 2008-04-20  Bruno Haible  <bruno@clisp.org>
92034         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
92036 2008-04-21  Eric Blake  <ebb9@byu.net>
92038         Work around preprocessors that don't handle UINTMAX_MAX.
92039         * lib/memchr2.c (memchr2): Avoid embedded #if.
92040         Reported by Alain Guibert, fix suggested by Bruno Haible.
92042 2008-04-21  Simon Josefsson  <simon@josefsson.org>
92044         * doc/posix-functions/strftime.texi (strftime): Explain better
92045         Windows incompatibility.  Suggested by Micah Cowan
92046         <micah@cowan.name>.
92048 2008-04-20  Bruno Haible  <bruno@clisp.org>
92050         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
92051         unistr/u8-mblen.
92053 2008-04-20  Bruno Haible  <bruno@clisp.org>
92055         Fix test failure on platforms with non-GNU iconv.
92056         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
92057         (U_TO_U8): Use it, rather than u16_to_u8.
92058         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
92059         units at the end of the input string.
92060         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
92062 2008-04-20  Bruno Haible  <bruno@clisp.org>
92064         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
92065         when the resulting length is 0.
92066         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
92068 2008-04-20  Bruno Haible  <bruno@clisp.org>
92070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
92071         works.
92072         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
92074 2008-04-20  Bruno Haible  <bruno@clisp.org>
92076         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
92077         * modules/tsearch-tests (configure.ac): Test for initstate function.
92079 2008-04-20  Bruno Haible  <bruno@clisp.org>
92081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
92082         for nlink_t if missing.
92083         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
92085 2008-04-19  Bruno Haible  <bruno@clisp.org>
92087         Work around snprintf bug on Linux libc5.
92088         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
92089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
92090         gl_SNPRINTF_SIZE1.
92091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92092         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
92093         that test failed.
92094         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
92095         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
92096         * modules/snprintf (Files): Add m4/printf.m4.
92097         * modules/vsnprintf (Files): Likewise.
92098         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
92099         * doc/posix-functions/vsnprintf.texi: Likewise.
92101 2008-04-19  Bruno Haible  <bruno@clisp.org>
92103         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
92104         from 0.0058 to less than 10^-7.
92106 2008-04-19  Bruno Haible  <bruno@clisp.org>
92108         Fix rounding when a precision is given.
92109         * lib/vasnprintf.c (is_borderline): New function.
92110         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
92111         9...9x.
92112         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
92113         %e, %g.
92114         * tests/test-vasprintf-posix.c (test_function): Likewise.
92115         * tests/test-snprintf-posix.h (test_function): Likewise.
92116         * tests/test-sprintf-posix.h (test_function): Likewise.
92117         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
92118         * tests/test-printf-posix.h (test_function): Likewise.
92119         * tests/test-printf-posix.output: Update.
92120         Reported by John Darrington <john@darrington.wattle.id.au> via
92121         Ben Pfaff <blp@cs.stanford.edu>.
92123 2008-04-18  Simon Josefsson  <simon@josefsson.org>
92125         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
92126         Suggested by Bruno Haible <bruno@clisp.org>.
92128 2008-04-17  Bruno Haible  <bruno@clisp.org>
92130         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
92131         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
92132         implementation.
92133         Patch by Bruce Merry <bmerry@gmail.com>.
92135 2008-04-17  Simon Josefsson  <simon@josefsson.org>
92137         * doc/posix-functions/strftime.texi (strftime): Mention that %e
92138         doesn't work under Windows.
92140 2008-04-16  Bruno Haible  <bruno@clisp.org>
92142         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
92143         New macros.
92144         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
92145         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
92146         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
92147         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
92148         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
92149         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
92150         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
92151         macros.
92152         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
92153         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
92154         Northern Sotho, Uighur.
92156 2008-04-16  Bruno Haible  <bruno@clisp.org>
92158         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
92159         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
92160         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
92161         Reported by Daniel Bergström <daniel@octocode.com>.
92163 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
92164             Bruno Haible  <bruno@clisp.org>
92166         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
92167         function.
92168         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
92169         New functions, mostly extracted from gl_locale_name_default.
92170         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
92172 2008-04-16  Eric Blake  <ebb9@byu.net>
92174         Adjust strtod detection to catch glibc 2.7 bug.
92175         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
92176         Reported by John Gatewood Ham.
92178 2008-04-16  Bruno Haible  <bruno@clisp.org>
92180         Add tentative support for Linux libc5.
92181         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
92182         * lib/fpurge.c (fpurge): Likewise.
92183         * lib/freadable.c (freadable): Likewise.
92184         * lib/freadahead.c (freadahead): Likewise.
92185         * lib/freading.c (freading): Likewise.
92186         * lib/freadptr.c (freadptr): Likewise.
92187         * lib/freadseek.c (freadptrinc): Likewise.
92188         * lib/fseeko.c (rpl_fseeko): Likewise.
92189         * lib/fseterr.c (fseterr): Likewise.
92190         * lib/fwritable.c (fwritable): Likewise.
92191         * lib/fwriting.c (fwriting): Likewise.
92192         Reported by Alain Guibert <alguibert+bts@free.fr>.
92194 2008-04-15  Bruno Haible  <bruno@clisp.org>
92196         * modules/mathl (configure.ac): Define module indicator.
92198 2008-04-15  Bruno Haible  <bruno@clisp.org>
92200         * lib/logl.c (logl): Remove unused variables.
92202 2008-04-15  Bruno Haible  <bruno@clisp.org>
92204         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
92205         fails.
92207 2008-04-15  Bruno Haible  <bruno@clisp.org>
92209         * lib/trim.c (trim2): Fix argument of isspace() macro.
92211 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
92213         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
92214         to 0.
92215         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
92217 2008-04-14  Bruno Haible  <bruno@clisp.org>
92219         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
92220         AC_LANG_PROGRAM argument.
92221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
92222         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
92223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
92224         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92225         * m4/math_h.m4 (gl_MATH_H): Likewise.
92226         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
92227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92228         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92229         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
92230         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
92231         * m4/regex.m4 (gl_REGEX): Likewise.
92232         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
92233         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
92234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
92236         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92237         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92241 2008-04-14  Jim Meyering  <meyering@redhat.com>
92243         test-strtod: fix typos: s/abs/fabs/
92244         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
92246 2008-04-13  Bruno Haible  <bruno@clisp.org>
92248         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
92249         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
92250         module is also used and while not building the reloc-wrapper.
92252 2008-04-13  Bruno Haible  <bruno@clisp.org>
92254         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
92256 2008-04-13  Bruno Haible  <bruno@clisp.org>
92258         Fix AIX compilation failure introduced on 2008-04-02.
92259         * tests/test-frexp.c (exp): Undefine before redefining.
92260         * tests/test-frexpl.c (exp): Likewise.
92262 2008-04-13  Bruno Haible  <bruno@clisp.org>
92264         Work around a HP-UX stdio bug.
92265         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
92266         * tests/test-ftello.c (main): Likewise.
92267         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
92268         * doc/posix-functions/ftello.texi: Likewise.
92270 2008-04-13  Bruno Haible  <bruno@clisp.org>
92272         Make test-signbit pass on HP-UX/hppa.
92273         * tests/test-signbit.c (minus_zerol): New variable.
92274         (test_signbitl): Use it.
92276 2008-04-13  Bruno Haible  <bruno@clisp.org>
92278         Make truncl work on OSF/1 4.0.
92279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
92280         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92281         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
92283         HAVE_DECL_TRUNCL.
92284         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
92285         HAVE_DECL_TRUNCL.
92286         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
92288 2008-04-13  Bruno Haible  <bruno@clisp.org>
92290         * lib/unictype.h: Remove trailing comma from enumeration definitions.
92292 2008-04-13  Bruno Haible  <bruno@clisp.org>
92294         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
92295         expression, so as to avoid HP-UX 11 cc compiler bug.
92297 2008-04-13  Bruno Haible  <bruno@clisp.org>
92299         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
92301 2008-04-13  Bruno Haible  <bruno@clisp.org>
92303         * lib/git-merge-changelog.c: Remove empty declaration outside of
92304         functions.
92306 2008-04-13  Bruno Haible  <bruno@clisp.org>
92308         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
92310 2008-04-13  Bruno Haible  <bruno@clisp.org>
92312         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
92313         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
92314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
92315         also if it exists but lacks definitions of the SHUT_* macros.
92316         * modules/sys_socket (Description): Update.
92317         Reported by Elbert Pol <e.pol@chello.nl>.
92319 2008-04-13  Bruno Haible  <bruno@clisp.org>
92321         * lib/localcharset.c (OS2): Don't redefine if already defined.
92322         Reported by Elbert Pol <e.pol@chello.nl>.
92324 2008-04-13  Bruno Haible  <bruno@clisp.org>
92326         * lib/binary-io.h [__EMX__]: Include <io.h>.
92327         Reported by Elbert Pol <e.pol@chello.nl>.
92329 2008-04-12  Bruno Haible  <bruno@clisp.org>
92331         * lib/fpucw.h: Enable the definitions also for x86_64.
92332         Needed for NetBSD/x86_64.
92333         Reported by Thomas Klausner <tk@giga.or.at>.
92335 2008-04-12  Bruno Haible  <bruno@clisp.org>
92337         * tests/test-strtod.c: Include isnand.h.
92338         (main): Use isnand instead of isnan.
92339         Reported by Jim Meyering.
92341 2008-04-12  Bruno Haible  <bruno@clisp.org>
92343         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
92344         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92346 2008-04-12  Jim Meyering  <meyering@redhat.com>
92348         * m4/math_h.m4 (gl_MATH_H): Fix typos.
92350 2008-04-12  Bruno Haible  <bruno@clisp.org>
92352         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
92353         Reported by Elbert Pol <e.pol@chello.nl>.
92355 2008-04-12  Eric Blake  <ebb9@byu.net>
92357         Work around Solaris 10 math.h bug.
92358         * m4/math_h.m4 (gl_MATH_H): Check for bug.
92359         (gl_MATH_H_DEFAULTS): Set up default.
92360         * modules/math (Makefile.am): Replace new indicators.
92361         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
92362         * tests/test-math.c (main): Test this.
92363         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
92364         * doc/posix-headers/math.texi (math.h): Mention bug.
92365         Reported by Nelson H. F. Beebe and Jim Meyering.
92367 2008-04-11  Bruno Haible  <bruno@clisp.org>
92369         Adapt to future versions of Apple GCC.
92370         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
92371         Reported by Peter O'Gorman <peter@pogma.com>.
92373 2008-04-11  Bruno Haible  <bruno@clisp.org>
92375         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
92377 2008-04-11  Bruno Haible  <bruno@clisp.org>
92379         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92381         * modules/getaddrinfo-tests (Makefile.am): Define
92382         test_getaddrinfo_LDADD.
92384 2008-04-11  Bruno Haible  <bruno@clisp.org>
92386         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92387         (init): Fix syntax error.
92388         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92389         is declared.
92391 2008-04-11  Bruno Haible  <bruno@clisp.org>
92393         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92394         * modules/glob (Depends-on): Add stdbool.
92396 2008-04-11  Bruno Haible  <bruno@clisp.org>
92398         * lib/trim.c: Include <string.h>.
92400 2008-04-11  Eric Blake  <ebb9@byu.net>
92402         Avoid compile failure on OS/2.
92403         * lib/regex_internal.h (internal_function): Disable optimization
92404         on OS/2 (__EMX__), where it caused compiler error.
92405         Reported by Elbert Pol.
92407 2008-04-11  Bruno Haible  <bruno@clisp.org>
92409         Flush the standard error stream before aborting. Needed on mingw.
92410         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92411         * tests/test-array_list.c (ASSERT): Likewise.
92412         * tests/test-array_oset.c (ASSERT): Likewise.
92413         * tests/test-avltree_list.c (ASSERT): Likewise.
92414         * tests/test-avltree_oset.c (ASSERT): Likewise.
92415         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92416         * tests/test-binary-io.c (ASSERT): Likewise.
92417         * tests/test-byteswap.c (ASSERT): Likewise.
92418         * tests/test-c-ctype.c (ASSERT): Likewise.
92419         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92420         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92421         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92422         * tests/test-c-strstr.c (ASSERT): Likewise.
92423         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92424         * tests/test-canonicalize.c (ASSERT): Likewise.
92425         * tests/test-carray_list.c (ASSERT): Likewise.
92426         * tests/test-ceilf1.c (ASSERT): Likewise.
92427         * tests/test-ceilf2.c (ASSERT): Likewise.
92428         * tests/test-ceill.c (ASSERT): Likewise.
92429         * tests/test-count-one-bits.c (ASSERT): Likewise.
92430         * tests/test-fbufmode.c (ASSERT): Likewise.
92431         * tests/test-fflush2.c (ASSERT): Likewise.
92432         * tests/test-floorf1.c (ASSERT): Likewise.
92433         * tests/test-floorf2.c (ASSERT): Likewise.
92434         * tests/test-floorl.c (ASSERT): Likewise.
92435         * tests/test-fopen.c (ASSERT): Likewise.
92436         * tests/test-fpending.c (ASSERT): Likewise.
92437         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92438         * tests/test-fpurge.c (ASSERT): Likewise.
92439         * tests/test-freadable.c (ASSERT): Likewise.
92440         * tests/test-freadahead.c (ASSERT): Likewise.
92441         * tests/test-freading.c (ASSERT): Likewise.
92442         * tests/test-freadptr.c (ASSERT): Likewise.
92443         * tests/test-freadptr2.c (ASSERT): Likewise.
92444         * tests/test-freadseek.c (ASSERT): Likewise.
92445         * tests/test-freopen.c (ASSERT): Likewise.
92446         * tests/test-frexp.c (ASSERT): Likewise.
92447         * tests/test-frexpl.c (ASSERT): Likewise.
92448         * tests/test-fseek.c (ASSERT): Likewise.
92449         * tests/test-fseeko.c (ASSERT): Likewise.
92450         * tests/test-fstrcmp.c (ASSERT): Likewise.
92451         * tests/test-ftell.c (ASSERT): Likewise.
92452         * tests/test-ftello.c (ASSERT): Likewise.
92453         * tests/test-func.c (ASSERT): Likewise.
92454         * tests/test-fwritable.c (ASSERT): Likewise.
92455         * tests/test-fwriting.c (ASSERT): Likewise.
92456         * tests/test-getdelim.c (ASSERT): Likewise.
92457         * tests/test-getline.c (ASSERT): Likewise.
92458         * tests/test-i-ring.c (ASSERT): Likewise.
92459         * tests/test-iconv-utf.c (ASSERT): Likewise.
92460         * tests/test-iconv.c (ASSERT): Likewise.
92461         * tests/test-isfinite.c (ASSERT): Likewise.
92462         * tests/test-isnand.c (ASSERT): Likewise.
92463         * tests/test-isnanf.c (ASSERT): Likewise.
92464         * tests/test-isnanl.h (ASSERT): Likewise.
92465         * tests/test-ldexpl.c (ASSERT): Likewise.
92466         * tests/test-linked_list.c (ASSERT): Likewise.
92467         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92468         * tests/test-localename.c (ASSERT): Likewise.
92469         * tests/test-lseek.c (ASSERT): Likewise.
92470         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92471         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92472         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92473         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92474         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92475         * tests/test-mbschr.c (ASSERT): Likewise.
92476         * tests/test-mbscspn.c (ASSERT): Likewise.
92477         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92478         * tests/test-mbspbrk.c (ASSERT): Likewise.
92479         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92480         * tests/test-mbsrchr.c (ASSERT): Likewise.
92481         * tests/test-mbsspn.c (ASSERT): Likewise.
92482         * tests/test-mbsstr1.c (ASSERT): Likewise.
92483         * tests/test-mbsstr2.c (ASSERT): Likewise.
92484         * tests/test-mbsstr3.c (ASSERT): Likewise.
92485         * tests/test-memchr2.c (ASSERT): Likewise.
92486         * tests/test-memmem.c (ASSERT): Likewise.
92487         * tests/test-open.c (ASSERT): Likewise.
92488         * tests/test-printf-frexp.c (ASSERT): Likewise.
92489         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92490         * tests/test-printf-posix.c (ASSERT): Likewise.
92491         * tests/test-quotearg.c (ASSERT): Likewise.
92492         * tests/test-rbtree_list.c (ASSERT): Likewise.
92493         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92494         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92495         * tests/test-round1.c (ASSERT): Likewise.
92496         * tests/test-roundf1.c (ASSERT): Likewise.
92497         * tests/test-roundl.c (ASSERT): Likewise.
92498         * tests/test-signbit.c (ASSERT): Likewise.
92499         * tests/test-sleep.c (ASSERT): Likewise.
92500         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92501         * tests/test-snprintf.c (ASSERT): Likewise.
92502         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92503         * tests/test-stat-time.c (ASSERT): Likewise.
92504         * tests/test-strcasestr.c (ASSERT): Likewise.
92505         * tests/test-strerror.c (ASSERT): Likewise.
92506         * tests/test-striconv.c (ASSERT): Likewise.
92507         * tests/test-striconveh.c (ASSERT): Likewise.
92508         * tests/test-striconveha.c (ASSERT): Likewise.
92509         * tests/test-strsignal.c (ASSERT): Likewise.
92510         * tests/test-strstr.c (ASSERT): Likewise.
92511         * tests/test-strtod.c (ASSERT): Likewise.
92512         * tests/test-trunc1.c (ASSERT): Likewise.
92513         * tests/test-trunc2.c (ASSERT): Likewise.
92514         * tests/test-truncf1.c (ASSERT): Likewise.
92515         * tests/test-truncf2.c (ASSERT): Likewise.
92516         * tests/test-truncl.c (ASSERT): Likewise.
92517         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92518         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92519         * tests/test-vasnprintf.c (ASSERT): Likewise.
92520         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92521         * tests/test-vasprintf.c (ASSERT): Likewise.
92522         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92523         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92524         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92525         * tests/test-vsnprintf.c (ASSERT): Likewise.
92526         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92527         * tests/test-wcwidth.c (ASSERT): Likewise.
92528         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92529         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92530         * tests/test-xvasprintf.c (ASSERT): Likewise.
92531         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92532         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92533         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92534         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92535         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92536         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92537         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92538         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92539         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92540         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92541         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92542         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92543         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92544         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92545         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92546         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92547         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92548         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92549         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92550         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92551         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92552         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92553         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92554         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92555         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92556         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92557         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92558         * tests/unictype/test-combining.c (ASSERT): Likewise.
92559         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92560         * tests/unictype/test-digit.c (ASSERT): Likewise.
92561         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92562         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92563         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92564         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92565         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92566         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92567         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92568         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92569         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92570         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92571         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92572         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92573         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92574         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92575         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92576         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92577         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92578         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92579         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92580         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92581         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92582         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92583         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92584         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92585         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92586         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92587         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92588         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92589         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92590         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92591         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92592         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92593         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92594         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92595         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92596         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92597         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92598         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92599         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92600         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92601         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92602         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92603         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92604         Reported by Eric Blake.
92606 2008-04-11  Bruno Haible  <bruno@clisp.org>
92608         * lib/wchar.in.h: Tweak comment.
92610 2008-04-11  Bruno Haible  <bruno@clisp.org>
92612         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92613         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92614         gl_COMMON.
92615         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92617 2008-04-11  Bruno Haible  <bruno@clisp.org>
92619         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92621 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92623         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92624         of attempting to use non-existing /dev/*random.  Based on patch
92625         from Adam Strzelecki <ono@java.pl> in
92626         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92628 2008-04-08  Bruno Haible  <bruno@clisp.org>
92630         Add tentative support for emx+gcc.
92631         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92632         * lib/fpurge.c (fpurge): Likewise.
92633         * lib/freadable.c (freadable): Likewise.
92634         * lib/freadahead.c (freadahead): Likewise.
92635         * lib/freading.c (freading): Likewise.
92636         * lib/freadptr.c (freadptr): Likewise.
92637         * lib/freadseek.c (freadptrinc): Likewise.
92638         * lib/fseeko.c (rpl_fseeko): Likewise.
92639         * lib/fseterr.c (fseterr): Likewise.
92640         * lib/fwritable.c (fwritable): Likewise.
92641         * lib/fwriting.c (fwriting): Likewise.
92642         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92644 2008-04-09  Eric Blake  <ebb9@byu.net>
92646         Avoid some autoconf warnings.
92647         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92648         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92649         * m4/afs.m4 (gl_AFS): Likewise.
92650         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92651         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92653         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92654         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92655         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92656         (AC_CHECK_DECLS_ONCE): Likewise.
92657         Rename file...
92658         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92659         gnulib-tool requires autoconf 2.59 or better.
92660         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92662 2008-04-08  Eric Blake  <ebb9@byu.net>
92664         Use 'git describe --match' if present (added in git 1.5.5).
92665         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92666         if possible.
92668 2008-04-08  Bruno Haible  <bruno@clisp.org>
92670         Add tentative support for OpenServer.
92671         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92672         _ptr, _cnt.
92673         * lib/fpurge.c (fpurge): Likewise.
92674         * lib/freadable.c (freadable): Likewise.
92675         * lib/freadahead.c (freadahead): Likewise.
92676         * lib/freading.c (freading): Likewise.
92677         * lib/freadptr.c (freadptr): Likewise.
92678         * lib/freadseek.c (freadptrinc): Likewise.
92679         * lib/fseeko.c (rpl_fseeko): Likewise.
92680         * lib/fseterr.c (fseterr): Likewise.
92681         * lib/fwritable.c (fwritable): Likewise.
92682         * lib/fwriting.c (fwriting): Likewise.
92683         Reported by Roger Cornelius <rac@tenzing.org> and
92684         Brian K. White <brian@aljex.com>.
92686 2008-04-06  Jim Meyering  <meyering@redhat.com>
92688         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92690 2008-04-06  Bruno Haible  <bruno@clisp.org>
92692         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92693         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92694         * tests/test-printf-posix.sh: Likewise.
92695         * tests/test-vfprintf-posix.sh: Likewise.
92696         * tests/test-vprintf-posix.sh: Likewise.
92697         * tests/test-xprintf-posix.sh: Likewise.
92699 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92701         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92702         hide error from 'ls', needed on OS/2.
92703         Report by Elbert Pol <elbert.pol@gmail.com>.
92705 2008-04-04  Eric Blake  <ebb9@byu.net>
92707         Make test-fseeko.c failures meaningful.
92708         * tests/test-fseeko.c: Print line number on failure.
92709         * tests/test-fseek.c: Likewise.
92710         Reported by Nelson H. F. Beebe.
92712         Improve strtod bug detection check.
92713         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92714         required for Solaris 10.
92715         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92717 2008-04-04  Bruno Haible  <bruno@clisp.org>
92719         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92720         by m4/setenv.m4.
92722 2008-04-03  Eric Blake  <ebb9@byu.net>
92724         Ensure sane .version contents.
92725         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92726         version string.
92727         * build-aux/git-version-gen: Improve documentation.
92729         Make GNU make output nicer.
92730         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92731         MAKECMDGOALS to enforce message for all command line targets.  Set
92732         srcdir for use in maint.mk.
92734         Another maintainer tweak.
92735         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92736         a target that regenerates version.
92738 2008-04-03  Jim Meyering  <meyering@redhat.com>
92740         vc-list-files: don't cause coreutils "make po-check" failure
92741         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92743 2008-04-03  Eric Blake  <ebb9@byu.net>
92745         Allow VPATH usage of vc-list-files.
92746         * build-aux/vc-list-files (scriptversion): Add timestamp.
92747         (options): Add --help, --version, -C.
92748         (CVS): Support installed cvsu.
92750 2008-04-02  Bruno Haible  <bruno@clisp.org>
92752         Avoid some "statement with no effect" warnings from gcc.
92753         * tests/test-wctype.c (main): Explicitly ignore unused values.
92754         Reported by Jim Meyering.
92756 2008-04-02  Jim Meyering  <meyering@redhat.com>
92758         Avoid some warnings from "gcc -Wshadow".
92759         * tests/test-frexp.c (exp): Define to a different identifier.
92760         * tests/test-frexpl.c (exp): Likewise.
92762 2008-04-03  Jim Meyering  <meyering@redhat.com>
92764         bootstrap: remove dangling *.[ch] symlinks from lib
92765         * build-aux/bootstrap [dangling symlink removal]: Move find's
92766         -depth option to precede all others, to avoid a warning.
92767         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92769 2008-04-02  Bruno Haible  <bruno@clisp.org>
92771         Avoid some warnings from "gcc -Wshadow".
92772         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92773         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92774         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92775         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92776         Reported by Jim Meyering.
92778 2008-04-01  Bruno Haible  <bruno@clisp.org>
92780         Fix test to work on IRIX 6.5 with cc.
92781         * tests/test-math.c (numeric_equal): New function.
92782         (main): Use it.
92784 2008-04-01  Bruno Haible  <bruno@clisp.org>
92786         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92788 2008-04-01  Bruno Haible  <bruno@clisp.org>
92790         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92791         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92792         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
92793         (Depends-on): Remove math.
92795         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92796         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92797         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
92798         (Depends-on): Remove math.
92800         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
92801         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92802         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
92803         (Depends-on): Remove math.
92804         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
92805         (Depends-on): Remove math.
92807         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
92808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92809         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
92810         (Depends-on): Remove math.
92811         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
92812         (Depends-on): Remove math.
92814         * tests/test-round1.c: Include nan.h.
92815         (main): Use NaNd instead of NAN.
92816         * modules/round-tests (Files): Add tests/nan.h.
92818         * tests/test-trunc1.c: Include nan.h.
92819         (main): Use NaNd instead of NAN.
92820         * modules/trunc-tests (Files): Add tests/nan.h.
92822         * tests/test-roundf1.c: Include nan.h.
92823         (main): Use NaNf instead of NAN.
92824         * modules/roundf-tests (Files): Add tests/nan.h.
92826         * tests/test-truncf1.c: Include nan.h.
92827         (main): Use NaNf instead of NAN.
92828         * modules/truncf-tests (Files): Add tests/nan.h.
92830         * tests/test-ceilf1.c: Include nan.h.
92831         (main): Use NaNf instead of NAN.
92832         * modules/ceilf-tests (Files): Add tests/nan.h.
92834         * tests/test-floorf1.c: Include nan.h.
92835         (main): Use NaNf instead of NAN.
92836         * modules/floorf-tests (Files): Add tests/nan.h.
92838         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92839         (main): Use NaNf instead of NAN.
92840         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92842         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92843         (main): Use NaNd instead of NAN.
92844         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92846         * tests/test-frexp.c: Include nan.h.
92847         (main): Use NaNd instead of NAN.
92848         * modules/frexp-tests (Files): Add tests/nan.h.
92850         * lib/isnan.c: Don't include <math.h>.
92851         (FUNC): Don't use NAN macro.
92852         * modules/isnand-nolibm (Depends-on): Remove math.
92853         * modules/isnanf-nolibm (Depends-on): Remove math.
92854         * modules/isnanl (Depends-on): Remove math.
92855         * modules/isnanl-nolibm (Depends-on): Remove math.
92857         * tests/nan.h: New file.
92859 2008-04-01  Eric Blake  <ebb9@byu.net>
92861         Fix typos.
92862         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92863         values to be the right type.
92865         For now, cater to gnulib strtod inaccuracies.
92866         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92867         fractional results.  While not as nice from a QoI perspective, it
92868         is a quicker patch than correctly implementing decimal to binary
92869         rounding.
92871 2008-03-31  Eric Blake  <ebb9@byu.net>
92873         Guarantee a definition of NAN.
92874         * lib/math.in.h (NAN): Define if missing.
92875         * tests/test-math.c (main): Test it.
92876         * doc/posix-headers/math.texi (math.h): Document this.
92877         * lib/isnan.c (rpl_isnand): Use it.
92878         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92879         * tests/test-floorf1.c (NaN): Likewise.
92880         * tests/test-frexp.c (NaN): Likewise.
92881         * tests/test-isnand.c (NaN): Likewise.
92882         * tests/test-isnanf.c (NaN): Likewise.
92883         * tests/test-round1.c (NaN): Likewise.
92884         * tests/test-roundf1.c (NaN): Likewise.
92885         * tests/test-snprintf-posix.h (NaN): Likewise.
92886         * tests/test-sprintf-posix.h (NaN): Likewise.
92887         * tests/test-trunc1.c (NaN): Likewise.
92888         * tests/test-truncf1.c (NaN): Likewise.
92889         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92890         * tests/test-vasprintf-posix.c (NaN): Likewise.
92891         * modules/isnand-nolibm (Depends-on): Add math.
92892         * modules/isnanf-nolibm (Depends-on): Likewise.
92893         * modules/isnanl (Depends-on): Likewise.
92894         * modules/isnanl-nolibm (Depends-on): Likewise.
92895         * modules/snprintf-posix-tests (Depends-on): Likewise.
92896         * modules/sprintf-posix-tests (Depends-on): Likewise.
92897         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92898         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92899         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92900         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92902 2008-03-31  Bruno Haible  <bruno@clisp.org>
92904         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92905         * doc/posix-functions/strtod.texi: Likewise.
92907 2008-03-31  Bruno Haible  <bruno@clisp.org>
92909         * tests/test-strtod.c (main): Don't use C99 syntax.
92911 2008-03-31  Bruno Haible  <bruno@clisp.org>
92913         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92914         Reported by Eric Blake.
92916 2008-03-31  Jim Meyering  <meyering@redhat.com>
92918         Don't compare actual signbit return values.
92919         * tests/test-strtod.c (main): Rather, compare only their
92920         zero/non-zero nature.
92922 2008-03-31  Eric Blake  <ebb9@byu.net>
92924         More strtod documentation.
92925         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92926         failures as distinct bugs.
92928 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92930         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92931         Problem reported by Erik Benada in
92932         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92934 2008-03-30  Bruno Haible  <bruno@clisp.org>
92936         * tests/test-strtod.c: Add comments about which assertion fails on which
92937         platform.
92938         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92940 2008-03-30  Eric Blake  <ebb9@byu.net>
92942         Test signbit behavior on zeros.
92943         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92944         (test_signbitd, test_signbitl): Likewise.
92946         More strtod touchups.
92947         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92948         sign of negative underflow, for now.  Use .5, not .1.
92949         * doc/posix-functions/strtod.texi (strtod): Mention these
92950         limitations.
92951         Reported by Jim Meyering.
92953 2008-03-30  Bruno Haible  <bruno@clisp.org>
92955         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92956         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92958 2008-03-30  Bruno Haible  <bruno@clisp.org>
92960         Avoid failure when attempting to return empty iconv results on some
92961         platforms.
92962         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92963         allocation, don't report ENOMEM when the resulting string is empty.
92965 2008-03-30  Bruno Haible  <bruno@clisp.org>
92967         Fix buffer overrun.
92968         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92969         Don't consider the width for tmp_length. Check count against tmp_length
92970         before doing the padding. Ensure enough allocation during padding.
92972 2008-03-30  Eric Blake  <ebb9@byu.net>
92974         strtod touchups.
92975         * lib/strtod.c (strtod): Avoid compiler warnings.
92976         Reported by Jim Meyering.
92978 2008-03-30  Bruno Haible  <bruno@clisp.org>
92980         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92981         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92982         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92983         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92984         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92985         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92986         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92987         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92989         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92990         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92991         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92992         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92993         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92994         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92995         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92996         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92998         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92999         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
93000         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
93001         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
93002         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
93003         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
93004         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
93005         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
93007         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
93008         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
93010         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
93011         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
93013         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
93014         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
93016         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
93017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
93018         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
93020         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
93021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
93022         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
93024         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
93025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
93026         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
93028         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
93029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
93030         * modules/vasprintf (Depends-on): Add EOVERFLOW.
93032         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
93033         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
93034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
93035         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
93036         (Depends-on): Add EOVERFLOW.
93037         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
93038         (Depends-on): Add EOVERFLOW.
93039         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93040         (Depends-on): Add EOVERFLOW.
93041         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93042         (Depends-on): Add EOVERFLOW.
93043         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93044         (Depends-on): Add EOVERFLOW.
93045         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93046         (Depends-on): Add EOVERFLOW.
93047         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93048         (Depends-on): Add EOVERFLOW.
93049         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93050         (Depends-on): Add EOVERFLOW.
93052         * lib/sprintf.c (EOVERFLOW): Remove fallback.
93053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
93054         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
93056         * lib/snprintf.c (EOVERFLOW): Remove fallback.
93057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
93058         * modules/snprintf (Depends-on): Add EOVERFLOW.
93060         * lib/poll.c (EOVERFLOW): Remove fallback.
93061         * modules/poll (Depends-on): Add EOVERFLOW.
93063         * lib/getugroups.c (EOVERFLOW): Remove fallback.
93064         * modules/getugroups (Depends-on): Add EOVERFLOW.
93066         * lib/getdelim.c (EOVERFLOW): Remove fallback.
93067         * modules/getdelim (Depends-on): Add EOVERFLOW.
93069         * lib/ftell.c (EOVERFLOW): Remove fallback.
93070         * modules/ftell (Depends-on): Add EOVERFLOW.
93072         * lib/fprintf.c (EOVERFLOW): Remove fallback.
93073         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
93074         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
93076         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
93078         * modules/EOVERFLOW-tests: New file.
93079         * tests/test-EOVERFLOW.c: New file.
93081         * modules/EOVERFLOW: New file.
93082         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
93084 2008-03-30  Bruno Haible  <bruno@clisp.org>
93086         Fix bug introduced on 2007-06-10.
93087         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
93088         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
93090 2008-03-30  Bruno Haible  <bruno@clisp.org>
93092         Improve freadseek's efficiency after ungetc.
93093         * lib/freadseek.c: Include freadahead.h.
93094         (freadptrinc): New function, extracted from freadseek.
93095         (freadseek): Use it in a loop. Use freadahead to determine the number
93096         of loop iterations.
93097         * modules/freadseek (Depends-on): Add freadahead.
93098         (configure.ac): Require AC_C_INLINE.
93100 2008-03-30  Bruno Haible  <bruno@clisp.org>
93102         * lib/freadseek.c (freadseek): Don't ignore the return value of
93103         freadptr.
93105 2008-03-29  Eric Blake  <ebb9@byu.net>
93107         Add hex float support.
93108         * modules/strtod (Depends-on): Add c-ctype.
93109         (Link): Mention POW_LIB.
93110         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
93111         whitespace between 'e' and exponent.
93112         * tests/test-strtod.c (main): Enable hex float tests.
93113         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
93114         now provides.
93116         Document various strtod bugs, with some fixes.
93117         * doc/posix-functions/strtod.texi (strtod): Document bugs with
93118         "-0x", "inf", "nan", and hex constants.
93119         * doc/posix-functions/atof.texi (atof): Likewise.
93120         * modules/stdlib (Makefile.am): Support strtod.
93121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
93122         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
93123         detect additional strtod bugs.
93124         * lib/stdlib.in.h (rpl_strtod): Add declarations.
93125         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
93126         bool where appropriate.  Parse 'inf' and 'nan'.
93127         * tests/test-strtod.c: New file.
93128         * modules/strtod (Depends-on): Add stdbool, stdlib.
93129         (configure.ac): Turn on module indicator.
93130         * modules/strtod-tests: New module.
93132 2008-03-29  Eric Blake  <ebb9@byu.net>
93134         Fix ftell on mingw.
93135         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
93136         * modules/ftell-tests (Depends-on): Add binary-io.
93137         * modules/ftello-tests (Depends-on): Likewise.
93138         * tests/test-ftell.c (main): Enhance test to cover behavior after
93139         ungetc.  Enforce binary mode.
93140         * tests/test-ftello.c (main): Likewise.
93142         Pass test-freadseek on cygwin.
93143         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
93144         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
93145         ungetc buffer.
93147         * tests/test-fflush2.c (main): Fix typo.
93149 2008-03-29  Bruno Haible  <bruno@clisp.org>
93151         * tests/test-fflush2.c (main): Temporarily disable the contents of
93152         this test.
93153         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
93154         Reported by Eric Blake.
93156 2008-03-28  Simon Josefsson  <simon@josefsson.org>
93158         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
93159         (GC_SHA224_DIGEST_SIZE): Add.
93161         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
93162         (gc_hash_digest_length): Likewise.
93163         (gc_hash_buffer): Likewise.
93165 2008-03-25  Bruno Haible  <bruno@clisp.org>
93167         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
93168         detail which gettext release to use.
93169         Reported by Simon Josefsson.
93171 2008-03-26  Jim Meyering  <meyering@redhat.com>
93173         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
93174         * modules/gnumakefile (clean-GNUmakefile): Also, use
93175         test ... && ... || : syntax rather than if-then ... fi.
93177         gnumakefile: Don't double-quote-expand $(VPATH) value.
93178         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
93180 2008-03-24  Eric Blake  <ebb9@byu.net>
93182         Alter GNUmakefile to install into top directory.
93183         * modules/maintainer-makefile: Split, and add dependency...
93184         * modules/gnumakefile: to this new module.
93185         * build-aux/GNUmakefile: Move...
93186         * top/GNUmakefile: ...here.
93187         * build-aux/maint.mk: Move...
93188         * top/maint.mk: ...here.
93189         * MODULES.html.sh (Support for maintaining...): Document new
93190         module.
93192 2008-03-23  Bruno Haible  <bruno@clisp.org>
93194         * gnulib-tool: New options --vc-files, --no-vc-files.
93195         (func_usage): Document them.
93196         (vc_files): New variable.
93197         (func_import): Consider vc_files.
93198         (func_create_testdir): Set vc_files to empty.
93199         Suggested by Jim Meyering and Karl Berry.
93201 2008-03-23  Bruno Haible  <bruno@clisp.org>
93203         Fix regex compilation error on HP-UX 11.
93204         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
93205         * modules/regex (Files): Add m4/mbstate_t.m4.
93206         Reported by Ton Voon <ton.voon@altinity.com>.
93208 2008-03-23  Bruno Haible  <bruno@clisp.org>
93210         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
93212 2008-03-23  Eric Blake  <ebb9@byu.net>
93213             Bruno Haible  <bruno@clisp.org>
93215         Install files from top/ in the destination directory.
93216         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93217         augmentation also for the files from top/.
93218         (func_import, func_create_testdir): Rewrite file names:
93219         top/filename -> filename.
93221 2008-03-23  Bruno Haible  <bruno@clisp.org>
93223         Tweak "gnulib --version" output.
93224         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
93226 2008-03-23  Bruno Haible  <bruno@clisp.org>
93228         Tweak "gnulib --version" output.
93229         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
93230         rather than contents of ChangeLog, when possible.
93232 2008-03-21  Eric Blake  <ebb9@byu.net>
93234         More --version tweaks.
93235         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
93236         date of last ChangeLog entry.
93238 2008-03-21  Jim Meyering  <meyering@redhat.com>
93240         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
93242 2008-03-20  Eric Blake  <ebb9@byu.net>
93244         VPATH fix.
93245         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
93247 2008-03-20  Simon Josefsson  <simon@josefsson.org>
93249         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
93250         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
93252 2008-03-20  Eric Blake  <ebb9@byu.net>
93254         Sync GNUmakefile with coreutils.
93255         * build-aux/GNUmakefile (have-Makefile): Rename...
93256         (_have-Makefile): ...to this, for namespace consideration.
93257         (GNUmakefile.cfg): Include, if present.
93258         (_autoreconf): Define a default.
93259         (_is-dist-target): New rule for rebuilds to pick up intra-release
93260         version.
93261         (maint-cfg.mk): Rename...
93262         (cfg.mk): ...to this.
93264 2008-03-18  Jim Meyering  <meyering@redhat.com>
93266         New script and module: mktempd
93267         * MODULES.html.sh (maint+release support): Add mktempd.
93268         * build-aux/mktempd: New file.
93269         * modules/mktempd: New file.
93271 2008-03-15  Jim Meyering  <meyering@redhat.com>
93273         Undo last change.
93274         * lib/sha1.c, lib/md5.c: 63 != ~63.
93275         Reported by Andreas Schwab.
93277         sha1.c, md5.c: Hoist a redundant expression.
93278         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
93279         "ctx->buflen" only once, before calling *_process_block.
93280         * lib/md5.c (md5_process_bytes): Likewise.
93282 2008-03-14  Eric Blake  <ebb9@byu.net>
93284         Bump copyright year in files generated by gnulib-tool.
93285         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
93286         gnulib-tool, rather than hard-coding it.
93288         Fix 'gnulib-tool --version' output to work with git.
93289         * gnulib-tool (func_gnulib_dir): New function, extracted from...
93290         (startup): ...here.
93291         (func_version): Use it to invoke git-version-gen, rather than
93292         relying on CVS keyword expansion.  Modernize wording.
93293         (cvsdatestamp, last_checkin_date, version): Kill unused
93294         variables.
93296 2008-03-12  Jim Meyering  <meyering@redhat.com>
93298         Recognize optional cast of the argument to free.
93299         * build-aux/useless-if-before-free: Update regexps.
93301         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
93303 2008-03-11  Bruno Haible  <bruno@clisp.org>
93305         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
93306         by a single package.
93307         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
93308         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
93309         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
93310         Reported by Sam Steingold <sds@gnu.org>.
93312 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93314         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
93315         repositories.
93317 2008-03-11  Bruno Haible  <bruno@clisp.org>
93319         Avoid conflicts between local macro definitions.
93320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93321         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
93323 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
93324             Bruno Haible  <bruno@clisp.org>
93326         Make va_copy work with some version of xlc on AIX 5.1.
93327         * lib/stdarg.in.h: New file.
93328         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
93329         On AIX, use a <stdarg.h> file substitute.
93330         * modules/stdarg (Files): Add lib/stdarg.in.h.
93331         (Depends-on): Add include_next.
93332         (Makefile.am): Build a stdarg.h substitute if requested.
93333         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
93335 2008-03-10  Bruno Haible  <bruno@clisp.org>
93337         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
93338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93339         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93341 2008-03-10  Bruno Haible  <bruno@clisp.org>
93343         * modules/stdlib (Depends-on): Add include_next, remove
93344         absolute-header.
93346 2008-03-09  Bruno Haible  <bruno@clisp.org>
93348         * lib/freadahead.h (freadahead): Document more precisely.
93349         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
93350         the sum of both buffer sizes.
93351         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
93352         * NEWS: Document the change.
93354 2008-03-09  Bruno Haible  <bruno@clisp.org>
93356         Extend freadptr to return also the buffer size.
93357         * lib/freadptr.h (freadptr): Add sizep argument.
93358         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
93359         (freadptr): Add sizep argument. Determine buffer size like freadahead
93360         does.
93361         * tests/test-freadptr.c: Don't include freadahead.h.
93362         (main): Adapt for new calling convention of freadptr.
93363         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
93364         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
93365         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
93366         tests/test-freadptr2.sh.
93367         (Depends): Remove freadahead.
93368         (TESTS): Add test-freadptr2.sh.
93369         (check_PROGRAMS): Add test-freadptr2.
93371 2008-03-09  Bruno Haible  <bruno@clisp.org>
93373         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
93374         Report and solution by Simon Josefsson.
93376 2008-03-06  Bruno Haible  <bruno@clisp.org>
93378         Make fflush after ungetc work on BSD platforms.
93379         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93380         * tests/test-fflush2.c: New file.
93381         * tests/test-fflush2.sh: New file.
93382         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93383         tests/test-fflush2.c.
93384         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93385         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93387 2008-03-06  Eric Blake  <ebb9@byu.net>
93389         Likewise for ftello.
93390         * modules/ftello (Dependencies): Add extensions.
93391         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93393 2008-03-06  Bruno Haible  <bruno@clisp.org>
93395         * modules/fseeko (Dependencies): Add extensions.
93396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93397         Needed on glibc systems.
93399 2008-03-06  Bruno Haible  <bruno@clisp.org>
93401         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93402         email address.
93403         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93405 2008-03-06  Bruno Haible  <bruno@clisp.org>
93407         * users.txt: Add libgnupdf.
93409 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93411         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93412         (Header File Substitutes, Function Substitutes,
93413         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93414         (Build robot for gnulib): Fix typo.
93416 2008-03-06  Bruno Haible  <bruno@clisp.org>
93418         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93419         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93421 2008-03-06  Bruno Haible  <bruno@clisp.org>
93423         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93424         * doc/gnulib.texi: Include it.
93426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93428         * modules/func (License): Change license to unlimited; there was
93429         no LGPL parts in the module anyway.
93431 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93433         * modules/__func__: Renamed to modules/func.
93434         * modules/__func__-tests: Renamed to modules/func-tests.
93435         * tests/test-__func__.c: Renamed to tests/test-func.c.
93436         * m4/__func__.m4: Renamed to m4/func.m4.
93437         * doc/gnulib.texi (__func__): Section renamed to func.
93438         Suggested by Eric Blake <ebb9@byu.net>.
93440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93442         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93443         about __func__.  Make example self-contained.  Suggested by Eric
93444         Blake <ebb9@byu.net>.
93446         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93447         Suggested by Eric Blake <ebb9@byu.net>.
93449 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93451         * modules/__func__: New file.
93452         * modules/__func__-tests: New file.
93453         * tests/test-__func__.c: New file.
93454         * m4/__func__.m4: New file.
93455         * doc/gnulib.texi (__func__): Document __func__ module.
93457 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93459         * modules/byteswap (License): Re-license as LGPLv2+.
93461 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93463         * doc/Makefile: Add pdf target.
93465 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93467         * modules/inline (License): Use 'unlimited', since there are only
93468         *.m4 files in this module.
93470 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93471             Bruno Haible  <bruno@clisp.org>
93473         Add support for HP C 7.1 on OpenVMS 8.3.
93474         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93476 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93478         Update VMS specifics.
93479         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93481 2008-03-02  Jim Meyering  <meyering@redhat.com>
93483         Remove the last dependency on the "free" module.
93484         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93485         Reported by Bob Proulx.
93487         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93489         Remove useless "if" tests before free.  Deprecate "free" module.
93490         * doc/posix-functions/free.texi: Mention that this
93491         module is no longer useful.
93492         * modules/free (Notice): Say this module is obsolete.
93493         * modules/readutmp (Depends-on): Remove free.
93494         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93495         * lib/putenv.c (putenv): Likewise.
93496         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93497         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93498         * tests/test-c-strcasestr.c (main): Likewise.
93499         * tests/test-c-strstr.c (main): Likewise.
93500         * tests/test-mbscasestr1.c (main): Likewise.
93501         * tests/test-mbscasestr2.c (main): Likewise.
93502         * tests/test-mbsstr1.c (main): Likewise.
93503         * tests/test-mbsstr2.c (main): Likewise.
93504         * tests/test-memmem.c (main): Likewise.
93505         * tests/test-strcasestr.c (main): Likewise.
93506         * tests/test-striconv.c (main): Likewise.
93507         * tests/test-striconveh.c (main): Likewise.
93508         * tests/test-striconveha.c (main): Likewise.
93509         * tests/test-strstr.c (main): Likewise.
93511         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93513         bootstrap: sync from coreutils again
93514         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93516 2008-03-01  Jim Meyering  <meyering@redhat.com>
93518         bootstrap: sync from coreutils
93519         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93520         also when the target doesn't exist.
93522 2008-03-01  Eric Blake  <ebb9@byu.net>
93524         Fix bugs in last patch.
93525         * lib/memchr2.c (memchr2): Fix typo.
93526         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93527         extension.
93528         Reported by Bruce Korb.
93530         New module 'memchr2'.
93531         * modules/memchr2: New file.
93532         * modules/memchr2-tests: Likewise.
93533         * lib/memchr2.h: Likewise.
93534         * lib/memchr2.c: Likewise, based on memchr.c.
93535         * tests/test-memchr2.c: New test.
93536         * MODULES.html.sh (String handling): Add memchr2.
93538 2008-02-29  Bruno Haible  <bruno@clisp.org>
93540         * modules/freadseek-tests: New file.
93541         * tests/test-freadseek.sh: New file.
93542         * tests/test-freadseek.c: New file.
93544         New module 'freadseek'.
93545         * modules/freadseek: New file.
93546         * lib/freadseek.h: New file.
93547         * lib/freadseek.c: New file.
93548         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93550 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93552         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93553         wydawca.
93555         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93556         program_invocation_name and program_invocation_short_name are
93557         present.
93559 2008-02-28  Bruno Haible  <bruno@clisp.org>
93561         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93562         * tests/test-freadptr.sh: Also test non-seekable stdin.
93564 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93566         * build-aux/bootstrap (source_base, m4_base)
93567         (doc_base, tests_base): New variables.
93568         (gnulib_tool_options): Do not hardcode base directories, use
93569         the above variables instead.
93571 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93573         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93575 2008-02-28  Bruno Haible  <bruno@clisp.org>
93577         * modules/freadptr-tests: New file.
93578         * tests/test-freadptr.sh: New file.
93579         * tests/test-freadptr.c: New file.
93581         New module 'freadptr'.
93582         * modules/freadptr: New file.
93583         * lib/freadptr.h: New file.
93584         * lib/freadptr.c: New file.
93585         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93587 2008-02-26  Karl Berry  <karl@freefriends.org>
93589         Sync from Libtool:
93590         * libltdl/argz.c (argz_add, argz_count): New functions.
93591         * libltdl/argz.in.h: Declare them.
93592         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93594 2008-02-22  Bruno Haible  <bruno@clisp.org>
93596         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93597         is a pointer type.  Needed for HP-UX 10.
93598         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93599         * doc/posix-functions/gmtime_r.texi: Likewise.
93600         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93602 2008-02-24  Bruno Haible  <bruno@clisp.org>
93604         * modules/environ-tests: New file.
93605         * tests/test-environ.c: New file.
93607         New module 'environ'.
93608         * modules/environ: New file.
93609         * lib/unistd.in.h (environ): New declaration.
93610         * m4/environ.m4: New file.
93611         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93612         after use.
93613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93614         HAVE_DECL_ENVIRON.
93615         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93616         HAVE_DECL_ENVIRON.
93617         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93618         wrong claim that 'environ' is missing on some systems.
93619         * modules/execute (Depends-on): Add environ.
93620         * lib/execute.c (environ): Remove fallback declaration.
93621         * modules/pipe (Depends-on): Add environ.
93622         * lib/pipe.c (environ): Remove fallback declaration.
93623         * modules/setenv (Depends-on): Add environ.
93624         * lib/setenv.c (environ): Remove fallback declaration.
93625         * modules/unsetenv (Depends-on): Add environ.
93626         * lib/unsetenv.c (environ): Remove fallback declaration.
93627         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93628         m4/environ.m4.
93629         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93630         (gl_PREREQ_UNSETENV): Likewise.
93632 2008-02-24  Bruno Haible  <bruno@clisp.org>
93634         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93636 2008-02-20  Bob Proulx  <bob@proulx.com>
93638         Enable use of older two part flavor 'git describe'.
93639         * build-aux/git-version-gen: If using the older two part flavor of
93640         git version then recreate the third part now present in the
93641         newer three part flavor of git describe.
93643 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93645         * lib/fts.c (fts_build): Typo correction to comment.
93647 2008-02-17  Bruno Haible  <bruno@clisp.org>
93649         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93650         generating no-op conflicts.
93652 2008-02-17  Bruno Haible  <bruno@clisp.org>
93654         Speed up by 10%.
93655         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93656         result_entries, rather than an index-based loop.
93658 2008-02-17  Bruno Haible  <bruno@clisp.org>
93660         Speed up by 25%.
93661         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93662         'hashcode_cached'.
93663         (entry_create): New function.
93664         (entry_hashcode): Use the cached hashcode if possible.
93665         (read_changelog_file, try_split_merged_entry): Use entry_create.
93667 2008-02-17  Bruno Haible  <bruno@clisp.org>
93669         Speed up from O(n^2) to O(n) for long ChangeLog files.
93670         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93671         (read_changelog_file): Change implementation of entries_reversed list
93672         to rbtreehash.
93673         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93675 2008-02-17  Bruno Haible  <bruno@clisp.org>
93677         New option --split-merged-entry.
93678         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93679         (find_paragraph_end, try_split_merged_entry): New functions.
93680         (long_options): Add option --split-merged-entry.
93681         (usage): Document option --split-merged-entry.
93682         (main): Implement option --split-merged-entry.
93683         Reported by Eric Blake.
93685 2008-02-17  Bruno Haible  <bruno@clisp.org>
93687         * lib/git-merge-changelog.c: Include c-strstr.h.
93688         (main): Support the "git pull --rebase" situation.
93689         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93690         Reported by Eric Blake.
93692 2008-02-16  Eric Blake  <ebb9@byu.net>
93694         Avoid doubling \ in common case of "c-maybe" quoting style.
93695         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93696         eliding outer quotes.
93697         * lib/quotearg.h: Document this.
93698         * tests/test-quotearg.c (result_strings, inputs, results_g)
93699         (flag_results, locale_results): Test it by adding a new string to
93700         each test group.
93701         (compare_strings): Test new string.
93703 2008-02-13  Eric Blake  <ebb9@byu.net>
93705         Avoid trigraph quoting in default output.
93706         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93707         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93708         unless explicitly requested.
93709         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93711 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93713         Don't rely on signed integer overflowing to negative value.
93714         * lib/getugroups.c (getugroups): Include <limits.h>.
93715         Instead, compare against INT_MAX, and increment only if the test passes.
93717 2008-02-13  Jim Meyering  <meyering@redhat.com>
93718         and Eric Blake  <ebb9@byu.net>
93720         Avoid shadowing warning and compile errors on Linux.
93721         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93722         forwarding macros on Linux.
93723         (dcgettext): Define a stub, for Linux.
93724         (results_g, main): Avoid warnings.
93726 2008-02-12  Eric Blake  <ebb9@byu.net>
93728         Silence warning in last patch.
93729         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93731         Quotearg part 4: add tests, fix c-maybe colon quoting.
93732         * lib/quotearg.h: Improve documentation.
93733         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93734         escapes when adding outer quotes.  When quoting trigraphs, use
93735         valid C notation.  When quoting NUL, omit extra characters if next
93736         character is not digit.  Alter prototype.
93737         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93738         callers.
93739         * modules/quotearg-tests: New module.
93740         * tests/test-quotearg.c: New test.
93742 2008-02-07  Eric Blake  <ebb9@byu.net>
93744         Quotearg part 3: add flag to control outer quote elision.
93745         * lib/quotearg.h (c_maybe_quoting_style): New style.
93746         (enum quoting_flags): Better documentation of flags.
93747         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93748         c-maybe style.
93749         (quotearg_buffer_restyled): Handle new flag to elide outer
93750         quotes.
93752         Quotearg part 2: add flag that can control NUL elision.
93753         * lib/quotearg.h (set_quoting_flags): New prototype.
93754         * lib/quotearg.c (struct quoting_options): Add flag field.
93755         (set_quoting_flags): New function.
93756         (quotearg_buffer_restyled): Add flags parameter.
93757         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93758         (quotearg_n_options): Set the flag, since length cannot be
93759         returned.
93760         (quoting_options_from_style): Default flags correctly.
93762         Quotearg part 1: more wrappers, restore quotearg_char state.
93763         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93764         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93765         (quotearg_colon_mem): New wrappers.
93766         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93767         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93768         functions.
93769         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93770         (quotearg_colon_mem): New functions.
93772 2008-02-11  Bruno Haible  <bruno@clisp.org>
93774         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93775         library in the current directory: it does not work with parallel make.
93776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93778 2008-02-11  Bruno Haible  <bruno@clisp.org>
93780         * .gitattributes: New file.
93782 2008-02-11  Jim Meyering  <meyering@redhat.com>
93784         useless-if-before-free: Fix reversed exit values.
93785         * build-aux/useless-if-before-free: Use correct values
93786         for EXIT_MATCH and EXIT_NO_MATCH.
93788         * build-aux/useless-if-before-free: Close stdout carefully.
93790 2008-02-10  Bruno Haible  <bruno@clisp.org>
93792         New module 'git-merge-changelog'.
93793         * modules/git-merge-changelog: New file.
93794         * lib/git-merge-changelog.c: New file.
93796 2008-02-10  Jim Meyering  <meyering@redhat.com>
93798         useless-if-before-free: New option: --list (-l).
93800         useless-if-before-free: Don't exit immediately upon open failure.
93801         * build-aux/useless-if-before-free: Exit 2 for errors.
93802         Upon failure to open a file, don't exit immediately.
93803         Rather, just warn and continue with any remaining files.
93805 2008-02-10  Bruno Haible  <bruno@clisp.org>
93807         New abstract list operation 'node_set_value'.
93808         * lib/gl_list.h (gl_list_node_set_value): New function.
93809         (struct gl_list_implementation): New field node_set_value.
93810         * lib/gl_list.c (gl_list_node_set_value): New function.
93811         * lib/gl_array_list.c (gl_array_node_set_value): New function.
93812         (gl_array_list_implementation): Update.
93813         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
93814         (gl_carray_list_implementation): Update.
93815         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
93816         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93817         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93818         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93819         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93820         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93821         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93822         Update.
93823         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93824         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93825         (gl_sublist_list_implementation): Update.
93827 2008-02-10  Bruno Haible  <bruno@clisp.org>
93829         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93830         Needed when ELEMENT is #defined to 'some_type *'.
93832 2008-02-10  Jim Meyering  <meyering@redhat.com>
93834         New script and module: useless-if-before-free
93835         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93836         * build-aux/useless-if-before-free: New file.
93837         * modules/useless-if-before-free: New file.
93839         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93841         xstrtol_error: Fix typo.
93842         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93843         s/exit_failure/exit_status/.
93845 2008-02-09  Jim Meyering  <meyering@redhat.com>
93847         New script and module: gitlog-to-changelog
93848         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93849         * modules/gitlog-to-changelog: New file.
93850         * build-aux/gitlog-to-changelog: New file.
93852 2008-02-08  Jim Meyering  <meyering@redhat.com>
93854         Avoid two "parameter unused" warnings.
93855         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93856         Mark "st" as used.
93858         Use "git COMMAND", not "git-COMMAND".
93859         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93860         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93861         * build-aux/git-version-gen: Use "git status", not "git-status".
93863 2008-02-07  Bruno Haible  <bruno@clisp.org>
93865         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93866         Avoids a crash on Windows Vista.
93867         Reported by Adam Strzelecki <ono@java.pl> via
93868         Simon Josefsson <simon@josefsson.org>.
93870 2008-02-06  Bruno Haible  <bruno@clisp.org>
93872         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93873         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93874         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93876         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93878         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93879         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93882         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93883         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93884         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93887         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93888         left-adjust flag.
93889         * tests/test-snprintf-posix.h (test_function): Likewise.
93890         * tests/test-sprintf-posix.h (test_function): Likewise.
93891         * tests/test-vasprintf-posix.c (test_function): Likewise.
93892         * doc/posix-functions/fprintf.texi: Update.
93893         * doc/posix-functions/printf.texi: Update.
93894         * doc/posix-functions/snprintf.texi: Update.
93895         * doc/posix-functions/sprintf.texi: Update.
93896         * doc/posix-functions/vfprintf.texi: Update.
93897         * doc/posix-functions/vprintf.texi: Update.
93898         * doc/posix-functions/vsnprintf.texi: Update.
93899         * doc/posix-functions/vsprintf.texi: Update.
93900         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93902 2008-02-06  Bruno Haible  <bruno@clisp.org>
93904         Fix bug introduced on 2008-01-26.
93905         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93907 2008-02-06  Bruno Haible  <bruno@clisp.org>
93909         Fix bug introduced on 2007-06-10.
93910         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93911         !NEED_PRINTF_FLAG_ZERO.
93913 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93915         getloadavg: use libperfstat on AIX5
93916         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93918 2008-02-03  Bruno Haible  <bruno@clisp.org>
93920         * lib/diffseq.h: Add comments about required #includes.
93921         Reported by Michael Biggs <gnulib@doubleplum.net>.
93923 2008-02-01  Bruno Haible  <bruno@clisp.org>
93925         * users.txt: Add gnuit.
93927 2008-01-31  Bruno Haible  <bruno@clisp.org>
93929         * lib/md4.c (set_uint32): Mark as inline.
93930         * lib/md5.c (set_uint32): Likewise.
93931         * lib/sha1.c (set_uint32): Likewise.
93932         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93933         * m4/md5.m4 (gl_MD5): Likewise.
93934         * m4/sha1.m4 (gl_SHA1): Likewise.
93936 2008-01-31  Jim Meyering  <meyering@redhat.com>
93938         Use "sizeof VAR", rather than a literal "4".
93939         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93940         * lib/md4.c (md4_read_ctx): Likewise.
93941         * lib/sha1.c (sha1_read_ctx): Likewise.
93943 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93945         * tests/test-sha1.c: New file, based on test-md5.c.
93947         * modules/crypto/sha1-tests: New file.
93949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93951         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93953 2008-01-31  Jim Meyering  <meyering@redhat.com>
93955         Prefer "sizeof v" over the equivalent "4".
93956         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93957         * lib/md5.c (set_uint32): Likewise.
93958         * lib/sha1.c (set_uint32): Likewise.
93960 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93962         * lib/sha1.c (set_uint32): Mark function as static.
93964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93966         md2: clarify comments to say that alignment is not required.
93967         * lib/md2.h: Remove warning about alignment in comment.
93968         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93969         never been required.
93971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93973         md4: adapt alignment constraint fix from sha1.
93974         * lib/md4.c (set_uint32): New function, from sha1.c
93975         (md4_read_ctx): Use it.
93976         (md4_finish_ctx): Doc fix.
93977         * lib/md4.h: Doc fix.
93979 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93981         md5: adapt alignment constraint fix from sha1.
93982         * lib/md5.c (set_uint32): New function, from sha1.c
93983         (md5_read_ctx): Use it.
93984         (md5_finish_ctx): Doc fix.
93985         * lib/md5.h: Doc fix.
93987 2008-01-30  Peter Palfrader  <weasel@debian.org>
93989         sha1: remove the result buffer alignment constraint
93990         * lib/sha1.c (set_uint32): New function.
93991         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93992         constraint.
93993         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93994         * lib/sha1.h: Likewise.
93996 2008-01-30  Andreas Schwab  <schwab@suse.de>
93997             Bruno Haible  <bruno@clisp.org>
93999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
94000         correct definition of LDBL_MIN_EXP.
94002 2008-01-30  Karl Berry  <karl@gnu.org>
94004         * config/srclist-update: try to preserve x bit on updates.
94005         * config/srclistvars.sh: update for karl.
94007 2008-01-29  Jim Meyering  <meyering@redhat.com>
94009         vasnprintf.c: Avoid warning about unused label
94010         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
94011         "overflow" label definition and associated code with the
94012         same cpp condition that guards the sole use of that label.
94014 2008-01-26  Bruno Haible  <bruno@clisp.org>
94016         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
94017         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
94018         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
94019         * lib/isnanl-nolibm.h (isnanl): Likewise.
94020         Reported by Paul Eggert <eggert@cs.ucla.edu>.
94022 2008-01-26  Bruno Haible  <bruno@clisp.org>
94024         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
94025         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
94027 2008-01-26  Bruno Haible  <bruno@clisp.org>
94029         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
94030         GCC >= 4.0 built-in.
94031         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
94033 2008-01-26  Bruno Haible  <bruno@clisp.org>
94035         Rename isnan, applicable to 'double' only, to isnand.
94036         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
94037         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
94038         (configure.ac): Update.
94039         (Include): Replace "isnan.h" with "isnand.h".
94040         * m4/isnand.m4: Renamed from m4/isnan.m4.
94041         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
94042         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
94043         instead of isnan.c.
94044         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
94045         instead of HAVE_ISNAN_IN_LIBC.
94046         (isnand): Renamed from isnan.
94047         * lib/isnand.c: New file.
94048         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
94049         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
94050         (Makefile.am): Update.
94051         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
94052         Include isnand.h instead of isnan.h.
94053         (main): Test isnand instead of isnan.
94054         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
94055         isnan-nolibm.
94056         * modules/frexp (Depends-on): Likewise.
94057         * modules/frexp-tests (Depends-on): Likewise.
94058         * modules/frexp-nolibm (Depends-on): Likewise.
94059         * modules/frexp-nolibm-tests (Depends-on): Likewise.
94060         * modules/isfinite (Depends-on): Likewise.
94061         * modules/round-tests (Depends-on): Likewise.
94062         * modules/signbit (Depends-on): Likewise.
94063         * modules/signbit-tests (Depends-on): Likewise.
94064         * modules/snprintf-posix (Depends-on): Likewise.
94065         * modules/sprintf-posix (Depends-on): Likewise.
94066         * modules/trunc-tests (Depends-on): Likewise.
94067         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94068         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94069         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94070         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94071         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94072         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94073         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94074         * modules/vasnprintf-posix (Depends-on): Likewise.
94075         * modules/vasprintf-posix (Depends-on): Likewise.
94076         * modules/vfprintf-posix (Depends-on): Likewise.
94077         * modules/vsnprintf-posix (Depends-on): Likewise.
94078         * modules/vsprintf-posix (Depends-on): Likewise.
94079         * lib/frexp.c: Include isnand.h instead of isnan.h.
94080         (ISNAN): Set to isnand instead of isnan.
94081         * lib/isfinite.c: Include isnand.h instead of isnan.h.
94082         (gl_isfinited): Use isnand instead of isnan.
94083         * lib/signbitd.c: Include isnand.h instead of isnan.h.
94084         (gl_signbitd): Use isnand instead of isnan.
94085         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
94086         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
94087         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
94088         (main): Use isnand instead of isnan.
94089         * tests/test-round1.c: Include isnand.h.
94090         (main): Use isnand instead of isnan.
94091         * tests/test-round2.c: Include isnand.h instead of isnan.h.
94092         (ISNAN): Set to isnand instead of isnan.
94093         * tests/test-trunc1.c: Include isnand.h.
94094         (main): Use isnand instead of isnan.
94095         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
94096         (equal): Use isnand instead of isnan.
94097         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
94098         isnand-nolibm.
94099         * NEWS: Mention the change.
94101 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94102             Bruno Haible  <bruno@clisp.org>
94104         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
94105         the GCC builtins for signbits are present and set
94106         REPLACE_SIGNBIT_USING_GCC if so.
94107         * lib/math.in.h (signbit): Define using GCC builtins if
94108         REPLACE_SIGNBIT_USING_GCC is set.
94109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
94110         REPLACE_SIGNBIT_USING_GCC.
94111         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
94113 2008-01-25  Jim Meyering  <meyering@redhat.com>
94115         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
94116         * lib/poll.c: Include <config.h>, not "config.h".
94117         * tests/test-getaddrinfo.c: Likewise.
94119 2008-01-25  Simon Josefsson  <simon@josefsson.org>
94121         * modules/sockets-tests: New file.
94123 2008-01-24  Simon Josefsson  <simon@josefsson.org>
94125         * modules/sockets: New module, can be used to call WSA_Startup and
94126         WSA_Cleanup when needed.
94128         * lib/sockets.h, lib/sockets.c: New files.
94130         * m4/sockets.m4: New file.
94132         * tests/test-sockets.c: New file.
94134 2008-01-19  Bruno Haible  <bruno@clisp.org>
94136         * doc/posix-headers: Renamed from doc/headers.
94137         * doc/posix-functions: Renamed from doc/functions.
94138         * doc/gnulib.texi: Update.
94140 2008-01-19  Bruno Haible  <bruno@clisp.org>
94142         * doc/glibc-functions/strcasestr.texi: Include contents of
94143         doc/functions/strcasestr.texi, fixing the list of platforms.
94144         * doc/functions/strcasestr.texi: Remove file.
94146 2008-01-19  Bruno Haible  <bruno@clisp.org>
94148         * doc/glibc-functions/memmem.texi: Include contents of
94149         doc/functions/memmem.texi.
94150         * doc/functions/memmem.texi: Remove file.
94152 2008-01-18  Bruno Haible  <bruno@clisp.org>
94154         * doc/glibc-functions/*.texi: New files.
94155         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
94156         to use the new files.
94158 2008-01-17  Bruno Haible  <bruno@clisp.org>
94160         * tests/test-gethostname.c (main): Fix printf statement.
94162 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94164         * modules/gethostname-tests: New file.
94166         * tests/test-gethostname.c: New file.
94168 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94170         * lib/gethostname.c: Include string.h unconditionally, strncpy is
94171         used by the UNAME case.  Reported by Bruno Haible
94172         <bruno@clisp.org>.
94174 2008-01-17  Eric Blake  <ebb9@byu.net>
94176         Convert c-strcasestr to be more efficient.
94177         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
94178         (Depends-on): Add c-strcase, remove malloca, strnlen.
94179         * tests/test-c-strcasestr.c (main): Enhance test.
94180         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
94182 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
94184         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
94185         Use it in creating po/Makevars.
94187 2008-01-15  Simon Josefsson  <simon@josefsson.org>
94189         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
94190         Applications that requires it should initialize libgcrypt
94191         manually.
94193 2008-01-16  Simon Josefsson  <simon@josefsson.org>
94195         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
94197 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
94199         Fix problem with getdate on mingw32 reported by Simon Josefsson
94200         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
94201         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
94202         tzname", when deciding whether to declare tzname.
94203         * lib/strftime.c (tzname): Likewise.
94205 2008-01-15  Bruno Haible  <bruno@clisp.org>
94207         Work around a MacOS X 10.5 bug in frexpl().
94208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
94209         * doc/functions/frexpl.texi: Document the bug.
94210         Reported by Elias Pipping <pipping@gentoo.org>.
94212 2008-01-14  Eric Blake  <ebb9@byu.net>
94214         Touch up previous patch.
94215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
94216         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
94218         Convert strcasestr module to use Two-Way algorithm.
94219         * modules/strcasestr-simple: New module, based on the old
94220         strcasestr, but with Two-Way rather than KMP.
94221         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
94222         * lib/string.in.h (rpl_strcasestr): Declare.
94223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
94224         performance.
94225         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
94226         * modules/string (Makefile.am): Support strcasestr.
94227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
94228         * modules/strcasestr-tests (Depends-on): Check for alarm.
94229         * tests/test-strcasestr.c: Augment test.
94230         * lib/str-two-way.h: Clean up stray macro.
94231         * NEWS: Document new module.
94232         * MODULES.html.sh (string handling): Likewise.
94233         * doc/functions/strcasestr.texi: New file.
94234         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
94235         here, since it is not a POSIX function.
94237 2008-01-14  Colin Watson  <cjwatson@debian.org>
94238             Bruno Haible  <bruno@clisp.org>
94240         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
94241         works fine; if not, set REPLACE_STRSIGNAL.
94242         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
94243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94244         REPLACE_STRSIGNAL.
94245         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
94246         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
94247         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
94249 2008-01-14  Bruno Haible  <bruno@clisp.org>
94251         * modules/strsignal (Include): Change to <string.h>.
94253 2008-01-14  Colin Watson  <cjwatson@debian.org>
94255         * modules/argp (Notice): Add a notice recommending to change
94256         XGETTEXT_OPTIONS.
94257         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
94259 2008-01-13  Colin Watson  <cjwatson@debian.org>
94261         * modules/strsignal-tests: New file.
94262         * tests/test-strsignal.c: New file.
94264         * lib/strsignal.c: New file, from glibc with modifications.
94265         * lib/siglist.h: New file, from glibc with modifications.
94266         * lib/string.in.h (strsignal): New declaration.
94267         * m4/strsignal.m4: New file.
94268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94269         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
94270         * modules/strsignal: New file.
94271         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
94272         HAVE_DECL_STRSIGNAL.
94274 2008-01-13  Bruno Haible  <bruno@clisp.org>
94276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
94277         locale encoding is not ASCII. Needed for OpenBSD 4.0.
94278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94281 2008-01-13  Bruno Haible  <bruno@clisp.org>
94283         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
94284         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
94285         * lib/argp.h (__attribute__): Likewise.
94286         * lib/c-stack.c (__attribute__): Likewise.
94287         * lib/error.h (__attribute__): Likewise.
94288         * lib/fts.c (__attribute__): Likewise.
94289         * lib/openat.h (__attribute__): Likewise.
94290         * lib/stdio.in.h (__attribute__): Likewise.
94291         * lib/string.in.h (__attribute__): Likewise.
94292         * lib/utimens.c (__attribute__): Likewise.
94293         * lib/vasnprintf.h (__attribute__): Likewise.
94294         * lib/xalloc.h (__attribute__): Likewise.
94295         * lib/xprintf.h (__attribute__): Likewise.
94296         * lib/xstrtol.h (__attribute__): Likewise.
94297         * lib/xvasprintf.h (__attribute__): Likewise.
94299 2008-01-12  Bruno Haible  <bruno@clisp.org>
94301         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
94302         * doc/glibc-headers/a.out.texi: New file.
94303         * doc/glibc-headers/aliases.texi: New file.
94304         * doc/glibc-headers/alloca.texi: New file.
94305         * doc/glibc-headers/ar.texi: New file.
94306         * doc/glibc-headers/argp.texi: New file.
94307         * doc/glibc-headers/argz.texi: New file.
94308         * doc/glibc-headers/byteswap.texi: New file.
94309         * doc/glibc-headers/crypt.texi: New file.
94310         * doc/glibc-headers/endian.texi: New file.
94311         * doc/glibc-headers/envz.texi: New file.
94312         * doc/glibc-headers/err.texi: New file.
94313         * doc/glibc-headers/error.texi: New file.
94314         * doc/glibc-headers/execinfo.texi: New file.
94315         * doc/glibc-headers/fpu_control.texi: New file.
94316         * doc/glibc-headers/fstab.texi: New file.
94317         * doc/glibc-headers/fts.texi: New file.
94318         * doc/glibc-headers/getopt.texi: New file.
94319         * doc/glibc-headers/ieee754.texi: New file.
94320         * doc/glibc-headers/ifaddrs.texi: New file.
94321         * doc/glibc-headers/libintl.texi: New file.
94322         * doc/glibc-headers/mcheck.texi: New file.
94323         * doc/glibc-headers/mntent.texi: New file.
94324         * doc/glibc-headers/obstack.texi: New file.
94325         * doc/glibc-headers/paths.texi: New file.
94326         * doc/glibc-headers/printf.texi: New file.
94327         * doc/glibc-headers/pty.texi: New file.
94328         * doc/glibc-headers/resolv.texi: New file.
94329         * doc/glibc-headers/shadow.texi: New file.
94330         * doc/glibc-headers/sysexits.texi: New file.
94331         * doc/glibc-headers/ttyent.texi: New file.
94333 2008-01-12  Jim Meyering  <meyering@redhat.com>
94335         announce-gen: emit Gnulib's git-based version string.
94336         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
94337         New option --gnulib-version=V, where V is expected to be
94338         the output of running git describe in the gnulib directory.
94339         (get_tool_versions): Request feedback on xdelta.  I suspect it's
94340         not useful, and plan to stop publishing an xdelta file with each
94341         coreutils release.
94343         * build-aux/announce-gen: Also check for lzma-compressed files.
94345 2008-01-11  Bruno Haible  <bruno@clisp.org>
94347         * tests/test-memmem.c (main): Increase maximum allowed time.
94348         * tests/test-strstr.c (main): Likewise.
94350 2008-01-11  Bruno Haible  <bruno@clisp.org>
94352         * doc/functions/memmem.texi: Add more precisions about platforms.
94353         * doc/functions/strstr.texi: Likewise.
94355 2008-01-10  Eric Blake  <ebb9@byu.net>
94357         * m4/strstr.m4: Delete cruft from copy-n-paste.
94358         Reported by Bruno Haible.
94360 2008-01-10  Bruno Haible  <bruno@clisp.org>
94362         Make c-strstr rely on strstr.
94363         * lib/c-strstr.c: Don't include str-kmp.h.
94364         (c_strstr): Define in terms of strstr.
94365         * modules/c-strstr (Files): Remove lib/str-kmp.h.
94366         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
94368 2008-01-10  Bruno Haible  <bruno@clisp.org>
94370         * doc/gnulib.texi (String Functions in C Locale): New section.
94371         * doc/c-ctype.texi: New file.
94372         * doc/c-strcase.texi: New file.
94373         * doc/c-strcaseeq.texi: New file.
94374         * doc/c-strcasestr.texi: New file.
94375         * doc/c-strstr.texi: New file.
94376         * doc/c-strtod.texi: New file.
94377         * doc/c-strtold.texi: New file.
94379 2008-01-10  Eric Blake  <ebb9@byu.net>
94381         * lib/relocatable.h: Fix a comment.
94383 2008-01-10  Eric Blake  <ebb9@byu.net>
94385         Share two-way algorithm.
94386         * lib/str-two-way.h: New file, merged from...
94387         * lib/memmem.c: ...here...
94388         * lib/strstr.c: ...and here.
94389         * modules/memmem (Files): Use it.
94390         * modules/strstr (Files): Likewise.
94392         Avoid quadratic strstr implementations.
94393         * lib/strstr.c: New file.
94394         * m4/strstr.m4: Likewise.
94395         * modules/strstr: Likewise.
94396         * modules/strstr-tests: Likewise.
94397         * tests/test-strstr.c: Likewise.
94398         * lib/string.in.h (rpl_strstr): Declare.
94399         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94401         * modules/string (Makefile.am): Likewise.
94402         * MODULES.html.sh (string handling): Mention new module.
94403         * doc/functions/strstr.texi (strstr): Document the bug.
94405 2008-01-10  Bruno Haible  <bruno@clisp.org>
94407         * lib/relocatable.h (relocate): State whether result is freshly
94408         allocated or not.
94409         * lib/relocatable.c (relocate): Return a freshly allocated string
94410         instead of a pointer to a privately held string.
94411         Reported by Sylvain Beucler <beuc@gnu.org>.
94413 2008-01-10  Colin Watson  <cjwatson@debian.org>
94415         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94416         s/S_ISNLK/S_ISLNK/.
94418 2008-01-09  Bruno Haible  <bruno@clisp.org>
94420         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94421         and other files.
94422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94423         if it's only a guess.
94424         * modules/memmem: Simplify by depending on memmem-simple.
94426 2008-01-09  Bruno Haible  <bruno@clisp.org>
94428         Work around OpenBSD 4.0 tdelete() bug.
94429         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94430         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94431         macros and don't redefine the enum values.
94432         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94433         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94434         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94436 2008-01-09  Bruno Haible  <bruno@clisp.org>
94438         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94439         (main): Don't perform the tests if setlocale did not install a UTF-8
94440         locale. Needed on OpenBSD 4.0.
94441         * modules/wcwidth-tests (Depends-on): Add localcharset.
94443 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94445         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94446         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94447         * NEWS: announce this.
94448         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94450 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94451         and Eric Blake  <ebb9@byu.net>
94453         Add memmem-simple module.
94454         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94455         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94456         * modules/memmem-simple: New file.
94457         * modules/memmem (Description): Tweak.
94458         * MODULES.html.sh (string handling): Mention new module.
94459         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94460         addressed by memmem-simple.
94461         * NEWS: Document the difference.
94463 2008-01-09  Eric Blake  <ebb9@byu.net>
94465         Give gcc some memmem optimization hints.
94466         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94467         (strcasestr): Declare as pure.
94468         * modules/memmem (Maintainer): Claim my implementation.
94470 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94472         Support AIX 6.1 and higher.
94473         * build-aux/config.libpath: Likewise.
94474         * build-aux/config.rpath: Likewise.
94476 2008-01-08  Jim Meyering  <meyering@redhat.com>
94477             Bruno Haible  <bruno@clisp.org>
94479         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94480         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94481         Reported by Peter Fales in
94482         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94484 2008-01-08  Bruno Haible  <bruno@clisp.org>
94486         * modules/unictype/category-of (Depends-on): Add
94487         unictype/category-none.
94488         * modules/unictype/category-and-tests (Depends-on): Add
94489         unictype/category-{L,N,Lu,Nd}.
94490         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94491         * modules/unictype/category-or-tests (Depends-on): Add
94492         unictype/category-{L,N}.
94493         * modules/unictype/category-name-tests (Depends-on): Add
94494         unictype/category-{Z,Nl}.
94495         Reported by Simon Josefsson.
94497 2008-01-08  Bruno Haible  <bruno@clisp.org>
94499         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94500         convention better.
94501         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94502         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94503         Reported by Peter Miller <millerp@canb.auug.org.au>.
94505 2008-01-08  Eric Blake  <ebb9@byu.net>
94507         Rewrite memmem to guarantee linear complexity without malloc.
94508         * lib/memmem.c (memmem): Use Two-Way rather than
94509         Knuth-Morris-Pratt, to allow O(1) space usage.
94510         (critical_factorization, two_way_short_needle)
94511         (two_way_long_needle): New functions.
94512         (knuth_morris_pratt): Delete.
94513         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94514         Add stdint.
94515         * tests/test-memmem.c (main): Add tests for periodic needle and
94516         sublinear performance.
94517         * doc/functions/memmem.texi (memmem): Document other deficiencies
94518         in cygwin and older glibc.
94520 2008-01-08  Bruno Haible  <bruno@clisp.org>
94522         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94523         augmentation.
94525 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94527         Add a configure time option: --disable-acl.
94528         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94529         AC_ARG_ENABLE(acl).
94531 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94533         * tests/test-localename.c: Don't include obsolete "setenv.h".
94535         * modules/localename-tests (Depends-on): Need unsetenv.
94537 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94539         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94541 2008-01-06  Colin Watson  <cjwatson@debian.org>
94543         * users.txt: Add man-db.
94545 2008-01-07  Bruno Haible  <bruno@clisp.org>
94547         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94548         previous section name.
94550 2008-01-07  Bruno Haible  <bruno@clisp.org>
94552         * lib/progname.c (set_program_name): Don't strip off a leading
94553         "lt-" prefix outside a .libs directory.
94554         Suggested by Paul Eggert.
94556 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94557             Bruno Haible  <bruno@clisp.org>
94559         Improve memory cleanup in 'relocatable' module.
94560         * lib/relocatable.h (compute_curr_prefix): Change return type to
94561         'char *'.
94562         * lib/relocatable.c (compute_curr_prefix): Change return type to
94563         'char *'. Free curr_installdir after use.
94564         (relocate): Free curr_prefix_better after use.
94565         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94567 2008-01-01  Bruno Haible  <bruno@clisp.org>
94569         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94570         failure on older glibc systems.
94571         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94573 2008-01-05  Eric Blake  <ebb9@byu.net>
94575         Avoid quadratic system memmem.
94576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94577         Reported by Ralf Wildenhues.
94579         Fix memmem test for mingw.
94580         * modules/memmem-tests (configure.ac): Check for alarm.
94581         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94582         it.
94583         * doc/functions/memmem.texi: New file.
94584         * doc/gnulib.texi (Function Substitutes): Add memmem.
94585         Reported by Bruno Haible.
94587 2008-01-04  Bruno Haible  <bruno@clisp.org>
94589         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94590         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94591         gl_HEADER_STRING_H_DEFAULTS.
94593 2008-01-04  Eric Blake  <ebb9@byu.net>
94595         Shorten duration of memmem test.
94596         * tests/test-memmem.c (main): Use alarm to declare failure if test
94597         is taking too long.
94598         Reported by Ralf Wildenhues.
94600 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94602         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94603         string, needed by strerror.
94605 2008-01-03  Colin Watson  <cjwatson@debian.org>
94606             Bruno Haible  <bruno@clisp.org>
94608         * doc/gnulib-tool.texi (Localization): New section.
94610 2008-01-02  Bruno Haible  <bruno@clisp.org>
94612         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94613         variables to 'unsigned char *' type.
94614         Reported by Paul Eggert.
94616 2008-01-02  Jim Meyering  <jim@meyering.net>
94618         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94620 2007-12-31  Jim Meyering  <jim@meyering.net>
94622         Avoid use of private FTS type name.
94623         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94625 2007-12-30  Karl Berry  <karl@gnu.org>
94627         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94628         work around defect in Texinfo and/or the standalone Info browser.
94630 2007-12-30  Bruno Haible  <bruno@clisp.org>
94632         Unify 5 copies of the KMP code.
94633         * lib/str-kmp.h: New file.
94634         * lib/c-strcasestr.c: Include str-kmp.h.
94635         (knuth_morris_pratt): Remove function.
94636         (c_strcasestr): Update.
94637         * lib/c-strstr.c: Include str-kmp.h.
94638         (knuth_morris_pratt): Remove function.
94639         (c_strcasestr): Update.
94640         * lib/mbscasestr.c: Include str-kmp.h.
94641         (knuth_morris_pratt_unibyte): Remove function.
94642         * lib/mbsstr.c: Include str-kmp.h.
94643         (knuth_morris_pratt_unibyte): Remove function.
94644         * lib/strcasestr.c: Include str-kmp.h.
94645         (knuth_morris_pratt): Remove function.
94646         (strcasestr): Update.
94647         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94648         * modules/c-strstr (Files): Likewise.
94649         * modules/mbscasestr (Files): Likewise.
94650         * modules/mbsstr (Files): Likewise.
94651         * modules/strcasestr (Files): Likewise.
94652         Suggested by Paul Eggert.
94654 2007-12-30  Bruno Haible  <bruno@clisp.org>
94656         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94657         defined.
94659 2007-12-30  Bruno Haible  <bruno@clisp.org>
94661         * lib/xmalloca.h: Include xalloc.h.
94662         (xnmalloca): New macro.
94664 2007-12-30  Bruno Haible  <bruno@clisp.org>
94666         * lib/malloca.h (nmalloca): New macro.
94667         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94668         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94669         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94670         knuth_morris_pratt_multibyte): Likewise.
94671         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94672         knuth_morris_pratt_multibyte): Likewise.
94673         * lib/memmem.c (knuth_morris_pratt): Likewise.
94674         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94676 2007-12-25  Bruno Haible  <bruno@clisp.org>
94678         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94679         * lib/glob.c: Don't include openat.h.
94680         (link_exists2_p): Add back the code that deals with the
94681         !GLOB_ALTDIRFUNC case.
94682         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94683         let it do the filename concatenation.
94684         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94685         * modules/glob (Depends-on): Remove openat.
94687 2007-12-31  Bruno Haible  <bruno@clisp.org>
94689         * modules/dirfd (License): Change to LGPLv2+.
94690         Approved by Jim Meyering.
94692 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94694         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94695         when multiplying M by sizeof (size_t).
94697 2007-12-10  Martin Lambers  <marlam@marlam.de>
94699         Override getpagesize on mingw.
94700         * lib/getpagesize.c: New file.
94701         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94702         * modules/getpagesize (Files): Add lib/getpagesize.c.
94703         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94705         REPLACE_GETPAGESIZE.
94706         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94708 2007-12-25  Bruno Haible  <bruno@clisp.org>
94710         * modules/localcharset (Notice): New field.
94711         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94712         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94714 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94715             Bruno Haible  <bruno@clisp.org>
94717         Avoid using the syntax symbol() in formatted documentation.
94718         * MODULES.html.sh (func_module): When replacing symbol() with a
94719         hyperlink, remove the parentheses. Show an error if some remain.
94720         Recognize and render the '...' syntax.
94721         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94722         Rework. Add paragraph about GCC's inlining.
94723         * doc/alloca.texi: Likewise.
94724         * doc/error.texi: Remove parentheses from symbol reference.
94725         * doc/gnulib-intro.texi: Likewise.
94726         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94727         * modules/fnmatch (Description): Reword to say "the ... function".
94728         * modules/full-read (Description): Likewise.
94729         * modules/full-write (Description): Likewise.
94730         * modules/safe-read (Description): Likewise.
94731         * modules/safe-write (Description): Likewise.
94732         * modules/strchrnul (Description): Likewise.
94733         * modules/trim (Description): Likewise.
94734         * modules/error (Description): Remove parentheses from symbol
94735         references.
94736         * modules/verror (Description): Likewise.
94737         Reported by Karl Berry.
94739 2007-12-25  Bruno Haible  <bruno@clisp.org>
94741         Fixup after 2007-10-16 commit.
94742         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94744 2007-12-24  Bruno Haible  <bruno@clisp.org>
94746         Make --enable-relocatable work with DESTDIR.
94747         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94748         to compute installdir from destprog.
94749         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94750         also set the RELOC_DESTDIR variable.
94751         Reported by Левашев Иван <octagram@bluebottle.com>.
94753 2007-12-24  Bruno Haible  <bruno@clisp.org>
94755         Fix link error due to xalloc_die().
94756         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94757         of xreadlink.
94758         * lib/relocwrapper.c: Update comments.
94759         * build-aux/install-reloc: Remove xreadlink.c from file list.
94760         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94761         xreadlink.c.
94762         Reported by Левашев Иван <octagram@bluebottle.com>.
94764 2007-12-24  Bruno Haible  <bruno@clisp.org>
94766         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94767         * lib/setenv.h: Remove file.
94768         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94769         lib/setenv.h.
94770         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94771         (Depends-on): Add stdlib.
94772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94773         gl_FUNC_UNSETENV.
94774         (Include): Replace setenv.h with <stdlib.h>.
94775         * modules/unsetenv: New file.
94776         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94777         * lib/unsetenv.c: Include <stdlib.h> first.
94778         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94779         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94780         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94781         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94782         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94783         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94785         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94786         * doc/functions/unsetenv.texi: Update.
94787         * modules/xsetenv (Depends-on): Add unsetenv.
94788         * modules/getdate (Depends-on): Likewise.
94789         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94790         * lib/xsetenv.c: Don't include setenv.h.
94791         * lib/getdate.y: Likewise.
94792         * lib/relocwrapper.c: Likewise.
94793         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
94794         (Depends-on): Add stdlib.
94795         * NEWS: Mention the changes.
94796         Reported by Левашев Иван <octagram@bluebottle.com>.
94798 2007-12-23  Bruno Haible  <bruno@clisp.org>
94800         * lib/memmem.c (memmem): Use lowercase variable names. Tab
94801         indentation.
94803 2007-12-23  Bruno Haible  <bruno@clisp.org>
94805         * lib/c-strcasestr.c: Add more comments.
94806         * lib/c-strstr.c: Likewise.
94807         * lib/mbscasestr.c: Likewise.
94808         * lib/mbsstr.c: Likewise.
94809         * lib/strcasestr.c: Likewise.
94810         * lib/memmem.c: Likewise.
94812 2007-12-23  Bruno Haible  <bruno@clisp.org>
94814         * tests/test-memmem.c: Include <string.h> first.
94816 2007-12-22  Bruno Haible  <bruno@clisp.org>
94818         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94819         the contents of $testsbase.
94820         Reported by Ralf Wildenhues.
94822 2007-12-22  Bruno Haible  <bruno@clisp.org>
94824         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94825         two variables local_ldadd_before, local_ldadd_last.
94827 2007-12-20  Eric Blake  <ebb9@byu.net>
94829         Work around circular library issue when cross-compiling.
94830         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94831         that progname.o does not need to pull in rpl_memcmp.
94833 2007-12-19  Eric Blake  <ebb9@byu.net>
94835         Fix memmem to avoid O(n^2) worst-case complexity.
94836         * lib/memmem.c (knuth_morris_pratt): New function.
94837         (memmem): Use it if first few naive iterations fail.
94838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94839         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94840         * modules/memchr (License): Likewise.
94841         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94842         malloca.
94843         * tests/test-memmem.c: Rewrite, borrowing ideas from
94844         test-mbsstr1.c; the old version wouldn't even compile!
94845         * modules/memmem-tests: New file.
94846         * lib/string.in.h (rpl_memmem): Add declaration.
94847         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94849         REPLACE_MEMMEM.
94851 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94853         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94854         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94855         before any system include files, and undef after them all.  This
94856         should fix a problem on VMS reported by John E. Malmberg in
94857         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94859 2007-12-17  Eric Blake  <ebb9@byu.net>
94861         Revert addition of verify, for BSD/OS.
94862         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94863         can't handle large files, for the sake of obsolete platforms.
94864         * modules/fseeko (Depends-on): Remove verify.
94865         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94866         * doc/functions/ftello.texi (ftello): Likewise.
94867         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94868         Reported by Larry Jones.
94870 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94872         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94873         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94875 2007-12-17  Jim Meyering  <meyering@redhat.com>
94877         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94878         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94879         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94880         * modules/getcwd (Depends-on): Add openat.
94881         Reported by Petr Salinger.
94883 2007-12-17  Bruno Haible  <bruno@clisp.org>
94885         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94886         avoid a segmentation fault of the configure test on x86_64 systems.
94888 2007-12-15  Jim Meyering  <meyering@redhat.com>
94890         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94892 2007-12-13  Eric Blake  <ebb9@byu.net>
94894         Another fseek test.
94895         * tests/test-fseek.c (main): Also test ungetc handling.
94896         * tests/test-fseeko.c (main): Likewise.
94897         * modules/fseeko (Depends-on): Add verify.
94898         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94899         large.
94900         Reported by Larry Jones.
94902         Fix fseeko on mingw.
94903         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94904         seek.
94906         Beef up fseek tests.
94907         * tests/test-fseek.c (main): Also test eof handling.
94908         * tests/test-fseeko.c (main): Likewise.
94909         Reported by Larry Jones.
94911 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94913         Fix fseeko on BSD-based platforms.
94914         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94915         successful seek.
94917 2007-12-12  Eric Blake  <ebb9@byu.net>
94919         Allow circular dependency of separate libtests.a
94920         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94921         when use_libtests.
94923 2007-12-11  Eric Blake  <ebb9@byu.net>
94925         Fix bug with -0.0L in previous patch.
94926         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94927         * tests/test-isnan.c (main): Also test on zeroes.
94928         * tests/test-isnanf.c (main): Likewise.
94929         * tests/test-isnanl.h (main): Likewise.
94931         Detect pseudo-denormals on x86 even when cross-compiling.
94932         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94933         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94934         invalid bit patterns that happen to satisfy ==.
94936         Avoid link failures with separate libtests.a.
94937         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94938         last, to satisfy circular dependencies.
94940 2007-12-11  Eric Blake  <ebb9@byu.net>
94941         and Bruno Haible  <bruno@clisp.org>
94943         Fix OpenBSD 4.0 <float.h> handling of long double.
94944         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94945         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94946         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94948 2007-12-11  Jim Meyering  <meyering@redhat.com>
94950         * users.txt: Add libvirt.
94952         Support versions of autoconf prior to 2.59c.
94953         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94954         if it is not already defined.
94956 2007-12-09  Bruno Haible  <bruno@clisp.org>
94958         Let 'gnulib-tool --import' collect sources needed for the tests in
94959         tests/ rather than in lib/.
94960         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94961         argument. If true, add rules to generate libtests.a, and put libtests.a
94962         into $(LDADD). Consider source files in subdirectories and set
94963         uses_subdirs.
94964         (func_emit_initmacro_start, func_emit_initmacro_end,
94965         func_emit_initmacro_done): Pass all arguments explicitly.
94966         (func_import): Determine two module lists main_modules,
94967         testsrelated_modules. Determine use_libtests. Determine two variables
94968         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94969         instead of just sed_transform_lib_file. Determine two variables
94970         main_files and testsrelated_files. Compute 'files' as the union of
94971         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94972         func_add_or_update. In the generated gnulib-comp.m4, collect the
94973         object files for tests/ in different variables than those for lib/.
94974         Substitute LIBTESTS_LIBDEPS.
94975         (func_create_testdir): Combine the uses_subdirs results from
94976         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94978 2007-12-09  Bruno Haible  <bruno@clisp.org>
94980         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94981         the build-aux directory.
94983 2007-12-09  Bruno Haible  <bruno@clisp.org>
94985         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94986         introduced on 2006-09-09.
94988 2007-12-07  Jim Meyering  <meyering@redhat.com>
94990         Let these macros work also with autoconf-2.59.
94991         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94992         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94993         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94995 2007-12-06  Jim Meyering  <meyering@redhat.com>
94997         Avoid a configure-time syntax error in gl_FUNC_ACL.
94998         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94999         function in each branch, before testing the cache variable.
95001 2007-12-04  Eric Blake  <ebb9@byu.net>
95003         Make scripts executable.
95004         * build-aux/config.guess: Add execute permissions.
95005         * build-aux/config.sub: Likewise.
95006         * build-aux/gendocs.sh: Likewise.
95008         Fix frexp on mingw.
95009         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
95010         cross-compiling.
95011         * doc/functions/frexp.texi (frexp): Document the bug.
95013         Make cygwin fseeko check more reliable.
95014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
95015         version numbers, rather than unrelated feature check.
95016         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
95017         * doc/functions/ftello.texi (ftello): Likewise.
95018         Reported by Bruno Haible.
95020         * m4/strerror.m4: Bump version number.
95022 2007-12-03  Bruno Haible  <bruno@clisp.org>
95024         * doc/functions/mprotect.texi: Mention the mingw problem.
95026 2007-12-03  Eric Blake  <ebb9@byu.net>
95028         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
95029         REPLACE_STRERROR is initialized before this macro.
95031 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
95033         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
95034         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
95035         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
95036         put -lsec in even for programs other than 'ls'.  This fixes a problem
95037         for gettext reported by Bruno Haible in
95038         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
95039         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
95040         Add support for Solaris 10.  This isn't efficient, but should get the
95041         job done for now.
95043 2007-12-03  James Youngman  <jay@gnu.org>
95045         * doc/regexprops-generic.texi: change "an close-group" to "a
95046         close-group" and "illegal" to "not allowed".
95048 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95050         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
95051         pr_byname.h. Needed for the rare case when the maintainer has done
95052         "make maintainer-clean" in the source directory and then attempts a
95053         build outside the source directory.
95054         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
95055         scripts_byname.h.
95057 2007-12-02  Martin Lambers  <marlam@marlam.de>
95058             Bruno Haible  <bruno@clisp.org>
95060         * lib/getpagesize.h: Remove file.
95061         * lib/unistd.in.h: Include declaration of getpagesize here.
95062         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
95063         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
95064         HAVE_SYS_PARAM_H.
95065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
95066         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95067         * modules/getpagesize (Files): Remove lib/getpagesize.h.
95068         (Depends-on): Add unistd.
95069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
95070         (Include): Use <unistd.h> instead of getpagesize.h.
95071         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
95072         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95073         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
95074         gl_GETPAGESIZE invocation, already handled by module dependency.
95075         * lib/pagealign_alloc.c: Don't include getpagesize.h.
95077 2007-12-02  Bruno Haible  <bruno@clisp.org>
95079         * modules/strings-tests: New file.
95080         * tests/test-strings.c: New file.
95082         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
95083         * lib/strings.in.h: New file.
95084         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
95085         * m4/strings_h.m4: New file.
95086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
95087         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
95088         * modules/strings: New file.
95089         * modules/string (Makefile.am): Update.
95090         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
95091         Reported by Karl Berry.
95093 2007-12-01  Eric Blake  <ebb9@byu.net>
95095         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
95096         accommodate fix in cygwin 1.5.25.
95098 2007-12-01  Jim Meyering  <meyering@redhat.com>
95100         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
95101         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
95102         that would inhibit utf8-optimization of a regexp containing line-
95103         or buffer-anchors, e.g., `^', `$'.
95105 2007-11-30  Bruno Haible  <bruno@clisp.org>
95107         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
95108         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
95109         glthread_recursive_lock_init.
95110         * lib/lock.c (glthread_recursive_lock_init)
95111         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
95112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95114 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
95116         New function qset_acl, like set_acl but with syscall semantics.
95117         * lib/acl.h (qset_acl): New decl.
95118         * lib/acl.c (qset_acl): New function.
95119         (set_acl): Use new function.  Use more-consistent diagnostics.
95121 2007-11-28  Jim Meyering  <meyering@redhat.com>
95123         * modules/physmem (License): Change from GPL to LGPLv2+.
95125 2007-11-26  Bruno Haible  <bruno@clisp.org>
95127         * lib/vasnprintf.c (decode_long_double): Don't abort if the
95128         'long double' type has excess precision.
95129         Reported by Jim Meyering in
95130         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
95132 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95134         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
95135         Sync from <http://gnu.org/licenses>.
95136         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
95137         with license text from same location.
95138         * doc/maintain.texi, doc/standards.texi:  Sync from
95139         <http://savannah.gnu.org/projects/gnustandards>.
95141 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
95142         and Jim Meyering  <meyering@redhat.com>
95144         Adjust getdate' grammar to accept a slightly more regular language.
95145         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
95146         Before, the former was rejected.
95147         * lib/getdate.y (digits_to_date_time): New function, factored
95148         out of ...
95149         (number): ...here.  Just call digits_to_date_time.
95150         (hybrid): New non-terminal to handle an <unsigned number,
95151         signed relative offset> sequence consistently.
95153 2007-11-18  Jim Meyering  <meyering@redhat.com>
95155         Pull my changes from coreutils:
95156         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
95157         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
95158         use of $gnulib_tool_option_extras, so that it's separated from the
95159         preceding argument.
95161         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
95162         * build-aux/bootstrap (cp_mark_as_generated): Create any required
95163         parent destination directories before copying a file into place.
95165 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95167         bootstrap: work also with 4-argument variant of AC_INIT
95168         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
95170 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95172         Port test-getaddrinfo to Solaris.
95173         Problem reported by Bruno Haible in
95174         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
95175         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
95176         explanation of setting 'hints'.
95177         Don't reject an implementation merely because it returns EAI_SERVICE.
95178         (EAI_SERVICE): Define to 0 if not defined.
95180 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95182         The license of gnu-make and posix-shell is now "GPLed build tool".
95183         * modules/gnu-make (License): Likewise.
95184         * modules/posix-shell (License): Likewise.
95186         New module posix-shell, for determining a POSIX shell
95187         or perhaps something that is close enough to a POSIX shell.
95188         * m4/posix-shell.m4: New file.
95189         * modules/posix-shell: New file.
95191         * MODULES.html.sh: Mention new module.
95193         New module gnu-make, for determining whether we're using GNU Make.
95194         * m4/gnu-make.m4: New file.
95195         * modules/gnu-make: New file.
95196         * MODULES.html.sh: Mention new module.
95198 2007-11-14  Jim Meyering  <meyering@redhat.com>
95200         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
95201         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
95202         use this macro to create a function _definition_.
95203         Remove useless "#undef ARGMATCH_DIE".
95205 2007-11-14  Bruno Haible  <bruno@clisp.org>
95207         * lib/config.charset: Update for OpenBSD 4.1.
95208         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
95210 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
95212         Document 64-bit #if problems in stdint.texi.
95213         * doc/headers/stdint.texi (stdint.h): Mention problems with
95214         64-bit-#if, and how to work around them.
95216         Don't insist on 'long long int' support in the preprocessor.  It
95217         breaks too many things.  For example, PRIdMAX still uses a 'long
95218         long int' format with the latest Sun compiler, even though
95219         HAVE_LONG_LONG_INT isn't defined due to that compiler's
95220         preprocessor problem.  This causes the latest coreutils to dump
95221         core on Solaris 10 sparc with the Sun C compiler.
95222         Instead, fix the 2007-10-16 problem in a different way, by evaluating
95223         the troublesome expressions at configure-time, not at #if-time.
95224         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
95225         preprocessor.
95226         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
95227         compile-time C checks, done at 'configure'-time.
95228         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
95229         * modules/inttypes (Makefile): Substitute the new symbols that
95230         gl_INTTYPES_H now generates.
95231         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
95233 2007-11-12  Bruno Haible  <bruno@clisp.org>
95235         Tests for Unicode character classification functions.
95237         * modules/unictype/bidicategory-byname-tests: New file.
95238         * modules/unictype/bidicategory-name-tests: New file.
95239         * modules/unictype/bidicategory-of-tests: New file.
95240         * modules/unictype/bidicategory-test-tests: New file.
95241         * modules/unictype/block-list-tests: New file.
95242         * modules/unictype/block-of-tests: New file.
95243         * modules/unictype/block-test-tests: New file.
95244         * modules/unictype/category-C-tests: New file.
95245         * modules/unictype/category-Cc-tests: New file.
95246         * modules/unictype/category-Cf-tests: New file.
95247         * modules/unictype/category-Cn-tests: New file.
95248         * modules/unictype/category-Co-tests: New file.
95249         * modules/unictype/category-Cs-tests: New file.
95250         * modules/unictype/category-L-tests: New file.
95251         * modules/unictype/category-Ll-tests: New file.
95252         * modules/unictype/category-Lm-tests: New file.
95253         * modules/unictype/category-Lo-tests: New file.
95254         * modules/unictype/category-Lt-tests: New file.
95255         * modules/unictype/category-Lu-tests: New file.
95256         * modules/unictype/category-M-tests: New file.
95257         * modules/unictype/category-Mc-tests: New file.
95258         * modules/unictype/category-Me-tests: New file.
95259         * modules/unictype/category-Mn-tests: New file.
95260         * modules/unictype/category-N-tests: New file.
95261         * modules/unictype/category-Nd-tests: New file.
95262         * modules/unictype/category-Nl-tests: New file.
95263         * modules/unictype/category-No-tests: New file.
95264         * modules/unictype/category-P-tests: New file.
95265         * modules/unictype/category-Pc-tests: New file.
95266         * modules/unictype/category-Pd-tests: New file.
95267         * modules/unictype/category-Pe-tests: New file.
95268         * modules/unictype/category-Pf-tests: New file.
95269         * modules/unictype/category-Pi-tests: New file.
95270         * modules/unictype/category-Po-tests: New file.
95271         * modules/unictype/category-Ps-tests: New file.
95272         * modules/unictype/category-S-tests: New file.
95273         * modules/unictype/category-Sc-tests: New file.
95274         * modules/unictype/category-Sk-tests: New file.
95275         * modules/unictype/category-Sm-tests: New file.
95276         * modules/unictype/category-So-tests: New file.
95277         * modules/unictype/category-Z-tests: New file.
95278         * modules/unictype/category-Zl-tests: New file.
95279         * modules/unictype/category-Zp-tests: New file.
95280         * modules/unictype/category-Zs-tests: New file.
95281         * modules/unictype/category-and-not-tests: New file.
95282         * modules/unictype/category-and-tests: New file.
95283         * modules/unictype/category-byname-tests: New file.
95284         * modules/unictype/category-name-tests: New file.
95285         * modules/unictype/category-none-tests: New file.
95286         * modules/unictype/category-of-tests: New file.
95287         * modules/unictype/category-or-tests: New file.
95288         * modules/unictype/category-test-withtable-tests: New file.
95289         * modules/unictype/combining-class-tests: New file.
95290         * modules/unictype/ctype-alnum-tests: New file.
95291         * modules/unictype/ctype-alpha-tests: New file.
95292         * modules/unictype/ctype-blank-tests: New file.
95293         * modules/unictype/ctype-cntrl-tests: New file.
95294         * modules/unictype/ctype-digit-tests: New file.
95295         * modules/unictype/ctype-graph-tests: New file.
95296         * modules/unictype/ctype-lower-tests: New file.
95297         * modules/unictype/ctype-print-tests: New file.
95298         * modules/unictype/ctype-punct-tests: New file.
95299         * modules/unictype/ctype-space-tests: New file.
95300         * modules/unictype/ctype-upper-tests: New file.
95301         * modules/unictype/ctype-xdigit-tests: New file.
95302         * modules/unictype/decimal-digit-tests: New file.
95303         * modules/unictype/digit-tests: New file.
95304         * modules/unictype/mirror-tests: New file.
95305         * modules/unictype/numeric-tests: New file.
95306         * modules/unictype/property-alphabetic-tests: New file.
95307         * modules/unictype/property-ascii-hex-digit-tests: New file.
95308         * modules/unictype/property-bidi-arabic-digit-tests: New file.
95309         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
95310         * modules/unictype/property-bidi-block-separator-tests: New file.
95311         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
95312         * modules/unictype/property-bidi-common-separator-tests: New file.
95313         * modules/unictype/property-bidi-control-tests: New file.
95314         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
95315         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
95316         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
95317         * modules/unictype/property-bidi-european-digit-tests: New file.
95318         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
95319         * modules/unictype/property-bidi-left-to-right-tests: New file.
95320         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
95321         * modules/unictype/property-bidi-other-neutral-tests: New file.
95322         * modules/unictype/property-bidi-pdf-tests: New file.
95323         * modules/unictype/property-bidi-segment-separator-tests: New file.
95324         * modules/unictype/property-bidi-whitespace-tests: New file.
95325         * modules/unictype/property-byname-tests: New file.
95326         * modules/unictype/property-combining-tests: New file.
95327         * modules/unictype/property-composite-tests: New file.
95328         * modules/unictype/property-currency-symbol-tests: New file.
95329         * modules/unictype/property-dash-tests: New file.
95330         * modules/unictype/property-decimal-digit-tests: New file.
95331         * modules/unictype/property-default-ignorable-code-point-tests: New file.
95332         * modules/unictype/property-deprecated-tests: New file.
95333         * modules/unictype/property-diacritic-tests: New file.
95334         * modules/unictype/property-extender-tests: New file.
95335         * modules/unictype/property-format-control-tests: New file.
95336         * modules/unictype/property-grapheme-base-tests: New file.
95337         * modules/unictype/property-grapheme-extend-tests: New file.
95338         * modules/unictype/property-grapheme-link-tests: New file.
95339         * modules/unictype/property-hex-digit-tests: New file.
95340         * modules/unictype/property-hyphen-tests: New file.
95341         * modules/unictype/property-id-continue-tests: New file.
95342         * modules/unictype/property-id-start-tests: New file.
95343         * modules/unictype/property-ideographic-tests: New file.
95344         * modules/unictype/property-ids-binary-operator-tests: New file.
95345         * modules/unictype/property-ids-trinary-operator-tests: New file.
95346         * modules/unictype/property-ignorable-control-tests: New file.
95347         * modules/unictype/property-iso-control-tests: New file.
95348         * modules/unictype/property-join-control-tests: New file.
95349         * modules/unictype/property-left-of-pair-tests: New file.
95350         * modules/unictype/property-line-separator-tests: New file.
95351         * modules/unictype/property-logical-order-exception-tests: New file.
95352         * modules/unictype/property-lowercase-tests: New file.
95353         * modules/unictype/property-math-tests: New file.
95354         * modules/unictype/property-non-break-tests: New file.
95355         * modules/unictype/property-not-a-character-tests: New file.
95356         * modules/unictype/property-numeric-tests: New file.
95357         * modules/unictype/property-other-alphabetic-tests: New file.
95358         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
95359         * modules/unictype/property-other-grapheme-extend-tests: New file.
95360         * modules/unictype/property-other-id-continue-tests: New file.
95361         * modules/unictype/property-other-id-start-tests: New file.
95362         * modules/unictype/property-other-lowercase-tests: New file.
95363         * modules/unictype/property-other-math-tests: New file.
95364         * modules/unictype/property-other-uppercase-tests: New file.
95365         * modules/unictype/property-paired-punctuation-tests: New file.
95366         * modules/unictype/property-paragraph-separator-tests: New file.
95367         * modules/unictype/property-pattern-syntax-tests: New file.
95368         * modules/unictype/property-pattern-white-space-tests: New file.
95369         * modules/unictype/property-private-use-tests: New file.
95370         * modules/unictype/property-punctuation-tests: New file.
95371         * modules/unictype/property-quotation-mark-tests: New file.
95372         * modules/unictype/property-radical-tests: New file.
95373         * modules/unictype/property-sentence-terminal-tests: New file.
95374         * modules/unictype/property-soft-dotted-tests: New file.
95375         * modules/unictype/property-space-tests: New file.
95376         * modules/unictype/property-terminal-punctuation-tests: New file.
95377         * modules/unictype/property-test-tests: New file.
95378         * modules/unictype/property-titlecase-tests: New file.
95379         * modules/unictype/property-unassigned-code-value-tests: New file.
95380         * modules/unictype/property-unified-ideograph-tests: New file.
95381         * modules/unictype/property-uppercase-tests: New file.
95382         * modules/unictype/property-variation-selector-tests: New file.
95383         * modules/unictype/property-white-space-tests: New file.
95384         * modules/unictype/property-xid-continue-tests: New file.
95385         * modules/unictype/property-xid-start-tests: New file.
95386         * modules/unictype/property-zero-width-tests: New file.
95387         * modules/unictype/scripts-tests: New file.
95388         * modules/unictype/syntax-c-ident-tests: New file.
95389         * modules/unictype/syntax-c-whitespace-tests: New file.
95390         * modules/unictype/syntax-java-ident-tests: New file.
95391         * modules/unictype/syntax-java-whitespace-tests: New file.
95392         * tests/unictype/test-bidi_byname.c: New file.
95393         * tests/unictype/test-bidi_name.c: New file.
95394         * tests/unictype/test-bidi_of.c: New file.
95395         * tests/unictype/test-bidi_test.c: New file.
95396         * tests/unictype/test-block_list.c: New file.
95397         * tests/unictype/test-block_of.c: New file.
95398         * tests/unictype/test-block_test.c: New file.
95399         * tests/unictype/test-categ_and.c: New file.
95400         * tests/unictype/test-categ_and_not.c: New file.
95401         * tests/unictype/test-categ_byname.c: New file.
95402         * tests/unictype/test-categ_name.c: New file.
95403         * tests/unictype/test-categ_none.c: New file.
95404         * tests/unictype/test-categ_of.c: New file.
95405         * tests/unictype/test-categ_or.c: New file.
95406         * tests/unictype/test-categ_test_withtable.c: New file.
95407         * tests/unictype/test-combining.c: New file.
95408         * tests/unictype/test-decdigit.c: New file.
95409         * tests/unictype/test-digit.c: New file.
95410         * tests/unictype/test-mirror.c: New file.
95411         * tests/unictype/test-numeric.c: New file.
95412         * tests/unictype/test-pr_byname.c: New file.
95413         * tests/unictype/test-pr_test.c: New file.
95414         * tests/unictype/test-predicate-part1.h: New file.
95415         * tests/unictype/test-predicate-part2.h: New file.
95416         * tests/unictype/test-scripts.c: New file.
95417         * tests/unictype/test-sy_c_ident.c: New file.
95418         * tests/unictype/test-sy_java_ident.c: New file.
95420         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95421         for Unicode 5.0.0.
95422         * tests/unictype/test-categ_Cc.c: Likewise.
95423         * tests/unictype/test-categ_Cf.c: Likewise.
95424         * tests/unictype/test-categ_Cn.c: Likewise.
95425         * tests/unictype/test-categ_Co.c: Likewise.
95426         * tests/unictype/test-categ_Cs.c: Likewise.
95427         * tests/unictype/test-categ_L.c: Likewise.
95428         * tests/unictype/test-categ_Ll.c: Likewise.
95429         * tests/unictype/test-categ_Lm.c: Likewise.
95430         * tests/unictype/test-categ_Lo.c: Likewise.
95431         * tests/unictype/test-categ_Lt.c: Likewise.
95432         * tests/unictype/test-categ_Lu.c: Likewise.
95433         * tests/unictype/test-categ_M.c: Likewise.
95434         * tests/unictype/test-categ_Mc.c: Likewise.
95435         * tests/unictype/test-categ_Me.c: Likewise.
95436         * tests/unictype/test-categ_Mn.c: Likewise.
95437         * tests/unictype/test-categ_N.c: Likewise.
95438         * tests/unictype/test-categ_Nd.c: Likewise.
95439         * tests/unictype/test-categ_Nl.c: Likewise.
95440         * tests/unictype/test-categ_No.c: Likewise.
95441         * tests/unictype/test-categ_P.c: Likewise.
95442         * tests/unictype/test-categ_Pc.c: Likewise.
95443         * tests/unictype/test-categ_Pd.c: Likewise.
95444         * tests/unictype/test-categ_Pe.c: Likewise.
95445         * tests/unictype/test-categ_Pf.c: Likewise.
95446         * tests/unictype/test-categ_Pi.c: Likewise.
95447         * tests/unictype/test-categ_Po.c: Likewise.
95448         * tests/unictype/test-categ_Ps.c: Likewise.
95449         * tests/unictype/test-categ_S.c: Likewise.
95450         * tests/unictype/test-categ_Sc.c: Likewise.
95451         * tests/unictype/test-categ_Sk.c: Likewise.
95452         * tests/unictype/test-categ_Sm.c: Likewise.
95453         * tests/unictype/test-categ_So.c: Likewise.
95454         * tests/unictype/test-categ_Z.c: Likewise.
95455         * tests/unictype/test-categ_Zl.c: Likewise.
95456         * tests/unictype/test-categ_Zp.c: Likewise.
95457         * tests/unictype/test-categ_Zs.c: Likewise.
95458         * tests/unictype/test-ctype_alnum.c: Likewise.
95459         * tests/unictype/test-ctype_alpha.c: Likewise.
95460         * tests/unictype/test-ctype_blank.c: Likewise.
95461         * tests/unictype/test-ctype_cntrl.c: Likewise.
95462         * tests/unictype/test-ctype_digit.c: Likewise.
95463         * tests/unictype/test-ctype_graph.c: Likewise.
95464         * tests/unictype/test-ctype_lower.c: Likewise.
95465         * tests/unictype/test-ctype_print.c: Likewise.
95466         * tests/unictype/test-ctype_punct.c: Likewise.
95467         * tests/unictype/test-ctype_space.c: Likewise.
95468         * tests/unictype/test-ctype_upper.c: Likewise.
95469         * tests/unictype/test-ctype_xdigit.c: Likewise.
95470         * tests/unictype/test-decdigit.h: Likewise.
95471         * tests/unictype/test-digit.h: Likewise.
95472         * tests/unictype/test-numeric.h: Likewise.
95473         * tests/unictype/test-pr_alphabetic.c: Likewise.
95474         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95475         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95476         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95477         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95478         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95479         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95480         * tests/unictype/test-pr_bidi_control.c: Likewise.
95481         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95482         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95483         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95484         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95485         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95486         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95487         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95488         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95489         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95490         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95491         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95492         * tests/unictype/test-pr_combining.c: Likewise.
95493         * tests/unictype/test-pr_composite.c: Likewise.
95494         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95495         * tests/unictype/test-pr_dash.c: Likewise.
95496         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95497         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95498         * tests/unictype/test-pr_deprecated.c: Likewise.
95499         * tests/unictype/test-pr_diacritic.c: Likewise.
95500         * tests/unictype/test-pr_extender.c: Likewise.
95501         * tests/unictype/test-pr_format_control.c: Likewise.
95502         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95503         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95504         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95505         * tests/unictype/test-pr_hex_digit.c: Likewise.
95506         * tests/unictype/test-pr_hyphen.c: Likewise.
95507         * tests/unictype/test-pr_id_continue.c: Likewise.
95508         * tests/unictype/test-pr_id_start.c: Likewise.
95509         * tests/unictype/test-pr_ideographic.c: Likewise.
95510         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95511         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95512         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95513         * tests/unictype/test-pr_iso_control.c: Likewise.
95514         * tests/unictype/test-pr_join_control.c: Likewise.
95515         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95516         * tests/unictype/test-pr_line_separator.c: Likewise.
95517         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95518         * tests/unictype/test-pr_lowercase.c: Likewise.
95519         * tests/unictype/test-pr_math.c: Likewise.
95520         * tests/unictype/test-pr_non_break.c: Likewise.
95521         * tests/unictype/test-pr_not_a_character.c: Likewise.
95522         * tests/unictype/test-pr_numeric.c: Likewise.
95523         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95524         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95525         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95526         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95527         * tests/unictype/test-pr_other_id_start.c: Likewise.
95528         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95529         * tests/unictype/test-pr_other_math.c: Likewise.
95530         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95531         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95532         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95533         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95534         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95535         * tests/unictype/test-pr_private_use.c: Likewise.
95536         * tests/unictype/test-pr_punctuation.c: Likewise.
95537         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95538         * tests/unictype/test-pr_radical.c: Likewise.
95539         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95540         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95541         * tests/unictype/test-pr_space.c: Likewise.
95542         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95543         * tests/unictype/test-pr_titlecase.c: Likewise.
95544         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95545         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95546         * tests/unictype/test-pr_uppercase.c: Likewise.
95547         * tests/unictype/test-pr_variation_selector.c: Likewise.
95548         * tests/unictype/test-pr_white_space.c: Likewise.
95549         * tests/unictype/test-pr_xid_continue.c: Likewise.
95550         * tests/unictype/test-pr_xid_start.c: Likewise.
95551         * tests/unictype/test-pr_zero_width.c: Likewise.
95552         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95553         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95555 2007-11-12  Bruno Haible  <bruno@clisp.org>
95557         Unicode character classification functions.
95558         * lib/unictype.h: New file.
95559         * modules/unictype/base: New file.
95560         * modules/unictype/category-L: New file.
95561         * modules/unictype/category-Lu: New file.
95562         * modules/unictype/category-Ll: New file.
95563         * modules/unictype/category-Lt: New file.
95564         * modules/unictype/category-Lm: New file.
95565         * modules/unictype/category-Lo: New file.
95566         * modules/unictype/category-M: New file.
95567         * modules/unictype/category-Mn: New file.
95568         * modules/unictype/category-Mc: New file.
95569         * modules/unictype/category-Me: New file.
95570         * modules/unictype/category-N: New file.
95571         * modules/unictype/category-Nd: New file.
95572         * modules/unictype/category-Nl: New file.
95573         * modules/unictype/category-No: New file.
95574         * modules/unictype/category-P: New file.
95575         * modules/unictype/category-Pc: New file.
95576         * modules/unictype/category-Pd: New file.
95577         * modules/unictype/category-Ps: New file.
95578         * modules/unictype/category-Pe: New file.
95579         * modules/unictype/category-Pi: New file.
95580         * modules/unictype/category-Pf: New file.
95581         * modules/unictype/category-Po: New file.
95582         * modules/unictype/category-S: New file.
95583         * modules/unictype/category-Sm: New file.
95584         * modules/unictype/category-Sc: New file.
95585         * modules/unictype/category-Sk: New file.
95586         * modules/unictype/category-So: New file.
95587         * modules/unictype/category-Z: New file.
95588         * modules/unictype/category-Zs: New file.
95589         * modules/unictype/category-Zl: New file.
95590         * modules/unictype/category-Zp: New file.
95591         * modules/unictype/category-C: New file.
95592         * modules/unictype/category-Cc: New file.
95593         * modules/unictype/category-Cf: New file.
95594         * modules/unictype/category-Cs: New file.
95595         * modules/unictype/category-Co: New file.
95596         * modules/unictype/category-Cn: New file.
95597         * modules/unictype/category-or: New file.
95598         * modules/unictype/category-of: New file.
95599         * modules/unictype/category-test: New file.
95600         * modules/unictype/category-test-withtable: New file.
95601         * modules/unictype/category-byname: New file.
95602         * modules/unictype/category-none: New file.
95603         * modules/unictype/category-and: New file.
95604         * modules/unictype/category-and-not: New file.
95605         * modules/unictype/category-name: New file.
95606         * modules/unictype/combining-class: New file.
95607         * modules/unictype/category-all: New file.
95608         * modules/unictype/bidicategory-all: New file.
95609         * modules/unictype/bidicategory-byname: New file.
95610         * modules/unictype/bidicategory-name: New file.
95611         * modules/unictype/bidicategory-of: New file.
95612         * modules/unictype/bidicategory-test: New file.
95613         * modules/unictype/decimal-digit: New file.
95614         * modules/unictype/digit: New file.
95615         * modules/unictype/numeric: New file.
95616         * modules/unictype/mirror: New file.
95617         * modules/unictype/property-white-space: New file.
95618         * modules/unictype/property-alphabetic: New file.
95619         * modules/unictype/property-other-alphabetic: New file.
95620         * modules/unictype/property-not-a-character: New file.
95621         * modules/unictype/property-default-ignorable-code-point: New file.
95622         * modules/unictype/property-other-default-ignorable-code-point: New
95623         file.
95624         * modules/unictype/property-deprecated: New file.
95625         * modules/unictype/property-logical-order-exception: New file.
95626         * modules/unictype/property-variation-selector: New file.
95627         * modules/unictype/property-private-use: New file.
95628         * modules/unictype/property-unassigned-code-value: New file.
95629         * modules/unictype/property-uppercase: New file.
95630         * modules/unictype/property-other-uppercase: New file.
95631         * modules/unictype/property-lowercase: New file.
95632         * modules/unictype/property-other-lowercase: New file.
95633         * modules/unictype/property-titlecase: New file.
95634         * modules/unictype/property-soft-dotted: New file.
95635         * modules/unictype/property-id-start: New file.
95636         * modules/unictype/property-other-id-start: New file.
95637         * modules/unictype/property-id-continue: New file.
95638         * modules/unictype/property-other-id-continue: New file.
95639         * modules/unictype/property-xid-start: New file.
95640         * modules/unictype/property-xid-continue: New file.
95641         * modules/unictype/property-pattern-white-space: New file.
95642         * modules/unictype/property-pattern-syntax: New file.
95643         * modules/unictype/property-join-control: New file.
95644         * modules/unictype/property-grapheme-base: New file.
95645         * modules/unictype/property-grapheme-extend: New file.
95646         * modules/unictype/property-other-grapheme-extend: New file.
95647         * modules/unictype/property-grapheme-link: New file.
95648         * modules/unictype/property-bidi-control: New file.
95649         * modules/unictype/property-bidi-left-to-right: New file.
95650         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95651         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95652         * modules/unictype/property-bidi-european-digit: New file.
95653         * modules/unictype/property-bidi-eur-num-separator: New file.
95654         * modules/unictype/property-bidi-eur-num-terminator: New file.
95655         * modules/unictype/property-bidi-arabic-digit: New file.
95656         * modules/unictype/property-bidi-common-separator: New file.
95657         * modules/unictype/property-bidi-block-separator: New file.
95658         * modules/unictype/property-bidi-segment-separator: New file.
95659         * modules/unictype/property-bidi-whitespace: New file.
95660         * modules/unictype/property-bidi-non-spacing-mark: New file.
95661         * modules/unictype/property-bidi-boundary-neutral: New file.
95662         * modules/unictype/property-bidi-pdf: New file.
95663         * modules/unictype/property-bidi-embedding-or-override: New file.
95664         * modules/unictype/property-bidi-other-neutral: New file.
95665         * modules/unictype/property-hex-digit: New file.
95666         * modules/unictype/property-ascii-hex-digit: New file.
95667         * modules/unictype/property-ideographic: New file.
95668         * modules/unictype/property-unified-ideograph: New file.
95669         * modules/unictype/property-radical: New file.
95670         * modules/unictype/property-ids-binary-operator: New file.
95671         * modules/unictype/property-ids-trinary-operator: New file.
95672         * modules/unictype/property-zero-width: New file.
95673         * modules/unictype/property-space: New file.
95674         * modules/unictype/property-non-break: New file.
95675         * modules/unictype/property-iso-control: New file.
95676         * modules/unictype/property-format-control: New file.
95677         * modules/unictype/property-dash: New file.
95678         * modules/unictype/property-hyphen: New file.
95679         * modules/unictype/property-punctuation: New file.
95680         * modules/unictype/property-line-separator: New file.
95681         * modules/unictype/property-paragraph-separator: New file.
95682         * modules/unictype/property-quotation-mark: New file.
95683         * modules/unictype/property-sentence-terminal: New file.
95684         * modules/unictype/property-terminal-punctuation: New file.
95685         * modules/unictype/property-currency-symbol: New file.
95686         * modules/unictype/property-math: New file.
95687         * modules/unictype/property-other-math: New file.
95688         * modules/unictype/property-paired-punctuation: New file.
95689         * modules/unictype/property-left-of-pair: New file.
95690         * modules/unictype/property-combining: New file.
95691         * modules/unictype/property-composite: New file.
95692         * modules/unictype/property-decimal-digit: New file.
95693         * modules/unictype/property-numeric: New file.
95694         * modules/unictype/property-diacritic: New file.
95695         * modules/unictype/property-extender: New file.
95696         * modules/unictype/property-ignorable-control: New file.
95697         * modules/unictype/property-test: New file.
95698         * modules/unictype/property-byname: New file.
95699         * modules/unictype/property-all: New file.
95700         * modules/unictype/scripts: New file.
95701         * modules/unictype/scripts-all: New file.
95702         * modules/unictype/block-of: New file.
95703         * modules/unictype/block-test: New file.
95704         * modules/unictype/block-list: New file.
95705         * modules/unictype/block-all: New file.
95706         * modules/unictype/syntax-c-whitespace: New file.
95707         * modules/unictype/syntax-java-whitespace: New file.
95708         * modules/unictype/syntax-c-ident: New file.
95709         * modules/unictype/syntax-java-ident: New file.
95710         * modules/unictype/ctype-alnum: New file.
95711         * modules/unictype/ctype-alpha: New file.
95712         * modules/unictype/ctype-cntrl: New file.
95713         * modules/unictype/ctype-digit: New file.
95714         * modules/unictype/ctype-graph: New file.
95715         * modules/unictype/ctype-lower: New file.
95716         * modules/unictype/ctype-print: New file.
95717         * modules/unictype/ctype-punct: New file.
95718         * modules/unictype/ctype-space: New file.
95719         * modules/unictype/ctype-upper: New file.
95720         * modules/unictype/ctype-xdigit: New file.
95721         * modules/unictype/ctype-blank: New file.
95722         * lib/unictype/bidi_byname.c: New file.
95723         * lib/unictype/bidi_name.c: New file.
95724         * lib/unictype/bidi_of.c: New file.
95725         * lib/unictype/bidi_test.c: New file.
95726         * lib/unictype/bitmap.h: New file.
95727         * lib/unictype/block_test.c: New file.
95728         * lib/unictype/blocks.c: New file.
95729         * lib/unictype/categ_C.c: New file.
95730         * lib/unictype/categ_Cc.c: New file.
95731         * lib/unictype/categ_Cf.c: New file.
95732         * lib/unictype/categ_Cn.c: New file.
95733         * lib/unictype/categ_Co.c: New file.
95734         * lib/unictype/categ_Cs.c: New file.
95735         * lib/unictype/categ_L.c: New file.
95736         * lib/unictype/categ_Ll.c: New file.
95737         * lib/unictype/categ_Lm.c: New file.
95738         * lib/unictype/categ_Lo.c: New file.
95739         * lib/unictype/categ_Lt.c: New file.
95740         * lib/unictype/categ_Lu.c: New file.
95741         * lib/unictype/categ_M.c: New file.
95742         * lib/unictype/categ_Mc.c: New file.
95743         * lib/unictype/categ_Me.c: New file.
95744         * lib/unictype/categ_Mn.c: New file.
95745         * lib/unictype/categ_N.c: New file.
95746         * lib/unictype/categ_Nd.c: New file.
95747         * lib/unictype/categ_Nl.c: New file.
95748         * lib/unictype/categ_No.c: New file.
95749         * lib/unictype/categ_P.c: New file.
95750         * lib/unictype/categ_Pc.c: New file.
95751         * lib/unictype/categ_Pd.c: New file.
95752         * lib/unictype/categ_Pe.c: New file.
95753         * lib/unictype/categ_Pf.c: New file.
95754         * lib/unictype/categ_Pi.c: New file.
95755         * lib/unictype/categ_Po.c: New file.
95756         * lib/unictype/categ_Ps.c: New file.
95757         * lib/unictype/categ_S.c: New file.
95758         * lib/unictype/categ_Sc.c: New file.
95759         * lib/unictype/categ_Sk.c: New file.
95760         * lib/unictype/categ_Sm.c: New file.
95761         * lib/unictype/categ_So.c: New file.
95762         * lib/unictype/categ_Z.c: New file.
95763         * lib/unictype/categ_Zl.c: New file.
95764         * lib/unictype/categ_Zp.c: New file.
95765         * lib/unictype/categ_Zs.c: New file.
95766         * lib/unictype/categ_and.c: New file.
95767         * lib/unictype/categ_and_not.c: New file.
95768         * lib/unictype/categ_byname.c: New file.
95769         * lib/unictype/categ_name.c: New file.
95770         * lib/unictype/categ_none.c: New file.
95771         * lib/unictype/categ_of.c: New file.
95772         * lib/unictype/categ_or.c: New file.
95773         * lib/unictype/categ_test.c: New file.
95774         * lib/unictype/combining.c: New file.
95775         * lib/unictype/ctype_alnum.c: New file.
95776         * lib/unictype/ctype_alpha.c: New file.
95777         * lib/unictype/ctype_blank.c: New file.
95778         * lib/unictype/ctype_cntrl.c: New file.
95779         * lib/unictype/ctype_digit.c: New file.
95780         * lib/unictype/ctype_graph.c: New file.
95781         * lib/unictype/ctype_lower.c: New file.
95782         * lib/unictype/ctype_print.c: New file.
95783         * lib/unictype/ctype_punct.c: New file.
95784         * lib/unictype/ctype_space.c: New file.
95785         * lib/unictype/ctype_upper.c: New file.
95786         * lib/unictype/ctype_xdigit.c: New file.
95787         * lib/unictype/decdigit.c: New file.
95788         * lib/unictype/digit.c: New file.
95789         * lib/unictype/identsyntaxmap.h: New file.
95790         * lib/unictype/mirror.c: New file.
95791         * lib/unictype/numeric.c: New file.
95792         * lib/unictype/pr_alphabetic.c: New file.
95793         * lib/unictype/pr_ascii_hex_digit.c: New file.
95794         * lib/unictype/pr_bidi_arabic_digit.c: New file.
95795         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
95796         * lib/unictype/pr_bidi_block_separator.c: New file.
95797         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
95798         * lib/unictype/pr_bidi_common_separator.c: New file.
95799         * lib/unictype/pr_bidi_control.c: New file.
95800         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
95801         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
95802         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
95803         * lib/unictype/pr_bidi_european_digit.c: New file.
95804         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
95805         * lib/unictype/pr_bidi_left_to_right.c: New file.
95806         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
95807         * lib/unictype/pr_bidi_other_neutral.c: New file.
95808         * lib/unictype/pr_bidi_pdf.c: New file.
95809         * lib/unictype/pr_bidi_segment_separator.c: New file.
95810         * lib/unictype/pr_bidi_whitespace.c: New file.
95811         * lib/unictype/pr_byname.c: New file.
95812         * lib/unictype/pr_byname.gperf: New file.
95813         * lib/unictype/pr_combining.c: New file.
95814         * lib/unictype/pr_composite.c: New file.
95815         * lib/unictype/pr_currency_symbol.c: New file.
95816         * lib/unictype/pr_dash.c: New file.
95817         * lib/unictype/pr_decimal_digit.c: New file.
95818         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95819         * lib/unictype/pr_deprecated.c: New file.
95820         * lib/unictype/pr_diacritic.c: New file.
95821         * lib/unictype/pr_extender.c: New file.
95822         * lib/unictype/pr_format_control.c: New file.
95823         * lib/unictype/pr_grapheme_base.c: New file.
95824         * lib/unictype/pr_grapheme_extend.c: New file.
95825         * lib/unictype/pr_grapheme_link.c: New file.
95826         * lib/unictype/pr_hex_digit.c: New file.
95827         * lib/unictype/pr_hyphen.c: New file.
95828         * lib/unictype/pr_id_continue.c: New file.
95829         * lib/unictype/pr_id_start.c: New file.
95830         * lib/unictype/pr_ideographic.c: New file.
95831         * lib/unictype/pr_ids_binary_operator.c: New file.
95832         * lib/unictype/pr_ids_trinary_operator.c: New file.
95833         * lib/unictype/pr_ignorable_control.c: New file.
95834         * lib/unictype/pr_iso_control.c: New file.
95835         * lib/unictype/pr_join_control.c: New file.
95836         * lib/unictype/pr_left_of_pair.c: New file.
95837         * lib/unictype/pr_line_separator.c: New file.
95838         * lib/unictype/pr_logical_order_exception.c: New file.
95839         * lib/unictype/pr_lowercase.c: New file.
95840         * lib/unictype/pr_math.c: New file.
95841         * lib/unictype/pr_non_break.c: New file.
95842         * lib/unictype/pr_not_a_character.c: New file.
95843         * lib/unictype/pr_numeric.c: New file.
95844         * lib/unictype/pr_other_alphabetic.c: New file.
95845         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95846         * lib/unictype/pr_other_grapheme_extend.c: New file.
95847         * lib/unictype/pr_other_id_continue.c: New file.
95848         * lib/unictype/pr_other_id_start.c: New file.
95849         * lib/unictype/pr_other_lowercase.c: New file.
95850         * lib/unictype/pr_other_math.c: New file.
95851         * lib/unictype/pr_other_uppercase.c: New file.
95852         * lib/unictype/pr_paired_punctuation.c: New file.
95853         * lib/unictype/pr_paragraph_separator.c: New file.
95854         * lib/unictype/pr_pattern_syntax.c: New file.
95855         * lib/unictype/pr_pattern_white_space.c: New file.
95856         * lib/unictype/pr_private_use.c: New file.
95857         * lib/unictype/pr_punctuation.c: New file.
95858         * lib/unictype/pr_quotation_mark.c: New file.
95859         * lib/unictype/pr_radical.c: New file.
95860         * lib/unictype/pr_sentence_terminal.c: New file.
95861         * lib/unictype/pr_soft_dotted.c: New file.
95862         * lib/unictype/pr_space.c: New file.
95863         * lib/unictype/pr_terminal_punctuation.c: New file.
95864         * lib/unictype/pr_test.c: New file.
95865         * lib/unictype/pr_titlecase.c: New file.
95866         * lib/unictype/pr_unassigned_code_value.c: New file.
95867         * lib/unictype/pr_unified_ideograph.c: New file.
95868         * lib/unictype/pr_uppercase.c: New file.
95869         * lib/unictype/pr_variation_selector.c: New file.
95870         * lib/unictype/pr_white_space.c: New file.
95871         * lib/unictype/pr_xid_continue.c: New file.
95872         * lib/unictype/pr_xid_start.c: New file.
95873         * lib/unictype/pr_zero_width.c: New file.
95874         * lib/unictype/scripts.c: New file.
95875         * lib/unictype/sy_c_ident.c: New file.
95876         * lib/unictype/sy_c_whitespace.c: New file.
95877         * lib/unictype/sy_java_ident.c: New file.
95878         * lib/unictype/sy_java_whitespace.c: New file.
95880         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95881         Unicode 5.0.0.
95882         * lib/unictype/blocks.h: Likewise.
95883         * lib/unictype/categ_C.h: Likewise.
95884         * lib/unictype/categ_Cc.h: Likewise.
95885         * lib/unictype/categ_Cf.h: Likewise.
95886         * lib/unictype/categ_Cn.h: Likewise.
95887         * lib/unictype/categ_Co.h: Likewise.
95888         * lib/unictype/categ_Cs.h: Likewise.
95889         * lib/unictype/categ_L.h: Likewise.
95890         * lib/unictype/categ_Ll.h: Likewise.
95891         * lib/unictype/categ_Lm.h: Likewise.
95892         * lib/unictype/categ_Lo.h: Likewise.
95893         * lib/unictype/categ_Lt.h: Likewise.
95894         * lib/unictype/categ_Lu.h: Likewise.
95895         * lib/unictype/categ_M.h: Likewise.
95896         * lib/unictype/categ_Mc.h: Likewise.
95897         * lib/unictype/categ_Me.h: Likewise.
95898         * lib/unictype/categ_Mn.h: Likewise.
95899         * lib/unictype/categ_N.h: Likewise.
95900         * lib/unictype/categ_Nd.h: Likewise.
95901         * lib/unictype/categ_Nl.h: Likewise.
95902         * lib/unictype/categ_No.h: Likewise.
95903         * lib/unictype/categ_P.h: Likewise.
95904         * lib/unictype/categ_Pc.h: Likewise.
95905         * lib/unictype/categ_Pd.h: Likewise.
95906         * lib/unictype/categ_Pe.h: Likewise.
95907         * lib/unictype/categ_Pf.h: Likewise.
95908         * lib/unictype/categ_Pi.h: Likewise.
95909         * lib/unictype/categ_Po.h: Likewise.
95910         * lib/unictype/categ_Ps.h: Likewise.
95911         * lib/unictype/categ_S.h: Likewise.
95912         * lib/unictype/categ_Sc.h: Likewise.
95913         * lib/unictype/categ_Sk.h: Likewise.
95914         * lib/unictype/categ_Sm.h: Likewise.
95915         * lib/unictype/categ_So.h: Likewise.
95916         * lib/unictype/categ_Z.h: Likewise.
95917         * lib/unictype/categ_Zl.h: Likewise.
95918         * lib/unictype/categ_Zp.h: Likewise.
95919         * lib/unictype/categ_Zs.h: Likewise.
95920         * lib/unictype/categ_of.h: Likewise.
95921         * lib/unictype/combining.h: Likewise.
95922         * lib/unictype/ctype_alnum.h: Likewise.
95923         * lib/unictype/ctype_alpha.h: Likewise.
95924         * lib/unictype/ctype_blank.h: Likewise.
95925         * lib/unictype/ctype_cntrl.h: Likewise.
95926         * lib/unictype/ctype_digit.h: Likewise.
95927         * lib/unictype/ctype_graph.h: Likewise.
95928         * lib/unictype/ctype_lower.h: Likewise.
95929         * lib/unictype/ctype_print.h: Likewise.
95930         * lib/unictype/ctype_punct.h: Likewise.
95931         * lib/unictype/ctype_space.h: Likewise.
95932         * lib/unictype/ctype_upper.h: Likewise.
95933         * lib/unictype/ctype_xdigit.h: Likewise.
95934         * lib/unictype/decdigit.h: Likewise.
95935         * lib/unictype/digit.h: Likewise.
95936         * lib/unictype/mirror.h: Likewise.
95937         * lib/unictype/numeric.h: Likewise.
95938         * lib/unictype/pr_alphabetic.h: Likewise.
95939         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95940         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95941         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95942         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95943         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95944         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95945         * lib/unictype/pr_bidi_control.h: Likewise.
95946         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95947         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95948         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95949         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95950         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95951         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95952         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95953         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95954         * lib/unictype/pr_bidi_pdf.h: Likewise.
95955         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95956         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95957         * lib/unictype/pr_combining.h: Likewise.
95958         * lib/unictype/pr_composite.h: Likewise.
95959         * lib/unictype/pr_currency_symbol.h: Likewise.
95960         * lib/unictype/pr_dash.h: Likewise.
95961         * lib/unictype/pr_decimal_digit.h: Likewise.
95962         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95963         * lib/unictype/pr_deprecated.h: Likewise.
95964         * lib/unictype/pr_diacritic.h: Likewise.
95965         * lib/unictype/pr_extender.h: Likewise.
95966         * lib/unictype/pr_format_control.h: Likewise.
95967         * lib/unictype/pr_grapheme_base.h: Likewise.
95968         * lib/unictype/pr_grapheme_extend.h: Likewise.
95969         * lib/unictype/pr_grapheme_link.h: Likewise.
95970         * lib/unictype/pr_hex_digit.h: Likewise.
95971         * lib/unictype/pr_hyphen.h: Likewise.
95972         * lib/unictype/pr_id_continue.h: Likewise.
95973         * lib/unictype/pr_id_start.h: Likewise.
95974         * lib/unictype/pr_ideographic.h: Likewise.
95975         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95976         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95977         * lib/unictype/pr_ignorable_control.h: Likewise.
95978         * lib/unictype/pr_iso_control.h: Likewise.
95979         * lib/unictype/pr_join_control.h: Likewise.
95980         * lib/unictype/pr_left_of_pair.h: Likewise.
95981         * lib/unictype/pr_line_separator.h: Likewise.
95982         * lib/unictype/pr_logical_order_exception.h: Likewise.
95983         * lib/unictype/pr_lowercase.h: Likewise.
95984         * lib/unictype/pr_math.h: Likewise.
95985         * lib/unictype/pr_non_break.h: Likewise.
95986         * lib/unictype/pr_not_a_character.h: Likewise.
95987         * lib/unictype/pr_numeric.h: Likewise.
95988         * lib/unictype/pr_other_alphabetic.h: Likewise.
95989         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95990         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95991         * lib/unictype/pr_other_id_continue.h: Likewise.
95992         * lib/unictype/pr_other_id_start.h: Likewise.
95993         * lib/unictype/pr_other_lowercase.h: Likewise.
95994         * lib/unictype/pr_other_math.h: Likewise.
95995         * lib/unictype/pr_other_uppercase.h: Likewise.
95996         * lib/unictype/pr_paired_punctuation.h: Likewise.
95997         * lib/unictype/pr_paragraph_separator.h: Likewise.
95998         * lib/unictype/pr_pattern_syntax.h: Likewise.
95999         * lib/unictype/pr_pattern_white_space.h: Likewise.
96000         * lib/unictype/pr_private_use.h: Likewise.
96001         * lib/unictype/pr_punctuation.h: Likewise.
96002         * lib/unictype/pr_quotation_mark.h: Likewise.
96003         * lib/unictype/pr_radical.h: Likewise.
96004         * lib/unictype/pr_sentence_terminal.h: Likewise.
96005         * lib/unictype/pr_soft_dotted.h: Likewise.
96006         * lib/unictype/pr_space.h: Likewise.
96007         * lib/unictype/pr_terminal_punctuation.h: Likewise.
96008         * lib/unictype/pr_titlecase.h: Likewise.
96009         * lib/unictype/pr_unassigned_code_value.h: Likewise.
96010         * lib/unictype/pr_unified_ideograph.h: Likewise.
96011         * lib/unictype/pr_uppercase.h: Likewise.
96012         * lib/unictype/pr_variation_selector.h: Likewise.
96013         * lib/unictype/pr_white_space.h: Likewise.
96014         * lib/unictype/pr_xid_continue.h: Likewise.
96015         * lib/unictype/pr_xid_start.h: Likewise.
96016         * lib/unictype/pr_zero_width.h: Likewise.
96017         * lib/unictype/scripts.h: Likewise.
96018         * lib/unictype/scripts_byname.gperf: Likewise.
96019         * lib/unictype/sy_c_ident.h: Likewise.
96020         * lib/unictype/sy_c_whitespace.h: Likewise.
96021         * lib/unictype/sy_java_ident.h: Likewise.
96022         * lib/unictype/sy_java_whitespace.h: Likewise.
96024         * lib/unictype/Makefile: New file.
96025         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
96026         glibc.
96027         * lib/unictype/3level.h: New file, copied from glibc.
96028         * lib/unictype/3levelbit.h: New file.
96030 2007-11-11  Bruno Haible  <bruno@clisp.org>
96032         * modules/gperf: New file.
96033         * modules/iconv_open (Depends-on): Add it.
96034         (Makefile.am): Remove the GPERF definition.
96036 2007-11-11  Bruno Haible  <bruno@clisp.org>
96038         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
96039         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
96041 2007-11-11  Bruno Haible  <bruno@clisp.org>
96043         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
96044         (usage): Remove function.
96046 2007-11-11  Bruno Haible  <bruno@clisp.org>
96048         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
96049         gl_FUNC_CEILF_LIBS.
96050         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
96051         gl_FUNC_CEIL_LIBS.
96052         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
96053         gl_FUNC_CEILL_LIBS.
96054         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
96055         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
96056         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
96058 2007-11-11  Bruno Haible  <bruno@clisp.org>
96060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
96061         roundf were declared but do not exist on functions.
96062         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
96063         roundl were declared but do not exist on functions.
96064         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
96065         HAVE_FLOORL_AND_CEILL, respectively.
96066         Needed for Sun C on Solaris 10.
96068 2007-11-11  Bruno Haible  <bruno@clisp.org>
96070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
96071         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
96072         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
96073         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
96074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
96075         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
96076         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
96077         HAVE_DECL_ROUNDF.
96078         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
96079         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
96080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
96081         of HAVE_DECL_ROUND*.
96082         * modules/math (Makefile.am): Update.
96084 2007-11-10  Bruno Haible  <bruno@clisp.org>
96086         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
96087         ptrdiff_t as m4/intl.m4.
96089 2007-11-10  Jim Meyering  <meyering@redhat.com>
96091         Avoid link failure for the argmatch test.
96092         * tests/test-argmatch.c (usage): Define function to avoid a link
96093         failure: argmatch_die requires a usage function.
96095 2007-11-09  Bruno Haible  <bruno@clisp.org>
96097         * doc/functions/snprintf.texi: Mention BeOS deficiency.
96098         * doc/functions/vsnprintf.texi: Likewise.
96099         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
96100         with a size argument < 2.
96102 2007-11-09  Bruno Haible  <bruno@clisp.org>
96104         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
96105         buffer. Fixes an inefficiency introduced on 2007-11-03.
96107 2007-11-09  Bruno Haible  <bruno@clisp.org>
96109         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
96110         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
96112 2007-11-08  Jim Meyering  <meyering@redhat.com>
96114         Change cache variable name prefix "jm_" to "gl_" everywhere.
96115         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
96116         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
96117         * m4/uptime.m4: s/gl_/jm_/
96119 2007-11-07  Bruno Haible  <bruno@clisp.org>
96121         Update to GNU gettext 0.17.
96122         * m4/intl.m4: Update to GNU gettext 0.17.
96123         * m4/po.m4: Likewise.
96124         * modules/gettext (Files): Remove m4/ulonglong.m4.
96125         (configure.ac): Require gettext infrastructure from version 0.17.
96127 2007-11-06  Bruno Haible  <bruno@clisp.org>
96129         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
96130         symbolic values are not defined in a public header.
96131         * lib/freadable.c (freadable) [QNX]: Likewise.
96132         * lib/freadahead.c (freadahead) [QNX]: Likewise.
96133         * lib/freading.c (freading) [QNX]: Likewise.
96134         * lib/fseterr.c (fseterr) [QNX]: Likewise.
96135         * lib/fwritable.c (fwritable) [QNX]: Likewise.
96136         * lib/fwriting.c (fwriting) [QNX]: Likewise.
96137         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
96138         Reported by Alain Magloire.
96140         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
96142 2007-11-05  Bruno Haible  <bruno@clisp.org>
96144         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
96145         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
96146         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
96147         Reported by Eric Blake.
96149 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96150             Bruno Haible  <bruno@clisp.org>
96152         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
96153         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
96154         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
96155         (malloc): Undefine also before including <stdlib.h>.
96156         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
96157         Needed on OSF/1 4.0.
96159 2007-11-05  Jim Meyering  <meyering@redhat.com>
96161         git-version-gen: sync from coreutils.
96162         * build-aux/git-version-gen: Add comments.
96163         Change the first '-' to '.' in the snapshot version string,
96164         e.g., 6.9-377-08144 -> 6.9.377-08144
96165         Remove first parameter.
96166         Don't declare a version "-dirty" merely because a time
96167         stamp has changed.
96169 2007-11-04  Bruno Haible  <bruno@clisp.org>
96171         * lib/lock.h: Protect all macro definitions containing an 'if'
96172         statement through a "do { ... } while (0)".
96173         * lib/tls.h: Likewise.
96175 2007-11-04  Bruno Haible  <bruno@clisp.org>
96177         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
96179 2007-11-04  Bruno Haible  <bruno@clisp.org>
96181         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
96182         * modules/fprintf-posix (Depends-on): Add nocrash.
96183         * modules/snprintf-posix (Depends-on): Likewise.
96184         * modules/sprintf-posix (Depends-on): Likewise.
96185         * modules/vasnprintf-posix (Depends-on): Likewise.
96186         * modules/vasprintf-posix (Depends-on): Likewise.
96187         * modules/vfprintf-posix (Depends-on): Likewise.
96188         * modules/vsnprintf-posix (Depends-on): Likewise.
96189         * modules/vsprintf-posix (Depends-on): Likewise.
96190         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96191         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96192         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96193         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96194         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96195         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96196         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96198 2007-11-04  Bruno Haible  <bruno@clisp.org>
96200         * modules/nocrash: New file.
96201         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
96202         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
96204 2007-11-04  Bruno Haible  <bruno@clisp.org>
96206         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
96207         precision handling.
96208         * tests/test-vasprintf-posix.c (test_function): Likewise.
96209         * tests/test-snprintf-posix.h (test_function): Likewise.
96210         * tests/test-sprintf-posix.h (test_function): Likewise.
96212         Fix *printf behaviour for large precisions on mingw and BeOS.
96213         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
96214         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
96215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
96216         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96217         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96218         gl_PRINTF_PRECISION and test its result. Invoke
96219         gl_PREREQ_VASNPRINTF_PRECISION.
96220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96227         * doc/functions/fprintf.texi: Update.
96228         * doc/functions/printf.texi: Update.
96229         * doc/functions/snprintf.texi: Update.
96230         * doc/functions/sprintf.texi: Update.
96231         * doc/functions/vfprintf.texi: Update.
96232         * doc/functions/vprintf.texi: Update.
96233         * doc/functions/vsnprintf.texi: Update.
96234         * doc/functions/vsprintf.texi: Update.
96236 2007-11-04  Bruno Haible  <bruno@clisp.org>
96238         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
96240 2007-11-04  Bruno Haible  <bruno@clisp.org>
96242         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
96243         Reported by Sylvain Beucler <beuc@gnu.org>.
96245 2007-11-03  Bruno Haible  <bruno@clisp.org>
96247         * tests/test-fprintf-posix2.sh: New file.
96248         * tests/test-fprintf-posix2.c: New file.
96249         * modules/fprintf-posix-tests (Files): Add them.
96250         (TESTS): Add test-fprintf-posix2.sh.
96251         (configure.ac): Check for getrlimit and setrlimit.
96252         (check_PROGRAMS): Add test-fprintf-posix2.
96254         * tests/test-printf-posix2.sh: New file.
96255         * tests/test-printf-posix2.c: New file.
96256         * modules/printf-posix-tests (Files): Add them.
96257         (TESTS): Add test-printf-posix2.sh.
96258         (configure.ac): Check for getrlimit and setrlimit.
96259         (check_PROGRAMS): Add test-printf-posix2.
96261         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
96262         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
96263         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
96264         (decode_double): New function, copied from decode_long_double.
96265         (scale10_round_decimal_decoded): New function, extracted from
96266         scale10_round_decimal_long_double.
96267         (scale10_round_decimal_long_double): Use it.
96268         (scale10_round_decimal_double): New function.
96269         (floorlog10): New function.
96270         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
96271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
96272         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96274         gl_PRINTF_ENOMEM and test its result. Invoke
96275         gl_PREREQ_VASNPRINTF_ENOMEM.
96276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96283         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
96284         * modules/snprintf-posix (Depends-on): Likewise.
96285         * modules/sprintf-posix (Depends-on): Likewise.
96286         * modules/vasnprintf-posix (Depends-on): Likewise.
96287         * modules/vasprintf-posix (Depends-on): Likewise.
96288         * modules/vfprintf-posix (Depends-on): Likewise.
96289         * modules/vsnprintf-posix (Depends-on): Likewise.
96290         * modules/vsprintf-posix (Depends-on): Likewise.
96291         * doc/functions/fprintf.texi: Update.
96292         * doc/functions/printf.texi: Update.
96293         * doc/functions/snprintf.texi: Update.
96294         * doc/functions/sprintf.texi: Update.
96295         * doc/functions/vfprintf.texi: Update.
96296         * doc/functions/vprintf.texi: Update.
96297         * doc/functions/vsnprintf.texi: Update.
96298         * doc/functions/vsprintf.texi: Update.
96300 2007-11-03  Bruno Haible  <bruno@clisp.org>
96302         * modules/frexp-nolibm-tests: New file.
96304         * modules/frexp-nolibm: New file.
96305         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
96307 2007-11-03  Bruno Haible  <bruno@clisp.org>
96309         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
96310         value is C99 compliant.
96311         Needed for OSF/1 5.1.
96313 2007-11-03  Bruno Haible  <bruno@clisp.org>
96315         Fix out-of-memory handling of vasnprintf.
96316         * lib/printf-parse.c: Include <errno.h>.
96317         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
96318         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
96319         is already set.
96321 2007-11-02  Eric Blake  <ebb9@byu.net>
96323         Fix tests on cygwin.
96324         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
96326 2007-11-01  Bruno Haible  <bruno@clisp.org>
96328         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
96329         warning.
96330         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
96331         needed for POSIX compatibility.
96333 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
96335         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
96336         for compatibility with GNU.
96338 2007-11-01  Bruno Haible  <bruno@clisp.org>
96340         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
96341         (putenv): Renamed from rpl_putenv. Change argument type from
96342         'const char *' to 'char *'.
96343         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
96344         of defining putenv in config.h, just set REPLACE_PUTENV.
96345         * modules/putenv (Depends-on): Add stdlib.
96346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96347         (Include): Use <stdlib.h>.
96348         * lib/stdlib.in.h (putenv): New declaration.
96349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
96350         REPLACE_PUTENV.
96351         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
96352         REPLACE_PUTENV.
96353         Needed for MacOS X 10.5.0.
96354         Reported by Peter O'Gorman <peter@pogma.com>.
96356 2007-11-01  Jim Meyering  <meyering@redhat.com>
96358         Treat an empty date string exactly like "0".
96359         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
96360         if the remaining date string (to be parsed) is empty, use "0".
96361         Reported by Mischa Molhoek and discussed in this thread:
96362         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
96364 2007-10-31  Bruno Haible  <bruno@clisp.org>
96366         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
96367         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
96368         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
96369         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
96370         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
96371         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
96373 2007-10-31  Bruno Haible  <bruno@clisp.org>
96375         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
96376         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
96377         (AC_TYPE_LONG_LONG_INT): Use it.
96378         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
96379         it as well.
96380         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96381         to m4/longlong.m4.
96382         * modules/stdint (Files): Remove m4/ulonglong.m4.
96383         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96384         m4/ulonglong.m4.
96385         * modules/strtoumax (Files): Likewise.
96387 2007-10-30  Bruno Haible  <bruno@clisp.org>
96389         * modules/xvasprintf-posix: New file.
96390         Suggested by Eric Blake.
96392 2007-10-30  Bruno Haible  <bruno@clisp.org>
96394         * modules/xprintf-posix-tests: New file.
96395         * tests/test-xprintf-posix.sh: New file.
96396         * tests/test-xprintf-posix.c: New file.
96397         * tests/test-xfprintf-posix.c: New file.
96399         * modules/xprintf-posix: New file.
96401 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96403         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96404         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96405         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96407 2007-10-29  Bruno Haible  <bruno@clisp.org>
96409         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96410         contain the special marker '_cv_'.
96411         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96412         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96413         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96414         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96415         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96416         Reported by Ralf Wildenhues.
96418 2007-10-29  Bruno Haible  <bruno@clisp.org>
96420         * gnulib-tool (func_import): When --lgpl is not specified, set
96421         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96422         GPLv3.
96423         Reported by Simon Josefsson.
96425 2007-10-28  Bruno Haible  <bruno@clisp.org>
96427         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96428         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96429         HAVE_DECL_ISFINITE.
96430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96431         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96432         HAVE_DECL_ISFINITE.
96434 2007-10-28  Bruno Haible  <bruno@clisp.org>
96436         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96437         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96439 2007-10-28  Bruno Haible  <bruno@clisp.org>
96441         Fix link errors with Sun C 5.0 on Solaris 10.
96442         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96443         function is declared but not present in the compiler's libm.
96444         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96445         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96446         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96447         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96448         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96449         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96450         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96452         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96453         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96454         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96455         HAVE_DECL_FLOORL.
96457 2007-10-28  Bruno Haible  <bruno@clisp.org>
96459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96460         gl_FUNC_FLOORL. Cache the result.
96461         (gl_FUNC_FLOORL): Use it.
96462         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96463         gl_FUNC_CEILL. Cache the result.
96464         (gl_FUNC_CEILL): Use it.
96466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96467         gl_FUNC_FLOOR. Cache the result.
96468         (gl_FUNC_FLOOR): Use it.
96469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96470         gl_FUNC_CEIL. Cache the result.
96471         (gl_FUNC_CEIL): Use it.
96473         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96474         gl_FUNC_FLOORF. Cache the result.
96475         (gl_FUNC_FLOORF): Use it.
96476         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96477         gl_FUNC_CEILF. Cache the result.
96478         (gl_FUNC_CEILF): Use it.
96480 2007-10-28  Bruno Haible  <bruno@clisp.org>
96482         * gnulib-tool: Allow specifying the LGPL version number through
96483         --lgpl=2 or --lgpl=3.
96484         (func_usage): Document --lgpl with argument.
96485         Handle --lgpl=... arguments.
96486         (func_import): Recognize also gl_LGPL calls with an argument. When
96487         --lgpl=2 is used and the module's license is just LGPL, report an
96488         error. Set sed_transform_lib_file according to the lgpl variable. In
96489         the generated files, use --lgpl or gl_LGPL invocations with argument,
96490         if necessary.
96491         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96492         an LGPv2+ license.
96493         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96494         gl_LGPL macro.
96496 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96497             Bruno Haible  <bruno@clisp.org>
96499         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96500         (u16_uctomb_aux): Likewise.
96501         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96502         !HAVE_INLINE.
96503         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96505 2007-10-28  Bruno Haible  <bruno@clisp.org>
96507         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96508         Invoke AM_GETTEXT_OPTION if it exists.
96509         * modules/vasprintf: Likewise.
96510         * modules/verror: Likewise.
96511         * modules/xprintf: Likewise.
96512         * modules/xvasprintf: Likewise.
96514 2007-10-27  Ben Pfaff  <blp@gnu.org>
96516         * lib/math.in.h: Define isfinite macro and prototypes for
96517         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96518         implementations.
96519         * m4/math_h.m4: New substitutions for isfinite module.
96520         * lib/isfinite.c: New file.
96521         * m4/isfinite.m4: New file.
96522         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96523         * modules/isfinite: New file.
96524         * modules/isfinite-tests: New file.
96525         * tests/tests-isfinite.c: New file.
96526         * doc/functions/isfinite.texi: Mention isfinite module.
96527         * MODULES.html.sh: Mention new module.
96529 2007-10-27  Ben Pfaff  <blp@gnu.org>
96531         Ralf Wildenhues reported that Tru64 4.0D declares the round
96532         functions but does not have definitions.
96533         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96534         cannot be found in any library, set the output variable to
96535         "missing" instead of "".
96536         * m4/round.m4: Also use our substitute if we cannot find round in
96537         any library, even if it is declared.
96538         * m4/roundf.m4: Likewise for roundf.
96539         * m4/roundl.m4: Likewise for roundl.
96540         * lib/math.in.h: Undefine roundf, round, roundl before defining
96541         their replacements, to allow for hypothetical systems where these
96542         may be defined as macros but not available in libraries.
96544 2007-10-27  Bruno Haible  <bruno@clisp.org>
96546         * doc/gnulib.texi: Invoke @firstparagraphindent.
96547         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96548         changes in gnulib.
96549         (Source changes): New section.
96551 2007-10-26  Bruno Haible  <bruno@clisp.org>
96553         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96554         borrowed from autoconf.
96556 2007-10-26  Bruno Haible  <bruno@clisp.org>
96558         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96559         strerror returned the empty string. Needed on HP-UX 11.00.
96561 2007-10-24  Micah Cowan  <micah@cowan.name>
96563         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96564         * build-aux/bootstrap: Remove support for now-unnecessary option,
96565         --cvs-user, and envvars CVS_USER, CVS_RSH.
96567 2007-10-24  Jim Meyering  <meyering@redhat.com>
96569         Avoid diagnostics from sha1sum when there is no cached checksum.
96570         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96571         if the po.s1 file hasn't been created yet.
96573         * build-aux/bootstrap: Sync from coreutils:
96574         2007-10-24  Jim Meyering  <meyering@redhat.com>
96575         Get gnulib from the git repository, not from an obsolete cvs one.
96576         * build-aux/bootstrap: Suggestion from Micah Cowan.
96577         2007-10-04  Jim Meyering  <jim@meyering.net>
96578         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96579         (update_po_files): Work also when there are no .po files in po/.
96581 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96583         * README: Append ".git" to git and cg examples.
96584         Problem reported by Benoit Sigoure.
96586 2007-10-23  Micah Cowan  <micah@cowan.name>
96588         * users.txt: Add wget.
96590 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96592         Fix linking of some unistdio tests on FreeBSD.
96593         * modules/unistdio/u16-vsnprintf-tests
96594         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96595         * modules/unistdio/u16-vsprintf-tests
96596         (test_u16_vsnprintf1_LDADD): Likewise.
96597         * modules/unistdio/u32-vsnprintf-tests
96598         (test_u32_vsnprintf1_LDADD): Likewise.
96599         * modules/unistdio/u32-vsprintf-tests
96600         (test_u32_vsprintf1_LDADD): Likewise.
96601         * modules/unistdio/u8-vsnprintf-tests
96602         (test_u8_vsnprintf1_LDADD): Likewise.
96603         * modules/unistdio/u8-vsprintf-tests
96604         (test_u8_vsprintf1_LDADD): Likewise.
96605         * modules/unistdio/ulc-vsnprintf-tests
96606         (test_ulc_vsnprintf1_LDADD): Likewise.
96607         * modules/unistdio/ulc-vsprintf-tests
96608         (test_ulc_vsprintf1_LDADD): Likewise.
96610         Fix linking of some uniconv tests on FreeBSD.
96611         * modules/uniconv/u16-conv-from-enc-tests
96612         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96613         * modules/uniconv/u16-conv-to-enc-tests
96614         (test_u16_conv_to_enc_LDADD): Likewise.
96615         * modules/uniconv/u16-strconv-from-enc-tests
96616         (test_u16_strconv_from_enc_LDADD): Likewise.
96617         * modules/uniconv/u16-strconv-to-enc-tests
96618         (test_u16_strconv_to_enc_LDADD): Likewise.
96619         * modules/uniconv/u32-conv-from-enc-tests
96620         (test_u32_conv_from_enc_LDADD): Likewise.
96621         * modules/uniconv/u32-conv-to-enc-tests
96622         (test_u32_conv_to_enc_LDADD): Likewise.
96623         * modules/uniconv/u32-strconv-from-enc-tests
96624         (test_u32_strconv_from_enc_LDADD): Likewise.
96625         * modules/uniconv/u32-strconv-to-enc-tests
96626         (test_u32_strconv_to_enc_LDADD): Likewise.
96627         * modules/uniconv/u8-conv-from-enc-tests
96628         (test_u8_conv_from_enc_LDADD): Likewise.
96629         * modules/uniconv/u8-conv-to-enc-tests
96630         (test_u8_conv_to_enc_LDADD): Likewise.
96631         * modules/uniconv/u8-strconv-from-enc-tests
96632         (test_u8_strconv_from_enc_LDADD): Likewise.
96633         * modules/uniconv/u8-strconv-to-enc-tests
96634         (test_u8_strconv_to_enc_LDADD): Likewise.
96636 2007-10-22  Bruno Haible  <bruno@clisp.org>
96638         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96639         size.
96641 2007-10-22  Eric Blake  <ebb9@byu.net>
96643         Tweak x*printf documentation.
96644         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96645         variable name and comments.
96646         Suggested by Bruno Haible.
96648 2007-10-22  Bruno Haible  <bruno@clisp.org>
96650         * lib/acl.c (copy_acl): Fix file name in comment.
96652 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96654         Fix Tru64 problem with stdbool.h.
96655         * lib/stdbool.in.h (false, true):
96656         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96657         Don't declare as an enum in this situation; it runs afoul of Tru64.
96658         Problem reported by Steven M. Schweda in
96659         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96661 2007-10-22  Eric Blake  <ebb9@byu.net>
96663         Also wrap vf?printf.
96664         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96665         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96666         (xvprintf, xvfprintf): New functions.
96668 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96670         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96671         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96673         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96674         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96676 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96678         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96679         by Bruno Haible.
96681 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96683         * lib/getloadavg.c
96684         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96685         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96687         * tests/test-i-ring.c: Work for C89.
96689 2007-10-22  Bruno Haible  <bruno@clisp.org>
96691         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96692         -1u, in preprocessor expression, so that we don't test for the bug
96693         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96694         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96696 2007-10-22  Eric Blake  <ebb9@byu.net>
96698         * tests/test-yesno.sh: Silence stderr during test.
96700 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96702         * modules/crypto/gc-camellia: New file.
96704         * m4/gc-camellia.m4: New file.
96706         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96708         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96710 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96712         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96713         --help to stdout.  Reported by sms@antinode.org (Steven
96714         M. Schweda).
96716 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96718         * users.txt: Fix link to libksba.
96720 2007-10-21  Ben Pfaff  <blp@gnu.org>
96722         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96723         round.c roundf implementation that depends on floorf and ceilf to
96724         be tested unconditionally.
96726 2007-10-21  Ben Pfaff  <blp@gnu.org>
96728         * m4/check-libm-func.m4: Removed.
96729         * m4/check-math-lib.m4: New file.
96730         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96731         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96732         definition and lack of AC_LIBOBJ([roundf]).
96733         * m4/roundl.m4: Ditto, and similarly for roundl.
96734         * modules/round: Reference new m4 file.
96735         * modules/roundf: Ditto.
96736         * modules/roundl: Ditto.
96737         * tests/test-round2.c (main): Use ROUND instead of round.
96738         Bug report from Bruno Haible.
96740 2007-10-21  Bruno Haible  <bruno@clisp.org>
96742         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96743         context.
96745 2007-10-21  Bruno Haible  <bruno@clisp.org>
96747         * tests/test-wcwidth.c (main): Allow negative result for some control
96748         characters.
96750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96751         Needed on OSF/1 5.1.
96753 2007-10-21  Bruno Haible  <bruno@clisp.org>
96755         * tests/test-floorf1.c: Include isnanf.h.
96756         (main): Use isnanf() instead of isnan().
96757         * tests/test-ceilf1.c: Include isnanf.h.
96758         (main): Use isnanf() instead of isnan().
96759         * tests/test-truncf1.c: Include isnanf.h.
96760         (main): Use isnanf() instead of isnan().
96761         * tests/test-roundf1.c: Include isnanf.h.
96762         (main): Use isnanf() instead of isnan().
96764 2007-10-21  Eric Blake  <ebb9@byu.net>
96766         * users.txt: Update URL for m4.
96768 2007-10-21  Bruno Haible  <bruno@clisp.org>
96770         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96772 2007-10-21  Bruno Haible  <bruno@clisp.org>
96774         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96775         Git's management files if the CVS files are not present.
96777 2007-10-20  Bruno Haible  <bruno@clisp.org>
96779         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96780         gcc-3.4.x.
96782 2007-10-20  Ben Pfaff  <blp@gnu.org>
96784         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96785         implementations.
96786         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96787         * lib/round.c: New file.
96788         * lib/roundf.c: New file.
96789         * lib/roundl.c: New file.
96790         * m4/round.m4: New file.
96791         * m4/roundf.m4: New file.
96792         * m4/roundl.m4: New file.
96793         * m4/check-libm-func-m4: New file.
96794         * modules/math: Replace round, roundf, roundl related @VARS@ in
96795         math.in.h.
96796         * modules/round: New file.
96797         * modules/round-tests: New file.
96798         * modules/roundf: New file.
96799         * modules/roundf-tests: New file.
96800         * modules/roundl: New file.
96801         * modules/roundl-tests: New file.
96802         * tests/test-round1.c: New file.
96803         * tests/test-round2.c: New file.
96804         * tests/test-roundf1.c: New file.
96805         * tests/test-roundf2.c: New file.
96806         * tests/test-roundl.c: New file.
96807         * doc/functions/round.texi: Mention round module.
96808         * doc/functions/roundf.texi: Mention roundf module.
96809         * doc/functions/roundl.texi: Mention roundl module.
96810         * MODULES.html.sh: Mention new modules.
96811         Thanks to Bruno Haible for suggestions.
96813 2007-10-20  Jim Meyering  <meyering@redhat.com>
96815         * lib/xprintf.c: Include <config.h> unconditionally.
96817         Change xprintf's license to GPL.
96818         * modules/xprintf (License): s/LGPL/GPL/, since this module
96819         depends on modules (exit and exitfail) which are GPL.
96820         Suggestion from Bruno Haible.
96822         xprintf fixes.
96823         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96824         Use a clearer diagnostic.
96825         Patch from Bruno Haible.
96827 2007-10-20  Bruno Haible  <bruno@clisp.org>
96829         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96830         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96833 2007-10-20  Bruno Haible  <bruno@clisp.org>
96835         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96836         precision in the comparison result > x - 1 or similar.
96837         * tests/test-ceilf2.c (correct_result_p): Likewise.
96838         * tests/test-truncf2.c (correct_result_p): Likewise.
96839         * tests/test-trunc2.c (correct_result_p): Likewise.
96840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96842 2007-10-20  Bruno Haible  <bruno@clisp.org>
96844         * modules/ceil: New file.
96845         * m4/ceil.m4: New file.
96846         * doc/functions/ceil.texi: Mention the 'ceil' module.
96848 2007-10-20  Bruno Haible  <bruno@clisp.org>
96850         * modules/floor: New file.
96851         * m4/floor.m4: New file.
96852         * doc/functions/floor.texi: Mention the 'floor' module.
96854 2007-10-20  Bruno Haible  <bruno@clisp.org>
96856         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96857         of %a.
96858         * modules/floorf-tests (Depends-on): Likewise.
96859         * modules/truncf-tests (Depends-on): Likewise.
96860         * modules/trunc-tests (Depends-on): Likewise.
96861         Reported by Ben Pfaff.
96863 2007-10-19  Jim Meyering  <meyering@redhat.com>
96865         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96866         Don't bother testing specific errno values.  Just test ferror.
96868         New module: xprintf
96869         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96871 2007-10-19  Bruno Haible  <bruno@clisp.org>
96873         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96874         syntax.
96875         * modules/javaexec (Makefile.am): Likewise.
96876         * modules/relocatable-prog (Makefile.am): Likewise.
96877         Suggested by Jim Meyering.
96879 2007-10-18  Bruno Haible  <bruno@clisp.org>
96881         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96882         Reported by Jim Meyering.
96884 2007-10-18  Eric Blake  <ebb9@byu.net>
96886         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96888 2007-10-18  Bruno Haible  <bruno@clisp.org>
96890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96891         the format string into writable memory. Needed in Fortify conditions.
96893 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96894             Bruno Haible  <bruno@clisp.org>
96896         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96897         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96898         * modules/trim (Depends-on): Add mbchar.
96899         (configure.ac): Add gl_FUNC_MBRTOWC.
96900         (Makefile.am): Augment lib_SOURCES.
96902 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96904         Modify glob.c to use fstatat and dirfd, to simplify it.
96905         Suggested by Eric Blake.
96906         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96907         Don't include <stdbool.h>; not used.
96908         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96909         (link_exists_p): Simplify implementation, since we can now assume
96910         dirfd and fstatat.
96911         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96913 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96915         * gnulib-tool (func_get_dependencies): Fix sed script to
96916         match only tests.
96918 2007-10-17  Bruno Haible  <bruno@clisp.org>
96920         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96921         allow locale names without encoding suffix.
96922         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96923         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96925 2007-10-16  Bruno Haible  <bruno@clisp.org>
96927         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96928         * lib/getgroups.c (getgroups): Likewise.
96929         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96931 2007-10-16  Bruno Haible  <bruno@clisp.org>
96933         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96934         * modules/malloc-posix (License): Likewise.
96935         * modules/realloc-posix (License): Likewise.
96936         * modules/calloc-posix (License): Likewise.
96937         * modules/intprops (License): Change from GPL to LGPL, with
96938         Paul Eggert's approval.
96940 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96942         Merge glibc changes into lib/glob.c.
96944         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96945         2007-10-15 04:59:03 UTC.  Here are the changes:
96947         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96949         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96951         * lib/glob.c: Add some branch prediction throughout.
96953         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96955         [BZ #5103]
96956         * lib/glob.c (glob): Recognize patterns starting \/.
96958         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96960         [BZ #3996]
96961         * lib/glob.c (attribute_hidden): Define if not defined.
96962         (glob): Unescape dirname, filename or username when needed and not
96963         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96964         is NULL.  Handle unescaped [ in pattern without closing ].
96965         Don't pass GLOB_CHECK down to recursive glob for directories.
96966         (__glob_pattern_type): New function.
96967         (__glob_pattern_p): Implement using __glob_pattern_type.
96968         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96969         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96970         Remove unreachable code.
96972         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96974         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96975         explain why there are no leaks.
96977         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96979         [BZ #3253]
96980         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96981         time, rather allocate increasingly bigger arrays of pointers, if
96982         possible with alloca, if too large with malloc.
96984 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96986         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96987         Problem reported by H.Merijn Brand in
96988         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96989         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96990         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96992 2007-10-15  Bruno Haible  <bruno@clisp.org>
96994         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96995         with explicit rpl_ prefix.
96996         * lib/fopen.c (fopen): Likewise.
96997         * lib/freopen.c (freopen): Likewise.
96998         * lib/iconv.c (iconv): Likewise.
96999         * lib/iconv_close.c (iconv_close): Likewise.
97001 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97003         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
97005 2007-10-15  Bruno Haible  <bruno@clisp.org>
97007         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
97008         <stddef.h> instead of <stdlib.h> since we only need NULL.
97009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97011 2007-10-15  Bruno Haible  <bruno@clisp.org>
97013         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
97014         Replace paragraph talking about LIBOBJS.
97015         Reported by Colin Watson <cjwatson@debian.org>.
97017 2007-10-15  Bruno Haible  <bruno@clisp.org>
97019         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
97020         <stdlib.h> before using NULL.
97022 2007-10-15  Simon Josefsson  <simon@josefsson.org>
97024         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
97025         Reported by Albert Chin <china@thewrittenword.com>.
97027 2007-10-14  Bruno Haible  <bruno@clisp.org>
97029         * modules/iconv_open-utf-tests: New file.
97030         * tests/test-iconv-utf.c: New file.
97032         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
97033         * modules/iconv_open-utf: New file.
97034         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
97035         (iconv, iconv_close): New declarations.
97036         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
97037         be defined.
97038         (iconv_open): Add special handling of conversion between UTF-8 and
97039         UTF-{16,32}{BE,LE}.
97040         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
97041         * lib/iconv_close.c: New file.
97042         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
97043         gl_FUNC_ICONV_OPEN.
97044         (gl_FUNC_ICONV_OPEN): Use it.
97045         (gl_FUNC_ICONV_OPEN_UTF): New macro.
97046         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
97047         and REPLACE_ICONV_UTF.
97048         * modules/iconv_open (Depends-on): Add c-strcase.
97049         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
97050         ICONV_CONST.
97051         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
97053 2007-10-13  Albert Chin  <china@thewrittenword.com>
97054             Bruno Haible  <bruno@clisp.org>
97056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
97057         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
97059 2007-10-13  Bruno Haible  <bruno@clisp.org>
97061         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
97062         defined, use the ISO C99 inline semantics.
97063         * lib/argp.h (ARGP_EI): Likewise.
97065 2007-10-13  Bruno Haible  <bruno@clisp.org>
97067         Handle 'inline' change in gcc 4.3.0.
97068         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
97069         argp_fmtstream_write, argp_fmtstream_set_lmargin,
97070         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
97071         argp_fmtstream_point): Disable 'extern' declaration if the function
97072         definition is going to be provided inline.
97073         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
97074         semantics, not the ISO C99 inline semantics.
97075         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
97076         'extern' declaration if the function definition is going to be provided
97077         inline.
97078         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
97079         the GNU C inline semantics, not the ISO C99 inline semantics. With
97080         GCC 4.2, avoid a warning.
97082 2007-10-13  Bruno Haible  <bruno@clisp.org>
97084         * lib/freading.h (freading): Enable the use of __freading for
97085         glibc >= 2.7.
97086         * lib/freading.c (freading): Likewise.
97088 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
97090         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
97091         "warning: C99 inline functions are not supported; using GNU89".
97093 2007-10-12  Bruno Haible  <bruno@clisp.org>
97095         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
97096         of 2.
97097         * tests/test-ceilf2.c: New file.
97098         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
97100         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
97101         * modules/ceilf-tests: Update.
97103 2007-10-12  Bruno Haible  <bruno@clisp.org>
97105         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
97106         of 2.
97107         * tests/test-floorf2.c: New file.
97108         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
97110         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
97111         * modules/floorf-tests: Update.
97113 2007-10-12  Bruno Haible  <bruno@clisp.org>
97115         * tests/test-trunc2.c: New file.
97116         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
97118         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
97119         * modules/trunc-tests: Update.
97121 2007-10-12  Bruno Haible  <bruno@clisp.org>
97123         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
97124         of 2.
97125         * tests/test-truncf2.c: New file.
97126         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
97128         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
97129         * modules/truncf-tests: Update.
97131 2007-10-11  Eric Blake  <ebb9@byu.net>
97133         Don't claim strerror is broken on Interix.
97134         * doc/functions/strerror.texi (strerror): Known broken systems are
97135         now Solaris 8, and not Interix.
97136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
97137         Interix on cross-compile.
97138         Reported by Martin Koeppe in
97139         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
97141 2007-10-11  Bruno Haible  <bruno@clisp.org>
97143         * modules/i-ring-tests: New file.
97144         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
97145         instead of assert.
97147 2007-10-11  Bruno Haible  <bruno@clisp.org>
97149         * modules/filenamecat-tests: New file.
97150         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
97151         * lib/filenamecat.c: Remove test code.
97153 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
97155         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
97157         * lib/strerror.c: Include <string.h> always, to test interface,
97158         and to remove the need for the dummy.
97159         Include intprops.h to compute width instead of doing it ourselves
97160         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
97161         (strerror): Define it to return NULL if there's no system strerror.
97162         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
97163         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
97164         ancient pre-strerror Unix systems well any more.  Saying "unknown
97165         system error" is enough.
97166         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
97167         simpler strerror.c implementation.
97168         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
97169         Simplify the tests to reflect the simpler strerror implementation.
97170         * modules/strerror (Depends-on): Add intprops.
97172 2007-10-09  Eric Blake  <ebb9@byu.net>
97174         Silence test-fpending.
97175         * modules/fpending-tests (Files): Add wrapper script.
97176         * tests/test-fpending.sh: New file.
97178 2007-10-09  Bruno Haible  <bruno@clisp.org>
97180         * MODULES.html.sh (func_module): Don't create a hyperlink for
97181         function names like 'printf_frexp'.
97182         (Misc): Add crc, memxor.
97183         (Characteristics of floating types): New section.
97184         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
97185         isnanf-nolibm, signbit, trunc, truncf, truncl.
97186         (Enhancements for ISO C 99 functions): New subsection Input/output.
97187         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
97188         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
97189         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
97190         (Compatibility checks for POSIX:2001 functions): Add clock-time.
97191         (Enhancements for POSIX:2001 functions): Add chdir-long.
97192         (File system functions): Add areadlink, chdir-safer, read-file.
97193         Remove cycle-check.
97194         (File system as inode set): New section.
97195         (Date and time): Add gethrxtime.
97196         (Multithreading): Add openmp.
97197         (Internationalization functions): Add localename.
97198         (Unicode string functions): Add unistr/u*-mbsnlen.
97199         (Support for maintaining and releasing projects): Add git-version-gen.
97200         (Lone files): Remove directories.
97202 2007-10-08  Ben Pfaff  <blp@gnu.org>
97204         * lib/xmalloca.h: Fix typo in comment.
97206 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
97208         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
97209         when avoiding problems with integer overflow.  Use a portable test
97210         instead.
97212 2007-10-08  Simon Josefsson  <simon@josefsson.org>
97214         * modules/dummy (License): Change to LGPLv2+.
97215         * modules/float (License): Likewise
97216         * modules/realloc (License): Likewise
97217         * modules/stdlib (License): Likewise
97219 2007-10-07  Bruno Haible  <bruno@clisp.org>
97221         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
97222         * floor.c (TWO_MANT_DIG): Likewise.
97223         * ceil.c (TWO_MANT_DIG): Likewise.
97224         Reported by Ben Pfaff.
97226 2007-10-07  Bruno Haible  <bruno@clisp.org>
97228         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
97229         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
97230         * lib/frexp.c (FUNC): Likewise.
97231         * lib/printf-frexp.h (printf_frexp): Likewise.
97232         * lib/printf-frexpl.h (printf_frexpl): Likewise.
97233         * lib/printf-frexp.c (FUNC): Likewise.
97234         Suggested by Jim Meyering.
97236 2007-10-07  Jim Meyering  <meyering@redhat.com>
97238         Make xnanosleep's integer overflow test more robust.
97239         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
97240         so that gcc-4.3.0 doesn't optimize away this test for overflow.
97242 2007-10-07  Bruno Haible  <bruno@clisp.org>
97244         * NEWS: Mention the license change.
97246         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
97247         abbreviations in the modules files.
97249         Change copyright notice from GPLv2+ to GPLv3+.
97250         * README: Change copyright notice.
97251         * MODULES.html.sh: Likewise.
97252         * build-aux/bootstrap.conf: Likewise.
97253         * build-aux/config.libpath: Likewise.
97254         * build-aux/csharpcomp.sh.in: Likewise.
97255         * build-aux/csharpexec.sh.in: Likewise.
97256         * build-aux/install-reloc: Likewise.
97257         * build-aux/javacomp.sh.in: Likewise.
97258         * build-aux/javaexec.sh.in: Likewise.
97259         * build-aux/ldd.sh.in: Likewise.
97260         * build-aux/reloc-ldflags: Likewise.
97261         * build-aux/relocatable.sh.in: Likewise.
97262         * build-aux/x-to-1.in: Likewise.
97263         * check-module: Likewise.
97264         * config/srclistvars.sh: Likewise.
97265         * gnulib-tool: Likewise.
97266         * lib/acl-internal.h: Likewise.
97267         * lib/acl.c: Likewise.
97268         * lib/acl.h: Likewise.
97269         * lib/acl_entries.c: Likewise.
97270         * lib/areadlink-with-size.c: Likewise.
97271         * lib/areadlink.c: Likewise.
97272         * lib/areadlink.h: Likewise.
97273         * lib/argmatch.c: Likewise.
97274         * lib/argmatch.h: Likewise.
97275         * lib/argp-ba.c: Likewise.
97276         * lib/argp-eexst.c: Likewise.
97277         * lib/argp-fmtstream.c: Likewise.
97278         * lib/argp-fmtstream.h: Likewise.
97279         * lib/argp-fs-xinl.c: Likewise.
97280         * lib/argp-help.c: Likewise.
97281         * lib/argp-namefrob.h: Likewise.
97282         * lib/argp-parse.c: Likewise.
97283         * lib/argp-pin.c: Likewise.
97284         * lib/argp-pv.c: Likewise.
97285         * lib/argp-pvh.c: Likewise.
97286         * lib/argp-xinl.c: Likewise.
97287         * lib/argp.h: Likewise.
97288         * lib/at-func.c: Likewise.
97289         * lib/atanl.c: Likewise.
97290         * lib/backupfile.c: Likewise.
97291         * lib/backupfile.h: Likewise.
97292         * lib/basename.c: Likewise.
97293         * lib/binary-io.h: Likewise.
97294         * lib/byteswap.in.h: Likewise.
97295         * lib/c-stack.c: Likewise.
97296         * lib/c-stack.h: Likewise.
97297         * lib/c-strcasestr.c: Likewise.
97298         * lib/c-strcasestr.h: Likewise.
97299         * lib/c-strstr.c: Likewise.
97300         * lib/c-strstr.h: Likewise.
97301         * lib/c-strtod.c: Likewise.
97302         * lib/calloc.c: Likewise.
97303         * lib/canon-host.c: Likewise.
97304         * lib/canon-host.h: Likewise.
97305         * lib/canonicalize-lgpl.c: Likewise.
97306         * lib/canonicalize.c: Likewise.
97307         * lib/canonicalize.h: Likewise.
97308         * lib/ceil.c: Likewise.
97309         * lib/ceilf.c: Likewise.
97310         * lib/ceill.c: Likewise.
97311         * lib/chdir-long.c: Likewise.
97312         * lib/chdir-long.h: Likewise.
97313         * lib/chdir-safer.c: Likewise.
97314         * lib/chdir-safer.h: Likewise.
97315         * lib/chown.c: Likewise.
97316         * lib/classpath.c: Likewise.
97317         * lib/classpath.h: Likewise.
97318         * lib/clean-temp.c: Likewise.
97319         * lib/clean-temp.h: Likewise.
97320         * lib/cloexec.c: Likewise.
97321         * lib/close-stream.c: Likewise.
97322         * lib/closein.c: Likewise.
97323         * lib/closein.h: Likewise.
97324         * lib/closeout.c: Likewise.
97325         * lib/closeout.h: Likewise.
97326         * lib/concat-filename.c: Likewise.
97327         * lib/copy-file.c: Likewise.
97328         * lib/copy-file.h: Likewise.
97329         * lib/count-one-bits.h: Likewise.
97330         * lib/crc.c: Likewise.
97331         * lib/crc.h: Likewise.
97332         * lib/creat-safer.c: Likewise.
97333         * lib/csharpcomp.c: Likewise.
97334         * lib/csharpcomp.h: Likewise.
97335         * lib/csharpexec.c: Likewise.
97336         * lib/csharpexec.h: Likewise.
97337         * lib/cycle-check.c: Likewise.
97338         * lib/cycle-check.h: Likewise.
97339         * lib/diacrit.c: Likewise.
97340         * lib/diacrit.h: Likewise.
97341         * lib/diffseq.h: Likewise.
97342         * lib/dirchownmod.c: Likewise.
97343         * lib/dirent.in.h: Likewise.
97344         * lib/dirfd.c: Likewise.
97345         * lib/dirfd.h: Likewise.
97346         * lib/dirname.c: Likewise.
97347         * lib/dirname.h: Likewise.
97348         * lib/dummy.c: Likewise.
97349         * lib/dup-safer.c: Likewise.
97350         * lib/dup2.c: Likewise.
97351         * lib/eealloc.h: Likewise.
97352         * lib/error.c: Likewise.
97353         * lib/error.h: Likewise.
97354         * lib/euidaccess.c: Likewise.
97355         * lib/exclude.c: Likewise.
97356         * lib/exclude.h: Likewise.
97357         * lib/execute.c: Likewise.
97358         * lib/execute.h: Likewise.
97359         * lib/exitfail.c: Likewise.
97360         * lib/exitfail.h: Likewise.
97361         * lib/expl.c: Likewise.
97362         * lib/fatal-signal.c: Likewise.
97363         * lib/fatal-signal.h: Likewise.
97364         * lib/fbufmode.c: Likewise.
97365         * lib/fbufmode.h: Likewise.
97366         * lib/fchdir.c: Likewise.
97367         * lib/fchmodat.c: Likewise.
97368         * lib/fchownat.c: Likewise.
97369         * lib/fcntl--.h: Likewise.
97370         * lib/fcntl-safer.h: Likewise.
97371         * lib/fcntl.in.h: Likewise.
97372         * lib/fd-safer.c: Likewise.
97373         * lib/fflush.c: Likewise.
97374         * lib/file-has-acl.c: Likewise.
97375         * lib/file-set.c: Likewise.
97376         * lib/file-type.c: Likewise.
97377         * lib/file-type.h: Likewise.
97378         * lib/fileblocks.c: Likewise.
97379         * lib/filemode.c: Likewise.
97380         * lib/filemode.h: Likewise.
97381         * lib/filename.h: Likewise.
97382         * lib/filenamecat.c: Likewise.
97383         * lib/filenamecat.h: Likewise.
97384         * lib/findprog.c: Likewise.
97385         * lib/findprog.h: Likewise.
97386         * lib/float.in.h: Likewise.
97387         * lib/floor.c: Likewise.
97388         * lib/floorf.c: Likewise.
97389         * lib/floorl.c: Likewise.
97390         * lib/fopen-safer.c: Likewise.
97391         * lib/fopen.c: Likewise.
97392         * lib/fpending.c: Likewise.
97393         * lib/fpending.h: Likewise.
97394         * lib/fprintf.c: Likewise.
97395         * lib/fprintftime.h: Likewise.
97396         * lib/fpucw.h: Likewise.
97397         * lib/fpurge.c: Likewise.
97398         * lib/fpurge.h: Likewise.
97399         * lib/freadable.c: Likewise.
97400         * lib/freadable.h: Likewise.
97401         * lib/freadahead.c: Likewise.
97402         * lib/freadahead.h: Likewise.
97403         * lib/freading.c: Likewise.
97404         * lib/freading.h: Likewise.
97405         * lib/free.c: Likewise.
97406         * lib/freopen.c: Likewise.
97407         * lib/frexp.c: Likewise.
97408         * lib/frexpl.c: Likewise.
97409         * lib/fseek.c: Likewise.
97410         * lib/fseterr.c: Likewise.
97411         * lib/fseterr.h: Likewise.
97412         * lib/fstatat.c: Likewise.
97413         * lib/fstrcmp.c: Likewise.
97414         * lib/fstrcmp.h: Likewise.
97415         * lib/fsusage.c: Likewise.
97416         * lib/fsusage.h: Likewise.
97417         * lib/ftell.c: Likewise.
97418         * lib/ftello.c: Likewise.
97419         * lib/fts-cycle.c: Likewise.
97420         * lib/fts.c: Likewise.
97421         * lib/fts_.h: Likewise.
97422         * lib/full-read.c: Likewise.
97423         * lib/full-read.h: Likewise.
97424         * lib/full-write.c: Likewise.
97425         * lib/full-write.h: Likewise.
97426         * lib/fwritable.c: Likewise.
97427         * lib/fwritable.h: Likewise.
97428         * lib/fwriteerror.c: Likewise.
97429         * lib/fwriteerror.h: Likewise.
97430         * lib/fwriting.c: Likewise.
97431         * lib/fwriting.h: Likewise.
97432         * lib/gcd.c: Likewise.
97433         * lib/gcd.h: Likewise.
97434         * lib/getcwd.c: Likewise.
97435         * lib/getdate.h: Likewise.
97436         * lib/getdate.y: Likewise.
97437         * lib/getdomainname.c: Likewise.
97438         * lib/getdomainname.h: Likewise.
97439         * lib/getgroups.c: Likewise.
97440         * lib/gethostname.c: Likewise.
97441         * lib/gethrxtime.c: Likewise.
97442         * lib/gethrxtime.h: Likewise.
97443         * lib/getloadavg.c: Likewise.
97444         * lib/getndelim2.c: Likewise.
97445         * lib/getndelim2.h: Likewise.
97446         * lib/getnline.c: Likewise.
97447         * lib/getnline.h: Likewise.
97448         * lib/getopt.c: Likewise.
97449         * lib/getopt.in.h: Likewise.
97450         * lib/getopt1.c: Likewise.
97451         * lib/getopt_int.h: Likewise.
97452         * lib/getpagesize.h: Likewise.
97453         * lib/getsubopt.c: Likewise.
97454         * lib/gettime.c: Likewise.
97455         * lib/getugroups.c: Likewise.
97456         * lib/getugroups.h: Likewise.
97457         * lib/getusershell.c: Likewise.
97458         * lib/gl_anyavltree_list1.h: Likewise.
97459         * lib/gl_anyavltree_list2.h: Likewise.
97460         * lib/gl_anyhash_list1.h: Likewise.
97461         * lib/gl_anyhash_list2.h: Likewise.
97462         * lib/gl_anylinked_list1.h: Likewise.
97463         * lib/gl_anylinked_list2.h: Likewise.
97464         * lib/gl_anyrbtree_list1.h: Likewise.
97465         * lib/gl_anyrbtree_list2.h: Likewise.
97466         * lib/gl_anytree_list1.h: Likewise.
97467         * lib/gl_anytree_list2.h: Likewise.
97468         * lib/gl_anytree_oset.h: Likewise.
97469         * lib/gl_anytreehash_list1.h: Likewise.
97470         * lib/gl_anytreehash_list2.h: Likewise.
97471         * lib/gl_array_list.c: Likewise.
97472         * lib/gl_array_list.h: Likewise.
97473         * lib/gl_array_oset.c: Likewise.
97474         * lib/gl_array_oset.h: Likewise.
97475         * lib/gl_avltree_list.c: Likewise.
97476         * lib/gl_avltree_list.h: Likewise.
97477         * lib/gl_avltree_oset.c: Likewise.
97478         * lib/gl_avltree_oset.h: Likewise.
97479         * lib/gl_avltreehash_list.c: Likewise.
97480         * lib/gl_avltreehash_list.h: Likewise.
97481         * lib/gl_carray_list.c: Likewise.
97482         * lib/gl_carray_list.h: Likewise.
97483         * lib/gl_linked_list.c: Likewise.
97484         * lib/gl_linked_list.h: Likewise.
97485         * lib/gl_linkedhash_list.c: Likewise.
97486         * lib/gl_linkedhash_list.h: Likewise.
97487         * lib/gl_list.c: Likewise.
97488         * lib/gl_list.h: Likewise.
97489         * lib/gl_oset.c: Likewise.
97490         * lib/gl_oset.h: Likewise.
97491         * lib/gl_rbtree_list.c: Likewise.
97492         * lib/gl_rbtree_list.h: Likewise.
97493         * lib/gl_rbtree_oset.c: Likewise.
97494         * lib/gl_rbtree_oset.h: Likewise.
97495         * lib/gl_rbtreehash_list.c: Likewise.
97496         * lib/gl_rbtreehash_list.h: Likewise.
97497         * lib/gl_sublist.c: Likewise.
97498         * lib/gl_sublist.h: Likewise.
97499         * lib/group-member.c: Likewise.
97500         * lib/group-member.h: Likewise.
97501         * lib/hard-locale.c: Likewise.
97502         * lib/hard-locale.h: Likewise.
97503         * lib/hash-pjw.c: Likewise.
97504         * lib/hash-pjw.h: Likewise.
97505         * lib/hash-triple.c: Likewise.
97506         * lib/hash.c: Likewise.
97507         * lib/hash.h: Likewise.
97508         * lib/human.c: Likewise.
97509         * lib/human.h: Likewise.
97510         * lib/i-ring.c: Likewise.
97511         * lib/i-ring.h: Likewise.
97512         * lib/idcache.c: Likewise.
97513         * lib/imaxabs.c: Likewise.
97514         * lib/imaxdiv.c: Likewise.
97515         * lib/inet_pton.c: Likewise.
97516         * lib/inet_pton.h: Likewise.
97517         * lib/intprops.h: Likewise.
97518         * lib/inttostr.c: Likewise.
97519         * lib/inttostr.h: Likewise.
97520         * lib/inttypes.in.h: Likewise.
97521         * lib/isapipe.c: Likewise.
97522         * lib/isdir.c: Likewise.
97523         * lib/isnan.c: Likewise.
97524         * lib/isnan.h: Likewise.
97525         * lib/isnanf.c: Likewise.
97526         * lib/isnanf.h: Likewise.
97527         * lib/isnanl-nolibm.h: Likewise.
97528         * lib/isnanl.c: Likewise.
97529         * lib/isnanl.h: Likewise.
97530         * lib/javacomp.c: Likewise.
97531         * lib/javacomp.h: Likewise.
97532         * lib/javaexec.c: Likewise.
97533         * lib/javaexec.h: Likewise.
97534         * lib/javaversion.c: Likewise.
97535         * lib/javaversion.h: Likewise.
97536         * lib/javaversion.java: Likewise.
97537         * lib/lbrkprop.h: Likewise.
97538         * lib/lchmod.h: Likewise.
97539         * lib/lchown.c: Likewise.
97540         * lib/ldexpl.c: Likewise.
97541         * lib/linebreak.c: Likewise.
97542         * lib/linebreak.h: Likewise.
97543         * lib/linebuffer.c: Likewise.
97544         * lib/linebuffer.h: Likewise.
97545         * lib/locale.in.h: Likewise.
97546         * lib/logl.c: Likewise.
97547         * lib/long-options.c: Likewise.
97548         * lib/long-options.h: Likewise.
97549         * lib/lstat.c: Likewise.
97550         * lib/lstat.h: Likewise.
97551         * lib/math.in.h: Likewise.
97552         * lib/mbchar.c: Likewise.
97553         * lib/mbchar.h: Likewise.
97554         * lib/mbfile.h: Likewise.
97555         * lib/mbiter.h: Likewise.
97556         * lib/mbscasecmp.c: Likewise.
97557         * lib/mbscasestr.c: Likewise.
97558         * lib/mbschr.c: Likewise.
97559         * lib/mbscspn.c: Likewise.
97560         * lib/mbslen.c: Likewise.
97561         * lib/mbsncasecmp.c: Likewise.
97562         * lib/mbsnlen.c: Likewise.
97563         * lib/mbspbrk.c: Likewise.
97564         * lib/mbspcasecmp.c: Likewise.
97565         * lib/mbsrchr.c: Likewise.
97566         * lib/mbssep.c: Likewise.
97567         * lib/mbsspn.c: Likewise.
97568         * lib/mbsstr.c: Likewise.
97569         * lib/mbstok_r.c: Likewise.
97570         * lib/mbswidth.c: Likewise.
97571         * lib/mbswidth.h: Likewise.
97572         * lib/mbuiter.h: Likewise.
97573         * lib/memcasecmp.c: Likewise.
97574         * lib/memcasecmp.h: Likewise.
97575         * lib/memchr.c: Likewise.
97576         * lib/memcmp.c: Likewise.
97577         * lib/memcoll.c: Likewise.
97578         * lib/memcoll.h: Likewise.
97579         * lib/memcpy.c: Likewise.
97580         * lib/memrchr.c: Likewise.
97581         * lib/mkancesdirs.c: Likewise.
97582         * lib/mkdir-p.c: Likewise.
97583         * lib/mkdir-p.h: Likewise.
97584         * lib/mkdir.c: Likewise.
97585         * lib/mkdirat.c: Likewise.
97586         * lib/mkdtemp.c: Likewise.
97587         * lib/mkstemp-safer.c: Likewise.
97588         * lib/mkstemp.c: Likewise.
97589         * lib/modechange.c: Likewise.
97590         * lib/modechange.h: Likewise.
97591         * lib/mountlist.c: Likewise.
97592         * lib/mountlist.h: Likewise.
97593         * lib/mpsort.c: Likewise.
97594         * lib/nanosleep.c: Likewise.
97595         * lib/obstack.c: Likewise.
97596         * lib/obstack.h: Likewise.
97597         * lib/open-safer.c: Likewise.
97598         * lib/open.c: Likewise.
97599         * lib/openat-die.c: Likewise.
97600         * lib/openat-priv.h: Likewise.
97601         * lib/openat-proc.c: Likewise.
97602         * lib/openat.c: Likewise.
97603         * lib/openat.h: Likewise.
97604         * lib/pagealign_alloc.c: Likewise.
97605         * lib/pagealign_alloc.h: Likewise.
97606         * lib/physmem.c: Likewise.
97607         * lib/physmem.h: Likewise.
97608         * lib/pipe-safer.c: Likewise.
97609         * lib/pipe.c: Likewise.
97610         * lib/pipe.h: Likewise.
97611         * lib/posixtm.c: Likewise.
97612         * lib/posixtm.h: Likewise.
97613         * lib/posixver.c: Likewise.
97614         * lib/printf-frexp.c: Likewise.
97615         * lib/printf-frexp.h: Likewise.
97616         * lib/printf-frexpl.c: Likewise.
97617         * lib/printf-frexpl.h: Likewise.
97618         * lib/printf.c: Likewise.
97619         * lib/progname.c: Likewise.
97620         * lib/progname.h: Likewise.
97621         * lib/progreloc.c: Likewise.
97622         * lib/putenv.c: Likewise.
97623         * lib/quote.c: Likewise.
97624         * lib/quote.h: Likewise.
97625         * lib/quotearg.c: Likewise.
97626         * lib/quotearg.h: Likewise.
97627         * lib/raise.c: Likewise.
97628         * lib/readline.c: Likewise.
97629         * lib/readline.h: Likewise.
97630         * lib/readlink.c: Likewise.
97631         * lib/readtokens.c: Likewise.
97632         * lib/readtokens.h: Likewise.
97633         * lib/readtokens0.c: Likewise.
97634         * lib/readtokens0.h: Likewise.
97635         * lib/readutmp.c: Likewise.
97636         * lib/readutmp.h: Likewise.
97637         * lib/realloc.c: Likewise.
97638         * lib/relocwrapper.c: Likewise.
97639         * lib/rename-dest-slash.c: Likewise.
97640         * lib/rename.c: Likewise.
97641         * lib/rmdir.c: Likewise.
97642         * lib/rpmatch.c: Likewise.
97643         * lib/safe-read.c: Likewise.
97644         * lib/safe-read.h: Likewise.
97645         * lib/safe-write.c: Likewise.
97646         * lib/safe-write.h: Likewise.
97647         * lib/same-inode.h: Likewise.
97648         * lib/same.c: Likewise.
97649         * lib/same.h: Likewise.
97650         * lib/save-cwd.c: Likewise.
97651         * lib/save-cwd.h: Likewise.
97652         * lib/savedir.c: Likewise.
97653         * lib/savedir.h: Likewise.
97654         * lib/savewd.c: Likewise.
97655         * lib/savewd.h: Likewise.
97656         * lib/search.in.h: Likewise.
97657         * lib/setenv.c: Likewise.
97658         * lib/setenv.h: Likewise.
97659         * lib/settime.c: Likewise.
97660         * lib/sh-quote.c: Likewise.
97661         * lib/sh-quote.h: Likewise.
97662         * lib/sig2str.c: Likewise.
97663         * lib/sig2str.h: Likewise.
97664         * lib/signal.in.h: Likewise.
97665         * lib/signbitd.c: Likewise.
97666         * lib/signbitf.c: Likewise.
97667         * lib/signbitl.c: Likewise.
97668         * lib/sigprocmask.c: Likewise.
97669         * lib/sincosl.c: Likewise.
97670         * lib/sleep.c: Likewise.
97671         * lib/sprintf.c: Likewise.
97672         * lib/sqrtl.c: Likewise.
97673         * lib/stat-time.h: Likewise.
97674         * lib/stdio--.h: Likewise.
97675         * lib/stdio-safer.h: Likewise.
97676         * lib/stdlib--.h: Likewise.
97677         * lib/stdlib-safer.h: Likewise.
97678         * lib/stdlib.in.h: Likewise.
97679         * lib/stpcpy.c: Likewise.
97680         * lib/stpncpy.c: Likewise.
97681         * lib/strchrnul.c: Likewise.
97682         * lib/strcspn.c: Likewise.
97683         * lib/strerror.c: Likewise.
97684         * lib/strftime.c: Likewise.
97685         * lib/strftime.h: Likewise.
97686         * lib/striconveh.c: Likewise.
97687         * lib/striconveh.h: Likewise.
97688         * lib/striconveha.c: Likewise.
97689         * lib/striconveha.h: Likewise.
97690         * lib/stripslash.c: Likewise.
97691         * lib/strnlen1.c: Likewise.
97692         * lib/strnlen1.h: Likewise.
97693         * lib/strtod.c: Likewise.
97694         * lib/strtoimax.c: Likewise.
97695         * lib/strtok_r.c: Likewise.
97696         * lib/strtol.c: Likewise.
97697         * lib/strtoll.c: Likewise.
97698         * lib/strtoul.c: Likewise.
97699         * lib/strtoull.c: Likewise.
97700         * lib/sysexits.in.h: Likewise.
97701         * lib/tempname.c: Likewise.
97702         * lib/tempname.h: Likewise.
97703         * lib/timespec.h: Likewise.
97704         * lib/tls.c: Likewise.
97705         * lib/tls.h: Likewise.
97706         * lib/tmpdir.c: Likewise.
97707         * lib/tmpdir.h: Likewise.
97708         * lib/tmpfile-safer.c: Likewise.
97709         * lib/tmpfile.c: Likewise.
97710         * lib/trigl.c: Likewise.
97711         * lib/trigl.h: Likewise.
97712         * lib/trim.c: Likewise.
97713         * lib/trim.h: Likewise.
97714         * lib/trunc.c: Likewise.
97715         * lib/truncf.c: Likewise.
97716         * lib/truncl.c: Likewise.
97717         * lib/tsearch.c: Likewise.
97718         * lib/unicodeio.c: Likewise.
97719         * lib/unicodeio.h: Likewise.
97720         * lib/unistd--.h: Likewise.
97721         * lib/unistd-safer.h: Likewise.
97722         * lib/unistdio/ulc-fprintf.c: Likewise.
97723         * lib/unistdio/ulc-vfprintf.c: Likewise.
97724         * lib/unlinkdir.c: Likewise.
97725         * lib/unlinkdir.h: Likewise.
97726         * lib/unlocked-io.h: Likewise.
97727         * lib/unsetenv.c: Likewise.
97728         * lib/userspec.c: Likewise.
97729         * lib/utime.c: Likewise.
97730         * lib/utimecmp.c: Likewise.
97731         * lib/utimecmp.h: Likewise.
97732         * lib/utimens.c: Likewise.
97733         * lib/verify.h: Likewise.
97734         * lib/verror.c: Likewise.
97735         * lib/verror.h: Likewise.
97736         * lib/version-etc-fsf.c: Likewise.
97737         * lib/version-etc.c: Likewise.
97738         * lib/version-etc.h: Likewise.
97739         * lib/vfprintf.c: Likewise.
97740         * lib/vprintf.c: Likewise.
97741         * lib/vsprintf.c: Likewise.
97742         * lib/w32spawn.h: Likewise.
97743         * lib/wait-process.c: Likewise.
97744         * lib/wait-process.h: Likewise.
97745         * lib/wcwidth.c: Likewise.
97746         * lib/write-any-file.c: Likewise.
97747         * lib/xalloc-die.c: Likewise.
97748         * lib/xalloc.h: Likewise.
97749         * lib/xasprintf.c: Likewise.
97750         * lib/xgetcwd.c: Likewise.
97751         * lib/xgetcwd.h: Likewise.
97752         * lib/xgetdomainname.c: Likewise.
97753         * lib/xgetdomainname.h: Likewise.
97754         * lib/xgethostname.c: Likewise.
97755         * lib/xmalloc.c: Likewise.
97756         * lib/xmalloca.c: Likewise.
97757         * lib/xmalloca.h: Likewise.
97758         * lib/xmemcoll.c: Likewise.
97759         * lib/xnanosleep.c: Likewise.
97760         * lib/xreadlink.c: Likewise.
97761         * lib/xreadlink.h: Likewise.
97762         * lib/xsetenv.c: Likewise.
97763         * lib/xsetenv.h: Likewise.
97764         * lib/xstriconv.c: Likewise.
97765         * lib/xstriconv.h: Likewise.
97766         * lib/xstrndup.c: Likewise.
97767         * lib/xstrndup.h: Likewise.
97768         * lib/xstrtod.c: Likewise.
97769         * lib/xstrtod.h: Likewise.
97770         * lib/xstrtol-error.c: Likewise.
97771         * lib/xstrtol.c: Likewise.
97772         * lib/xstrtol.h: Likewise.
97773         * lib/xtime.h: Likewise.
97774         * lib/xvasprintf.c: Likewise.
97775         * lib/xvasprintf.h: Likewise.
97776         * lib/yesno.c: Likewise.
97777         * lib/yesno.h: Likewise.
97778         * posix-modules: Likewise.
97779         * tests/test-alloca-opt.c: Likewise.
97780         * tests/test-arcfour.c: Likewise.
97781         * tests/test-arctwo.c: Likewise.
97782         * tests/test-argmatch.c: Likewise.
97783         * tests/test-argp-2.sh: Likewise.
97784         * tests/test-argp.c: Likewise.
97785         * tests/test-arpa_inet.c: Likewise.
97786         * tests/test-array_list.c: Likewise.
97787         * tests/test-array_oset.c: Likewise.
97788         * tests/test-atexit.c: Likewise.
97789         * tests/test-avltree_list.c: Likewise.
97790         * tests/test-avltree_oset.c: Likewise.
97791         * tests/test-avltreehash_list.c: Likewise.
97792         * tests/test-base64.c: Likewise.
97793         * tests/test-binary-io.c: Likewise.
97794         * tests/test-byteswap.c: Likewise.
97795         * tests/test-c-ctype.c: Likewise.
97796         * tests/test-c-strcasecmp.c: Likewise.
97797         * tests/test-c-strcasestr.c: Likewise.
97798         * tests/test-c-strncasecmp.c: Likewise.
97799         * tests/test-c-strstr.c: Likewise.
97800         * tests/test-canonicalize-lgpl.c: Likewise.
97801         * tests/test-canonicalize.c: Likewise.
97802         * tests/test-carray_list.c: Likewise.
97803         * tests/test-ceilf.c: Likewise.
97804         * tests/test-ceill.c: Likewise.
97805         * tests/test-count-one-bits.c: Likewise.
97806         * tests/test-crc.c: Likewise.
97807         * tests/test-dirname.c: Likewise.
97808         * tests/test-fbufmode.c: Likewise.
97809         * tests/test-fcntl.c: Likewise.
97810         * tests/test-fflush.c: Likewise.
97811         * tests/test-floorf.c: Likewise.
97812         * tests/test-floorl.c: Likewise.
97813         * tests/test-fopen.c: Likewise.
97814         * tests/test-fprintf-posix.c: Likewise.
97815         * tests/test-fprintf-posix.h: Likewise.
97816         * tests/test-fpurge.c: Likewise.
97817         * tests/test-freadable.c: Likewise.
97818         * tests/test-freadahead.c: Likewise.
97819         * tests/test-freading.c: Likewise.
97820         * tests/test-freopen.c: Likewise.
97821         * tests/test-frexp.c: Likewise.
97822         * tests/test-frexpl.c: Likewise.
97823         * tests/test-fseek.c: Likewise.
97824         * tests/test-fseeko.c: Likewise.
97825         * tests/test-fseterr.c: Likewise.
97826         * tests/test-fstrcmp.c: Likewise.
97827         * tests/test-ftell.c: Likewise.
97828         * tests/test-ftello.c: Likewise.
97829         * tests/test-fwritable.c: Likewise.
97830         * tests/test-fwriting.c: Likewise.
97831         * tests/test-getaddrinfo.c: Likewise.
97832         * tests/test-getpass.c: Likewise.
97833         * tests/test-gettimeofday.c: Likewise.
97834         * tests/test-hmac-md5.c: Likewise.
97835         * tests/test-hmac-sha1.c: Likewise.
97836         * tests/test-iconv.c: Likewise.
97837         * tests/test-iconvme.c: Likewise.
97838         * tests/test-inttypes.c: Likewise.
97839         * tests/test-isnan.c: Likewise.
97840         * tests/test-isnanf.c: Likewise.
97841         * tests/test-isnanl-nolibm.c: Likewise.
97842         * tests/test-isnanl.c: Likewise.
97843         * tests/test-isnanl.h: Likewise.
97844         * tests/test-ldexpl.c: Likewise.
97845         * tests/test-linked_list.c: Likewise.
97846         * tests/test-linkedhash_list.c: Likewise.
97847         * tests/test-locale.c: Likewise.
97848         * tests/test-localename.c: Likewise.
97849         * tests/test-lock.c: Likewise.
97850         * tests/test-lseek.c: Likewise.
97851         * tests/test-malloca.c: Likewise.
97852         * tests/test-math.c: Likewise.
97853         * tests/test-mbscasecmp.c: Likewise.
97854         * tests/test-mbscasestr1.c: Likewise.
97855         * tests/test-mbscasestr2.c: Likewise.
97856         * tests/test-mbscasestr3.c: Likewise.
97857         * tests/test-mbscasestr4.c: Likewise.
97858         * tests/test-mbschr.c: Likewise.
97859         * tests/test-mbscspn.c: Likewise.
97860         * tests/test-mbsncasecmp.c: Likewise.
97861         * tests/test-mbspbrk.c: Likewise.
97862         * tests/test-mbspcasecmp.c: Likewise.
97863         * tests/test-mbsrchr.c: Likewise.
97864         * tests/test-mbsspn.c: Likewise.
97865         * tests/test-mbsstr1.c: Likewise.
97866         * tests/test-mbsstr2.c: Likewise.
97867         * tests/test-mbsstr3.c: Likewise.
97868         * tests/test-md5.c: Likewise.
97869         * tests/test-memmem.c: Likewise.
97870         * tests/test-netinet_in.c: Likewise.
97871         * tests/test-open.c: Likewise.
97872         * tests/test-printf-frexp.c: Likewise.
97873         * tests/test-printf-frexpl.c: Likewise.
97874         * tests/test-printf-posix.c: Likewise.
97875         * tests/test-printf-posix.h: Likewise.
97876         * tests/test-rbtree_list.c: Likewise.
97877         * tests/test-rbtree_oset.c: Likewise.
97878         * tests/test-rbtreehash_list.c: Likewise.
97879         * tests/test-read-file.c: Likewise.
97880         * tests/test-rijndael.c: Likewise.
97881         * tests/test-search.c: Likewise.
97882         * tests/test-signbit.c: Likewise.
97883         * tests/test-sleep.c: Likewise.
97884         * tests/test-snprintf-posix.c: Likewise.
97885         * tests/test-snprintf-posix.h: Likewise.
97886         * tests/test-snprintf.c: Likewise.
97887         * tests/test-sprintf-posix.c: Likewise.
97888         * tests/test-sprintf-posix.h: Likewise.
97889         * tests/test-stat-time.c: Likewise.
97890         * tests/test-stdbool.c: Likewise.
97891         * tests/test-stdint.c: Likewise.
97892         * tests/test-stdio.c: Likewise.
97893         * tests/test-stdlib.c: Likewise.
97894         * tests/test-stpncpy.c: Likewise.
97895         * tests/test-strcasestr.c: Likewise.
97896         * tests/test-striconv.c: Likewise.
97897         * tests/test-striconveh.c: Likewise.
97898         * tests/test-striconveha.c: Likewise.
97899         * tests/test-string.c: Likewise.
97900         * tests/test-sys_select.c: Likewise.
97901         * tests/test-sys_socket.c: Likewise.
97902         * tests/test-sys_stat.c: Likewise.
97903         * tests/test-sys_time.c: Likewise.
97904         * tests/test-sysexits.c: Likewise.
97905         * tests/test-time.c: Likewise.
97906         * tests/test-tls.c: Likewise.
97907         * tests/test-trunc.c: Likewise.
97908         * tests/test-truncf.c: Likewise.
97909         * tests/test-truncl.c: Likewise.
97910         * tests/test-unistd.c: Likewise.
97911         * tests/test-vasnprintf-posix.c: Likewise.
97912         * tests/test-vasnprintf-posix2.c: Likewise.
97913         * tests/test-vasnprintf.c: Likewise.
97914         * tests/test-vasprintf-posix.c: Likewise.
97915         * tests/test-vasprintf.c: Likewise.
97916         * tests/test-verify.c: Likewise.
97917         * tests/test-vfprintf-posix.c: Likewise.
97918         * tests/test-vprintf-posix.c: Likewise.
97919         * tests/test-vsnprintf-posix.c: Likewise.
97920         * tests/test-vsnprintf.c: Likewise.
97921         * tests/test-vsprintf-posix.c: Likewise.
97922         * tests/test-wchar.c: Likewise.
97923         * tests/test-wctype.c: Likewise.
97924         * tests/test-wcwidth.c: Likewise.
97925         * tests/test-xstrtol.c: Likewise.
97926         * tests/test-xvasprintf.c: Likewise.
97927         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97928         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97929         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97930         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97931         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97932         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97933         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97934         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97935         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97936         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97937         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97938         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97939         * tests/uniname/test-uninames.c: Likewise.
97940         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97941         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97942         * tests/unistdio/test-u16-printf1.h: Likewise.
97943         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97944         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97945         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97946         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97947         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97948         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97949         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97950         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97951         * tests/unistdio/test-u32-printf1.h: Likewise.
97952         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97953         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97954         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97955         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97956         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97957         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97958         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97959         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97960         * tests/unistdio/test-u8-printf1.h: Likewise.
97961         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97962         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97963         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97964         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97965         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97966         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97967         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97968         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97969         * tests/unistdio/test-ulc-printf1.h: Likewise.
97970         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97971         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97972         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97973         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97974         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97975         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97976         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97977         * tests/uniwidth/test-u16-width.c: Likewise.
97978         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97979         * tests/uniwidth/test-u32-width.c: Likewise.
97980         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97981         * tests/uniwidth/test-u8-width.c: Likewise.
97982         * tests/uniwidth/test-uc_width.c: Likewise.
97983         * config/srclist-update: Likewise.
97984         (fixlicense): Update to GPLv3+.
97986         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97987         * tests/test-tsearch.c: Change copyright notice.
97989         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97990         * lib/c-strcaseeq.h: Change copyright notice.
97991         * lib/streq.h: Likewise.
97992         * lib/uniconv.h: Likewise.
97993         * lib/uniconv/u-conv-from-enc.h: Likewise.
97994         * lib/uniconv/u-conv-to-enc.h: Likewise.
97995         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97996         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97997         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97998         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97999         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
98000         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
98001         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
98002         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
98003         * lib/uniconv/u32-conv-from-enc.c: Likewise.
98004         * lib/uniconv/u32-conv-to-enc.c: Likewise.
98005         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
98006         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
98007         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
98008         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
98009         * lib/uniconv/u8-conv-from-enc.c: Likewise.
98010         * lib/uniconv/u8-conv-to-enc.c: Likewise.
98011         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
98012         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
98013         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
98014         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
98015         * lib/uniname.h: Likewise.
98016         * lib/uniname/uniname.c: Likewise.
98017         * lib/unistdio.h: Likewise.
98018         * lib/unistdio/u-asnprintf.h: Likewise.
98019         * lib/unistdio/u-asprintf.h: Likewise.
98020         * lib/unistdio/u-printf-args.c: Likewise.
98021         * lib/unistdio/u-printf-args.h: Likewise.
98022         * lib/unistdio/u-printf-parse.h: Likewise.
98023         * lib/unistdio/u-snprintf.h: Likewise.
98024         * lib/unistdio/u-sprintf.h: Likewise.
98025         * lib/unistdio/u-vasprintf.h: Likewise.
98026         * lib/unistdio/u-vsnprintf.h: Likewise.
98027         * lib/unistdio/u-vsprintf.h: Likewise.
98028         * lib/unistdio/u16-asnprintf.c: Likewise.
98029         * lib/unistdio/u16-asprintf.c: Likewise.
98030         * lib/unistdio/u16-printf-parse.c: Likewise.
98031         * lib/unistdio/u16-snprintf.c: Likewise.
98032         * lib/unistdio/u16-sprintf.c: Likewise.
98033         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
98034         * lib/unistdio/u16-u16-asprintf.c: Likewise.
98035         * lib/unistdio/u16-u16-snprintf.c: Likewise.
98036         * lib/unistdio/u16-u16-sprintf.c: Likewise.
98037         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
98038         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
98039         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
98040         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
98041         * lib/unistdio/u16-vasnprintf.c: Likewise.
98042         * lib/unistdio/u16-vasprintf.c: Likewise.
98043         * lib/unistdio/u16-vsnprintf.c: Likewise.
98044         * lib/unistdio/u16-vsprintf.c: Likewise.
98045         * lib/unistdio/u32-asnprintf.c: Likewise.
98046         * lib/unistdio/u32-asprintf.c: Likewise.
98047         * lib/unistdio/u32-printf-parse.c: Likewise.
98048         * lib/unistdio/u32-snprintf.c: Likewise.
98049         * lib/unistdio/u32-sprintf.c: Likewise.
98050         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
98051         * lib/unistdio/u32-u32-asprintf.c: Likewise.
98052         * lib/unistdio/u32-u32-snprintf.c: Likewise.
98053         * lib/unistdio/u32-u32-sprintf.c: Likewise.
98054         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
98055         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
98056         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
98057         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
98058         * lib/unistdio/u32-vasnprintf.c: Likewise.
98059         * lib/unistdio/u32-vasprintf.c: Likewise.
98060         * lib/unistdio/u32-vsnprintf.c: Likewise.
98061         * lib/unistdio/u32-vsprintf.c: Likewise.
98062         * lib/unistdio/u8-asnprintf.c: Likewise.
98063         * lib/unistdio/u8-asprintf.c: Likewise.
98064         * lib/unistdio/u8-printf-parse.c: Likewise.
98065         * lib/unistdio/u8-snprintf.c: Likewise.
98066         * lib/unistdio/u8-sprintf.c: Likewise.
98067         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
98068         * lib/unistdio/u8-u8-asprintf.c: Likewise.
98069         * lib/unistdio/u8-u8-snprintf.c: Likewise.
98070         * lib/unistdio/u8-u8-sprintf.c: Likewise.
98071         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
98072         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
98073         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
98074         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
98075         * lib/unistdio/u8-vasnprintf.c: Likewise.
98076         * lib/unistdio/u8-vasprintf.c: Likewise.
98077         * lib/unistdio/u8-vsnprintf.c: Likewise.
98078         * lib/unistdio/u8-vsprintf.c: Likewise.
98079         * lib/unistdio/ulc-asnprintf.c: Likewise.
98080         * lib/unistdio/ulc-asprintf.c: Likewise.
98081         * lib/unistdio/ulc-printf-parse.c: Likewise.
98082         * lib/unistdio/ulc-snprintf.c: Likewise.
98083         * lib/unistdio/ulc-sprintf.c: Likewise.
98084         * lib/unistdio/ulc-vasnprintf.c: Likewise.
98085         * lib/unistdio/ulc-vasprintf.c: Likewise.
98086         * lib/unistdio/ulc-vsnprintf.c: Likewise.
98087         * lib/unistdio/ulc-vsprintf.c: Likewise.
98088         * lib/unistr.h: Likewise.
98089         * lib/unistr/u-cpy-alloc.h: Likewise.
98090         * lib/unistr/u-cpy.h: Likewise.
98091         * lib/unistr/u-endswith.h: Likewise.
98092         * lib/unistr/u-move.h: Likewise.
98093         * lib/unistr/u-set.h: Likewise.
98094         * lib/unistr/u-startswith.h: Likewise.
98095         * lib/unistr/u-stpcpy.h: Likewise.
98096         * lib/unistr/u-stpncpy.h: Likewise.
98097         * lib/unistr/u-strcat.h: Likewise.
98098         * lib/unistr/u-strcpy.h: Likewise.
98099         * lib/unistr/u-strcspn.h: Likewise.
98100         * lib/unistr/u-strdup.h: Likewise.
98101         * lib/unistr/u-strlen.h: Likewise.
98102         * lib/unistr/u-strncat.h: Likewise.
98103         * lib/unistr/u-strncpy.h: Likewise.
98104         * lib/unistr/u-strnlen.h: Likewise.
98105         * lib/unistr/u-strpbrk.h: Likewise.
98106         * lib/unistr/u-strspn.h: Likewise.
98107         * lib/unistr/u-strstr.h: Likewise.
98108         * lib/unistr/u-strtok.h: Likewise.
98109         * lib/unistr/u16-check.c: Likewise.
98110         * lib/unistr/u16-chr.c: Likewise.
98111         * lib/unistr/u16-cmp.c: Likewise.
98112         * lib/unistr/u16-cpy-alloc.c: Likewise.
98113         * lib/unistr/u16-cpy.c: Likewise.
98114         * lib/unistr/u16-endswith.c: Likewise.
98115         * lib/unistr/u16-mblen.c: Likewise.
98116         * lib/unistr/u16-mbsnlen.c: Likewise.
98117         * lib/unistr/u16-mbtouc-aux.c: Likewise.
98118         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
98119         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
98120         * lib/unistr/u16-mbtouc.c: Likewise.
98121         * lib/unistr/u16-mbtoucr.c: Likewise.
98122         * lib/unistr/u16-move.c: Likewise.
98123         * lib/unistr/u16-next.c: Likewise.
98124         * lib/unistr/u16-prev.c: Likewise.
98125         * lib/unistr/u16-set.c: Likewise.
98126         * lib/unistr/u16-startswith.c: Likewise.
98127         * lib/unistr/u16-stpcpy.c: Likewise.
98128         * lib/unistr/u16-stpncpy.c: Likewise.
98129         * lib/unistr/u16-strcat.c: Likewise.
98130         * lib/unistr/u16-strchr.c: Likewise.
98131         * lib/unistr/u16-strcmp.c: Likewise.
98132         * lib/unistr/u16-strcpy.c: Likewise.
98133         * lib/unistr/u16-strcspn.c: Likewise.
98134         * lib/unistr/u16-strdup.c: Likewise.
98135         * lib/unistr/u16-strlen.c: Likewise.
98136         * lib/unistr/u16-strmblen.c: Likewise.
98137         * lib/unistr/u16-strmbtouc.c: Likewise.
98138         * lib/unistr/u16-strncat.c: Likewise.
98139         * lib/unistr/u16-strncmp.c: Likewise.
98140         * lib/unistr/u16-strncpy.c: Likewise.
98141         * lib/unistr/u16-strnlen.c: Likewise.
98142         * lib/unistr/u16-strpbrk.c: Likewise.
98143         * lib/unistr/u16-strrchr.c: Likewise.
98144         * lib/unistr/u16-strspn.c: Likewise.
98145         * lib/unistr/u16-strstr.c: Likewise.
98146         * lib/unistr/u16-strtok.c: Likewise.
98147         * lib/unistr/u16-to-u32.c: Likewise.
98148         * lib/unistr/u16-to-u8.c: Likewise.
98149         * lib/unistr/u16-uctomb-aux.c: Likewise.
98150         * lib/unistr/u16-uctomb.c: Likewise.
98151         * lib/unistr/u32-check.c: Likewise.
98152         * lib/unistr/u32-chr.c: Likewise.
98153         * lib/unistr/u32-cmp.c: Likewise.
98154         * lib/unistr/u32-cpy-alloc.c: Likewise.
98155         * lib/unistr/u32-cpy.c: Likewise.
98156         * lib/unistr/u32-endswith.c: Likewise.
98157         * lib/unistr/u32-mblen.c: Likewise.
98158         * lib/unistr/u32-mbsnlen.c: Likewise.
98159         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
98160         * lib/unistr/u32-mbtouc.c: Likewise.
98161         * lib/unistr/u32-mbtoucr.c: Likewise.
98162         * lib/unistr/u32-move.c: Likewise.
98163         * lib/unistr/u32-next.c: Likewise.
98164         * lib/unistr/u32-prev.c: Likewise.
98165         * lib/unistr/u32-set.c: Likewise.
98166         * lib/unistr/u32-startswith.c: Likewise.
98167         * lib/unistr/u32-stpcpy.c: Likewise.
98168         * lib/unistr/u32-stpncpy.c: Likewise.
98169         * lib/unistr/u32-strcat.c: Likewise.
98170         * lib/unistr/u32-strchr.c: Likewise.
98171         * lib/unistr/u32-strcmp.c: Likewise.
98172         * lib/unistr/u32-strcpy.c: Likewise.
98173         * lib/unistr/u32-strcspn.c: Likewise.
98174         * lib/unistr/u32-strdup.c: Likewise.
98175         * lib/unistr/u32-strlen.c: Likewise.
98176         * lib/unistr/u32-strmblen.c: Likewise.
98177         * lib/unistr/u32-strmbtouc.c: Likewise.
98178         * lib/unistr/u32-strncat.c: Likewise.
98179         * lib/unistr/u32-strncmp.c: Likewise.
98180         * lib/unistr/u32-strncpy.c: Likewise.
98181         * lib/unistr/u32-strnlen.c: Likewise.
98182         * lib/unistr/u32-strpbrk.c: Likewise.
98183         * lib/unistr/u32-strrchr.c: Likewise.
98184         * lib/unistr/u32-strspn.c: Likewise.
98185         * lib/unistr/u32-strstr.c: Likewise.
98186         * lib/unistr/u32-strtok.c: Likewise.
98187         * lib/unistr/u32-to-u16.c: Likewise.
98188         * lib/unistr/u32-to-u8.c: Likewise.
98189         * lib/unistr/u32-uctomb.c: Likewise.
98190         * lib/unistr/u8-check.c: Likewise.
98191         * lib/unistr/u8-chr.c: Likewise.
98192         * lib/unistr/u8-cmp.c: Likewise.
98193         * lib/unistr/u8-cpy-alloc.c: Likewise.
98194         * lib/unistr/u8-cpy.c: Likewise.
98195         * lib/unistr/u8-endswith.c: Likewise.
98196         * lib/unistr/u8-mblen.c: Likewise.
98197         * lib/unistr/u8-mbsnlen.c: Likewise.
98198         * lib/unistr/u8-mbtouc-aux.c: Likewise.
98199         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
98200         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
98201         * lib/unistr/u8-mbtouc.c: Likewise.
98202         * lib/unistr/u8-mbtoucr.c: Likewise.
98203         * lib/unistr/u8-move.c: Likewise.
98204         * lib/unistr/u8-next.c: Likewise.
98205         * lib/unistr/u8-prev.c: Likewise.
98206         * lib/unistr/u8-set.c: Likewise.
98207         * lib/unistr/u8-startswith.c: Likewise.
98208         * lib/unistr/u8-stpcpy.c: Likewise.
98209         * lib/unistr/u8-stpncpy.c: Likewise.
98210         * lib/unistr/u8-strcat.c: Likewise.
98211         * lib/unistr/u8-strchr.c: Likewise.
98212         * lib/unistr/u8-strcmp.c: Likewise.
98213         * lib/unistr/u8-strcpy.c: Likewise.
98214         * lib/unistr/u8-strcspn.c: Likewise.
98215         * lib/unistr/u8-strdup.c: Likewise.
98216         * lib/unistr/u8-strlen.c: Likewise.
98217         * lib/unistr/u8-strmblen.c: Likewise.
98218         * lib/unistr/u8-strmbtouc.c: Likewise.
98219         * lib/unistr/u8-strncat.c: Likewise.
98220         * lib/unistr/u8-strncmp.c: Likewise.
98221         * lib/unistr/u8-strncpy.c: Likewise.
98222         * lib/unistr/u8-strnlen.c: Likewise.
98223         * lib/unistr/u8-strpbrk.c: Likewise.
98224         * lib/unistr/u8-strrchr.c: Likewise.
98225         * lib/unistr/u8-strspn.c: Likewise.
98226         * lib/unistr/u8-strstr.c: Likewise.
98227         * lib/unistr/u8-strtok.c: Likewise.
98228         * lib/unistr/u8-to-u16.c: Likewise.
98229         * lib/unistr/u8-to-u32.c: Likewise.
98230         * lib/unistr/u8-uctomb-aux.c: Likewise.
98231         * lib/unistr/u8-uctomb.c: Likewise.
98232         * lib/unitypes.h: Likewise.
98233         * lib/uniwidth.h: Likewise.
98234         * lib/uniwidth/cjk.h: Likewise.
98235         * lib/uniwidth/u16-strwidth.c: Likewise.
98236         * lib/uniwidth/u16-width.c: Likewise.
98237         * lib/uniwidth/u32-strwidth.c: Likewise.
98238         * lib/uniwidth/u32-width.c: Likewise.
98239         * lib/uniwidth/u8-strwidth.c: Likewise.
98240         * lib/uniwidth/u8-width.c: Likewise.
98241         * lib/uniwidth/width.c: Likewise.
98243 2007-10-07  Bruno Haible  <bruno@clisp.org>
98245         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
98246         The file is still under LGPL (see modules/inttypes).
98248 2007-10-06  Bruno Haible  <bruno@clisp.org>
98250         * modules/trunc (Dependencies): Add 'extensions'.
98251         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
98252         Reported by Ben Pfaff <blp@gnu.org>.
98254 2007-10-06  Bruno Haible  <bruno@clisp.org>
98256         * modules/freopen-tests: New file.
98257         * tests/test-freopen.c: New file.
98259         * modules/fopen-tests: New file.
98260         * tests/test-fopen.c: New file.
98262         * modules/fopen: New file.
98263         * lib/fopen.c: New file.
98264         * m4/fopen.m4: New file.
98265         * modules/freopen: New file.
98266         * lib/freopen.c: New file.
98267         * m4/freopen.m4: New file.
98268         * lib/stdio.in.h (fopen, freopen): New declarations.
98269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
98270         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98271         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
98272         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98273         * doc/functions/fopen.texi: Mention the 'fopen' module.
98274         * doc/functions/freopen.texi: Mention the 'freopen' module.
98276 2007-10-06  Bruno Haible  <bruno@clisp.org>
98278         * modules/open-tests: New file.
98279         * tests/test-open.c: New file.
98281         * modules/open: New file.
98282         * lib/open.c: New file.
98283         * m4/open.m4: New file.
98284         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
98285         lib/open.c does.
98286         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
98287         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
98288         macros.
98289         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
98290         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
98291         REPLACE_OPEN.
98292         * doc/functions/open.texi: Mention the 'open' module.
98294 2007-10-04  Bruno Haible  <bruno@clisp.org>
98296         * modules/ceill-tests: New file.
98297         * tests/test-ceill.c: New file.
98299         * modules/ceill: New file.
98300         * lib/ceill.c: Replace entire file.
98301         * m4/ceill.m4: New file.
98302         * lib/math.in.h (ceill): Replace declaration.
98303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
98304         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
98305         * doc/functions/ceill.texi: Mention the 'ceill' module.
98306         * modules/mathl (Files): Remove lib/ceill.c.
98307         (Depends-on): Add ceill.
98309 2007-10-04  Bruno Haible  <bruno@clisp.org>
98311         * modules/ceilf-tests: New file.
98312         * tests/test-ceilf.c: New file.
98314         * modules/ceilf: New file.
98315         * lib/ceil.c: New file.
98316         * lib/ceilf.c: New file.
98317         * m4/ceilf.m4: New file.
98318         * lib/math.in.h (ceilf): New declaration.
98319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
98320         HAVE_DECL_CEILF.
98321         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
98322         HAVE_DECL_CEILF.
98323         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
98325 2007-10-04  Bruno Haible  <bruno@clisp.org>
98327         * modules/floorl-tests: New file.
98328         * tests/test-floorl.c: New file.
98330         * modules/floorl: New file.
98331         * lib/floorl.c: Replace entire file.
98332         * m4/floorl.m4: New file.
98333         * lib/math.in.h (floorl): Replace declaration.
98334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
98335         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
98336         * doc/functions/floorl.texi: Mention the 'floorl' module.
98337         * modules/mathl (Files): Remove lib/floorl.c.
98338         (Depends-on): Add floorl.
98340 2007-10-04  Bruno Haible  <bruno@clisp.org>
98342         * modules/floorf-tests: New file.
98343         * tests/test-floorf.c: New file.
98345         * modules/floorf: New file.
98346         * lib/floor.c: New file.
98347         * lib/floorf.c: New file.
98348         * m4/floorf.m4: New file.
98349         * lib/math.in.h (floorf): New declaration.
98350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98351         HAVE_DECL_FLOORF.
98352         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
98353         HAVE_DECL_FLOORF.
98354         * doc/functions/floorf.texi: Mention the 'floorf' module.
98356 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
98357             Bruno Haible  <bruno@clisp.org>
98359         Advertise for the Git server instead of the CVS server.
98360         * doc/gnulib-intro.texi (Steady Development): Mention the Git
98361         repository instead of the CVS one.
98362         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
98363         about all VCS systems generically.
98364         * doc/gnulib.texi (Introduction): Capitalize `Git'.
98366 2007-10-04  Bruno Haible  <bruno@clisp.org>
98368         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
98369         means.
98370         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
98372 2007-10-04  Bruno Haible  <bruno@clisp.org>
98374         * modules/truncl-tests: New file.
98375         * tests/test-truncl.c: New file.
98377         * modules/truncl: New file.
98378         * lib/truncl.c: New file.
98379         * m4/truncl.m4: New file.
98380         * lib/math.in.h (truncl): New declaration.
98381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98382         HAVE_DECL_TRUNCL.
98383         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98384         HAVE_DECL_TRUNCL.
98385         * doc/functions/truncl.texi: Mention the 'truncl' module.
98387 2007-10-04  Bruno Haible  <bruno@clisp.org>
98389         * modules/truncf-tests: New file.
98390         * tests/test-truncf.c: New file.
98392         * modules/truncf: New file.
98393         * lib/trunc.c: Make paramerizable through USE_* macros.
98394         * lib/truncf.c: New file.
98395         * m4/truncf.m4: New file.
98396         * lib/math.in.h (truncf): New declaration.
98397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98398         HAVE_DECL_TRUNCF.
98399         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98400         HAVE_DECL_TRUNCF.
98401         * doc/functions/truncf.texi: Mention the 'truncf' module.
98403 2007-10-03  Bruno Haible  <bruno@clisp.org>
98405         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98406         augmentation also for tests modules.
98407         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98408         * modules/atexit-tests (Makefile.am): Likewise.
98409         * modules/binary-io-tests (Makefile.am): Likewise.
98410         * modules/c-strcase-tests (Makefile.am): Likewise.
98411         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98412         * modules/canonicalize-tests (Makefile.am): Likewise.
98413         * modules/closein-tests (Makefile.am): Likewise.
98414         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98415         * modules/freadahead-tests (Makefile.am): Likewise.
98416         * modules/fseek-tests (Makefile.am): Likewise.
98417         * modules/fseeko-tests (Makefile.am): Likewise.
98418         * modules/ftell-tests (Makefile.am): Likewise.
98419         * modules/ftello-tests (Makefile.am): Likewise.
98420         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98421         * modules/isnanl-tests (Makefile.am): Likewise.
98422         * modules/lseek-tests (Makefile.am): Likewise.
98423         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98424         * modules/mbscasestr-tests (Makefile.am): Likewise.
98425         * modules/mbschr-tests (Makefile.am): Likewise.
98426         * modules/mbscspn-tests (Makefile.am): Likewise.
98427         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98428         * modules/mbspbrk-tests (Makefile.am): Likewise.
98429         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98430         * modules/mbsrchr-tests (Makefile.am): Likewise.
98431         * modules/mbsspn-tests (Makefile.am): Likewise.
98432         * modules/mbsstr-tests (Makefile.am): Likewise.
98433         * modules/printf-posix-tests (Makefile.am): Likewise.
98434         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98435         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98436         * modules/tsearch-tests (Makefile.am): Likewise.
98437         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98438         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98439         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98440         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98441         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98442         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98443         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98444         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98445         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98446         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98447         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98448         * modules/xstrtol-tests (Makefile.am): Likewise.
98449         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98450         * modules/yesno-tests (Makefile.am): Likewise.
98452 2007-10-03  Bruno Haible  <bruno@clisp.org>
98454         * modules/trunc-tests: New file.
98455         * tests/test-trunc.c: New file.
98457         * modules/trunc: New file.
98458         * lib/trunc.c: New file.
98459         * m4/trunc.m4: New file.
98460         * lib/math.in.h (trunc): New declaration.
98461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98462         HAVE_DECL_TRUNC.
98463         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98464         HAVE_DECL_TRUNC.
98465         * doc/functions/trunc.texi: Mention the 'trunc' module.
98467 2007-10-03  Bruno Haible  <bruno@clisp.org>
98469         * tests/test-fpending.c: New file, mostly copied
98470         from coreutils/lib/t-fpending.c.
98471         * modules/fpending-tests: New file.
98473 2007-10-03  Bruno Haible  <bruno@clisp.org>
98475         Port the stdio extensions to QNX (untested).
98476         * lib/fseterr.c (fseterr): Add support for QNX.
98477         * lib/fbufmode.c (fbufmode): Likewise.
98478         * lib/freadable.c (freadable): Likewise.
98479         * lib/fwritable.c (fwritable): Likewise.
98480         * lib/freading.c (freading): Likewise.
98481         * lib/fwriting.c (fwriting): Likewise.
98482         * lib/freadahead.c (freadahed): Likewise.
98483         * lib/fpurge.c (fpurge): Likewise.
98484         * lib/fseeko.c (rpl_fseeko): Likewise.
98486 2007-10-03  Bruno Haible  <bruno@clisp.org>
98487             Jim Meyering  <jim@meyering.net>
98488             Eric Blake  <ebb9@byu.net>
98490         * doc/relocatable.texi: Use @command instead of @program.
98492 2007-10-02  Jim Meyering  <jim@meyering.net>
98494         Perform one more "_.h" -> ".in.h" substitution.
98495         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98496         instead of unistd_.h here, too.
98498 2007-10-01  Bruno Haible  <bruno@clisp.org>
98500         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98501         Needed for the alloca-opt module.
98503 2007-09-30  Bruno Haible  <bruno@clisp.org>
98505         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98506         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98507         alloca_.h.
98508         * lib/argz.in.h: Renamed from lib/argz_.h.
98509         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98510         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98511         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98512         byteswap_.h.
98513         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98514         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98515         dirent_.h.
98516         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98517         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98518         fcntl_.h.
98519         * lib/float.in.h: Renamed from lib/float_.h.
98520         * modules/float (Files, Makefile.am): Use float.in.h instead of
98521         float_.h.
98522         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98523         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98524         fnmatch_.h.
98525         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98526         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98527         getopt_.h.
98528         * lib/glob.in.h: Renamed from lib/glob_.h.
98529         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98530         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98531         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98532         iconv_.h.
98533         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98534         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98535         inttypes_.h.
98536         * lib/locale.in.h: Renamed from lib/locale_.h.
98537         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98538         locale_.h.
98539         * lib/math.in.h: Renamed from lib/math_.h.
98540         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98541         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98542         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98543         of netinet_in_.h. Add dependency.
98544         * lib/poll.in.h: Renamed from lib/poll_.h.
98545         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98546         * lib/search.in.h: Renamed from lib/search_.h.
98547         * modules/search (Files, Makefile.am): Use search.in.h instead of
98548         search_.h.
98549         * lib/signal.in.h: Renamed from lib/signal_.h.
98550         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98551         _signal.h.
98552         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98553         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98554         stdbool_.h.
98555         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98556         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98557         stdint_.h.
98558         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98559         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98560         stdio_.h.
98561         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98562         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98563         stdlib_.h.
98564         * lib/string.in.h: Renamed from lib/string_.h.
98565         * modules/string (Files, Makefile.am): Use string.in.h instead of
98566         string_.h.
98567         * doc/gnulib-tool.texi (Initial import): Update.
98568         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98569         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98570         of sys_select_.h. Add dependency.
98571         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98572         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98573         of sys_socket_.h.
98574         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98575         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98576         sys_stat_.h.
98577         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98578         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98579         sys_time_.h.
98580         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98581         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98582         sysexits_.h.
98583         * lib/time.in.h: Renamed from lib/time_.h.
98584         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98585         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98586         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98587         unistd_.h.
98588         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98589         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98590         wchar_.h.
98591         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98592         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98593         wctype_.h.
98594         * build-aux/bootstrap (slurp): Update.
98595         * lib/.cppi-disable: Update.
98597 2007-09-30  Bruno Haible  <bruno@clisp.org>
98599         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98600         Needed on BeOS.
98602 2007-09-30  Bruno Haible  <bruno@clisp.org>
98604         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98606 2007-09-29  Bruno Haible  <bruno@clisp.org>
98608         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98610 2007-09-29  Bruno Haible  <bruno@clisp.org>
98612         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98613         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98614         * build-aux/install-reloc: Compile also areadlink.c.
98615         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98617 2007-09-29  Bruno Haible  <bruno@clisp.org>
98619         * gnulib-tool (func_emit_initmacro_done): Indentation.
98621 2007-09-29  Bruno Haible  <bruno@clisp.org>
98623         * README: Add CVS checkout update instructions.
98624         Info from Bob Proulx <bob@proulx.com>.
98626 2007-09-28  Eric Blake  <ebb9@byu.net>
98628         Provide move-if-change.
98629         * build-aux/move-if-change: New file, based on best practice
98630         rather than any canonical upstream location.
98632 2007-09-28  Jim Meyering  <jim@meyering.net>
98634         Fix canonicalize loop-detection corner case.
98635         Do not attempt to stat the symlink values stored via seen_triple.
98636         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98637         on linux-2.6.18, (but not 2.6.22).
98638         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98639         triple_compare.  The former compares dev,ino,filename, while the latter
98640         would actually stat dirname(filename) when dev and ino were equal.
98641         * lib/hash-triple.c: Install <string.h>.
98642         (STREQ): Define.
98643         (triple_compare_ino_str): New function.
98644         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98646 2007-09-28  Eric Blake  <ebb9@byu.net>
98648         Enforce that AC_REPLACE_FUNCS files exist.
98649         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98650         override check for typos.
98652         Fix test-closein on Solaris 10.
98653         * tests/test-closein.c (main): Don't assume stdin can be inherited
98654         closed on all systems.
98655         * tests/test-closein.sh: Likewise.
98656         Reported by Piotr Tarnowski.
98658 2007-09-28  Jim Meyering  <jim@meyering.net>
98660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98662 2007-09-27  Jim Meyering  <jim@meyering.net>
98664         canonicalize: Avoid a false-positive cycle failure.
98665         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98666         Sort.  Remove cycle-check.
98667         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98668         not cycle-check.h.
98669         (seen_triple): New function.
98670         (canonicalize_filename_mode): Use it instead of cycle-check.
98671         * tests/test-canonicalize.c: Add a test for this bug.
98672         * tests/test-canonicalize.sh: Set up and run the test.
98674         New module, file-set, from coreutils.
98675         * modules/file-set: Define it.
98676         * lib/file-set.c, lib/file-set.h: Implement.
98678         New module, hash-triple, from coreutils.
98679         * modules/hash-triple: Define it.
98680         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98682 2007-09-25  Eric Blake  <ebb9@byu.net>
98684         Fix strerror on Interix.
98685         * lib/string_.h (strerror): Declare replacement.
98686         * doc/functions/strerror.texi (strerror): Document the Interix
98687         shortcoming.
98688         * modules/string (Makefile.am): Support new hooks.
98689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98690         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98691         gl_FUNC_STRERROR_SEPARATE.
98692         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98693         * lib/strerror.c (rpl_strerror): Provide replacement.
98694         * modules/strerror (Depends-on): Add string.
98695         (configure.ac): Detect use of module.
98696         * tests/test-strerror.c: New file.
98697         * modules/strerror-tests: New test module.
98698         * modules/argp (Depends-on): Add strerror.
98699         * modules/error (Depends-on): Likewise.
98700         Reported by Martin Koeppe.
98702 2007-09-24  Bruno Haible  <bruno@clisp.org>
98704         * README: Update git instructions.
98706 2007-09-24  Eric Blake  <ebb9@byu.net>
98708         Revert fpending breakage from 2007-09-08.
98709         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98710         __fpending.c.
98712 2007-09-24  Jim Meyering  <jim@meyering.net>
98714         filenamecat.c: Add a test.
98715         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98716         showing how the function works when DIR is the empty string.
98718 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98720         * tests/test-canonicalize.sh: Turn on executable bit.
98722 2007-09-19  Eric Blake  <ebb9@byu.net>
98724         * README: Update CVS instructions.
98726 2007-09-18  Bruno Haible  <bruno@clisp.org>
98728         * modules/areadlink: New file.
98729         * lib/areadlink.h (areadlink): New declaration.
98730         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98732 2007-09-17  Jim Meyering  <jim@meyering.net>
98734         * lib/savewd.c (ESTALE) [!defined]: Define.
98735         Reported to be required on Interix by Martin Koeppe.
98737 2007-09-17  Bruno Haible  <bruno@clisp.org>
98739         * gnulib-tool (func_version): Use $version.
98741 2007-09-16  Bruno Haible  <bruno@clisp.org>
98743         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98744         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98745         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98746         Reported by Greg Schafer <gschafer@zip.com.au>.
98748 2007-09-15  Bruno Haible  <bruno@clisp.org>
98750         * gnulib-tool (sed): Try a little harder to make bash understand the
98751         alias.
98752         Reported by Bruce Korb <bruce.korb@gmail.com>.
98754 2007-09-13  Eric Blake  <ebb9@byu.net>
98756         * ChangeLog: Remove conflict markers.
98758 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98760         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98761         Reported by Bruno Haible <bruno@clisp.org>.
98763 2007-09-12  Bruno Haible  <bruno@clisp.org>
98765         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98766         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98767         is not defined.
98769 2007-09-12  Eric Blake  <ebb9@byu.net>
98771         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98772         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98773         Autoconf definition.
98774         * modules/euidaccess (Depends-on): Add extensions, for
98775         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98776         * modules/fnmatch (Depends-on): Likewise.
98777         * modules/getaddrinfo (Depends-on): Likewise.
98778         * modules/getdelim (Depends-on): Likewise.
98779         * modules/getline (Depends-on): Likewise.
98780         * modules/getsubopt (Depends-on): Likewise.
98781         * modules/gettext (Depends-on): Likewise.
98782         * modules/group-member (Depends-on): Likewise.
98783         * modules/mbchar (Depends-on): Likewise.
98784         * modules/memmem (Depends-on): Likewise.
98785         * modules/mempcpy (Depends-on): Likewise.
98786         * modules/memrchr (Depends-on): Likewise.
98787         * modules/pagealign_alloc (Depends-on): Likewise.
98788         * modules/readutmp (Depends-on): Likewise.
98789         * modules/stpcpy (Depends-on): Likewise.
98790         * modules/stpncpy (Depends-on): Likewise.
98791         * modules/strchrnul (Depends-on): Likewise.
98792         * modules/strndup (Depends-on): Likewise.
98793         * modules/strsep (Depends-on): Likewise.
98794         * modules/strverscmp (Depends-on): Likewise.
98795         * modules/vasprintf (Depends-on): Likewise.
98796         * modules/wcwidth (Depends-on): Likewise.
98797         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
98798         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
98799         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
98800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
98801         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98802         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98803         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
98804         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
98806         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
98807         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
98808         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
98811         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
98812         * m4/readutmp.m4 (gl_READUTMP): Likewise.
98813         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98814         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98815         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98819         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98820         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98821         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98823         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98824         so that lock.m4 can be used in gettext without extensions module.
98826 2007-09-11  Bruno Haible  <bruno@clisp.org>
98828         * m4/isc-posix.m4: Remove file.
98829         Suggested by Eric Blake.
98831 2007-09-11  Eric Blake  <ebb9@byu.net>
98833         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98835 2007-09-10  Bruno Haible  <bruno@clisp.org>
98837         * posix-modules: Fix typo in error message.
98838         Reported by Matt <mkraai@beckman.com>.
98840 2007-09-09  Bruno Haible  <bruno@clisp.org>
98842         * doc/functions/getdelim.texi: Update list of platforms lacking the
98843         function.
98844         * doc/functions/getline.texi: Likewise.
98846 2007-09-09  Jim Meyering  <jim@meyering.net>
98848         * lib/hash.c (hash_initialize): Detect calloc failure.
98849         Reported by Bruno Haible.
98851 2007-09-09  Bruno Haible  <bruno@clisp.org>
98853         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98854         malloc or realloc fails.
98856 2007-09-09  Bruno Haible  <bruno@clisp.org>
98858         * modules/getcwd (Depends-on): Add malloc-posix.
98859         * modules/glob (Depends-on): Likewise.
98860         * modules/putenv (Depends-on): Likewise.
98861         * modules/strdup (Depends-on): Likewise.
98862         * modules/getdelim (Depends-on): Add realloc-posix.
98863         * modules/read-file (Depends-on): Likewise.
98865 2007-09-09  Bruno Haible  <bruno@clisp.org>
98867         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98868         (gl_FUNC_MALLOC_POSIX): Require it.
98869         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98870         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98871         * modules/realloc (Files): Add m4/malloc.m4.
98872         * modules/calloc (Files): Likewise.
98874 2007-09-09  Bruno Haible  <bruno@clisp.org>
98876         * modules/malloc-posix: New file.
98877         * modules/malloc (Depends-on): Add malloc-posix.
98878         * lib/malloc.c: Include errno.h.
98879         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98880         and a POSIX-compatible malloc into a single function. Set ENOMEM
98881         when returning NULL.
98882         * m4/malloc.m4: New file.
98883         * doc/functions/malloc.texi: Mention the malloc-posix module.
98884         * lib/stdlib_.h (malloc): New declaration.
98885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98886         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98887         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98888         and HAVE_MALLOC_POSIX.
98890 2007-09-09  Bruno Haible  <bruno@clisp.org>
98892         * modules/realloc-posix: New file.
98893         * modules/realloc (Depends-on): Add realloc-posix.
98894         * lib/realloc.c: Include errno.h.
98895         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98896         and a POSIX-compatible realloc into a single function. Set ENOMEM
98897         when returning NULL.
98898         * m4/realloc.m4: New file.
98899         * doc/functions/realloc.texi: Mention the realloc-posix module.
98900         * lib/stdlib_.h (realloc): New declaration.
98901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98902         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98903         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98904         and HAVE_REALLOC_POSIX.
98906 2007-09-09  Bruno Haible  <bruno@clisp.org>
98908         * modules/calloc-posix: New file.
98909         * modules/calloc (Depends-on): Add calloc-posix.
98910         * lib/calloc.c: Include errno.h.
98911         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98912         and a POSIX-compatible calloc into a single function. Set ENOMEM
98913         when returning NULL.
98914         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98915         * doc/functions/calloc.texi: Mention the calloc-posix module.
98916         * lib/stdlib_.h (calloc): New declaration.
98917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98918         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98919         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98920         and HAVE_CALLOC_POSIX.
98922 2007-09-09  Bruno Haible  <bruno@clisp.org>
98924         Allow for modules to show an arbitrary notice.
98925         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98926         * gnulib-tool: New option --extract-notice.
98927         (func_usage): Document it.
98928         (sed_extract_prog): Update.
98929         (func_get_notice): New function.
98930         (func_modules_notice): New function.
98931         (func_import, func_create_testdir): Invoke it.
98932         Suggested by Jim Meyering.
98934 2007-09-09  Bruno Haible  <bruno@clisp.org>
98936         * gnulib-tool: New options --verbose, --quiet.
98937         (func_usage): Document them.
98938         (verbose): New variable.
98939         (func_execute_command): New function.
98940         (func_import): Don't show the module list and the file list if
98941         $verbose < 0.
98942         (func_create_testdir): Likewise. Use func_execute_command.
98943         (func_create_megatestdir): Use func_execute_command.
98945 2007-09-08  Bruno Haible  <bruno@clisp.org>
98947         * gnulib-tool (func_import): Prefer rsync over wget when available,
98948         for fetching the PO files.
98950 2007-09-08  Bruno Haible  <bruno@clisp.org>
98952         * posix-modules: New file. Portions copied from gnulib-tool.
98953         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98955 2007-09-08  Jim Meyering  <jim@meyering.net>
98957         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98958         * lib/fpending.h: Rename from __fpending.h.
98959         * lib/fpending.c: Rename from __fpending.c.
98960         Include "fpending.h", not "__fpending.h".
98961         * lib/__fpending.h, lib/__fpending.c: Remove files.
98962         * modules/fpending (Files): Reflect new file names.
98963         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98965 2007-09-08  Bruno Haible  <bruno@clisp.org>
98967         * m4/inttypes-h.m4: Remove stub file.
98969 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98971         * doc/headers/stdint.texi: Discuss #include_next issue.
98973 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98975         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98977 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98979         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98980         in variable name.
98982 2007-09-03  Jim Meyering  <jim@meyering.net>
98984         New module: git-version-gen.
98985         * modules/git-version-gen: New file.
98987         Import changes from coreutils for bootstrap script.
98989         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98991         bootstrap: uses rsync to download the .po files
98992         * build-aux/bootstrap (po_download_command_format): New global.
98993         (download_po_files): Use rsync.
98994         (update_po_files): Don't remove .po files after download,
98995         so future rsync runs can take advantage of the copies.
98997         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98999         Solve the unnecessary-.po-file-regeneration problem once and for all.
99000         * build-aux/bootstrap (download_po_files): New function, renamed from
99001         get_translations.  Now, downloads, but doesn't update LINGUAS.
99002         (update_po_files): New function.
99004         bootstrap: Ignore more.
99005         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
99006         uniwidth to e.g., lib/.gitignore.
99007         (slurp): Handle the sys_stat_.h -> sys mapping, too.
99009         * build-aux/bootstrap: New setting: vc_ignore.
99010         (insert_sorted_if_absent): Create $file if absent.
99011         Adapt to new, possibly empty, list: $vc_ignore.
99013         bootstrap: generate more ignorable names
99014         * build-aux/bootstrap (slurp): When generating ignorable names,
99015         also map .sin to .sed, .gperf to .c, and .y to .c.
99017 2007-09-03  Jim Meyering  <jim@meyering.net>
99019         * build-aux/git-version-gen: New file, from coreutils.  For details, see
99020         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
99022 2007-09-02  Bruno Haible  <bruno@clisp.org>
99024         Fix mis-recognition of 'mcs' on QNX 6.
99025         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
99026         output contains the string "Mono".
99027         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
99028         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
99030 2007-09-01  Bruno Haible  <bruno@clisp.org>
99032         Fix collision between uniwidth/* and linebreak modules.
99033         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
99034         u32_width): Remove declarations.
99035         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
99036         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
99037         streq3, streq2, streq1, streq0): Remove functions.
99038         (STREQ): Remove macro.
99039         (is_cjk_encoding): Remove function.
99040         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
99041         (uc_width, u8_width, u16_width, u32_width): Remove functions.
99042         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
99043         * NEWS: Document the change.
99045 2007-09-01  Bruno Haible  <bruno@clisp.org>
99047         * lib/streq.h: Add double-inclusion guard.
99049 2007-09-01  Karl Berry  <karl@gnu.org>
99051         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
99053 2007-08-28  Jim Meyering  <jim@meyering.net>
99055         Rename mreadlink_with_size to areadlink_with_size.
99056         * NEWS: Document the change.
99057         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
99058         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
99059         * lib/mreadlink.h: Rename this to...
99060         * lib/areadlink.h: ...this.
99061         * modules/mreadlink-with-size: Rename this to...
99062         * modules/areadlink-with-size: ...this.
99063         * lib/canonicalize.c: Reflect the renaming.
99064         * modules/canonicalize: Likewise.
99066 2007-08-26  Bruno Haible  <bruno@clisp.org>
99068         * gnulib-tool (func_import): When deciding which files to remove,
99069         consider also dangling symbolic links.
99070         Reported by Eric Blake.
99072 2007-08-26  Bruno Haible  <bruno@clisp.org>
99074         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
99076 2007-08-23  Simon Josefsson  <simon@josefsson.org>
99078         * lib/readline.c: Don't include getline.h, the prototype is now
99079         found in stdio.h.
99081 2007-08-23  Jim Meyering  <jim@meyering.net>
99083         Getdelim touchup.
99084         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
99085         around the funlockfile call, since funlockfile never sets errno.
99086         Don't set errno upon failed realloc.
99088 2007-08-22  Eric Blake  <ebb9@byu.net>
99090         Getline touchups.
99091         * lib/getdelim.c (getdelim): Revert regression that required *n to
99092         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
99093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
99094         getdelim, rather than whether implementation is missing.
99095         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
99096         * lib/stdio_.h (getline): Also declare if replacement is
99097         required.
99098         * doc/functions/getdelim.texi: New file.
99099         * doc/functions/getline.texi: Likewise.
99100         * doc/gnulib.texi (Function Substitutes): Add new files.
99101         Reported by Bruno Haible.
99103 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
99105         * users.txt: Add Guile.
99107 2007-08-22  Eric Blake  <ebb9@byu.net>
99109         * tests/test-getdelim.c (main): Use remove, not unlink.
99110         * tests/test-getline.c (main): Likewise.
99112         Move getline and getdelim into stdio.h, per POSIX 200x.
99113         * modules/getline (Files): Remove getline.h.
99114         (Depends-on): Add stdio.
99115         (configure.ac): Add module indicator.
99116         * modules/getdelim (Files): Remove getdelim.h.
99117         (Depends-on): Add stdio.
99118         (configure.ac): Add module indicator.
99119         * modules/stdio (Makefile.am): Work with new indicators.
99120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
99121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
99122         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99123         * lib/getdelim.h: Delete.
99124         * lib/getline.h: Delete.
99125         * lib/stdio_.h (getdelim, getline): Declare.
99126         * modules/getdelim-tests: New module.
99127         * modules/getline-tests: Likewise.
99128         * tests/test-getdelim.c: New file.
99129         * tests/test-getline.c: Likewise.
99130         * NEWS: Document the change.
99131         * lib/getline.c: Update choice of header.
99132         * lib/csharpcomp.c: Likewise.
99133         * lib/getpass.c: Likewise.
99134         * lib/javacomp.c: Likewise.
99135         * lib/javaversion.c: Likewise.
99136         * lib/yesno.c: Likewise.
99137         * lib/getdelim.c: Likewise.
99138         (getdelim): Set errno on failure, and avoid memory leak.
99140 2007-08-19  Bruno Haible  <bruno@clisp.org>
99142         * modules/closein (Depends-on): Add freadahead.
99143         * lib/closein.c: Include freadahead.h.
99144         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
99145         is zero.
99147 2007-08-19  Bruno Haible  <bruno@clisp.org>
99149         * modules/freadahead-tests: New file.
99150         * tests/test-freadahead.sh: New file.
99151         * tests/test-freadahead.c: New file.
99153         * modules/freadahead: New file.
99154         * lib/freadahead.h: New file.
99155         * lib/freadahead.c: New file.
99156         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
99157         fbufmode, fpurge, freadable, fwritable.
99159 2007-08-19  Eric Blake  <ebb9@byu.net>
99161         Test yesno in combination with closein.
99162         * lib/yesno.c (yesno): Document use of stdin.
99163         * modules/yesno-tests (Files): New module.
99164         * tests/test-yesno.c (main): New file.
99165         * tests/test-yesno.sh: Likewise.
99167 2007-08-19  Bruno Haible  <bruno@clisp.org>
99169         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
99170         * lib/fseeko.c (rpl_fseeko): Likewise.
99171         * lib/fseterr.c (fseterr): Likewise.
99173 2007-08-19  Bruno Haible  <bruno@clisp.org>
99175         * tests/test-lseek.c (main): Disable a test for BeOS.
99176         * doc/functions/lseek.texi: Document the BeOS bug.
99178 2007-08-19  Bruno Haible  <bruno@clisp.org>
99179             Eric Blake  <ebb9@byu.net>
99181         * lib/lseek.c: Include <sys/stat.h>.
99182         (rpl_lseek): Add workaround code also for Unix platforms.
99183         Needed for BeOS.
99184         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
99185         * doc/functions/lseek.texi: Document BeOS definiency.
99187 2007-08-18  Bruno Haible  <bruno@clisp.org>
99189         * modules/fstrcmp-tests: New file.
99190         * tests/test-fstrcmp.c: New file.
99192 2007-08-18  Bruno Haible  <bruno@clisp.org>
99194         * modules/fstrcmp: New file, from GNU gettext with modifications.
99195         * lib/fstrcmp.h: New file, from GNU gettext.
99196         * lib/fstrcmp.c: New file, from GNU gettext.
99197         * MODULES.html.sh (String handling): Add fstrcmp.
99199 2007-08-18  Bruno Haible  <bruno@clisp.org>
99201         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
99202         'bool'.
99203         (diag, compareseq): Remove const from the ctxt argument.
99204         (USE_HEURISTIC): Undefine at the end.
99206 2007-08-18  Jim Meyering  <jim@meyering.net>
99208         New file: lib/idcache.h
99209         * NEWS: Mention the addition.
99210         * modules/idcache (Files): Add lib/idcache.h
99211         * lib/idcache.c: Include "idcache.h".
99212         Don't include <sys/types.h>.
99213         Add a FIXME comment.
99214         Move file-scoped "static" declarations to the top.
99215         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
99217 2007-08-17  Bruno Haible  <bruno@clisp.org>
99218         and Paul Eggert  <eggert@cs.ucla.edu>
99220         * MODULES.html.sh: Add diffseq.
99221         * modules/diffseq: New file.
99222         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
99223         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
99225 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99227         Import changes from coreutils for bootstrap script.
99229         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
99231         * build-aux/bootstrap (slurp): Work even in environments where
99232         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
99233         current code does not slurp files whose names start with ".", and
99234         this looks like it might be a troublesome area.
99236         2007-07-11  Jim Meyering  <jim@meyering.net>
99238         If there's a GPL vN copyright comment, require that N == 3.
99240         2007-07-08  Jim Meyering  <jim@meyering.net>
99242         Run the coreutils-specific code only if tests/Makefile.am.in exists.
99243         * build-aux/bootstrap (mam_template): Move definition out of loop.
99245         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
99247         * build-aux/bootstrap (symlink_to_dir): Rename function from
99248         symlink_to_gnulib.  Add a directory parameter.  Update all
99249         callers.
99250         (cp_mark_as_generated): Also check for -- and link to -- files in
99251         gl/.
99253         2007-07-08  Jim Meyering  <jim@meyering.net>
99255         Adapt to deeper hierarchy in gnulib.
99256         * build-aux/bootstrap (symlink_to_dir): If the destination
99257         directory doesn't exist, create it. This is required at least for
99258         "lib/uniwidth/cjk.h".
99260         2007-05-15  Jim Meyering  <jim@meyering.net>
99262         * build-aux/bootstrap: Now that generated Makefile.am files
99263         are no longer under version control, they must be created at
99264         bootstrap time.
99266 2007-08-14  Ben Pfaff  <blp@gnu.org>
99268         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
99270 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99272         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
99273         given the changes below.
99274         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
99275         even on hosts that have padding bits beyond the supported 64.
99277 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99279         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
99280         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
99281         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
99282         depends on it.
99283         (xstrtol_error): Remove.
99284         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
99285         but with a different signature.
99286         (ATTRIBUTE_NORETURN, __attribute__): New macros.
99287         * lib/xstrtol-error.c: Include exitfail.h.
99288         (xstrtol_fatal): New function, with a different signature from the
99289         old xstrtol_error, so that the caller need not worry about passing
99290         in an exit status, or about storage management of the option argument.
99291         (xstrtol_error): Now a static function.  Redo signature to
99292         implement xstrtol_fatal.  Output the correct number of hyphens in
99293         front of the option so that the caller need not worry about
99294         storage management.
99295         (N_): New macro.
99296         (_): Remove; not used now.
99297         * modules/xstrtol: Depend on getopt.
99298         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
99299         of old STRTOL_FATAL_ERROR macro.
99300         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
99301         of test program.
99302         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
99303         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
99305 2007-08-08  Eric Blake  <ebb9@byu.net>
99307         * lib/xstrtol-error.c: Add missing include.
99309         Move xstrtol messages into gnulib domain, when --pobase is used.
99310         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
99311         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
99312         * modules/xstrtol (Files): Distribute new file.
99313         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
99314         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
99315         * tests/test-xstrtol.c: ...into new file.
99316         * tests/test-xstrtoul.c: Also test xstrtoul.
99317         * tests/test-xstrtoimax.c: Also test xstrtoimax.
99318         * tests/test-xstrtoumax.c: Also test xstrtoumax.
99319         * tests/test-xstrtol.sh: Drive the tests.
99320         * tests/test-xstrtoimax.sh: Likewise.
99321         * tests/test-xstrtoumax.sh: Likewise.
99322         * modules/xstrtol-tests: New module.
99323         * modules/xstrtoimax-tests: Likewise.
99324         * modules/xstrtoumax-tests: Likewise.
99326 2007-08-08  Jim Meyering  <jim@meyering.net>
99328         New function: mfile_name_concat.
99329         * lib/filenamecat.c (mfile_name_concat): New function, just like
99330         file_name_concat, but return NULL upon failure rather than exiting
99331         with a diagnostic.
99332         * lib/filenamecat.h: Declare it.
99334 2007-08-07  Bruno Haible  <bruno@clisp.org>
99336         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
99337         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
99338         warning from gcc.
99339         Reported by Eric Blake.
99341 2007-08-07  Simon Josefsson  <simon@josefsson.org>
99343         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
99344         * modules/crypto/arcfour (License): Likewise.
99345         * modules/crypto/des-tests (License): Likewise.
99346         * modules/crypto/gc-arctwo-tests (License): Likewise.
99347         * modules/crypto/gc-des-tests (License): Likewise.
99348         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
99349         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
99350         * modules/crypto/gc-md2-tests (License): Likewise.
99351         * modules/crypto/gc-md4-tests (License): Likewise.
99352         * modules/crypto/gc-md5-tests (License): Likewise.
99353         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
99354         * modules/crypto/gc-rijndael-tests (License): Likewise.
99355         * modules/crypto/gc-sha1-tests (License): Likewise.
99356         * modules/crypto/gc-tests (License): Likewise.
99357         * modules/crypto/hmac-md5 (License): Likewise.
99358         * modules/crypto/hmac-sha1 (License): Likewise.
99359         * modules/crypto/md2-tests (License): Likewise.
99360         * modules/crypto/md4-tests (License): Likewise.
99361         * modules/crypto/md5 (License): Likewise.
99362         * modules/crypto/rijndael (License): Likewise.
99363         * modules/crypto/sha1 (License): Likewise.
99364         * modules/memxor (License): Likewise.
99366 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99367         and Bruno Haible  <bruno@clisp.org>
99369         * NEWS: Describe interface changes to human, xstrtol.
99370         * lib/human.h: Include <xstrtol.h>.
99371         (human_options): Return enum strtol_error, not int.  Remove
99372         bool arg; take int * instead.
99373         * lib/human.c: Don't include "gettext.h".
99374         (_): Remove; no longer used.
99375         Don't include <xstrtol.h>, since human.h does it.
99376         (human_options): Adjust to abovementioned interface changes.
99377         Do not report error to stderr; that's now the caller's
99378         responsibility.
99379         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99380         interface change.
99381         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99382         Str, Argument_type_string.  All uses changed.  Put " argument"
99383         in diagnostics to make them clearer.  Change wording of suffix
99384         message for clarity.
99385         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99386         Argument_type_string.
99387         (STRTOL_FATAL_WARN): Remove; no longer used.
99388         * modules/human (Depends-on): Remove gettext-h.
99390 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99392         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99394 2007-07-31  Bruno Haible  <bruno@clisp.org>
99396         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99397         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99398         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99400 2007-07-31  Bruno Haible  <bruno@clisp.org>
99402         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99403         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99405 2007-07-30  Bruno Haible  <bruno@clisp.org>
99407         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99408         * modules/c-ctype (License): Likewise.
99409         * modules/c-strcase (License): Likewise.
99410         * modules/check-version (License): Likewise.
99411         * modules/iconv (License): Likewise.
99412         * modules/iconv_open (License): Likewise.
99413         * modules/read-file (License): Likewise.
99414         * modules/striconv (License): Likewise.
99415         * modules/strverscmp (License): Likewise.
99416         * modules/vasprintf (License): Likewise.
99417         * modules/crypto/des (License): Likewise.
99418         * modules/crypto/gc (License): Likewise.
99419         * modules/crypto/gc-arcfour (License): Likewise.
99420         * modules/crypto/gc-arctwo (License): Likewise.
99421         * modules/crypto/gc-des (License): Likewise.
99422         * modules/crypto/gc-hmac-md5 (License): Likewise.
99423         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99424         * modules/crypto/gc-md2 (License): Likewise.
99425         * modules/crypto/gc-md4 (License): Likewise.
99426         * modules/crypto/gc-md5 (License): Likewise.
99427         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99428         * modules/crypto/gc-random (License): Likewise.
99429         * modules/crypto/gc-rijndael (License): Likewise.
99430         * modules/crypto/gc-sha1 (License): Likewise.
99431         * modules/crypto/md2 (License): Likewise.
99432         * modules/crypto/md4 (License): Likewise.
99434 2007-07-30  Jim Meyering  <jim@meyering.net>
99436         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99437         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99438         it has valid stat data.  This bug would cause du not to count the
99439         sizes of inaccessible directories.
99440         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99441         in <http://bugzilla.redhat.com/250077>.
99443 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99444             Bruno Haible  <bruno@clisp.org>
99446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99447         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99448         #include_next, gives a diagnostic about it, but reports no error in
99449         the exit code.
99450         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99452 2007-07-24  Ben Pfaff  <blp@gnu.org>
99454         Improve name: "count-one-bits" is better than "popcount".
99455         * MODULES.html.sh: Update name.
99456         * lib/popcount.h: Renamed lib/count-one-bits.h.
99457         (popcount): Renamed count_one_bits.
99458         (popcountl): Renamed count_one_bits_l.
99459         (popcountll): Renamed count_one_bits_ll.
99460         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99461         * modules/popcount: Renamed module/count-one-bits.
99462         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99463         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99465 2007-07-23  Ben Pfaff  <blp@gnu.org>
99467         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99468         better code generation, and add U to large constants to avoid
99469         warnings, in non-GCC case.
99470         Suggested by Bruno Haible.
99472 2007-07-23  Ben Pfaff  <blp@gnu.org>
99474         * lib/popcount.h: Use verify_true instead of if...abort.
99475         * modules/popcount: Depend on verify module.
99476         Suggested by Jim Meyering.
99478 2007-07-23  Bruno Haible  <bruno@clisp.org>
99480         * gnulib-tool (func_import): Create a .cvsignore file also when the
99481         directory is not yet in CVS but the toplevel directory is. When
99482         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99483         Reported by Karl Berry.
99485 2007-07-22  Ben Pfaff  <blp@gnu.org>
99487         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99488         case.
99489         Suggested by Eric Blake.
99491 2007-07-22  Ben Pfaff  <blp@gnu.org>
99493         New module: popcount.
99494         * MODULES.html.sh: Add popcount.
99495         * modules/popcount: New file.
99496         * modules/popcount-tests: New file.
99497         * tests/test-popcount.c: New file.
99498         * lib/popcount.h: New file.
99499         * m4/popcount.m4: New file.
99501 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99503         * build-aux/announce-gen: Update to GPLv3.
99505         * build-aux/config.guess: Update from config.
99507 2007-07-21  Bruno Haible  <bruno@clisp.org>
99509         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99510         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99512 2007-07-20  Jim Meyering  <jim@meyering.net>
99514         * check-module: Diagnose a self-dependency.
99516 2007-07-19  Bruno Haible  <bruno@clisp.org>
99518         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99519         empty.
99520         Reported by Eric Blake.
99522 2007-07-18  Bruno Haible  <bruno@clisp.org>
99524         * gnulib-tool: New options --po-base, --po-domain.
99525         (func_usage): Document them.
99526         (pobase, po_domain): New variables.
99527         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99528         DEFAULT_TEXT_DOMAIN.
99529         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99530         (func_import): Consider pobase and po_domain. Create a po/ directory.
99531         (func_create_testdir): Set pobase and po_domain to empty.
99532         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99533         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99535 2007-07-18  Bruno Haible  <bruno@clisp.org>
99537         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99538         EXTRA_DIST augmentation for files in build-aux/.
99540 2007-07-16  Bruno Haible  <bruno@clisp.org>
99542         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99543         * modules/getdelim (License): Likewise.
99545 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99547         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99548         * modules/d-type (License): Likewise.
99549         * modules/extensions (License): Likewise.
99550         * modules/fnmatch (License): Likewise.
99551         * modules/fseeko (License): Likewise.
99552         * modules/getaddrinfo (License): Likewise.
99553         * modules/getline (License): Likewise.
99554         * modules/getlogin_r (License): Likewise.
99555         * modules/getpass (License): Likewise.
99556         * modules/gettimeofday (License): Likewise.
99557         * modules/glob (License): Likewise.
99558         * modules/inet_ntop (License): Likewise.
99559         * modules/malloc (License): Likewise.
99560         * modules/malloca (License): Likewise.
99561         * modules/memmem (License): Likewise.
99562         * modules/mempcpy (License): Likewise.
99563         * modules/memset (License): Likewise.
99564         * modules/minmax (License): Likewise.
99565         * modules/mktime (License): Likewise.
99566         * modules/netinet_in (License): Likewise.
99567         * modules/pathmax (License): Likewise.
99568         * modules/poll (License): Likewise.
99569         * modules/regex (License): Likewise.
99570         * modules/snprintf (License): Likewise.
99571         * modules/stdbool (License): Likewise.
99572         * modules/stdint (License): Likewise.
99573         * modules/stdio (License): Likewise.
99574         * modules/strcase (License): Likewise.
99575         * modules/strcasestr (License): Likewise.
99576         * modules/strdup (License): Likewise.
99577         * modules/string (License): Likewise.
99578         * modules/strndup (License): Likewise.
99579         * modules/strnlen (License): Likewise.
99580         * modules/strpbrk (License): Likewise.
99581         * modules/strptime (License): Likewise.
99582         * modules/strsep (License): Likewise.
99583         * modules/sys_select (License): Likewise.
99584         * modules/sys_socket (License): Likewise.
99585         * modules/sys_stat (License): Likewise.
99586         * modules/sys_time (License): Likewise.
99587         * modules/time (License): Likewise.
99588         * modules/time_r (License): Likewise.
99589         * modules/timegm (License): Likewise.
99590         * modules/unistd (License): Likewise.
99591         * modules/vsnprintf (License): Likewise.
99592         * modules/wctype (License): Likewise.
99594 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99596         * modules/argz (License): LGPLv2+.
99598 2007-07-15  Karl Berry  <karl@gnu.org>
99600         * doc/gnulib.texi: revise node structure per new fdl.texi.
99602 2007-07-14  Bruno Haible  <bruno@clisp.org>
99604         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99605         the output file.
99606         * lib/uniname/uninames.h: Regenerated.
99608 2007-07-14  Karl Berry  <karl@gnu.org>
99610         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99611         omitting sectioning and index commands.
99613 2007-07-13  Bruno Haible  <bruno@clisp.org>
99615         New gnulib-tool option --more-symlinks.
99616         * gnulib-tool (func_usage): Document --more-symlinks.
99617         (do_copyrights): New variable.
99618         Recognize option --more-symlinks.
99619         (func_import): Don't add a copyright notice transform to
99620         sed_transform_lib_file if do_copyrights is empty.
99622 2007-07-13  Bruno Haible  <bruno@clisp.org>
99624         * lib/vasnprintf.c (decimal_point_char): Define also if
99625         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99626         && !NEED_PRINTF_DIRECTIVE_A.
99627         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99628         Gary V. Vaughan <gary@gnu.org>.
99630 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99632         * lib/inttypes_.h: Undo previous change, since it was fixed
99633         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99635 2007-07-13  Bruno Haible  <bruno@clisp.org>
99637         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99638         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99640 2007-07-13  Jim Meyering  <jim@meyering.net>
99642         df: Don't fail for Tru64's "file-on-file mount".
99643         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99644         so we fall through and use statfs instead.  Details here:
99645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99646         Reported by Albert Chin.
99648 2007-07-13  Bruno Haible  <bruno@clisp.org>
99650         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99651         * modules/configmake (License): Likewise.
99652         * modules/gettext (License): Likewise.
99653         * modules/gettext-h (License): Likewise.
99654         * modules/include_next (License): Likewise.
99655         * modules/link-warning (License): Likewise.
99656         * modules/localcharset (License): Likewise.
99657         * modules/localename (License): Likewise.
99658         * modules/lock (License): Likewise.
99659         * modules/relocatable-lib-lgpl (License): Likewise.
99660         * modules/size_max (License): Likewise.
99661         * modules/vasnprintf (License): Likewise.
99662         * modules/wchar (License): Likewise.
99663         * modules/xsize (License): Likewise.
99665 2007-07-13  Bruno Haible  <bruno@clisp.org>
99667         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99668         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99670 2007-07-12  Bruno Haible  <bruno@clisp.org>
99672         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99673         in the modules files.
99675 2007-07-11  Karl Berry  <karl@gnu.org>
99677         * MODULES.html.sh (func_module): use
99678          sed -e '\|^'"${includefile}"'$|d'
99679          instead of /.../d, to avoid errors on $includefile's containing /.
99681 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99683         * gnulib-tool (func_import): Avoid duplication of --avoid
99684         statements
99685         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99686         names to `_' in variable names.
99688 2007-07-10  Eric Blake  <ebb9@byu.net>
99690         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99691         * NEWS: Document this change.
99693 2007-07-08  Bruno Haible  <bruno@clisp.org>
99695         Update to Unicode 5.0.
99696         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99697         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99698         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99699         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99700         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99701         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99702         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99703         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99704         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99705         U+10A3F, U+1D242..U+1D244.
99706         (nonspacing_table_ind): Update.
99707         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99708         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99710 2007-07-08  Bruno Haible  <bruno@clisp.org>
99712         Update to Unicode 5.0.
99713         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99714         code transform. Extend the name index field of unicode_name_to_code and
99715         unicode_code_to_name from 16 to 24 bits.
99716         * lib/uniname/uniname.c (unicode_character_name,
99717         unicode_name_character): Add the range 0x12xxx to the code transform.
99718         * lib/uniname/uninames.h: Regenerated.
99719         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99721 2007-07-07  Bruno Haible  <bruno@clisp.org>
99723         * modules/wcwidth-tests: New file.
99724         * tests/test-wcwidth.c: New file.
99726         Work around MacOS X wcwidth() bug.
99727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99728         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99729         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99730         original wcwidth in non-UTF-8 locales.
99731         * modules/wcwidth (Depends-on): Add localcharset, streq,
99732         uniwidth/width.
99733         * doc/functions/wcwidth.texi: Update.
99735 2007-07-07  Bruno Haible  <bruno@clisp.org>
99737         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99738         (wcwidth): New declaration.
99739         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99740         macros.
99741         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99742         here. Prepare for creating <wchar.h> unconditionally.
99743         * modules/wchar (Depends-on): Add link-warning.
99744         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99745         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99746         * lib/wcwidth.h: Remove file.
99747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99748         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99749         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99750         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99751         (Include): Replace wcwidth.h with <wchar.h>.
99752         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99753         * lib/mbchar.h: Don't include wcwidth.h.
99754         * lib/mbswidth.c: Likewise.
99755         * NEWS: Mention the change.
99757 2007-07-07  Bruno Haible  <bruno@clisp.org>
99759         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99760         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99761         definition with an external declaration.
99762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99763         defined as a function. Remove AC_C_INLINE requirement.
99764         * modules/wcwidth (Files): Add lib/wcwidth.c.
99765         (Makefile.am): Remove redundant statement.
99767 2007-07-07  Bruno Haible  <bruno@clisp.org>
99769         * MODULES.html.sh (Unicode string functions): Add the new modules.
99771         * tests/uniwidth/test-u32-strwidth.c: New file.
99772         * modules/uniwidth/u32-strwidth-tests: New file.
99774         * lib/uniwidth/u32-strwidth.c: New file.
99775         * modules/uniwidth/u32-strwidth: New file.
99777         * tests/uniwidth/test-u16-strwidth.c: New file.
99778         * modules/uniwidth/u16-strwidth-tests: New file.
99780         * lib/uniwidth/u16-strwidth.c: New file.
99781         * modules/uniwidth/u16-strwidth: New file.
99783         * tests/uniwidth/test-u8-strwidth.c: New file.
99784         * modules/uniwidth/u8-strwidth-tests: New file.
99786         * lib/uniwidth/u8-strwidth.c: New file.
99787         * modules/uniwidth/u8-strwidth: New file.
99789         * tests/uniwidth/test-u32-width.c: New file.
99790         * modules/uniwidth/u32-width-tests: New file.
99792         * lib/uniwidth/u32-width.c: New file.
99793         * modules/uniwidth/u32-width: New file.
99795         * tests/uniwidth/test-u16-width.c: New file.
99796         * modules/uniwidth/u16-width-tests: New file.
99798         * lib/uniwidth/u16-width.c: New file.
99799         * modules/uniwidth/u16-width: New file.
99801         * tests/uniwidth/test-u8-width.c: New file.
99802         * modules/uniwidth/u8-width-tests: New file.
99804         * lib/uniwidth/u8-width.c: New file.
99805         * modules/uniwidth/u8-width: New file.
99807         * tests/uniwidth/test-uc_width.c: New file.
99808         * modules/uniwidth/width-tests: New file.
99810         * lib/uniwidth/width.c: New file, from GNU libiconv.
99811         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
99812         * modules/uniwidth/width: New file.
99814         * lib/uniwidth.h: New file, from GNU libiconv.
99815         * modules/uniwidth/base: New file.
99817 2007-07-07  Bruno Haible  <bruno@clisp.org>
99819         * lib/uniname.h: New file, from GNU gettext.
99820         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99821         * lib/uniname/uninames.h: New file, from GNU gettext.
99822         * lib/uniname/uniname.c: New file, from GNU gettext.
99823         * tests/uniname/test-uninames.sh: New file.
99824         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99825         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99826         * modules/uniname/base: New file.
99827         * modules/uniname/uniname: New file.
99828         * modules/uniname/uniname-tests: New file.
99829         * MODULES.html.sh (Unicode string functions): Add the new modules.
99831 2007-07-06  Bruno Haible  <bruno@clisp.org>
99833         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99835 2007-07-06  Bruno Haible  <bruno@clisp.org>
99837         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99838         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99839         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99840         include <sys/time.h>.
99841         Reported by Eric Blake.
99843 2007-07-06  Eric Blake  <ebb9@byu.net>
99845         Fix testing canonicalize on cygwin.
99846         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99847         Revert patch from 2007-06-19.
99848         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99849         canonicalize module is also in use.
99850         * tests/test-canonicalize.c: New file.
99851         * tests/test-canonicalize.sh: Likewise.
99852         * modules/canonicalize-tests: Likewise.
99854 2007-07-06  Jim Meyering  <jim@meyering.net>
99856         * lib/getugroups.c (getugroups): Detect getgrent failure.
99857         Adjust comment to reflect reality: this function may return -1.
99859 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99861         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99862         the new TP address.
99863         (usage): Fix typo
99864         (gnulib_mk): New variable.
99866 2007-07-05  Jim Meyering  <jim@meyering.net>
99868         Don't let endgrent clobber errno, no matter how improbable.
99869         * lib/getugroups.c (getugroups): Save and restore errno around
99870         endgrent call.
99872         Close the group DB even when failing with 2^31 or more members.
99873         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99875 2007-07-04  Jim Meyering  <jim@meyering.net>
99877         * lib/getugroups.h: New file.
99878         * lib/getugroups.c: Include "getugroups.h".
99879         Remove uses of "register" keyword.
99880         Move local variable, "cp", down into scope where used.
99881         Give "username" parameter the "const" attribute.
99882         * modules/getugroups (Files): Add lib/getugroups.h
99884 2007-07-04  Karl Berry  <karl@gnu.org>
99886         * MODULES.html.sh (func_all_modules): Complete rename of
99887         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99889 2007-07-02  Bruno Haible  <bruno@clisp.org>
99891         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99892         mode, when inttypes.h comes from gnulib.
99893         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99895 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99897         * NEWS: Mention lgpl module name change.
99899         * modules/lgpl-2.1: Renamed from lgpl.
99901         * NEWS: Mention gpl module name change.
99903         * modules/gpl-3.0: New file, based on gpl-2.0.
99905         * modules/gpl-2.0: Renamed from gpl.
99907         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99908         doc/gpl-2.0.texi.
99910 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99912         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99913         #define __STDC_LIMIT_MACROS temporarily while including
99914         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99915         Problem reported by Joel E. Denny in
99916         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99918 2007-07-01  Bruno Haible  <bruno@clisp.org>
99920         * lib/unistdio.h: New file.
99921         * lib/unistdio/u-asnprintf.h: New file.
99922         * lib/unistdio/u-asprintf.h: New file.
99923         * lib/unistdio/u-printf-args.c: New file.
99924         * lib/unistdio/u-printf-args.h: New file.
99925         * lib/unistdio/u-printf-parse.h: New file.
99926         * lib/unistdio/u-snprintf.h: New file.
99927         * lib/unistdio/u-sprintf.h: New file.
99928         * lib/unistdio/u-vasprintf.h: New file.
99929         * lib/unistdio/u-vsnprintf.h: New file.
99930         * lib/unistdio/u-vsprintf.h: New file.
99931         * lib/unistdio/ulc-asnprintf.c: New file.
99932         * lib/unistdio/ulc-asprintf.c: New file.
99933         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99934         * lib/unistdio/ulc-printf-parse.c: New file.
99935         * lib/unistdio/ulc-snprintf.c: New file.
99936         * lib/unistdio/ulc-sprintf.c: New file.
99937         * lib/unistdio/ulc-vasnprintf.c: New file.
99938         * lib/unistdio/ulc-vasprintf.c: New file.
99939         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99940         * lib/unistdio/ulc-vsnprintf.c: New file.
99941         * lib/unistdio/ulc-vsprintf.c: New file.
99942         * lib/unistdio/u8-asnprintf.c: New file.
99943         * lib/unistdio/u8-asprintf.c: New file.
99944         * lib/unistdio/u8-printf-parse.c: New file.
99945         * lib/unistdio/u8-snprintf.c: New file.
99946         * lib/unistdio/u8-sprintf.c: New file.
99947         * lib/unistdio/u8-vasnprintf.c: New file.
99948         * lib/unistdio/u8-vasprintf.c: New file.
99949         * lib/unistdio/u8-vsnprintf.c: New file.
99950         * lib/unistdio/u8-vsprintf.c: New file.
99951         * lib/unistdio/u8-u8-asnprintf.c: New file.
99952         * lib/unistdio/u8-u8-asprintf.c: New file.
99953         * lib/unistdio/u8-u8-snprintf.c: New file.
99954         * lib/unistdio/u8-u8-sprintf.c: New file.
99955         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99956         * lib/unistdio/u8-u8-vasprintf.c: New file.
99957         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99958         * lib/unistdio/u8-u8-vsprintf.c: New file.
99959         * lib/unistdio/u16-asnprintf.c: New file.
99960         * lib/unistdio/u16-asprintf.c: New file.
99961         * lib/unistdio/u16-printf-parse.c: New file.
99962         * lib/unistdio/u16-snprintf.c: New file.
99963         * lib/unistdio/u16-sprintf.c: New file.
99964         * lib/unistdio/u16-vasnprintf.c: New file.
99965         * lib/unistdio/u16-vasprintf.c: New file.
99966         * lib/unistdio/u16-vsnprintf.c: New file.
99967         * lib/unistdio/u16-vsprintf.c: New file.
99968         * lib/unistdio/u16-u16-asnprintf.c: New file.
99969         * lib/unistdio/u16-u16-asprintf.c: New file.
99970         * lib/unistdio/u16-u16-snprintf.c: New file.
99971         * lib/unistdio/u16-u16-sprintf.c: New file.
99972         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99973         * lib/unistdio/u16-u16-vasprintf.c: New file.
99974         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99975         * lib/unistdio/u16-u16-vsprintf.c: New file.
99976         * lib/unistdio/u32-asnprintf.c: New file.
99977         * lib/unistdio/u32-asprintf.c: New file.
99978         * lib/unistdio/u32-printf-parse.c: New file.
99979         * lib/unistdio/u32-snprintf.c: New file.
99980         * lib/unistdio/u32-sprintf.c: New file.
99981         * lib/unistdio/u32-vasnprintf.c: New file.
99982         * lib/unistdio/u32-vasprintf.c: New file.
99983         * lib/unistdio/u32-vsnprintf.c: New file.
99984         * lib/unistdio/u32-vsprintf.c: New file.
99985         * lib/unistdio/u32-u32-asnprintf.c: New file.
99986         * lib/unistdio/u32-u32-asprintf.c: New file.
99987         * lib/unistdio/u32-u32-snprintf.c: New file.
99988         * lib/unistdio/u32-u32-sprintf.c: New file.
99989         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99990         * lib/unistdio/u32-u32-vasprintf.c: New file.
99991         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99992         * lib/unistdio/u32-u32-vsprintf.c: New file.
99993         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99994         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99995         * tests/unistdio/test-ulc-printf1.h: New file.
99996         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99997         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99998         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99999         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
100000         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
100001         * tests/unistdio/test-ulc-vasprintf1.c: New file.
100002         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
100003         * tests/unistdio/test-ulc-vsprintf1.c: New file.
100004         * tests/unistdio/test-u8-asnprintf1.c: New file.
100005         * tests/unistdio/test-u8-asnprintf1.h: New file.
100006         * tests/unistdio/test-u8-printf1.h: New file.
100007         * tests/unistdio/test-u8-vasnprintf1.c: New file.
100008         * tests/unistdio/test-u8-vasnprintf2.c: New file.
100009         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
100010         * tests/unistdio/test-u8-vasnprintf3.c: New file.
100011         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
100012         * tests/unistdio/test-u8-vasprintf1.c: New file.
100013         * tests/unistdio/test-u8-vsnprintf1.c: New file.
100014         * tests/unistdio/test-u8-vsprintf1.c: New file.
100015         * tests/unistdio/test-u16-asnprintf1.c: New file.
100016         * tests/unistdio/test-u16-asnprintf1.h: New file.
100017         * tests/unistdio/test-u16-printf1.h: New file.
100018         * tests/unistdio/test-u16-vasnprintf1.c: New file.
100019         * tests/unistdio/test-u16-vasnprintf2.c: New file.
100020         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
100021         * tests/unistdio/test-u16-vasnprintf3.c: New file.
100022         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
100023         * tests/unistdio/test-u16-vasprintf1.c: New file.
100024         * tests/unistdio/test-u16-vsnprintf1.c: New file.
100025         * tests/unistdio/test-u16-vsprintf1.c: New file.
100026         * tests/unistdio/test-u32-asnprintf1.c: New file.
100027         * tests/unistdio/test-u32-asnprintf1.h: New file.
100028         * tests/unistdio/test-u32-printf1.h: New file.
100029         * tests/unistdio/test-u32-vasnprintf1.c: New file.
100030         * tests/unistdio/test-u32-vasnprintf2.c: New file.
100031         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
100032         * tests/unistdio/test-u32-vasnprintf3.c: New file.
100033         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
100034         * tests/unistdio/test-u32-vasprintf1.c: New file.
100035         * tests/unistdio/test-u32-vsnprintf1.c: New file.
100036         * tests/unistdio/test-u32-vsprintf1.c: New file.
100037         * modules/unistdio/base: New file.
100038         * modules/unistdio/u-printf-args: New file.
100039         * modules/unistdio/ulc-asnprintf: New file.
100040         * modules/unistdio/ulc-asprintf: New file.
100041         * modules/unistdio/ulc-fprintf: New file.
100042         * modules/unistdio/ulc-printf-parse: New file.
100043         * modules/unistdio/ulc-snprintf: New file.
100044         * modules/unistdio/ulc-sprintf: New file.
100045         * modules/unistdio/ulc-vasnprintf: New file.
100046         * modules/unistdio/ulc-vasprintf: New file.
100047         * modules/unistdio/ulc-vfprintf: New file.
100048         * modules/unistdio/ulc-vsnprintf: New file.
100049         * modules/unistdio/ulc-vsprintf: New file.
100050         * modules/unistdio/u8-asnprintf: New file.
100051         * modules/unistdio/u8-asprintf: New file.
100052         * modules/unistdio/u8-printf-parse: New file.
100053         * modules/unistdio/u8-snprintf: New file.
100054         * modules/unistdio/u8-sprintf: New file.
100055         * modules/unistdio/u8-vasnprintf: New file.
100056         * modules/unistdio/u8-vasprintf: New file.
100057         * modules/unistdio/u8-vsnprintf: New file.
100058         * modules/unistdio/u8-vsprintf: New file.
100059         * modules/unistdio/u8-u8-asnprintf: New file.
100060         * modules/unistdio/u8-u8-asprintf: New file.
100061         * modules/unistdio/u8-u8-snprintf: New file.
100062         * modules/unistdio/u8-u8-sprintf: New file.
100063         * modules/unistdio/u8-u8-vasnprintf: New file.
100064         * modules/unistdio/u8-u8-vasprintf: New file.
100065         * modules/unistdio/u8-u8-vsnprintf: New file.
100066         * modules/unistdio/u8-u8-vsprintf: New file.
100067         * modules/unistdio/u16-asnprintf: New file.
100068         * modules/unistdio/u16-asprintf: New file.
100069         * modules/unistdio/u16-printf-parse: New file.
100070         * modules/unistdio/u16-snprintf: New file.
100071         * modules/unistdio/u16-sprintf: New file.
100072         * modules/unistdio/u16-vasnprintf: New file.
100073         * modules/unistdio/u16-vasprintf: New file.
100074         * modules/unistdio/u16-vsnprintf: New file.
100075         * modules/unistdio/u16-vsprintf: New file.
100076         * modules/unistdio/u16-u16-asnprintf: New file.
100077         * modules/unistdio/u16-u16-asprintf: New file.
100078         * modules/unistdio/u16-u16-snprintf: New file.
100079         * modules/unistdio/u16-u16-sprintf: New file.
100080         * modules/unistdio/u16-u16-vasnprintf: New file.
100081         * modules/unistdio/u16-u16-vasprintf: New file.
100082         * modules/unistdio/u16-u16-vsnprintf: New file.
100083         * modules/unistdio/u16-u16-vsprintf: New file.
100084         * modules/unistdio/u32-asnprintf: New file.
100085         * modules/unistdio/u32-asprintf: New file.
100086         * modules/unistdio/u32-printf-parse: New file.
100087         * modules/unistdio/u32-snprintf: New file.
100088         * modules/unistdio/u32-sprintf: New file.
100089         * modules/unistdio/u32-vasnprintf: New file.
100090         * modules/unistdio/u32-vasprintf: New file.
100091         * modules/unistdio/u32-vsnprintf: New file.
100092         * modules/unistdio/u32-vsprintf: New file.
100093         * modules/unistdio/u32-u32-asnprintf: New file.
100094         * modules/unistdio/u32-u32-asprintf: New file.
100095         * modules/unistdio/u32-u32-snprintf: New file.
100096         * modules/unistdio/u32-u32-sprintf: New file.
100097         * modules/unistdio/u32-u32-vasnprintf: New file.
100098         * modules/unistdio/u32-u32-vasprintf: New file.
100099         * modules/unistdio/u32-u32-vsnprintf: New file.
100100         * modules/unistdio/u32-u32-vsprintf: New file.
100101         * modules/unistdio/ulc-asnprintf-tests: New file.
100102         * modules/unistdio/ulc-vasnprintf-tests: New file.
100103         * modules/unistdio/ulc-vasprintf-tests: New file.
100104         * modules/unistdio/ulc-vsnprintf-tests: New file.
100105         * modules/unistdio/ulc-vsprintf-tests: New file.
100106         * modules/unistdio/u8-asnprintf-tests: New file.
100107         * modules/unistdio/u8-vasnprintf-tests: New file.
100108         * modules/unistdio/u8-vasprintf-tests: New file.
100109         * modules/unistdio/u8-vsnprintf-tests: New file.
100110         * modules/unistdio/u8-vsprintf-tests: New file.
100111         * modules/unistdio/u16-asnprintf-tests: New file.
100112         * modules/unistdio/u16-vasnprintf-tests: New file.
100113         * modules/unistdio/u16-vasprintf-tests: New file.
100114         * modules/unistdio/u16-vsnprintf-tests: New file.
100115         * modules/unistdio/u16-vsprintf-tests: New file.
100116         * modules/unistdio/u32-asnprintf-tests: New file.
100117         * modules/unistdio/u32-vasnprintf-tests: New file.
100118         * modules/unistdio/u32-vasprintf-tests: New file.
100119         * modules/unistdio/u32-vsnprintf-tests: New file.
100120         * modules/unistdio/u32-vsprintf-tests: New file.
100121         * MODULES.html.sh (Unicode string functions): Add the new modules.
100123 2007-07-01  Bruno Haible  <bruno@clisp.org>
100125         * lib/sprintf.c (sprintf): Limit the available length estimation,
100126         to avoid address wraparound.
100127         * lib/vsprintf.c (vsprintf): Likewise.
100128         * modules/sprintf-posix (Dependencies): Add stdint.
100129         * modules/vsprintf-posix (Dependencies): Likewise.
100131 2007-07-01  Bruno Haible  <bruno@clisp.org>
100133         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
100134         Windows PATH as well. Conservative double-quoting. Comments.
100136 2007-07-01  Bruno Haible  <bruno@clisp.org>
100137             Eric Blake  <ebb9@byu.net>
100138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100140         * gnulib-tool (self_abspathname): Fix algorithm to cope with
100141         empty components in $PATH, denoting '.'.
100143 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100145         * gnulib-tool: Fix indentation.
100146         (func_create_megatestdir): Likewise.
100147         Report by Bruno Haible.
100149 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100151         Sync from Automake.
100152         * build-aux/gnupload: Fix shell portability issues with for loops.
100153         Report by Karl Berry.
100155 2007-06-29  Simon Josefsson  <simon@josefsson.org>
100157         * build-aux/maint.mk (POURL): Use translationproject.org.
100159 2007-06-27  Simon Josefsson  <simon@josefsson.org>
100160             Bruno Haible  <bruno@clisp.org>
100162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
100163         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
100164         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
100165         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
100166         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
100168 2007-06-27  Bruno Haible  <bruno@clisp.org>
100170         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
100171         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
100173 2007-06-26  Karl Berry  <karl@gnu.org>
100175         * MODULES.html.sh: remove xreadlink-with-size.
100177 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100179         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
100180         method that I hope also handles the double-include problem noted
100181         by Bruno Haible in
100182         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
100184 2007-06-23  Bruno Haible  <bruno@clisp.org>
100186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100187         Don't let the 'mostlyclean' target fail if the last subdirectory could
100188         not be removed.
100189         Reported by Karl Berry.
100191 2007-06-23  Bruno Haible  <bruno@clisp.org>
100193         * gnulib-tool (echo): Add a speedier workaround for ksh.
100194         * tests/test-echo.sh: Likewise.
100196 2007-06-23  Bruno Haible  <bruno@clisp.org>
100198         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
100199         * tests/test-echo.sh: Likewise.
100201 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100203         * gnulib-tool (IFS): Initialize early, so we don't set it to
100204         empty later.
100205         (self_abspathname): Rewrite algorithm to set it, reindent.
100206         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
100207         (func_create_megatestdir): Merge some sed scripts.
100209 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100211         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
100212         exposed by Sun Studio 11 cc on Solaris 8.
100214 2007-06-22  Bruno Haible  <bruno@clisp.org>
100216         * gnulib-tool (echo): Ensure the echo primitive does not interpret
100217         backslashes.
100218         * tests/test-echo.sh: New file.
100220 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100222         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
100223         simplify `sed_replace_build_aux' scripts, they are portable but
100224         echoing them with `echo' is not.
100225         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
100227 2007-06-21  Karl Berry  <karl@gnu.org>
100229         * config/srclist.txt: guess we can't handle the licenses via
100230         srclist at the moment.
100232 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100234         * MODULES.html.sh: Add include_next.
100235         * modules/include_next: New file.
100237 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100239         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
100240         INCLUDE_NEXT.
100241         (gl_CHECK_NEXT_HEADERS): New macro.
100242         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
100243         the obsolescent gl_ABSOLUTE_HEADER.
100244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
100245         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
100246         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
100247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
100248         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
100249         * m4/math_h.m4 (gl_MATH_H): Likewise.
100250         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
100251         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
100252         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
100253         * m4/stdint.m4 (gl_STDINT_H): Likewise.
100254         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
100255         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
100256         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
100257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
100258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
100259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
100260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
100261         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
100262         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
100263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
100264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
100265         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100266         * m4/inttypes.m4 (gl_INTTYPES_H): Define
100267         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
100268         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
100269         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
100270         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
100271         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
100272         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
100273         * lib/float_.h: Likewise.
100274         * lib/inttypes_.h: Likewise.
100275         * lib/math_.h: Likewise.
100276         * lib/search_.h: Likewise.
100277         * lib/signal_.h: Likewise.
100278         * lib/stdint_.h: Likewise.
100279         * lib/stdio_.h: Likewise.
100280         * lib/stdlib_.h: Likewise.
100281         * lib/string_.h: Likewise.
100282         * lib/sys_stat_.h: Likewise.
100283         * lib/sys_time_.h: Likewise.
100284         * lib/time_.h: Likewise.
100285         * lib/unistd_.h: Likewise.
100286         * lib/wchar_.h: Likewise.
100287         * lib/wctype_.h: Likewise.
100288         * lib/dirent_.h: Likewise.
100289         * lib/iconv_.h: Likewise.
100290         * lib/locale_.h: Likewise.
100291         * lib/netinet_in_.h: Likewise.
100292         * lib/sys_select_.h: Likewise.
100293         * lib/sys_socket_.h: Likewise.
100294         * lib/sysexits_.h: Likewise.
100295         * modules/fcntl (Depends-on): Depend on include_next, not
100296         absolute_header.
100297         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
100298         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
100299         * modules/fchdir: Likewise.
100300         * modules/float: Likewise.
100301         * modules/iconv_open: Likewise.
100302         * modules/inttypes: Likewise.
100303         * modules/locale: Likewise.
100304         * modules/math: Likewise.
100305         * modules/netinet_in: Likewise.
100306         * modules/search: Likewise.
100307         * modules/signal: Likewise.
100308         * modules/stdint: Likewise.
100309         * modules/stdio: Likewise.
100310         * modules/stdlib: Likewise.
100311         * modules/string: Likewise.
100312         * modules/sys_select: Likewise.
100313         * modules/sys_socket: Likewise.
100314         * modules/sys_stat: Likewise.
100315         * modules/sys_time: Likewise.
100316         * modules/sysexits: Likewise.
100317         * modules/time: Likewise.
100318         * modules/unistd: Likewise.
100319         * modules/wchar: Likewise.
100320         * modules/wctype: Likewise.
100321         * modules/sys_stat: Change maintainer to "all".
100322         * modules/unistd: Likewise.
100324 2007-06-20  Karl Berry  <karl@gnu.org>
100326         * config/srclist.txt: track www changes in license files.
100328 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
100330         * build-aux/bootstrap: Remove stray dot.
100331         Make sure build_aux settings are honored when linking
100332         gnulib_extra_files.
100334 2007-06-19  Eric Blake  <ebb9@byu.net>
100336         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100337         Allow compilation on cygwin.
100339 2007-06-19  Jim Meyering  <jim@meyering.net>
100341         xreadlink-with-size: Remove module.  No longer used.
100342         Ex-callers now use xreadlink or mreadlink-with-size.
100343         * modules/xreadlink-with-size: Remove module.
100344         * lib/xreadlink-with-size.c: Remove file.
100345         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
100346         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
100347         just before the function definition *is* accurate.
100349         Eliminate one way canonicalize_filename_mode could exit.
100350         * lib/canonicalize.c (canonicalize_filename_mode):
100351         Use mreadlink_with_size, not xreadlink_with_size.
100353 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
100355         Detect porting problems to FreeBSD/arm, which has time_t wider than
100356         long int.  Original problem reported for GNU diff by Xin Li in
100357         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
100358         * modules/getdate (Depends-on): Add intprops, verify.
100359         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
100360         is an integer type no wider than long int.
100362 2007-06-18  Jim Meyering  <jim@meyering.net>
100364         New module: mreadlink-with-size.
100365         * MODULES.html.sh: Add mreadlink-with-size.
100366         * modules/mreadlink-with-size: New module
100367         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
100368         not xreadlink-with-size.
100369         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
100371 2007-06-16  Bruno Haible  <bruno@clisp.org>
100373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
100374         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
100375         Reported by Gary V. Vaughan <gary@gnu.org>.
100377 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
100379         Revamp lchown so that it lives in unistd.h where it belongs.
100380         * lib/lchown.h: Remove.
100381         * lib/dirchownmod.c: Don't include lib/lchown.h.
100382         * lib/fchownat.c: Likewise.
100383         * lib/openat.c: Likewise.
100384         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100385         does not follow symlinks.
100386         (EOPNOTSUPP): Define if not defined.
100387         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100388         is defined to 0.
100389         (lchown): New decl.
100390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100391         Do not check for lchown decl.
100392         Set REPLACE_LCHOWN.
100393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100394         REPLACE_LCHOWN.
100395         * modules/chown: Make it clear it follows symlinks.
100396         * modules/lchown: Make it clear it doesn't follow symlinks.
100397         (Files): Remove lib/lchown.h
100398         (Depends-on): Add unistd.
100399         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100400         (Include): Include <unistd.h>, not "lchown.h".
100401         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100402         REPLACE_LCHOWN.
100404 2007-06-15  Jim Meyering  <jim@meyering.net>
100406         Change license (GPL to LGPL) of fsusage and dependents.
100407         * modules/fsusage (License): Change to LGPL.
100408         * modules/full-read (License): Likewise.
100409         * modules/full-write (License): Likewise.
100410         * modules/safe-read (License): Likewise.
100411         * modules/safe-write (License): Likewise.
100413 2007-06-14  Ben Pfaff  <blp@gnu.org>
100415         Missing part of allocsa -> malloca transition.
100416         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100417         gl_MALLOCA.
100419 2007-06-12  Bruno Haible  <bruno@clisp.org>
100421         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100422         to ia64, x86_64, i386.
100423         Reported by Eric Blake.
100425 2007-06-12  Bruno Haible  <bruno@clisp.org>
100427         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100428         cross-compiling to x86_64.
100430 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100433         glitch reported by Ralf Wildenhues in
100434         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100436         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100437         Vin Shelton.
100439 2007-06-11  Bruno Haible  <bruno@clisp.org>
100441         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100442         replacement string.
100443         Reported by Eric Blake.
100445 2007-06-10  Bruno Haible  <bruno@clisp.org>
100447         Prepare vasnprintf code for use with Unicode strings.
100448         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100449         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100450         TYPE_U32_STRING.
100451         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100452         a_u32_string variants.
100453         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100454         * lib/printf-args.c: Don't include config.h and the specification
100455         header if PRINTF_FETCHARGS is already defined.
100456         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100457         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100458         TYPE_U16_STRING, TYPE_U32_STRING.
100459         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100460         u16_directive, u16_directives, u32_directive, u32_directives): New
100461         types.
100462         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100463         New declarations.
100464         * lib/printf-parse.c: Don't include config.h and the specification
100465         header if PRINTF_PARSE is already defined. Eliminate the set of
100466         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100467         them now. Include c-ctype.h.
100468         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100469         directive and CHAR_T_ONLY_ASCII.
100470         * lib/vasnprintf.c: Don't include config.h and the specification header
100471         if VASNPRINTF is already defined.
100472         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100473         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100474         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100475         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100476         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100477         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100478         code accordingly.
100479         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100480         pad_ourselves also in this case, with the 'c' and 's' directives, and
100481         with a different notion of "width".
100482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100484 2007-06-10  Bruno Haible  <bruno@clisp.org>
100486         * modules/unistr/u32-mbsnlen: New file.
100487         * lib/unistr/u32-mbsnlen.c: New file.
100489         * modules/unistr/u16-mbsnlen: New file.
100490         * lib/unistr/u16-mbsnlen.c: New file.
100492         * modules/unistr/u8-mbsnlen: New file.
100493         * lib/unistr/u8-mbsnlen.c: New file.
100495         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100496         declarations.
100498 2007-06-10  Bruno Haible  <bruno@clisp.org>
100500         * lib/string_.h (mbsnlen): New declaration.
100501         * lib/mbsnlen.c: New file.
100502         * m4/mbsnlen.m4: New file.
100503         * modules/mbsnlen: New file.
100504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100505         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100506         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100508 2007-06-10  Bruno Haible  <bruno@clisp.org>
100510         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100512 2007-06-10  Bruno Haible  <bruno@clisp.org>
100514         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100515         * lib/mbuiter.h: Likewise.
100517 2007-06-10  Bruno Haible  <bruno@clisp.org>
100519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100520         declaration.
100522 2007-06-10  Karl Berry  <karl@gnu.org>
100524         * config/srclist.txt: remove gettext entries, Bruno prefers
100525         to update individually.
100527 2007-06-10  Bruno Haible  <bruno@clisp.org>
100529         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100530         'maxlen'. Ensure only length + width bytes are allocated, not
100531         length + 1 + width.
100533 2007-06-09  Bruno Haible  <bruno@clisp.org>
100535         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100536         (CHAR_T): Remove macro.
100537         (VASNPRINTF): Update.
100539 2007-06-09  Bruno Haible  <bruno@clisp.org>
100541         * MODULES.html.sh (Unicode string functions): Add the new modules.
100543         * modules/uniconv/u32-conv-to-enc: New file.
100544         * lib/uniconv/u32-conv-to-enc.c: New file.
100545         * modules/uniconv/u32-conv-to-enc-tests: New file.
100546         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100548         * modules/uniconv/u16-conv-to-enc: New file.
100549         * lib/uniconv/u16-conv-to-enc.c: New file.
100550         * lib/uniconv/u-conv-to-enc.h: New file.
100551         * modules/uniconv/u16-conv-to-enc-tests: New file.
100552         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100554         * modules/uniconv/u8-conv-to-enc: New file.
100555         * lib/uniconv/u8-conv-to-enc.c: New file.
100556         * modules/uniconv/u8-conv-to-enc-tests: New file.
100557         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100559         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100560         u32_conv_to_encoding): New declarations.
100562 2007-06-09  Bruno Haible  <bruno@clisp.org>
100564         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100566 2007-06-09  Bruno Haible  <bruno@clisp.org>
100568         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100569         * modules/malloca: Renamed from modules/allocsa, updated.
100570         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100571         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100572         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100573         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100574         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100575         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100576         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100577         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100578         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100579         * modules/c-strcasestr (Depends-on): Update.
100580         * lib/c-strcasestr.c: Update.
100581         * modules/c-strstr (Depends-on): Update.
100582         * lib/c-strstr.c: Update.
100583         * modules/canonicalize-lgpl (Depends-on): Update.
100584         * lib/canonicalize-lgpl.c: Update.
100585         * modules/clean-temp (Depends-on): Update.
100586         * lib/clean-temp.c: Update.
100587         * modules/csharpcomp (Depends-on): Update.
100588         * lib/csharpcomp.c: Update.
100589         * modules/csharpexec (Depends-on): Update.
100590         * lib/csharpexec.c: Update.
100591         * modules/javacomp (Depends-on): Update.
100592         * lib/javacomp.c: Update.
100593         * modules/javaexec (Depends-on): Update.
100594         * lib/javaexec.c: Update.
100595         * modules/mbscasestr (Depends-on): Update.
100596         * lib/mbscasestr.c: Update.
100597         * modules/mbsstr (Depends-on): Update.
100598         * lib/mbsstr.c: Update.
100599         * modules/setenv (Depends-on): Update.
100600         * lib/setenv.c: Update.
100601         * modules/strcasestr (Depends-on): Update.
100602         * lib/strcasestr.c: Update.
100603         * modules/striconveha (Depends-on): Update.
100604         * lib/striconveha.c: Update.
100605         * modules/relocatable-prog-wrapper (Files): Update.
100606         * lib/relocwrapper.c: Update.
100607         * build-aux/install-reloc: Update.
100608         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100610 2007-06-08  Bruno Haible  <bruno@clisp.org>
100612         Port to uClibc.
100613         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100614         * lib/fpurge.c (fpurge): Likewise.
100615         * lib/freading.c (freading): Likewise.
100616         * lib/fseeko.c (rpl_fseeko): Likewise.
100617         * lib/fseterr.c (fseterr): Likewise.
100618         * lib/fwriting.c (fwriting): Likewise.
100619         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100621 2007-06-08  Bruno Haible  <bruno@clisp.org>
100623         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100624         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100625         * modules/gettext (Files): Add m4/intlmacosx.m4.
100627 2007-06-07  Bruno Haible  <bruno@clisp.org>
100629         * modules/localename-tests: New file.
100630         * tests/test-localename.c: New file.
100632         New module 'localename'.
100633         * lib/localename.h: New file.
100634         * lib/localename.c: New file, from GNU gettext.
100635         * m4/localename.m4: New file.
100636         * modules/localename: New file.
100638 2007-06-07  Bruno Haible  <bruno@clisp.org>
100640         Work around the lack of <wchar.h> on some builds of uClibc.
100641         * doc/headers/wchar.texi: Update.
100642         * lib/wchar_.h: Include <wchar.h> only if it exists.
100643         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100644         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100645         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100646         doesn't exist.
100647         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100648         * modules/mbfile (Depends-on): Add wchar.
100649         * modules/mbiter (Depends-on): Likewise.
100650         * modules/mbuiter (Depends-on): Likewise.
100651         Reported by Simon Josefsson.
100653 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100655         Work around problem reported by Steven M. Schweda in
100656         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100657         Tru64 5.1B with the Compaq compiler environment installed declares
100658         an 'isblank' function but does not define it in the C library.
100659         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100660         * lib/regex_internal.h (isblank): Likewise.
100661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100662         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100664 2007-06-05  Bruno Haible  <bruno@clisp.org>
100666         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100667         ia64.
100668         * modules/printf-safe: New file.
100669         * modules/fprintf-posix (Depends-on): Add printf-safe.
100670         * modules/printf-posix (Depends-on): Likewise.
100671         * modules/snprintf-posix (Depends-on): Likewise.
100672         * modules/sprintf-posix (Depends-on): Likewise.
100673         * modules/vasnprintf-posix (Depends-on): Likewise.
100674         * modules/vasprintf-posix (Depends-on): Likewise.
100675         * modules/vfprintf-posix (Depends-on): Likewise.
100676         * modules/vprintf-posix (Depends-on): Likewise.
100677         * modules/vsnprintf-posix (Depends-on): Likewise.
100678         * modules/vsprintf-posix (Depends-on): Likewise.
100679         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100680         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100681         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100682         "no" on i386, x86_64, ia64.
100683         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100684         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100685         on i386, x86_64, ia64.
100686         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100687         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100688         on i386, x86_64, ia64.
100689         * tests/test-vasnprintf-posix.c: Include float.h.
100690         (LDBL80_WORDS): New macro.
100691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100692         on i386, x86_64, ia64.
100693         * tests/test-vasprintf-posix.c: Include float.h.
100694         (LDBL80_WORDS): New macro.
100695         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100696         on i386, x86_64, ia64.
100697         * tests/test-snprintf-posix.c: Include float.h.
100698         * tests/test-sprintf-posix.c: Likewise.
100699         * tests/test-vsnprintf-posix.c: Likewise.
100700         * tests/test-vsprintf-posix.c: Likewise.
100702 2007-06-05  Bruno Haible  <bruno@clisp.org>
100704         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100705         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100706         non-IEEE numbers on i386, x86_64, ia64.
100707         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100708         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100709         * tests/test-isnanl.h: Include float.h.
100710         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100712 2007-06-05  Bruno Haible  <bruno@clisp.org>
100714         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100715         also the %a / %A. Handle the %a / %A code before this extra handling.
100717 2007-06-05  Bruno Haible  <bruno@clisp.org>
100719         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100720         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100722 2007-06-05  Bruno Haible  <bruno@clisp.org>
100724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100725         typo in variable name.
100727 2007-06-05  Eric Blake  <ebb9@byu.net>
100729         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100730         Reported by Simon Josefsson.
100732 2007-06-04  Bruno Haible  <bruno@clisp.org>
100734         Avoid test failures on some PowerPC platforms.
100735         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100736         Define differently for PowerPC.
100737         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100738         Reported by Gary V. Vaughan <gary@gnu.org>.
100740 2007-06-02  Bruno Haible  <bruno@clisp.org>
100742         Fix test-stdint failure on FreeBSD/ia64.
100743         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100744         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100745         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100746         * doc/headers/stdint.texi: Update.
100748 2007-06-01  Bruno Haible  <bruno@clisp.org>
100750         * tests/test-binary-io.c (main): Pass a third argument to open().
100751         Reported by Gary V. Vaughan <gary@gnu.org>.
100753 2007-06-01  Bruno Haible  <bruno@clisp.org>
100755         * doc/functions/frexpl.texi: Update for mingw.
100757 2007-06-01  Bruno Haible  <bruno@clisp.org>
100759         * tests/test-lseek.c (main): Disable test of errno for invalid third
100760         argument.
100761         * doc/functions/lseek.texi: Update.
100762         Reported by Gary V. Vaughan <gary@gnu.org>.
100764 2007-05-28  Bruno Haible  <bruno@clisp.org>
100766         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100768 2007-05-31  Eric Blake  <ebb9@byu.net>
100770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100771         cross compiling.
100773 2007-05-30  Eric Blake  <ebb9@byu.net>
100774         and Bruno Haible  <bruno@clisp.org>
100776         Work around mingw test failures exposed by m4-1.4.9b.
100777         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100778         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100779         moment.
100781 2007-05-30  Bruno Haible  <bruno@clisp.org>
100783         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100784         assuming that they are closed. Needed on HP-UX 11.
100786 2007-05-29  Bruno Haible  <bruno@clisp.org>
100788         Fix a problem with #include_next.
100789         * lib/dirent_.h: Split the double-inclusion guard.
100790         * lib/fcntl_.h: Likewise.
100791         * lib/float_.h: Likewise.
100792         * lib/iconv_.h: Likewise.
100793         * lib/inttypes_.h: Likewise.
100794         * lib/locale_.h: Likewise.
100795         * lib/math_.h: Likewise.
100796         * lib/netinet_in_.h: Likewise.
100797         * lib/search_.h: Likewise.
100798         * lib/signal_.h: Likewise.
100799         * lib/stdint_.h: Likewise.
100800         * lib/stdio_.h: Likewise.
100801         * lib/stdlib_.h: Likewise.
100802         * lib/string_.h: Likewise.
100803         * lib/sys_select_.h: Likewise.
100804         * lib/sys_socket_.h: Likewise.
100805         * lib/sys_stat_.h: Likewise.
100806         * lib/sys_time_.h: Likewise.
100807         * lib/sysexits_.h: Likewise.
100808         * lib/time_.h: Likewise.
100809         * lib/unistd_.h: Likewise.
100810         * lib/wchar_.h: Likewise.
100811         * lib/wctype_.h: Likewise.
100813 2007-05-29  Bruno Haible  <bruno@clisp.org>
100815         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
100816         for the moment.
100818 2007-05-29  Bruno Haible  <bruno@clisp.org>
100820         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100821         invocation.
100822         Reported by Eric Blake.
100824 2007-05-29  Bruno Haible  <bruno@clisp.org>
100826         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100827         compiling case.
100829 2007-05-29  Eric Blake  <ebb9@byu.net>
100830             Bruno Haible  <bruno@clisp.org>
100832         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100833         cross compiles.
100835 2007-05-28  Eric Blake  <ebb9@byu.net>
100837         * modules/closein-tests (test_closein_LDADD): Support test on
100838         cygwin with libtool.
100840 2007-05-28  Bruno Haible  <bruno@clisp.org>
100842         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100843         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100844         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100845         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100846         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100847         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100848         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100849         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100850         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100852 2007-05-28  Eric Blake  <ebb9@byu.net>
100854         Unconditionally include <config.h> in unit tests.
100855         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100856         * tests/test-allocsa.c, tests/test-arcfour.c,
100857         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100858         tests/test-array_list.c, tests/test-array_oset.c,
100859         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100860         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100861         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100862         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100863         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100864         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100865         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100866         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100867         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100868         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100869         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100870         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100871         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100872         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100873         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100874         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100875         test-md5.c, test-memmem.c, test-printf-posix.c,
100876         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100877         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100878         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100879         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100880         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100881         test-vasnprintf-posix2.c, test-vasnprintf.c,
100882         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100883         test-vfprintf-posix.c, test-vprintf-posix.c,
100884         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100885         test-xvasprintf.c: Likewise.
100887 2007-05-28  Bruno Haible  <bruno@clisp.org>
100889         * gnulib-tool (func_import): Remember the --with-tests command-line
100890         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100891         Reported by Eric Blake.
100893 2007-05-28  Bruno Haible  <bruno@clisp.org>
100895         * modules/ftell-tests: New file.
100896         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100897         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100899         * lib/ftell.c: New file.
100900         * modules/ftell: New file.
100901         * m4/ftell.m4: New file.
100902         * doc/functions/ftell.texi: Update.
100903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100904         REPLACE_FTELL.
100905         * lib/stdio_.h (rpl_ftell): New declaration.
100906         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100907         REPLACE_FTELL.
100909 2007-05-28  Eric Blake  <ebb9@byu.net>
100911         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100913 2007-05-28  Bruno Haible  <bruno@clisp.org>
100915         * modules/fseek-tests: New file.
100916         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100917         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100919         * lib/fseek.c: New file.
100920         * modules/fseek: New file.
100921         * m4/fseek.m4: New file.
100922         * doc/functions/fseek.texi: Update.
100923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100924         REPLACE_FSEEK.
100925         * lib/stdio_.h (rpl_fseek): New declaration.
100926         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100927         REPLACE_FSEEK.
100929 2007-05-28  Bruno Haible  <bruno@clisp.org>
100931         * lib/stdio_.h (fflush): More comments.
100933 2007-05-28  Bruno Haible  <bruno@clisp.org>
100935         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100936         runtime test.
100938 2007-05-28  Eric Blake  <ebb9@byu.net>
100940         Improve lseek module.
100941         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100942         * lib/unistd_.h (lseek): Scale back link warning message.
100943         * tests/test-lseek.c: Beef up test.
100944         * tests/test-lseek.sh: Exercise more facets of lseek.
100945         Reported by Bruno Haible.
100947 2007-05-28  Bruno Haible  <bruno@clisp.org>
100949         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100950         to define.
100952 2007-05-27  Bruno Haible  <bruno@clisp.org>
100954         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100956 2007-05-27  Bruno Haible  <bruno@clisp.org>
100958         * modules/openmp: New file.
100959         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100960         Noah Misch.
100962 2007-05-26  Bruno Haible  <bruno@clisp.org>
100964         * modules/chdir-long (Depends-on): Add fchdir.
100965         * modules/chdir-safer (Depends-on): Likewise.
100966         * modules/fts (Depends-on): Likewise.
100967         * modules/fts-lgpl (Depends-on): Likewise.
100968         * modules/openat (Depends-on): Likewise.
100969         * modules/savewd (Depends-on): Likewise.
100971 2007-05-24  Eric Blake  <ebb9@byu.net>
100973         Fix lseek on mingw.
100974         * modules/lseek: New module.
100975         * m4/lseek.m4: New file.
100976         * lib/lseek.c: New file.
100977         * modules/lseek-tests: New file.
100978         * tests/test-lseek.c: New file.
100979         * tests/test-lseek.sh: New file.
100980         * MODULES.html.sh: Document lseek module.
100981         * modules/fflush (Depends-on): Add lseek, fseeko.
100982         * modules/fseeko (Depends-on): Likewise.
100983         * modules/ftello (Depends-on): Likewise.
100984         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100985         broken.
100986         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100987         broken.
100988         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100989         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100990         * lib/ftello.c (rpl_ftello): Likewise.
100991         * tests/test-fseeko.c (main): Test this.
100992         * tests/test-fseeko.sh: Likewise.
100993         * tests/test-ftello.c (main): Likewise.
100994         * tests/test-ftello.sh: Likewise.
100995         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100996         implies replacing fseek.
100997         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100998         HAVE_FTELLO.
100999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
101000         * modules/unistd (Makefile.am): Likewise.
101001         * lib/unistd_.h (lseek): Declare a replacement.
101002         * doc/functions/lseek.texi (lseek): Document this fix.
101003         * doc/functions/fseek.texi (fseek): Likewise.
101004         * doc/functions/ftell.texi (ftell): Likewise.
101006 2007-05-24  Bruno Haible  <bruno@clisp.org>
101008         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
101009         in the printed representation of a NaN.
101010         * tests/test-vasprintf-posix.c (test_function): Likewise.
101011         * tests/test-snprintf-posix.h (test_function): Likewise.
101012         * tests/test-sprintf-posix.h (test_function): Likewise.
101013         Reported by Eric Blake.
101015 2007-05-23  Eric Blake  <ebb9@byu.net>
101017         Fix fseeko/ftello on cygwin 1.5.24.
101018         * doc/functions/fseeko.texi (fseeko): Document the fix.
101019         * doc/functions/ftello.texi (ftello): Document the fix.
101020         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
101021         * doc/functions/stdout.text (stdout): New file.
101022         * doc/functions/stderr.text (stderr): New file.
101023         * doc/gnulib.texi (Function Substitutes): Use new files.
101024         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
101025         prior to 1.7.0.
101026         * tests/test-ftello.c (main): Likewise for ftello.
101027         * tests/test-fseeko.sh: New file.
101028         * tests/test-ftello.sh: New file.
101029         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
101030         with seekable stdin.
101031         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
101032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
101033         (gl_REPLACE_FSEEKO): New macro.
101034         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
101035         * modules/fseeko (Files): Distribute fseeko.c.
101036         * modules/ftello (Files): Distribute ftello.c.
101037         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
101038         mode.
101039         * lib/ftello.c (rpl_ftello): New file.
101040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
101041         fseeko, ftello.
101042         (gl_STDIN_LARGE_OFFSET): New macro.
101043         * modules/stdio (Makefile.am): Perform the replacement.
101044         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
101046 2007-05-23  Bruno Haible  <bruno@clisp.org>
101048         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
101049         GNULIB_POSIXCHECK is defined.
101051 2007-05-21  Bruno Haible  <bruno@clisp.org>
101053         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
101054         Check also the output for NaN arguments. When cross-compiling, guess
101055         no on IRIX.
101056         * lib/vasnprintf.c: Update comments.
101057         * tests/test-vasnprintf-posix.c (strisnan): New function.
101058         (test_function): Use it.
101059         * tests/test-vasprintf-posix.c (strisnan): New function.
101060         (test_function): Use it.
101061         * tests/test-snprintf-posix.h (strisnan): New function.
101062         (test_function): Use it.
101063         * tests/test-sprintf-posix.h (strisnan): New function.
101064         (test_function): Use it.
101065         Reported by Eric Blake.
101067 2007-05-20  Bruno Haible  <bruno@clisp.org>
101069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
101070         numbers that fails on BeOS.
101071         * doc/functions/frexpl.texi: Update.
101073 2007-05-20  Jim Meyering  <jim@meyering.net>
101075         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
101076         forced upon us by glibc-2.6.
101078 2007-05-20  Bruno Haible  <bruno@clisp.org>
101080         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
101081         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
101082         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
101083         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
101084         NEED_PRINTF_INFINITE.
101085         (is_infinitel): New function.
101086         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
101087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
101088         gl_PREREQ_VASNPRINTF_INFINITE.
101089         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
101090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101091         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
101092         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
101093         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
101094         gl_PREREQ_VASNPRINTF_INFINITE.
101095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101102         * doc/functions/fprintf.texi: Update.
101103         * doc/functions/printf.texi: Update.
101104         * doc/functions/snprintf.texi: Update.
101105         * doc/functions/sprintf.texi: Update.
101106         * doc/functions/vfprintf.texi: Update.
101107         * doc/functions/vprintf.texi: Update.
101108         * doc/functions/vsnprintf.texi: Update.
101109         * doc/functions/vsprintf.texi: Update.
101111 2007-05-20  Bruno Haible  <bruno@clisp.org>
101113         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
101114         was not found in libc.
101115         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
101117 2007-05-20  Bruno Haible  <bruno@clisp.org>
101119         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101120         printed as "-nan" instead of "nan".
101121         * tests/test-vasprintf-posix.c (test_function): Likewise.
101122         * tests/test-snprintf-posix.h (test_function): Likewise.
101123         * tests/test-sprintf-posix.h (test_function): Likewise.
101124         Needed for HP-UX 11.
101126 2007-05-20  Jim Meyering  <jim@meyering.net>
101128         Fix buggy test for the fchownat-deref bug.
101129         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
101130         symlink required for the run-test.  Without it, this test would
101131         always declare that fchownat doesn't work, and client code would
101132         unnecessarily use the replacement function with fixed libc.
101133         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
101134         Reported by Greg Schafer.
101136 2007-05-19  Bruno Haible  <bruno@clisp.org>
101138         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
101139         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
101140         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
101141         Needed for IRIX 6.5 and Solaris 2.5.1.
101143 2007-05-19  Bruno Haible  <bruno@clisp.org>
101145         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
101146         (test_function): Skip tests involving -0.0 on platforms where
101147         -0.0 = 0.0.
101148         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
101149         (test_function): Skip tests involving -0.0 on platforms where
101150         -0.0 = 0.0.
101151         * tests/test-snprintf-posix.h (have_minus_zero): New function.
101152         (test_function): Skip tests involving -0.0 on platforms where
101153         -0.0 = 0.0.
101154         * tests/test-sprintf-posix.h (have_minus_zero): New function.
101155         (test_function): Skip tests involving -0.0 on platforms where
101156         -0.0 = 0.0.
101157         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
101158         tests.
101159         * tests/test-printf-posix.h (test_function): Likewise.
101160         * tests/test-printf-posix.output: Remove all -0.0 related results.
101161         Needed for IRIX 6.5.
101163 2007-05-19  Bruno Haible  <bruno@clisp.org>
101165         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101166         printed as "nan0x7fffffff" instead of "nan".
101167         * tests/test-vasprintf-posix.c (test_function): Likewise.
101168         * tests/test-snprintf-posix.h (test_function): Likewise.
101169         * tests/test-sprintf-posix.h (test_function): Likewise.
101170         * tests/test-fprintf-posix.h (NaN): Remove macro.
101171         (test_function): Remove all NaN related tests.
101172         * tests/test-printf-posix.h (NaN): Remove macro.
101173         (test_function): Remove all NaN related tests.
101174         * tests/test-printf-posix.output: Remove all NaN related results.
101175         Needed for IRIX 6.5.
101177 2007-05-19  Bruno Haible  <bruno@clisp.org>
101179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
101180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
101182 2007-05-19  Bruno Haible  <bruno@clisp.org>
101184         * lib/float_.h: New file.
101185         * m4/float_h.m4: New file.
101186         * modules/float: New file.
101187         * modules/isnanl (Dependencies): Add float.
101188         * modules/isnanl-nolibm (Dependencies): Likewise.
101189         * modules/mathl (Dependencies): Likewise.
101190         * modules/printf-frexpl (Dependencies): Likewise.
101191         * modules/signbit (Dependencies): Likewise.
101192         * modules/vasnprintf (Dependencies): Likewise.
101193         * doc/headers/float.texi: Update.
101195 2007-05-19  Jim Meyering  <jim@meyering.net>
101197         * lib/utimens.c (gl_futimens): Rename from futimens,
101198         now that glibc-2.6 declares futimens.
101199         * lib/utimens.h: Likewise.
101201 2007-05-19  Bruno Haible  <bruno@clisp.org>
101203         Avoid test failures on mingw.
101204         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
101205         * tests/test-printf-posix.sh: Likewise.
101206         * tests/test-vfprintf-posix.sh: Likewise.
101207         * tests/test-vprintf-posix.sh: Likewise.
101209 2007-05-19  Bruno Haible  <bruno@clisp.org>
101211         Fix *printf result for NaN, Inf, -0.0 on mingw.
101212         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
101213         * lib/vasnprintf.c: Include math.h and isnan.h.
101214         (is_infinite_or_zero): New function.
101215         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
101216         values in the %f, %F, %e, %E, %g, %G directives.
101217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
101218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101219         gl_PRINTF_INFINITE and test its result. Invoke
101220         gl_PREREQ_VASNPRINTF_INFINITE.
101221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101228         * doc/functions/fprintf.texi: Update.
101229         * doc/functions/printf.texi: Update.
101230         * doc/functions/snprintf.texi: Update.
101231         * doc/functions/sprintf.texi: Update.
101232         * doc/functions/vfprintf.texi: Update.
101233         * doc/functions/vprintf.texi: Update.
101234         * doc/functions/vsnprintf.texi: Update.
101235         * doc/functions/vsprintf.texi: Update.
101237 2007-05-19  Bruno Haible  <bruno@clisp.org>
101239         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
101240         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
101241         Instead of multiplying with 10^k, set extra_zeroes to k.
101242         (scale10_round_long_double): Remove function.
101244 2007-05-18  Bruno Haible  <bruno@clisp.org>
101246         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
101247         introduced on 2007-05-06.
101249 2007-05-18  Bruno Haible  <bruno@clisp.org>
101251         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
101252         %g directives.
101253         * tests/test-vasprintf-posix.c (test_function): Likewise.
101254         * tests/test-snprintf-posix.h (test_function): Likewise.
101255         * tests/test-sprintf-posix.h (test_function): Likewise.
101257 2007-05-18  Bruno Haible  <bruno@clisp.org>
101259         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
101260         (strmatch): New function.
101261         (test_function): Test the %f directive on numbers of various exponents.
101262         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
101263         (strmatch): New function.
101264         (test_function): Test the %f directive on numbers of various exponents.
101265         * tests/test-snprintf-posix.h (strmatch): New function.
101266         (test_function): Test the %f directive on numbers of various exponents.
101267         * tests/test-sprintf-posix.h (strmatch): New function.
101268         (test_function): Test the %f directive on numbers of various exponents.
101269         * tests/test-snprintf-posix.c (SIZEOF): New macro.
101270         * tests/test-sprintf-posix.c (SIZEOF): New macro.
101271         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
101272         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
101274 2007-05-18  Bruno Haible  <bruno@clisp.org>
101276         Add support for 'long double' number output.
101277         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
101278         * lib/vasnprintf.c: Include math.h and float+.h.
101279         (mp_limb_t): New type.
101280         (GMP_LIMB_BITS): New macro.
101281         (mp_twolimb_t): New type.
101282         (GMP_TWOLIMB_BITS): New macro.
101283         (mpn_t): New type.
101284         (multiply, divide, convert_to_decimal, decode_long_double,
101285         scale10_round_long_double, scale10_round_decimal_long_double,
101286         floorlog10l): New functions.
101287         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
101288         for the %f, %F, %e, %E, %g, %G directives.
101289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
101290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101291         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
101292         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
101293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101300         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
101301         * modules/snprintf-posix (Depends-on): Likewise.
101302         * modules/sprintf-posix (Depends-on): Likewise.
101303         * modules/vasnprintf-posix (Depends-on): Likewise.
101304         * modules/vasprintf-posix (Depends-on): Likewise.
101305         * modules/vfprintf-posix (Depends-on): Likewise.
101306         * modules/vsnprintf-posix (Depends-on): Likewise.
101307         * modules/vsprintf-posix (Depends-on): Likewise.
101308         * modules/vasnprintf (Files): Add lib/float+.h.
101309         * doc/functions/fprintf.texi: Update.
101310         * doc/functions/printf.texi: Update.
101311         * doc/functions/snprintf.texi: Update.
101312         * doc/functions/sprintf.texi: Update.
101313         * doc/functions/vfprintf.texi: Update.
101314         * doc/functions/vprintf.texi: Update.
101315         * doc/functions/vsnprintf.texi: Update.
101316         * doc/functions/vsprintf.texi: Update.
101318 2007-05-18  Bruno Haible  <bruno@clisp.org>
101320         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
101322 2007-05-18  Bruno Haible  <bruno@clisp.org>
101324         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
101325         for printing 64-bit integers. Needed for mingw.
101327 2007-05-18  Bruno Haible  <bruno@clisp.org>
101329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101330         gl_FUNC_FREXPL_WORKS.
101331         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
101333 2007-05-18  Bruno Haible  <bruno@clisp.org>
101335         * modules/frexpl-nolibm-tests: New file.
101337         * modules/frexpl-nolibm: New file.
101338         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
101340 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101342         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
101343         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101344         GCC 4.2, which otherwise issues a lot of warnings.
101345         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
101346         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
101347         Likewise.
101348         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
101349         * modules/iconv_open (iconv.h): Likewise.
101350         * modules/locale (locale.h): Likewise.
101351         * modules/netinet_in (netinet/in.h): Likewise.
101352         * modules/sys_select (sys_select.h): Likewise.
101353         * modules/sys_socket (sys/socket.h): Likewise.
101354         * modules/sys_stat (sys/stat.h): Likewise.
101355         * modules/sysexits (sysexits.h): Likewise.
101356         * modules/unistd (unistd.h): Likewise.
101358 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101360         * modules/closein-tests (Makefile.am): Distribute
101361         `test-closein.sh'.
101363 2007-05-17  Bruno Haible  <bruno@clisp.org>
101365         * tests/test-printf-posix.output: Renamed from
101366         tests/test-fprintf-posix.out.
101367         * modules/fprintf-posix-tests: Update.
101368         * modules/printf-posix-tests: Update.
101369         * modules/vfprintf-posix-tests: Update.
101370         * modules/vprintf-posix-tests: Update.
101371         * tests/test-fprintf-posix.sh: Update.
101372         * tests/test-printf-posix.sh: Update.
101373         * tests/test-vfprintf-posix.sh: Update.
101374         * tests/test-vprintf-posix.sh: Update.
101375         Reported by Ralf Wildenhues.
101377 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101379         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101380         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101381         GCC 4.2, which otherwise issues a lot of warnings.
101382         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101383         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101384         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101385         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101386         it should no longer be needed.
101387         * lib/string_.h: Likewise.
101388         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101389         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101390         * modules/inttypes (inttypes.h): Likewise.
101391         * modules/math (math.h): Likewise.
101392         * modules/search (search.h): Likewise.
101393         * modules/signal (signal.h): Likewise.
101394         * modules/stdint (stdint.h): Likewise.
101395         * modules/stdio (stdio.h): Likewise.
101396         * modules/stdlib (stdlib.h): Likewise.
101397         * modules/string (string.h): Likewise.
101398         * modules/sys_time (sys/time.h): Likewise.
101399         * modules/time (time.h): Likewise.
101400         * modules/wchar (wchar.h): Likewise.
101401         * modules/wctype (wtype.h): Likewise.
101403 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101405         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101407 2007-05-13  Bruno Haible  <bruno@clisp.org>
101409         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101410         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101411         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101412         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101413         (gl_PREREQ_STRTOK_R): Don't require it here.
101415 2007-05-13  Bruno Haible  <bruno@clisp.org>
101417         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101418         when used in C++ mode.
101420 2007-05-12  Bruno Haible  <bruno@clisp.org>
101422         * lib/linebuffer.h: Tweak doc.
101423         * lib/linebuffer.c: Likewise.
101425 2007-05-12  James Youngman  <jay@gnu.org>
101427         * lib/linebuffer.c (readlinebuffer_delim): New function,
101428         like readlinebuffer, but use a caller-specified delimiter.
101429         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101430         as the delimiter.
101431         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101433 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101435         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101436         * modules/openat (Files): Remove openat-die.c.
101437         (Depends-on): Add openat-die.
101438         * modules/openat-die: New module.
101440 2007-05-06  Bruno Haible  <bruno@clisp.org>
101442         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101443         Update with info about Cygwin.
101444         * doc/functions/fprintf.texi: Update.
101445         * doc/functions/printf.texi: Update.
101446         * doc/functions/snprintf.texi: Update.
101447         * doc/functions/sprintf.texi: Update.
101448         * doc/functions/vfprintf.texi: Update.
101449         * doc/functions/vprintf.texi: Update.
101450         * doc/functions/vsnprintf.texi: Update.
101451         * doc/functions/vsprintf.texi: Update.
101452         Reported by Eric Blake.
101454 2007-05-06  Bruno Haible  <bruno@clisp.org>
101456         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101457         padding ourselves for the floating-point directives.
101458         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101461         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101462         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101470         * tests/test-snprintf-posix.h (test_function): Also check the width
101471         and some flags in the %f directive.
101472         * tests/test-sprintf-posix.h (test_function): Likewise.
101473         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101474         * tests/test-vasprintf-posix.c (test_function): Likewise.
101475         * doc/functions/fprintf.texi: Update.
101476         * doc/functions/printf.texi: Update.
101477         * doc/functions/snprintf.texi: Update.
101478         * doc/functions/sprintf.texi: Update.
101479         * doc/functions/vfprintf.texi: Update.
101480         * doc/functions/vprintf.texi: Update.
101481         * doc/functions/vsnprintf.texi: Update.
101482         * doc/functions/vsprintf.texi: Update.
101484 2007-05-06  Bruno Haible  <bruno@clisp.org>
101486         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101487         pass the ' flag character to sprintf or snprintf.
101488         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101491         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101492         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101499         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101500         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101501         flag.
101502         * tests/test-sprintf-posix.h (test_function): Likewise.
101503         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101504         * tests/test-vasprintf-posix.c (test_function): Likewise.
101505         * doc/functions/fprintf.texi: Update.
101506         * doc/functions/printf.texi: Update.
101507         * doc/functions/snprintf.texi: Update.
101508         * doc/functions/sprintf.texi: Update.
101509         * doc/functions/vfprintf.texi: Update.
101510         * doc/functions/vprintf.texi: Update.
101511         * doc/functions/vsnprintf.texi: Update.
101512         * doc/functions/vsprintf.texi: Update.
101514 2007-05-01  Bruno Haible  <bruno@clisp.org>
101516         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101518 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101520         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101521         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101523 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101525         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101526         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101527         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101529 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101531         * lib/argp-help.c (struct hol_entry): New member `ord'.
101532         (HOL_ENTRY_PTRCMP): Use ord for comparison
101533         (hol_sort): Initialize ord.
101535 2007-05-01  Bruno Haible  <bruno@clisp.org>
101537         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101538         Reported by Eric Blake.
101539         * doc/gnulib.texi (Function Substitutes): Update.
101541 2007-05-01  Bruno Haible  <bruno@clisp.org>
101543         * doc/functions.texi: Remove file, now redundant through
101544         doc/functions/*.texi.
101546 2007-05-01  Bruno Haible  <bruno@clisp.org>
101548         * modules/argp (Depends-on): Add sleep.
101550 2007-05-01  Bruno Haible  <bruno@clisp.org>
101552         * modules/sleep-tests: New file.
101553         * tests/test-sleep.c: New file.
101555         * modules/sleep: New file.
101556         * lib/sleep.c: New file.
101557         * m4/sleep.m4: New file.
101558         * lib/unistd_.h (sleep): New declaration.
101559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101560         HAVE_SLEEP.
101561         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101562         * doc/functions/sleep.texi: Document the sleep module.
101564 2007-05-01  Bruno Haible  <bruno@clisp.org>
101566         * lib/sigprocmask.h: Remove file.
101567         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101568         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101570         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101571         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101572         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101573         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101574         HAVE_SIGSET_T as a shell variable.
101575         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101576         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101577         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101578         (Depends-on): Add signal. Remove verify.
101579         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101580         (Include): Mention <signal.h> instead of sigprocmask.h.
101581         * NEWS: Mention the change.
101582         * lib/fatal-signal.c: Don't include sigprocmask.h.
101584 2007-05-01  Bruno Haible  <bruno@clisp.org>
101586         * modules/signal: New file.
101587         * lib/signal_.h: New file.
101588         * m4/signal_h.m4: New file.
101590 2007-05-01  Bruno Haible  <bruno@clisp.org>
101592         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101593         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101594         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101595         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101597 2007-05-01  Bruno Haible  <bruno@clisp.org>
101599         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101600         configure time.
101601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101602         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101603         * modules/sys_stat (Makefile.am): Substitute their values into
101604         sys/stat.h.
101606 2007-05-01  Bruno Haible  <bruno@clisp.org>
101608         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101609         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101610         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101612 2007-05-01  Bruno Haible  <bruno@clisp.org>
101614         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101615         'assert' module here.
101617 2007-05-01  Bruno Haible  <bruno@clisp.org>
101619         * doc/functions/*.texi: New files.
101620         * doc/functions/google-ranking.txt: New file.
101621         * doc/gnulib.texi (Function Substitutes): New chapter.
101622         (ctime, inet_ntoa): Remove sections.
101623         * doc/ctime.texi: Remove file.
101624         * doc/inet_ntoa.texi: Remove file.
101625         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101626         dependencies.
101627         (%.info): New rule, specifying a --reference-limit.
101629 2007-05-01  Bruno Haible  <bruno@clisp.org>
101631         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101633 2007-05-01  Bruno Haible  <bruno@clisp.org>
101635         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101636         the portability of 'mkdir' to mingw systems.
101638 2007-05-01  Bruno Haible  <bruno@clisp.org>
101640         * doc/headers/google-ranking.txt: New file.
101642 2007-04-30  Eric Blake  <ebb9@byu.net>
101644         Prefer fseeko to fseek.
101645         * modules/getpass (Depends-on): Add fseeko.
101646         * lib/getpass.c (getpass): Use fseeko, not fseek.
101648 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101650         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101651         assumes the sorting is stable, while most qsort implementations
101652         are not.  Use argument addresses to ensure they never compare as
101653         equal.
101655         * tests/test-argp-2.sh (usage-indent test): Fix output
101656         (func_compare): Restore diff options
101657         * tests/test-argp.c: Restore #include "progname.h"
101659 2007-04-29  Bruno Haible  <bruno@clisp.org>
101661         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101662         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101663         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101665         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101666         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101667         (TESTS, check_PROGRAMS): Add test-snprintf.
101668         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101669         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101670         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101671         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101672         assertions that fail on HP-UX, OSF/1, or IRIX.
101673         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101675 2007-04-29  Bruno Haible  <bruno@clisp.org>
101677         * MODULES.html.sh (posix_functions): Remove 'contents'.
101679 2007-04-29  Karl Berry  <karl@gnu.org>
101681         * config/srclist.txt (gendocs_template_min): new entry.
101683 2007-04-29  Bruno Haible  <bruno@clisp.org>
101685         Work around fpurge bug on BSD systems.
101686         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101688         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101689         fpurge to rpl_fpurge if the system already has this function.
101690         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101691         the case where the system already has this function. Correct invariants
101692         on BSD systems.
101693         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101694         BSD systems.
101696 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101698         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101699         proposed by Sven Verdoolaege.
101701         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101702         options.
101703         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101704         (usage and help tests): Update
101706 2007-04-29  Bruno Haible  <bruno@clisp.org>
101708         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101709         Print more information in case of failure. Disable a test on BeOS.
101711 2007-04-29  Bruno Haible  <bruno@clisp.org>
101713         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101714         This helps debugging on systems on which no gdb is available.
101716 2007-04-29  Bruno Haible  <bruno@clisp.org>
101718         * lib/freading.h: Improve comments.
101719         * lib/fwriting.h: Likewise.
101720         * tests/test-freading.c (main): Don't check freading immediately after
101721         repositioning. Needed for glibc.
101723 2007-04-29  Bruno Haible  <bruno@clisp.org>
101725         * lib/freading.c (freading): Trivial simplification.
101727 2007-04-28  Bruno Haible  <bruno@clisp.org>
101729         * tests/test-fwriting.c (main): Also test the interaction between
101730         fflush and fwriting.
101731         * modules/fwriting-tests (Depends-on): Add fflush.
101733         * tests/test-freading.c (main): Also test the interaction between
101734         fflush and freading.
101735         * modules/freading-tests (Depends-on): Add fflush.
101737 2007-04-28  Bruno Haible  <bruno@clisp.org>
101739         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101740         fseeko and ftello.
101741         Suggested by Eric Blake.
101743 2007-04-28  Jim Meyering  <jim@meyering.net>
101745         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101746         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101747         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101749 2007-04-27  Eric Blake  <ebb9@byu.net>
101751         * doc/headers/assert.texi (assert.h): Document assert module use.
101753 2007-04-27  Bruno Haible  <bruno@clisp.org>
101755         * doc/headers/*.texi: New files.
101756         * doc/gnulib.texi (Header File Substitutes): New chapter.
101757         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101758         dependencies.
101759         (standards.info ,standards.html, standards.dvi): Update dependencies.
101760         (mostlyclean, clean): New targets.
101762 2007-04-27  Bruno Haible  <bruno@clisp.org>
101764         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101765         * modules/sysexits (Files, Makefile.am): Update.
101767         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101768         * modules/sys_socket (Files, Makefile.am): Update.
101770         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101771         * modules/sys_stat (Files, Makefile.am): Update.
101773 2007-04-27  Eric Blake  <ebb9@byu.net>
101775         * lib/freading.h: Improve comments.
101776         * lib/fwriting.h: Likewise.
101777         * lib/fflush.c: Likewise.
101779         Fix closein for mingw.
101780         * modules/closein-tests: Add tests for closein.
101781         * tests/test-closein.c: New file.
101782         * tests/test-closein.sh: Likewise.
101783         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101784         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101786 2007-04-27  Bruno Haible  <bruno@clisp.org>
101788         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101789         version is < 6.
101790         * lib/math_.h [__DECC]: Likewise.
101791         * lib/stdio_.h [__DECC]: Likewise.
101792         * lib/stdlib_.h [__DECC]: Likewise.
101793         * lib/string_.h [__DECC]: Likewise.
101794         * lib/time_.h [__DECC]: Likewise.
101795         * lib/wchar_.h [__DECC]: Likewise.
101796         * lib/wctype_.h [__DECC]: Likewise.
101798 2007-04-27  Bruno Haible  <bruno@clisp.org>
101800         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
101802 2007-04-27  Bruno Haible  <bruno@clisp.org>
101804         * lib/fflush.c: Add comments.
101805         * modules/fpurge-tests (Depends-on): Add fflush.
101806         * modules/freadable-tests (Depends-on): Likewise.
101807         * modules/fwritable-tests (Depends-on): Likewise.
101809 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
101811         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
101812         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
101813         Report by Bruno Haible <bruno@clisp.org>.
101815 2007-04-26  Eric Blake  <ebb9@byu.net>
101817         Fix fflush on mingw.
101818         * modules/fflush (Depends-on): Add freading.
101819         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101820         but unread data.
101822 2007-04-26  Eric Blake  <ebb9@byu.net>
101823         and Bruno Haible  <bruno@clisp.org>
101825         Implement freading and fwriting.
101826         * lib/freading.c: New file.
101827         * lib/freading.h: Likewise.
101828         * m4/freading.m4: Likewise.
101829         * modules/freading: Likewise.
101830         * modules/freading-tests: Likewise.
101831         * tests/test-freading.c: Likewise.
101832         * lib/fwriting.c: New file.
101833         * lib/fwriting.h: Likewise.
101834         * m4/fwriting.m4: Likewise.
101835         * modules/fwriting: Likewise.
101836         * modules/fwriting-tests: Likewise.
101837         * tests/test-fwriting.c: Likewise.
101838         * MODULES.html.sh (File stream based Input/Output): Mention them.
101840 2007-04-26  Bruno Haible  <bruno@clisp.org>
101842         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101843         'long' when we assume it.
101844         Suggested by Eric Blake.
101846 2007-04-26  Bruno Haible  <bruno@clisp.org>
101848         Ensure fseeko, ftello are declared on glibc systems.
101849         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101850         * modules/fseeko (configure.ac-early): Likewise.
101851         * modules/ftello (configure.ac-early): Likewise.
101852         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101853         AC_FUNC_FSEEKO for this.
101854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101855         (gl_CHECK_FSEEKO): Remove macro.
101857 2007-04-26  Bruno Haible  <bruno@clisp.org>
101859         * tests/test-fflush.c (main): Also check the ftell result after
101860         fflush and fseek/fseeko.
101861         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101862         file descriptor position cache in the stream.
101863         * lib/fseeko.c (rpl_fseeko): Likewise.
101865 2007-04-26  Bruno Haible  <bruno@clisp.org>
101867         * modules/fflush-tests (Depends-on): Add fseeko.
101869 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101870             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101872         * lib/argz_.h: ensure error_t definition is obtained in same
101873         mechanism system argz.h would have.
101874         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101875         argz facilities are known bad.  Err on the side of caution if
101876         cross-compiling.
101878 2007-04-25  Eric Blake  <ebb9@byu.net>
101880         * lib/fpurge.c (includes): Use stdlib.h for free.
101881         * tests/test-fflush.c (main): Also test fflush-fseeko.
101883 2007-04-25  Bruno Haible  <bruno@clisp.org>
101885         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101886         * lib/fseeko.c: New file.
101887         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101888         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101889         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101890         gl_FUNC_FSEEKO.
101891         (gl_FUNC_FSEEKO): Invoke it.
101892         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101893         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101894         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101896 2007-04-25  Bruno Haible  <bruno@clisp.org>
101898         * modules/fflush (Depends-on): Add ftello.
101900 2007-04-25  Bruno Haible  <bruno@clisp.org>
101902         * modules/ftello-tests: New file.
101903         * tests/test-ftello.c: New file.
101905         * modules/ftello: New file.
101906         * m4/ftello.m4: New file.
101907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101908         HAVE_FTELLO.
101909         * lib/stdio_.h (ftello): New declaration.
101910         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101911         HAVE_FTELLO.
101913 2007-04-25  Bruno Haible  <bruno@clisp.org>
101915         * modules/fseeko-tests: New file.
101916         * tests/test-fseeko.c: New file.
101918         * modules/fseeko: New file.
101919         * m4/fseeko.m4: New file.
101920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101921         HAVE_FSEEKO.
101922         * lib/stdio_.h (fseeko): New declaration.
101923         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101924         HAVE_FSEEKO.
101926 2007-04-25  Bruno Haible  <bruno@clisp.org>
101928         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101930 2007-04-25  Bruno Haible  <bruno@clisp.org>
101932         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101933         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101934         * tests/test-unistd.c: Likewise.
101935         * tests/test-fcntl.c: Likewise.
101937 2007-04-23  Eric Blake  <ebb9@byu.net>
101939         * lib/fflush.c: Fix missing include.
101940         Reported by Bruno Haible.
101942 2007-04-23  Bruno Haible  <bruno@clisp.org>
101944         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101945         Reported by Eric Blake.
101947 2007-04-23  Bruno Haible  <bruno@clisp.org>
101949         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101951 2007-04-23  Bruno Haible  <bruno@clisp.org>
101953         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101955 2007-04-23  Bruno Haible  <bruno@clisp.org>
101957         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101958         Needed on HP-UX 11.
101960 2007-04-16  Eric Blake  <ebb9@byu.net>
101962         Make fflush rely on fpurge.
101963         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101964         open coding all variants.
101965         * modules/fflush (Depends-on): Add fpurge and unistd.
101966         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101967         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101969         Fix --with-tests compilation on cygwin.
101970         * modules/argmatch-tests (Makefile.am): List gnulib library first
101971         in LDADD.
101972         * modules/argp-tests (Makefile.am): Likewise.
101973         * modules/array-list-tests (Makefile.am): Likewise.
101974         * modules/array-oset-tests (Makefile.am): Likewise.
101975         * modules/avltree-list-tests (Makefile.am): Likewise.
101976         * modules/avltree-oset-tests (Makefile.am): Likewise.
101977         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101978         * modules/carray-list-tests (Makefile.am): Likewise.
101979         * modules/dirname-tests (Makefile.am): Likewise.
101980         * modules/frexp-tests (Makefile.am): Likewise.
101981         * modules/isnanl-tests (Makefile.am): Likewise.
101982         * modules/linked-list-tests (Makefile.am): Likewise.
101983         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101984         * modules/lock-tests (Makefile.am): Likewise.
101985         * modules/rbtree-list-tests (Makefile.am): Likewise.
101986         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101987         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101988         * modules/tls-tests (Makefile.am): Likewise.
101989         * modules/tsearch-tests (Makefile.am): Likewise.
101990         * modules/xvasprintf-tests (Makefile.am): Likewise.
101992         Fix fpurge for cygwin.
101993         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101994         value.
101995         * modules/fpurge-tests (Depends-on): Clean up trash.
101997 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101999         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
102001         * m4/autobuild.m4: Re-indent.
102003 2007-04-13  Bruno Haible  <bruno@clisp.org>
102005         * modules/fpurge-tests: New file.
102006         * tests/test-fpurge.c: New file.
102008         * modules/fpurge: New file.
102009         * lib/fpurge.h: New file.
102010         * lib/fpurge.c: New file.
102011         * m4/fpurge.m4: New file.
102013 2007-04-13  Bruno Haible  <bruno@clisp.org>
102015         * modules/fbufmode-tests: New file.
102016         * tests/test-fbufmode.c: New file.
102018         * modules/fbufmode: New file.
102019         * lib/fbufmode.h: New file.
102020         * lib/fbufmode.c: New file.
102021         * m4/fbufmode.m4: New file.
102023 2007-04-13  Bruno Haible  <bruno@clisp.org>
102025         * modules/fwritable-tests: New file.
102026         * tests/test-fwritable.c: New file.
102028         * modules/fwritable: New file.
102029         * lib/fwritable.h: New file.
102030         * lib/fwritable.c: New file.
102031         * m4/fwritable.m4: New file.
102033 2007-04-13  Bruno Haible  <bruno@clisp.org>
102035         * modules/freadable-tests: New file.
102036         * tests/test-freadable.c: New file.
102038         * modules/freadable: New file.
102039         * lib/freadable.h: New file.
102040         * lib/freadable.c: New file.
102041         * m4/freadable.m4: New file.
102043 2007-04-13  Bruno Haible  <bruno@clisp.org>
102045         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
102046         MOSTLYCLEANFILES.
102048 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102050         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
102051         gzip bootstrap.conf to avoid dragging in i18n machinery.
102052         (gnulib_tool_option): Use it.
102054 2007-04-13  Bruno Haible  <bruno@clisp.org>
102056         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
102057         %F directives.
102058         * tests/test-vasprintf-posix.c (test_function): Likewise.
102059         * tests/test-snprintf-posix.h (test_function): Likewise.
102060         * tests/test-sprintf-posix.h (test_function): Likewise.
102061         * tests/test-fprintf-posix.h (test_function): Likewise.
102062         * tests/test-printf-posix.h (test_function): Likewise.
102063         * tests/test-fprintf-posix.out: Likewise.
102065 2007-04-13  Bruno Haible  <bruno@clisp.org>
102067         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
102068         * modules/tls-tests (configure.ac): Likewise.
102069         Reported by Arto C. Nirkko <anirkko@insel.ch>.
102071 2007-04-13  Bruno Haible  <bruno@clisp.org>
102073         * lib/tls.c (glthread_tls_get): Fix return type.
102074         Patch by Arto C. Nirkko <anirkko@insel.ch>.
102076 2007-04-12  Eric Blake  <ebb9@byu.net>
102078         * modules/gettime (Depends-on): Remove gettime.
102079         Reported by Dmitry V. Levin.
102081 2007-04-12  Bruno Haible  <bruno@clisp.org>
102083         * modules/fflush (Include): Mention <stdio.h>.
102084         * modules/strtoimax (Include): Mention <inttypes.h>.
102085         * modules/strtoumax (Include): Likewise.
102087 2007-04-12  Eric Blake  <ebb9@byu.net>
102089         * .cvsignore: New file.
102090         * .gitignore: Likewise.
102092 2007-04-12  Bruno Haible  <bruno@clisp.org>
102094         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
102095         not before, since $(LDADD) often contains libgnu.a.
102096         * modules/striconv-tests (test_striconv_LDADD): Likewise.
102097         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
102098         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
102099         Needed on Cygwin.
102101 2007-04-12  Eric Blake  <ebb9@byu.net>
102103         Work around glibc's failure to flush stdin on fclose.
102104         * lib/closein.c (close_stdin): Flush stdin before closing.
102106         Work around glibc's failure to reset seekable stdin on exit.
102107         * modules/closein: New module.
102108         * lib/closein.c: New file.
102109         * lib/closein.h: Likewise.
102110         * m4/closein.m4: Likewise.
102111         * MODULES.html.sh (File stream based Input/Output): Document it.
102113 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102115         * gnulib-tool: Rename generated 'autobuild' script to
102116         'do-autobuild' in --create-megatestdir output.
102118         * doc/gnulib.texi (Build robot for gnulib): Fix.
102120 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102122         * modules/sysexits (Depends-on): Add absolute-header.
102124 2007-04-12  Eric Blake  <ebb9@byu.net>
102126         No need to preserve errno on success.
102127         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
102128         Reported by Bruno Haible.
102130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102132         * MODULES.html.sh (Support for maintaining and releasing
102133         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
102135 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102137         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
102139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102141         * modules/autobuild: New module.
102143         * m4/autobuild.m4: New file.
102145 2007-04-11  Bruno Haible  <bruno@clisp.org>
102147         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
102148         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
102149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
102150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
102151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102157         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
102158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
102161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
102164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102166         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
102167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
102170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
102173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102175         Reported by Eric Blake.
102177 2007-04-11  Bruno Haible  <bruno@clisp.org>
102179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
102181 2007-04-10  Bruno Haible  <bruno@clisp.org>
102183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
102184         for NaN and Infinity. Needed on FreeBSD 6.1.
102185         * tests/test-vasnprintf-posix.c (test_function): Undo last change
102186         regarding results for "%010a" of Infinity and NaN.
102187         * tests/test-vasprintf-posix.c (test_function): Likewise.
102188         * tests/test-snprintf-posix.h (test_function): Likewise.
102189         * tests/test-sprintf-posix.h (test_function): Likewise.
102190         * tests/test-fprintf-posix.h (test_function): Likewise.
102191         * tests/test-printf-posix.h (test_function): Likewise.
102192         * tests/test-fprintf-posix.out: Likewise.
102194 2007-04-10  Bruno Haible  <bruno@clisp.org>
102196         * modules/locale-tests: New file.
102197         * tests/test-locale.c: New file.
102199         * modules/locale: New file.
102200         * lib/locale_.h: New file.
102201         * m4/locale_h.m4: New file.
102203 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
102204             Bruno Haible  <bruno@clisp.org>
102206         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
102207         be determined, test for availability of the copysignf, copysign,
102208         copysignl functions.
102209         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
102210         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
102211         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
102213 2007-04-09  Eric Blake  <ebb9@byu.net>
102215         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
102216         * modules/stdio (Makefile.am): Support fflush.
102217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
102218         * modules/fflush: New file.
102219         * lib/fflush.c: Likewise.
102220         * m4/fflush.m4: Likewise.
102221         * modules/fflush-tests: New test.
102222         * tests/test-fflush.c: Likewise.
102223         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
102225 2007-04-06  Bruno Haible  <bruno@clisp.org>
102227         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
102228         (VASNPRINTF): Use signbit for faster determination whether to print a
102229         minus sign.
102230         * modules/vasnprintf (Files): Remove lib/float+.h.
102231         * modules/fprintf-posix (Depends-on): Add signbit.
102232         * modules/snprintf-posix (Depends-on): Likewise.
102233         * modules/sprintf-posix (Depends-on): Likewise.
102234         * modules/vasnprintf-posix (Depends-on): Likewise.
102235         * modules/vasprintf-posix (Depends-on): Likewise.
102236         * modules/vfprintf-posix (Depends-on): Likewise.
102237         * modules/vsnprintf-posix (Depends-on): Likewise.
102238         * modules/vsprintf-posix (Depends-on): Likewise.
102240 2007-04-06  Bruno Haible  <bruno@clisp.org>
102242         * tests/test-frexp.c (main): Test also the sign bit of zero results.
102243         * tests/test-frexpl.c (main): Likewise.
102244         * tests/test-ldexpl.c (main): Likewise.
102245         * modules/frexp-tests (Depends-on): Add signbit.
102246         * modules/frexpl-tests (Depdends-on): Likewise.
102247         * modules/ldexpl-tests (Depdends-on): Likewise.
102249 2007-04-06  Bruno Haible  <bruno@clisp.org>
102251         * modules/signbit-tests: New file.
102252         * tests/test-signbit.c: New file.
102254         * modules/signbit: New file.
102255         * lib/signbitf.c: New file.
102256         * lib/signbitd.c: New file.
102257         * lib/signbitl.c: New file.
102258         * m4/signbit.m4: New file.
102259         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
102260         (signbit): New macro.
102261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
102262         REPLACE_SIGNBIT.
102263         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
102264         REPLACE_FREXPL into math.h.
102266 2007-04-06  Bruno Haible  <bruno@clisp.org>
102268         * modules/isnanf-nolibm-tests: New file.
102269         * tests/test-isnanf.c: New file.
102271         * modules/isnanf-nolibm: New file.
102272         * lib/isnanf.h: New file.
102273         * lib/isnanf.c: New file.
102274         * lib/isnan.c: Consider the USE_FLOAT macro.
102275         * m4/isnanf.m4: New file.
102277 2007-04-06  Bruno Haible  <bruno@clisp.org>
102279         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
102280         (Link): New section.
102282         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
102284 2007-04-06  Bruno Haible  <bruno@clisp.org>
102286         Assume the 'long double' type.
102287         * m4/longdouble.m4: Remove file.
102288         * config/srclist.txt: Don't mention longdouble.m4.
102289         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
102290         * lib/float+.h: Likewise.
102291         * lib/frexp.c: Likewise.
102292         * lib/printf-args.h: Likewise.
102293         * lib/printf-args.c: Likewise.
102294         * lib/printf-frexp.c: Likewise.
102295         * lib/printf-parse.c: Likewise.
102296         * lib/vasnprintf.c: Likewise.
102297         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
102298         * m4/intl.m4: Likewise.
102299         * m4/isnanl.m4: Likewise.
102300         * m4/printf.m4: Likewise.
102301         * m4/printf-frexpl.m4: Likewise.
102302         * m4/vasnprintf.m4: Likewise.
102303         * modules/allocsa (Files): Remove m4/longdouble.m4.
102304         * modules/gettext (Files): Likewise.
102305         * modules/relocatable-prog-wrapper (Files): Likewise.
102306         * modules/vasnprintf (Files): Likewise.
102307         * modules/isnanl (Files): Likewise.
102308         (Include): Simplify.
102309         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
102310         (Include): Simplify.
102311         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
102312         (Include): Simplify.
102313         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
102314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102315         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
102316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102317         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102319         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
102320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102321         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102323         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
102324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102325         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
102326         * tests/test-isnanl.c: Likewise.
102327         * tests/test-snprintf-posix.h: Likewise.
102328         * tests/test-sprintf-posix.h: Likewise.
102329         * tests/test-vasnprintf-posix.c: Likewise.
102330         * tests/test-vasnprintf-posix2.c: Likewise.
102331         * tests/test-vasprintf-posix.c: Likewise.
102333 2007-04-06  Bruno Haible  <bruno@clisp.org>
102335         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
102336         * lib/math_.h [__DECC]: Include the overridden include file through
102337         #include_next, outside the double-inclusion guard.
102338         * lib/stdio_.h [__DECC]: Likewise.
102339         * lib/stdlib_.h [__DECC]: Likewise.
102340         * lib/string_.h [__DECC]: Likewise.
102341         * lib/time_.h [__DECC]: Likewise.
102342         * lib/wchar_.h [__DECC]: Likewise.
102343         * lib/wctype_.h [__DECC]: Likewise.
102344         * lib/inttypes_.h [__DECC]: Likewise.
102345         Reported by Albert Chin <china@thewrittenword.com> in
102346         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
102348 2007-04-04  Eric Blake  <ebb9@byu.net>
102350         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
102351         1.5.x.
102353 2007-04-04  Bruno Haible  <bruno@clisp.org>
102355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
102356         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
102358 2007-04-04  Bruno Haible  <bruno@clisp.org>
102360         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
102361         results for "%010a" of Infinity and NaN.
102362         * tests/test-vasprintf-posix.c (test_function): Likewise.
102363         * tests/test-snprintf-posix.h (test_function): Likewise.
102364         * tests/test-sprintf-posix.h (test_function): Likewise.
102365         * tests/test-fprintf-posix.h (test_function): Remove these tests.
102366         * tests/test-printf-posix.h (test_function): Likewise.
102367         * tests/test-fprintf-posix.out: Update.
102368         Needed for FreeBSD 6.1.
102370 2007-04-04  Bruno Haible  <bruno@clisp.org>
102372         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
102373         directly used by the gnulib modules nor by gnulib-tool.
102375 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102377         * DEPENDENCIES: Give overall description of version dependency
102378         desirability.  Use more-typical names for apps.
102379         Add shell, coreutils, diffutils, grep, tar, gzip.
102381 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102383         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102385 2007-04-04  Karl Berry  <karl@gnu.org>
102387         * MODULES.html.sh (func_module): missing '.
102389 2007-04-03  Bruno Haible  <bruno@clisp.org>
102391         * modules/argmatch-tests (Makefile.am): New variable
102392         test_argmatch_LDADD.
102393         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102394         * modules/array-list-tests (Makefile.am): New variable
102395         test_array_list_LDADD.
102396         * modules/array-oset-tests (Makefile.am): New variable
102397         test_array_oset_LDADD.
102398         * modules/avltree-list-tests (Makefile.am): New variable
102399         test_avltree_list_LDADD.
102400         * modules/avltree-oset-tests (Makefile.am): New variable
102401         test_avltree_oset_LDADD.
102402         * modules/avltreehash-list-tests (Makefile.am): New variable
102403         test_avltreehash_list_LDADD.
102404         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102405         test_canonicalize_lgpl_LDADD.
102406         * modules/carray-list-tests (Makefile.am): New variable
102407         test_carray_list_LDADD.
102408         * modules/dirname-tests (Makefile.am): New variable
102409         test_dirname_LDADD.
102410         * modules/linked-list-tests (Makefile.am): New variable
102411         test_linked_list_LDADD.
102412         * modules/linkedhash-list-tests (Makefile.am): New variable
102413         test_linkedhash_list_LDADD.
102414         * modules/rbtree-list-tests (Makefile.am): New variable
102415         test_rbtree_list_LDADD.
102416         * modules/rbtree-oset-tests (Makefile.am): New variable
102417         test_rbtree_oset_LDADD.
102418         * modules/rbtreehash-list-tests (Makefile.am): New variable
102419         test_rbtreehash_list_LDADD.
102420         * modules/xvasprintf-tests (Makefile.am): New variable
102421         test_xvasprintf_LDADD.
102422         Reported by Eric Blake.
102424 2007-04-03  Eric Blake  <ebb9@byu.net>
102426         * DEPENDENCIES: Weaken m4 requirements.
102428 2007-04-03  Bruno Haible  <bruno@clisp.org>
102430         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102431         * modules/isnanl-tests (configure.ac): Likewise.
102433 2007-04-03  Ben Pfaff  <blp@gnu.org>
102435         * modules/iconv_open: Add $(srcdir)/ to source directory
102436         references in Makefile fragments that call gperf, to fix VPATH
102437         builds.
102439 2007-04-03  Bruno Haible  <bruno@clisp.org>
102441         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102442         * lib/ldexpl.c: Undo last change.
102444 2007-04-03  Bruno Haible  <bruno@clisp.org>
102446         * modules/printf-frexpl (Depends-on): Undo last change.
102447         (Files): Add m4/ldexpl.m4.
102449 2007-04-03  Bruno Haible  <bruno@clisp.org>
102451         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102452         * modules/isnanl (Link): New section.
102454         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102455         * modules/frexp (Link): New section.
102457         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102458         * modules/frexpl (Link): New section.
102460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102461         * modules/ldexpl (Link): New section.
102463 2007-04-03  Bruno Haible  <bruno@clisp.org>
102465         * modules/TEMPLATE-EXTENDED: New file.
102466         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102468 2007-04-03  Bruno Haible  <bruno@clisp.org>
102470         * DEPENDENCIES: New file.
102471         Suggested by Simon Josefsson.
102473 2007-04-03  Bruno Haible  <bruno@clisp.org>
102475         * doc/gnulib.texi: Escape @.
102477 2007-04-03  James Youngman  <jay@gnu.org>
102478         and Paul Eggert  <eggert@cs.ucla.edu>
102480         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102481         birthtime on all systems that have birthtime, not just those which
102482         use st_birthtimensec rather than st_birthtim.  Putting zero in
102483         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102484         that the birth time is not available for files on an NFS mount.
102486 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102488         * modules/memxor: Move back from crypto/, suggested by Bruno.
102489         * modules/crypto/hmac-sha1: Fix memxor dependency.
102491         * modules/crypto/gc: Moved from ../.
102493 2007-04-02  Eric Blake  <ebb9@byu.net>
102495         * lib/ldexpl.c (includes): Avoid libm.
102497         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102499 2007-04-02  Bruno Haible  <bruno@clisp.org>
102501         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102502         on IRIX.
102504 2007-04-02  Bruno Haible  <bruno@clisp.org>
102506         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102507         x86 or x86_64 platforms running MacOS X.
102508         Reported by Ryan Schmidt <@ryandesign.com>.
102510 2007-04-02  Bruno Haible  <bruno@clisp.org>
102512         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102513         i386.
102515 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102517         * modules/crypto/arcfour: Moved from ../.
102518         * modules/crypto/arcfour-tests: Moved from ../.
102519         * modules/crypto/arctwo: Moved from ../.
102520         * modules/crypto/arctwo-tests: Moved from ../.
102521         * modules/crypto/des: Moved from ../.
102522         * modules/crypto/des-tests: Moved from ../.
102523         * modules/crypto/gc-arcfour: Moved from ../.
102524         * modules/crypto/gc-arcfour-tests: Moved from ../.
102525         * modules/crypto/gc-arctwo: Moved from ../.
102526         * modules/crypto/gc-arctwo-tests: Moved from ../.
102527         * modules/crypto/gc-des: Moved from ../.
102528         * modules/crypto/gc-des-tests: Moved from ../.
102529         * modules/crypto/gc-hmac-md5: Moved from ../.
102530         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102531         * modules/crypto/gc-hmac-sha1: Moved from ../.
102532         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102533         * modules/crypto/gc-md2: Moved from ../.
102534         * modules/crypto/gc-md2-tests: Moved from ../.
102535         * modules/crypto/gc-md4: Moved from ../.
102536         * modules/crypto/gc-md4-tests: Moved from ../.
102537         * modules/crypto/gc-md5: Moved from ../.
102538         * modules/crypto/gc-md5-tests: Moved from ../.
102539         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102540         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102541         * modules/crypto/gc-random: Moved from ../.
102542         * modules/crypto/gc-rijndael: Moved from ../.
102543         * modules/crypto/gc-rijndael-tests: Moved from ../.
102544         * modules/crypto/gc-sha1: Moved from ../.
102545         * modules/crypto/gc-sha1-tests: Moved from ../.
102546         * modules/crypto/gc-tests: Moved from ../.
102547         * modules/crypto/hmac-md5: Moved from ../.
102548         * modules/crypto/hmac-md5-tests: Moved from ../.
102549         * modules/crypto/hmac-sha1: Moved from ../.
102550         * modules/crypto/hmac-sha1-tests: Moved from ../.
102551         * modules/crypto/md2: Moved from ../.
102552         * modules/crypto/md2-tests: Moved from ../.
102553         * modules/crypto/md4: Moved from ../.
102554         * modules/crypto/md4-tests: Moved from ../.
102555         * modules/crypto/md5: Moved from ../.
102556         * modules/crypto/md5-tests: Moved from ../.
102557         * modules/crypto/memxor: Moved from ../.
102558         * modules/crypto/rijndael: Moved from ../.
102559         * modules/crypto/rijndael-tests: Moved from ../.
102560         * modules/crypto/sha1: Moved from ../.
102562 2007-03-30  James Youngman  <jay@gnu.org>
102564         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102565         rename() to change the ctime of a file (because ctime is unaffected
102566         by rename on jfs2 on AIX 5.1).
102567         (main): Start by doing cleanup, in case a previous run failed leaving
102568         test files behind.
102570 2007-03-31  Bruno Haible  <bruno@clisp.org>
102572         Support old proprietary implementations of iconv.
102573         * modules/iconv_open: New file.
102574         * lib/iconv_.h: New file.
102575         * m4/iconv_h.m4: New file.
102576         * lib/iconv_open.c: New file.
102577         * lib/iconv_open-aix.gperf: New file.
102578         * lib/iconv_open-hpux.gperf: New file.
102579         * lib/iconv_open-irix.gperf: New file.
102580         * lib/iconv_open-osf.gperf: New file.
102581         * m4/iconv_open.m4: New file.
102582         * modules/linebreak (Depends-on): Add iconv_open.
102583         * modules/striconv (Depends-on): Likewise.
102584         * modules/striconveh (Depends-on): Likewise.
102585         * modules/unicodeio (Depends-on): Likewise.
102586         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102587         (iconv_t)(-1).
102588         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102589         conversion if cd is (iconv_t)(-1).
102590         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102591         is not possible.
102593 2007-03-31  Bruno Haible  <bruno@clisp.org>
102595         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102596         work on Solaris either. Protect also second use of "autodetect_jp".
102598 2007-03-31  Bruno Haible  <bruno@clisp.org>
102600         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102601         the function is not present.
102603 2007-03-31  Bruno Haible  <bruno@clisp.org>
102605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102606         the function is not present.
102608 2007-03-31  Bruno Haible  <bruno@clisp.org>
102610         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102611         a bug in HP-UX iconv_open().
102613 2007-03-31  Bruno Haible  <bruno@clisp.org>
102615         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102616         (Mathematics <math.h>): New section, add fpieee.
102617         (Input/output <stdio.h>): Add fseterr.
102618         (Mathematics <math.h>): New section, add printf-frexp.
102619         (Container data structures): Add sublist.
102620         (Core language properties): Add fpucw, inline.
102621         (Functions for greatest-width integer types <inttypes.h>): Add
102622         imaxabs, imaxdiv, inttypes.
102623         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102624         isnanl-nolibm, ldexp.
102625         (Mathematics <math.h>): New section, add printf-frexpl.
102626         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102627         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102628         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102629         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102630         (Unicode string functions): Add unistr/u*-mbtoucr.
102631         (Java): Add javacomp-script, javaexec-script.
102632         (C#): Add csharpcomp-script, csharpexec-script.
102633         (Support for building libraries and executables): Add havelib,
102634         relocatable-*.
102635         (Support for maintaining and releasing projects): Renamed from
102636         'Support for maintaining and release projects'. Add announce-gen.
102638 2007-03-31  Bruno Haible  <bruno@clisp.org>
102640         * README: Talk primarily about git.
102641         (git and CVS): Renamed from CVS.
102642         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102643         gnulib is available through git.
102644         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102646 2007-03-30  Bruno Haible  <bruno@clisp.org>
102648         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102649         * lib/poll_.h: Likewise.
102650         * lib/stat_.h: Likewise.
102651         * lib/sys_time_.h: Likewise.
102652         * lib/sysexit_.h: Likewise.
102653         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102654         * lib/stdbool_.h: Likewise.
102655         * lib/byteswap_.h: Add double-inclusion guard.
102657 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102659         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102661 2007-03-30  Karl Berry  <karl@gnu.org>
102663         * config/srclist-update: double space after USA in the license
102664         substitution, since that's how it's usually (?) written.
102666 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102668         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102669         reported by Bruno Haible.
102671 2007-03-29  Bruno Haible  <bruno@clisp.org>
102673         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102674         a bug in AIX iconv().
102676 2007-03-29  Bruno Haible  <bruno@clisp.org>
102678         * modules/ldexpl-tests: New file.
102679         * tests/test-ldexpl.c: New file.
102681 2007-03-29  Bruno Haible  <bruno@clisp.org>
102683         * lib/ldexpl.c: Include fpucw.h.
102684         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102685         multiplication.
102686         * modules/ldexpl (Depends-on): Add fpucw.
102688 2007-03-29  Bruno Haible  <bruno@clisp.org>
102690         * modules/ldexpl: New file.
102691         * m4/ldexpl.m4: New file.
102692         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102693         set.
102694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102695         REPLACE_LDEXPL.
102696         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102697         REPLACE_LDEXPL.
102698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102699         gl_FUNC_LDEXPL_WORKS.
102700         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102701         * modules/mathl (Files): Remove lib/ldexpl.c.
102702         (Depends-on): Add ldexpl.
102704 2007-03-29  Bruno Haible  <bruno@clisp.org>
102706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102708 2007-03-29  Bruno Haible  <bruno@clisp.org>
102710         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102711         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102712         and possibly also HP-UX.
102713         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102714         work on AIX, IRIX, HP-UX, OSF/1.
102715         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102716         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102717         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102718         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102719         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102720         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102722 2007-03-29  Bruno Haible  <bruno@clisp.org>
102724         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102726 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102728         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102729         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102731 2007-03-29  Eric Blake  <ebb9@byu.net>
102733         * lib/acl-internal.h: Remove redundant include.
102734         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102735         Cygwin when a file is locked.
102737 2007-03-29  Bruno Haible  <bruno@clisp.org>
102739         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102740         file.
102741         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102743 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102745         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102746         try to remove a parent directory if the child couldn't be removed
102747         (except for the first rmdir, which could fail because the child
102748         doesn't exist).  Problem reported by Jeff Blaine in
102749         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102751 2007-03-28  Bruno Haible  <bruno@clisp.org>
102753         * lib/striconveh.c (utf8conv_carefully): New function.
102754         (mem_cd_iconveh_internal): Invoke it.
102756 2007-03-28  Bruno Haible  <bruno@clisp.org>
102758         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102759         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102760         input.
102761         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102762         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102763         unistr/u8-uctomb.
102765 2007-03-28  Bruno Haible  <bruno@clisp.org>
102767         * modules/unistr/u8-mbtoucr: New file.
102768         * lib/unistr/u8-mbtoucr.c: New file.
102769         * modules/unistr/u16-mbtoucr: New file.
102770         * lib/unistr/u16-mbtoucr.c: New file.
102771         * modules/unistr/u16-mbtoucr: New file.
102772         * lib/unistr/u16-mbtoucr.c: New file.
102773         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102775 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102776             Bruno Haible  <bruno@clisp.org>
102778         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102779         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102780         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102782         * m4/stdio_h.m4: Add stubs for vasprintf too.
102784         * modules/stdio: Support vasprintf in sed command.
102786         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102787         vasprintf.h.  Add stdio module indicator.
102789         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102790         vasprintf.h.
102792         * lib/vasprintf.h: File removed.
102794         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
102795         * lib/vasprintf.c: Ditto.
102796         * lib/xvasprintf.c: Ditto.
102797         * tests/test-vasprintf-posix.c: Ditto.
102798         * tests/test-vasprintf.c: Ditto.
102800 2007-03-27  Bruno Haible  <bruno@clisp.org>
102802         Make vasnprintf multithread-safe.
102803         * lib/vasnprintf.c (decimal_point_char): New function.
102804         (VASNPRINTF): Use it.
102805         Suggested by Simon Josefsson.
102807 2007-03-27  Eric Blake  <ebb9@byu.net>
102809         Support sub-second birthtime on cygwin.
102810         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
102811         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
102812         (get_stat_birthtime): Also work with st_birthtim.
102814 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
102816         * lib/stat-time.h (USE_BIRTHTIME): Remove.
102817         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102818         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102819         (get_stat_birthtime_ns): Simplify compile-time tests.
102820         (get_stat_birthtime): Change the API to look like
102821         get_stat_mtime etc., except return a negative tv_nsec on error.
102822         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102823         Don't check for "spare" fields.
102824         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102825         or for struct stat.st_birthtime, as these tests aren't used.
102826         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102828 2007-03-27  Bruno Haible  <bruno@clisp.org>
102830         * lib/stat-time.h: Include <sys/stat.h>.
102832 2007-03-27  James Youngman  <jay@gnu.org>
102834         * lib/stat-time.h (get_stat_birthtime): New function for
102835           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102836         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102837           and its variants.
102838         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102839         * modules/stat-time-test: New file.
102840         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102842 2007-03-26  Bruno Haible  <bruno@clisp.org>
102844         Better support of signalling NaNs.
102845         * lib/atanl.c: Include isnanl.h.
102846         (atanl): Perform test for NaN at the beginning of the function and
102847         through a call to isnanl.
102848         * lib/cosl.c: Include isnanl.h.
102849         (cosl): Perform test for NaN at the beginning of the function and
102850         through a call to isnanl.
102851         * lib/ldexpl.c: Include isnanl.h.
102852         (ldexpl): Perform test for NaN through a call to isnanl.
102853         * lib/logl.c: Include isnanl.h.
102854         (logl): Perform test for NaN at the beginning of the function and
102855         through a call to isnanl.
102856         * lib/sinl.c: Include isnanl.h.
102857         (sinl): Perform test for NaN at the beginning of the function and
102858         through a call to isnanl.
102859         * lib/sqrtl.c: Include isnanl.h.
102860         (sqrtl): Perform test for NaN at the beginning of the function and
102861         through a call to isnanl.
102862         * lib/tanl.c: Include isnanl.h.
102863         (tanl): Perform test for NaN at the beginning of the function and
102864         through a call to isnanl.
102865         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102866         * modules/mathl (Depends-on): Add isnanl.
102868 2007-03-26  Eric Blake  <ebb9@byu.net>
102870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102871         regression in logic sense of previous patch.
102873 2007-03-26  Bruno Haible  <bruno@clisp.org>
102875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102876         unportable shell command "if ! ...".
102877         Reported by Ralf Wildenhues.
102879 2007-03-25  Bruno Haible  <bruno@clisp.org>
102881         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102882         <sysexits.h> file, and only add EX_CONFIG.
102883         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102884         absolute file name and whether it is sufficient. Substitute also
102885         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102886         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102887         ABSOLUTE_SYSEXITS_H into sysexits.h.
102889 2007-03-25  Bruno Haible  <bruno@clisp.org>
102891         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102892         hints is NULL.
102894 2007-03-25  Bruno Haible  <bruno@clisp.org>
102896         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102897         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102899 2007-03-25  Bruno Haible  <bruno@clisp.org>
102901         * lib/vasnprintf.c: Include langinfo.h.
102902         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102903         multithread-safe.
102904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102905         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102913         Reported by Simon Josefsson.
102915 2007-03-25  Bruno Haible  <bruno@clisp.org>
102917         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102918         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102919         * modules/vasnprintf (Depends-on): Add stdint.
102921 2007-03-25  Bruno Haible  <bruno@clisp.org>
102923         * modules/fpieee: New file.
102924         * m4/fpieee.m4: New file.
102925         * modules/isnan-nolibm (Depends-on): Add fpieee.
102926         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102927         * modules/isnanl (Depends-on): Add fpieee.
102929 2007-03-25  Bruno Haible  <bruno@clisp.org>
102931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102933 2007-03-25  Bruno Haible  <bruno@clisp.org>
102935         Avoid test failures on IRIX 6.5.
102936         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102937         (main): Use it.
102938         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102939         macros.
102940         (main): Use them.
102942 2007-03-25  Bruno Haible  <bruno@clisp.org>
102944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102945         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102946         exists but doesn't work.
102947         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102948         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102950         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102951         math.h.
102953 2007-03-25  Bruno Haible  <bruno@clisp.org>
102955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102956         returns inf. Needed on IRIX 6.5.
102958 2007-03-25  Bruno Haible  <bruno@clisp.org>
102960         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102961         (main): Use isnanl instead of x != x idiom.
102962         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102964         * tests/test-frexp.c: Include isnan.h.
102965         (main): Use isnan instead of x != x idiom.
102966         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102968 2007-03-25  Bruno Haible  <bruno@clisp.org>
102970         * tests/test-frexp.c (NaN): New function/macro.
102971         (main): Use it instead of 0.0 / 0.0.
102972         * tests/test-isnan.c (NaN): New function/macro.
102973         (main): Use it instead of 0.0 / 0.0.
102974         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102975         (test_function): Use it instead of 0.0 / 0.0.
102976         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102977         (test_function): Use it instead of 0.0 / 0.0.
102978         * tests/test-snprintf-posix.h (NaN): New function/macro.
102979         (test_function): Use it instead of 0.0 / 0.0.
102980         * tests/test-sprintf-posix.h (NaN): New function/macro.
102981         (test_function): Use it instead of 0.0 / 0.0.
102982         * tests/test-fprintf-posix.h (NaN): New function/macro.
102983         (test_function): Use it instead of 0.0 / 0.0.
102984         * tests/test-printf-posix.h (NaN): New function/macro.
102985         (test_function): Use it instead of 0.0 / 0.0.
102987         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102989 2007-03-25  Bruno Haible  <bruno@clisp.org>
102991         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102993 2007-03-25  Bruno Haible  <bruno@clisp.org>
102995         * lib/regexec.c (merge_state_with_log): Make static.
102997 2007-03-25  Bruno Haible  <bruno@clisp.org>
102999         * lib/trigl.c (kernel_rem_pio2): Make static.
103001 2007-03-25  Bruno Haible  <bruno@clisp.org>
103003         * lib/sincosl.c (sincosl_table): Make static.
103005 2007-03-25  Bruno Haible  <bruno@clisp.org>
103007         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
103008         if the compiler does not support C99.
103010 2007-03-25  Bruno Haible  <bruno@clisp.org>
103012         * modules/time (Makefile.am): Ensure all rule action lines start with a
103013         tab.
103015 2007-03-24  Bruno Haible  <bruno@clisp.org>
103017         * modules/tsearch-tests: New file.
103018         * tests/test-tsearch.sh: New file.
103019         * tests/test-tsearch.c: New file, mostly copied from glibc.
103021         * modules/search-tests: New file.
103022         * tests/test-search.c: New file.
103024         * modules/search: New file.
103025         * lib/search_.h: New file, incorporating lib/tsearch.h.
103026         * m4/search_h.m4: New file.
103027         * lib/tsearch.h: Remove file.
103028         * lib/tsearch.c: Include search.h instead of tsearch.h.
103029         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
103030         HAVE_TSEARCH.
103031         * modules/tsearch (Files): Remove lib/tsearch.h.
103032         (Depends-on): Add search.
103033         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
103034         (Include): Change tsearch.h into search.h.
103036 2007-03-24  Bruno Haible  <bruno@clisp.org>
103038         * modules/fpucw: New file.
103039         * lib/fpucw.h: New file.
103040         * lib/frexp.c: Include fpucw.h.
103041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103042         (FUNC): Use them.
103043         * lib/printf-frexp.c: Include fpucw.h.
103044         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103045         (FUNC): Use them.
103046         * lib/vasnprintf.c: Include fpucw.h.
103047         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
103048         'long double' calculations.
103049         * tests/test-frexpl.c: Include fpucw.h.
103050         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103051         * tests/test-printf-frexpl.c: Include fpucw.h.
103052         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103053         * modules/frexpl (Depends-on): Add fpucw.
103054         * modules/printf-frexpl (Depends-on): Likewise.
103055         * modules/fprintf-posix (Depends-on): Likewise.
103056         * modules/snprintf-posix (Depends-on): Likewise.
103057         * modules/sprintf-posix (Depends-on): Likewise.
103058         * modules/vasnprintf-posix (Depends-on): Likewise.
103059         * modules/vasprintf-posix (Depends-on): Likewise.
103060         * modules/vfprintf-posix (Depends-on): Likewise.
103061         * modules/vsnprintf-posix (Depends-on): Likewise.
103062         * modules/vsprintf-posix (Depends-on): Likewise.
103063         * modules/frexpl-tests (Depends-on): Likewise.
103064         * modules/printf-frexpl-tests (Depends-on): Likewise.
103066 2007-03-24  Bruno Haible  <bruno@clisp.org>
103068         * lib/float+.h: New file.
103069         * lib/isnan.c: Include float+.h.
103070         (SIZE): New macro.
103071         (FUNC): Compare only SIZE bytes of the value.
103072         * lib/vasnprintf.c: Include float+.h.
103073         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
103074         SIZEOF_LDBL or SIZEOF_DBL bytes.
103075         * modules/isnan-nolibm (Files): Add lib/float+.h.
103076         * modules/isnanl-nolibm (Files): Add lib/float+.h.
103077         * modules/isnanl (Files): Add lib/float+.h.
103078         * modules/vasnprintf (Files): Add lib/float+.h.
103080 2007-03-24  Bruno Haible  <bruno@clisp.org>
103082         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
103083         include isnanl-nolibm.h.
103085 2007-03-24  Bruno Haible  <bruno@clisp.org>
103087         * tests/test-read-file.c (main): Don't produce spurious output for
103088         expected situations. Make the test fail if it encountered unexpected
103089         results.
103091 2007-03-24  Bruno Haible  <bruno@clisp.org>
103093         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
103094         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
103096 2007-03-24  Bruno Haible  <bruno@clisp.org>
103098         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
103100 2007-03-24  Bruno Haible  <bruno@clisp.org>
103102         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
103103         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
103105         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
103106         * modules/utf8-ucs4: Turn into a symbolic link to module
103107         unistr/u8-mbtouc.
103109         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
103110         utf8-ucs4-unsafe.
103111         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
103112         unistr/u8-mbtouc-unsafe.
103114         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
103115         * modules/utf16-ucs4: Turn into a symbolic link to module
103116         unistr/u16-mbtouc.
103118         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
103119         utf16-ucs4-unsafe.
103120         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
103121         unistr/u16-mbtouc-unsafe.
103123         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
103124         * modules/ucs4-utf8: Turn into a symbolic link to module
103125         unistr/u8-ubtomb.
103127         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
103128         * modules/ucs4-utf16: Turn into a symbolic link to module
103129         unistr/u16-ubtomb.
103131 2007-03-24  Bruno Haible  <bruno@clisp.org>
103133         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
103134         Enable the function only if HAVE_INLINE.
103135         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
103136         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103137         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
103138         Enable the function only if HAVE_INLINE.
103139         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
103140         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103141         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
103142         Enable the function only if HAVE_INLINE.
103143         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
103144         Enable the function only if HAVE_INLINE.
103145         * modules/utf8-ucs4: Update.
103146         * modules/utf8-ucs4-unsafe: Update.
103147         * modules/utf16-ucs4: Update.
103148         * modules/utf16-ucs4-unsafe: Update.
103149         * modules/ucs4-utf8: Update.
103150         * modules/ucs4-utf16: Update.
103152 2007-03-24  Bruno Haible  <bruno@clisp.org>
103154         * lib/utf8-ucs4.h: Remove file.
103155         * lib/utf8-ucs4-unsafe.h: Remove file.
103156         * lib/utf16-ucs4.h: Remove file.
103157         * lib/utf16-ucs4-unsafe.h: Remove file.
103158         * lib/ucs4-utf8.h: Remove file.
103159         * lib/ucs4-utf16.h: Remove file.
103160         * lib/unistr.h: Include their previous contents.
103161         * m4/utf-ucs4.m4: Remove file.
103162         * m4/ucs4-utf.m4: Remove file.
103163         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
103164         (Depends-on): Add unistr/base.
103165         (configure.ac): Remove gl_UTF_UCS4.
103166         (Makefile.am): Update.
103167         (Include): Change to unistr.h.
103168         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
103169         (Depends-on): Add unistr/base.
103170         (configure.ac): Remove gl_UTF_UCS4.
103171         (Makefile.am): Update.
103172         (Include): Change to unistr.h.
103173         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
103174         (Depends-on): Add unistr/base.
103175         (configure.ac): Remove gl_UTF_UCS4.
103176         (Makefile.am): Update.
103177         (Include): Change to unistr.h.
103178         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
103179         (Depends-on): Add unistr/base.
103180         (configure.ac): Remove gl_UTF_UCS4.
103181         (Makefile.am): Update.
103182         (Include): Change to unistr.h.
103183         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
103184         (Depends-on): Add unistr/base.
103185         (configure.ac): Remove gl_UCS4_UTF.
103186         (Makefile.am): Update.
103187         (Include): Change to unistr.h.
103188         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
103189         (Depends-on): Add unistr/base.
103190         (configure.ac): Remove gl_UCS4_UTF.
103191         (Makefile.am): Update.
103192         (Include): Change to unistr.h.
103193         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
103194         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
103195         utf8-ucs4-unsafe.h.
103196         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
103197         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
103198         utf16-ucs4-unsafe.h.
103199         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
103200         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
103201         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
103202         * lib/unistr/u8-strchr.c: Likewise.
103203         * lib/unistr/u8-strrchr.c: Likewise.
103204         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
103205         * lib/unistr/u16-strchr.c: Likewise.
103206         * lib/unistr/u16-strrchr.c: Likewise.
103207         * lib/striconveh.c: Update.
103208         * lib/linebreak.c: Update.
103210 2007-03-24  Bruno Haible  <bruno@clisp.org>
103212         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
103213         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
103215 2007-03-22  Bruno Haible  <bruno@clisp.org>
103217         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
103219 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103221         * MODULES.html.sh (File system functions): New module write-any-file.
103222         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
103223         * m4/write-any-file.m4: New files.
103225 2007-03-23  Eric Blake  <ebb9@byu.net>
103227         * gnulib-tool: Rearrange space-tab sequences, since some editors
103228         like to eat them.
103230 2007-03-23  Eric Blake  <ebb9@byu.net>
103232         * lib/version-etc.c (version_etc_va): Update license wording to
103233         be more concise.  Recommended by Richard Stallman.
103235 2007-03-22  Bruno Haible  <bruno@clisp.org>
103237         * lib/poll.c (MSG_PEEK): New fallback definition.
103239 2007-03-22  Bruno Haible  <bruno@clisp.org>
103241         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
103242         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
103243         (main): Update.
103244         Fixes a compilation error on BeOS.
103246 2007-03-22  Bruno Haible  <bruno@clisp.org>
103248         * modules/frexpl-tests: New file.
103249         * tests/test-frexpl.c: New file.
103251         * modules/frexpl: New file.
103252         * m4/frexpl.m4: New file.
103253         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
103254         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
103255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
103256         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
103257         (Depends-on): Add frexpl. Remove isnanl-nolibm.
103258         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
103260 2007-03-22  Bruno Haible  <bruno@clisp.org>
103262         * lib/frexpl.c: Share code with lib/frexp.c.
103263         * modules/mathl (Files): Add lib/frexp.c.
103264         (Depends-on): Add isnanl-nolibm.
103266 2007-03-22  Bruno Haible  <bruno@clisp.org>
103268         * modules/printf-frexp (Files): Add m4/frexp.m4.
103269         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
103270         only if the found frexp function actually works.
103272 2007-03-22  Bruno Haible  <bruno@clisp.org>
103274         * lib/frexp.c: Remove older implementation that uses divisions.
103276 2007-03-21  Bruno Haible  <bruno@clisp.org>
103278         * modules/frexp-tests: New file.
103279         * tests/test-frexp.c: New file.
103281         * modules/frexp: New file.
103282         * lib/frexp.c: New file.
103283         * m4/frexp.m4: New file.
103284         * lib/math_.h (frexp): New declaration.
103285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
103286         REPLACE_FREXP.
103287         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
103289 2007-03-21  Bruno Haible  <bruno@clisp.org>
103291         * modules/isnanl-tests: New file.
103292         * tests/test-isnanl.c: New file.
103294         * modules/isnanl: New file.
103295         * lib/isnanl.h: New file.
103296         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
103297         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
103298         gl_FUNC_ISNANL_WORKS.
103299         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
103300         New macros.
103302 2007-03-21  Bruno Haible  <bruno@clisp.org>
103304         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
103305         lib/isnanl.h.
103306         (Include): Update.
103307         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
103308         * lib/vasnprintf.c: Update.
103309         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
103310         tests/test-isnanl.h, remove tests/test-isnanl.c.
103311         (Makefile.am): Update.
103312         * tests/test-isnanl-nolibm.c: New file.
103313         * tests/test-isnanl.h: New file.
103314         * tests/test-isnanl.c: Remove file.
103316 2007-03-21  Jim Meyering  <jim@meyering.net>
103318         When trying to open ".", treat ESTALE like EACCES.
103319         * lib/savewd.c (savewd_save): Resort to forking not just upon
103320         failure with EACCES, but also when errno is ESTALE.
103322 2007-03-20  Bruno Haible  <bruno@clisp.org>
103324         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
103325         Needed on AIX 5.1. Reported by Matthew Woehlke.
103327 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103329         Suggestions by Bruno Haible:
103330         * lib/acl-internal.h: Include "gettext.h" rather than rolling
103331         our own.
103332         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
103333         * modules/acl (Depends-on): Add gettext.
103335 2007-03-19  Bruno Haible  <bruno@clisp.org>
103337         * modules/iconvme: Remove file.
103338         * lib/iconvme.h: Remove file.
103339         * lib/iconvme.c: Remove file.
103340         * m4/iconvme.m4: Remove file.
103342 2007-03-19  Bruno Haible  <bruno@clisp.org>
103344         * doc/relocatable-maint.texi: Break long shell script line.
103345         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103347 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103349         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
103350         handle file_has_acl.
103351         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
103352         * lib/acl.c: Move header inclusions and related macro defns into
103353         lib/acl-internal.h.
103354         (S_ISLNK): Remove defn, since that's now done for us.
103355         (file_has_acl): Move to lib/file-has-acl.c.
103356         Call acl_trivial if available.  This is the crucial part of the fix.
103357         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
103358         shared within the library.  Rewrite a bit, partly to make it compatible
103359         with the GNU coding style.
103360         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
103361         Remove unnecessary double-quotes.
103362         Don't test for acl_to_text; the build will catch that.
103363         Replace acl_entries if it doesn't exist and it is needed.
103364         Check for -lsec and acl_trivial (as used on Solaris 10).
103365         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
103366         lib/file-has-acl.c.
103367         (Depends-on): Add sys_stat, for S_ISLNK.
103369 2007-03-19  Ben Pfaff  <blp@gnu.org>
103371         * doc/gnulib.texi: Fix typos.
103372         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103374 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103376         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
103377         If size is zero here, buf must be zero.
103379 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103381         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103382         <bruno@clisp.org>.
103384 2007-03-18  Bruno Haible  <bruno@clisp.org>
103386         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103387         Suggested by Eric Blake.
103389 2007-03-18  Ben Pfaff  <blp@gnu.org>
103391         * doc/relocatable.texi: Recommend using as prefix a directory
103392         that does not exist and will never be created.  Based on
103393         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103394         and others.
103396 2007-03-17  Bruno Haible  <bruno@clisp.org>
103398         * lib/fchownat.c: Include lchown.h.
103400 2007-03-17  Bruno Haible  <bruno@clisp.org>
103402         Fix endless loop when the given allocated size was > INT_MAX.
103403         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103404         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103405         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103406         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103407         * lib/sprintf.c (sprintf): Likewise.
103409 2007-03-17  Bruno Haible  <bruno@clisp.org>
103411         * tests/test-argp-2.sh (func_compare): Output a context diff.
103413 2007-03-17  Bruno Haible  <bruno@clisp.org>
103415         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103416         locale's decimal-point character.
103418 2007-03-17  Bruno Haible  <bruno@clisp.org>
103420         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103421         before comparing it. Needed because on some platforms (e.g. x86) a
103422         'long double' occupies less bytes than sizeof (long double).
103424 2007-03-17  Bruno Haible  <bruno@clisp.org>
103426         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103427         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103428         * tests/test-getaddrinfo.c (simple): Likewise.
103429         * tests/test-read-file.c (main): Likewise.
103431 2007-03-17  Bruno Haible  <bruno@clisp.org>
103433         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103435 2007-03-17  Bruno Haible  <bruno@clisp.org>
103437         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103438         unused variable.
103440 2007-03-17  Bruno Haible  <bruno@clisp.org>
103442         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103443         * tests/test-c-strncasecmp.c: Likewise.
103445 2007-03-17  Bruno Haible  <bruno@clisp.org>
103447         * modules/stdlib (Depends-on): Add unistd.
103448         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103449         Needed for MacOS X 10.3.
103451 2007-03-17  Bruno Haible  <bruno@clisp.org>
103453         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103455 2007-03-17  Bruno Haible  <bruno@clisp.org>
103457         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103459 2007-03-17  Bruno Haible  <bruno@clisp.org>
103461         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103462         to reflect files copied from gnulib (with or without modifications).
103463         Suggested by Jim Meyering.
103465 2007-03-17  Eric Blake  <ebb9@byu.net>
103467         * NEWS: Document stdlib change from 2007-02-18.
103469 2007-03-17  Jim Meyering  <jim@meyering.net>
103471         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103472         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103473         someone uses a name containing shell meta-characters.
103474         Reported by Alfred M. Szmidt.
103476         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103478 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103480         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103481         and copy gettext configuration files only if configure.ac contains
103482         a use of AM_GNU_GETTEXT_VERSION.
103484 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103486         * build-aux/bootstrap (gnulib_name): New variable.
103487         (gnulib_tool_options): Use it.
103489 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103491         * tests/test-des.c: Use new namespace.
103493 2007-03-15  Bruno Haible  <bruno@clisp.org>
103495         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103496         Reported by James Youngman <jay@gnu.org>.
103498 2007-03-15  Bruno Haible  <bruno@clisp.org>
103500         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103501         declared prototype. Needed with cc on OSF/1 5.1.
103503 2007-03-15  Bruno Haible  <bruno@clisp.org>
103505         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103506         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103507         (struct gl_list_implementation): Add dispose_fn argument to the
103508         'create_empty', 'create' methods.
103509         (struct gl_list_impl_base): Add field 'dispose_fn'.
103510         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103511         argument.
103512         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103513         dispose_fn argument.
103514         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103515         dispose_fn on the dropped values.
103516         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103517         dispose_fn argument.
103518         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103519         dropped values.
103520         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103521         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103522         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103523         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103524         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103525         argument.
103526         (gl_tree_list_free): Call dispose_fn on the dropped values.
103527         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103528         the dropped values.
103529         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103530         Add dispose_fn argument.
103531         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103532         Call dispose_fn on the dropped values.
103533         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103534         Add dispose_fn argument.
103535         (gl_sublist_create): Initialize the 'dispose_fn' field.
103536         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103537         * tests/test-array_list.c (main): Update.
103538         * tests/test-carray_list.c (main): Update.
103539         * tests/test-avltree_list.c (main): Update.
103540         * tests/test-rbtree_list.c (main): Update.
103541         * tests/test-avltreehash_list.c (main): Update.
103542         * tests/test-rbtreehash_list.c (main): Update.
103543         * tests/test-linked_list.c (main): Update.
103544         * tests/test-linkedhash_list.c (main): Update.
103545         * tests/test-array_oset.c (main): Update.
103547 2007-03-15  Bruno Haible  <bruno@clisp.org>
103549         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103550         (gl_oset_create_empty): Add dispose_fn argument.
103551         (struct gl_oset_implementation): Add dispose_fn argument to
103552         'create_empty' method.
103553         (struct gl_oset_impl_base): Add dispose_fn field.
103554         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103555         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103556         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103557         values.
103558         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103559         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103560         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103561         dropped value.
103562         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103563         dropped value.
103564         * tests/test-array_oset.c (main): Update.
103565         * tests/test-avltree_oset.c (main): Update.
103566         * tests/test-rbtree_oset.c (main): Update.
103567         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103569 2007-03-13  Bruno Haible  <bruno@clisp.org>
103571         * tests/test-stdbool.c (i): Update after last patch.
103573 2007-03-12  Bruno Haible  <bruno@clisp.org>
103575         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103576         the iswprint macro. Needed on Solaris 2.5.1.
103578 2007-03-12  Bruno Haible  <bruno@clisp.org>
103580         * tests/test-printf-frexp.c (main): Declare x as volatile.
103582 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103584         * doc/gnulib.texi (Build robot for gnulib): New section.
103586 2007-03-12  Jim Meyering  <jim@meyering.net>
103588         * build-aux/bootstrap: New file.
103589         * build-aux/bootstrap.conf: New file, from coreutils.
103591 2007-03-11  Bruno Haible  <bruno@clisp.org>
103593         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103597         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103598         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103599         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103601 2007-03-11  Bruno Haible  <bruno@clisp.org>
103603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103604         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103606 2007-03-11  Bruno Haible  <bruno@clisp.org>
103608         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103609         formula. Needed for SunPRO C 5.0.
103611 2007-03-11  Bruno Haible  <bruno@clisp.org>
103613         * modules/long-options (Depends-on): Add getopt.
103615 2007-03-11  Bruno Haible  <bruno@clisp.org>
103617         * modules/modechange (Depends-on): Add stdbool.
103619 2007-03-11  Bruno Haible  <bruno@clisp.org>
103621         * modules/i-ring (Depends-on): Add stdbool.
103623 2007-03-11  Bruno Haible  <bruno@clisp.org>
103625         * modules/gc-des (Depends-on): Add stdbool.
103627 2007-03-11  Bruno Haible  <bruno@clisp.org>
103629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103631 2007-03-11  Bruno Haible  <bruno@clisp.org>
103633         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103635 2007-03-11  Bruno Haible  <bruno@clisp.org>
103637         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103639 2007-03-11  Bruno Haible  <bruno@clisp.org>
103641         * lib/vasnprintf.c (sprintf): Undefine.
103643 2007-03-11  Bruno Haible  <bruno@clisp.org>
103645         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103646         initializers in SunPRO C and Compaq C compilers.
103648 2007-03-11  Bruno Haible  <bruno@clisp.org>
103650         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103651         decrementing code ANSI C compliant.
103653 2007-03-11  Bruno Haible  <bruno@clisp.org>
103655         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103656         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103658 2007-03-11  Bruno Haible  <bruno@clisp.org>
103660         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103661         <stdbool.h> substitute doesn't pass.
103663 2007-03-11  Bruno Haible  <bruno@clisp.org>
103665         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103667 2007-03-11  Bruno Haible  <bruno@clisp.org>
103669         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103670         script, for submission to autobuild.josefsson.org.
103672 2007-03-10  Bruno Haible  <bruno@clisp.org>
103674         * modules/canonicalize-lgpl-tests: New file.
103675         * tests/test-canonicalize-lgpl.sh: New file.
103676         * tests/test-canonicalize-lgpl.c: New file.
103678         * modules/c-strcase-tests: New file.
103679         * tests/test-c-strcase.sh: New file.
103680         * tests/test-c-strcasecmp.c: New file.
103681         * tests/test-c-strncasecmp.c: New file.
103683         * modules/atexit-tests: New file.
103684         * tests/test-atexit.sh: New file.
103685         * tests/test-atexit.c: New file.
103687 2007-03-10  Bruno Haible  <bruno@clisp.org>
103689         * tests/test-binary-io.sh: Use temporary filenames that are not so
103690         likely to clash with those of other tests (in a parallel make).
103691         * tests/test-binary-io.c: Likewise.
103693 2007-03-10  Bruno Haible  <bruno@clisp.org>
103695         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103696         fallback; use #error instead.
103697         Suggested by Simon Josefsson.
103699 2007-03-10  Bruno Haible  <bruno@clisp.org>
103701         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103702         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103703         first and the last.
103705 2007-03-10  Bruno Haible  <bruno@clisp.org>
103707         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103709 2007-03-10  Bruno Haible  <bruno@clisp.org>
103711         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103712         "make distcheck".
103713         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103714         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103715         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103717 2007-03-10  Bruno Haible  <bruno@clisp.org>
103719         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103720         variable.
103721         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103722         variable.
103724 2007-03-09  Eric Blake  <ebb9@byu.net>
103725         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103727         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103728         types are not being provided by gnulib.
103729         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103730         types are supported.
103732 2007-03-10  Bruno Haible  <bruno@clisp.org>
103734         * lib/stdio_.h (__attribute__): New macro.
103735         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103736         vsprintf): Specify __attribute__ __format__ for GCC.
103737         Suggested by Eric Blake.
103739 2007-03-09  Bruno Haible  <bruno@clisp.org>
103741         * modules/printf-posix-tests: New file.
103742         * tests/test-printf-posix.sh: New file.
103743         * tests/test-printf-posix.c: New file.
103745         * modules/printf-posix: New file.
103746         * lib/printf.c: New file.
103747         * m4/printf-posix-rpl.m4: New file.
103748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103749         REPLACE_PRINTF.
103750         * lib/stdio_.h (printf): New declaration.
103751         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103752         ____strfmon____): New macros.
103753         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103754         REPLACE_PRINTF.
103756 2007-03-09  Bruno Haible  <bruno@clisp.org>
103758         * tests/test-vasnprintf-posix2.sh: New file.
103759         * tests/test-vasnprintf-posix2.c: New file.
103760         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103761         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103762         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103764         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103765         a locale dependent decimal point, rather than always '.'.
103767 2007-03-09  Eric Blake  <ebb9@byu.net>
103769         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103770         spite of platforms like Tandem/NSK that define it to -1.
103772 2007-03-08  Bruno Haible  <bruno@clisp.org>
103774         * modules/vprintf-posix-tests: New file.
103775         * tests/test-vprintf-posix.sh: New file.
103776         * tests/test-vprintf-posix.c: New file.
103777         * tests/test-printf-posix.h: New file.
103779         * modules/vprintf-posix: New file.
103780         * lib/vprintf.c: New file.
103781         * m4/vprintf-posix.m4: New file.
103782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103783         REPLACE_VPRINTF.
103784         * lib/stdio_.h (vprintf): New declaration.
103785         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103786         REPLACE_VPRINTF.
103788 2007-03-08  Bruno Haible  <bruno@clisp.org>
103790         * modules/fprintf-posix-tests: New file.
103791         * tests/test-fprintf-posix.sh: New file.
103792         * tests/test-fprintf-posix.c: New file.
103794         * modules/fprintf-posix: New file.
103795         * lib/fprintf.c: New file.
103796         * m4/fprintf-posix.m4: New file.
103797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
103798         REPLACE_FPRINTF.
103799         * lib/stdio_.h (fprintf): New declaration.
103800         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
103801         REPLACE_FPRINTF.
103803 2007-03-08  Bruno Haible  <bruno@clisp.org>
103805         * modules/vfprintf-posix-tests: New file.
103806         * tests/test-vfprintf-posix.sh: New file.
103807         * tests/test-vfprintf-posix.c: New file.
103808         * tests/test-fprintf-posix.h: New file.
103809         * tests/test-fprintf-posix.out: New file.
103811         * modules/vfprintf-posix: New file.
103812         * lib/vfprintf.c: New file.
103813         * m4/vfprintf-posix.m4: New file.
103814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
103815         REPLACE_VFPRINTF.
103816         * lib/stdio_.h (vfprintf): New declaration.
103817         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103818         REPLACE_VFPRINTF.
103820 2007-03-08  Bruno Haible  <bruno@clisp.org>
103822         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103824 2007-03-08  Bruno Haible  <bruno@clisp.org>
103826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103827         instead of 'expr' invocations.
103828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103833         Suggested by Paul Eggert.
103835 2007-03-08  Bruno Haible  <bruno@clisp.org>
103837         * modules/fseterr-tests: New file.
103838         * tests/test-fseterr.c: New file.
103840         * modules/fseterr: New file.
103841         * lib/fseterr.h: New file.
103842         * lib/fseterr.c: New file.
103844 2007-03-08  Bruno Haible  <bruno@clisp.org>
103846         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103847         * lib/getopt_.h: Likewise.
103848         * lib/mbswidth.h: Likewise.
103849         * lib/setenv.h: Likewise.
103850         * lib/vasnprintf.h: Likewise.
103851         * lib/vasprintf.h: Likewise.
103852         * lib/verror.h: Likewise.
103853         * lib/xsetenv.h: Likewise.
103854         * lib/xvasprintf.h: Likewise.
103856 2007-03-08  Jim Meyering  <jim@meyering.net>
103858         * users.txt: Add parted.
103860         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103862 2007-03-07  Bruno Haible  <bruno@clisp.org>
103864         * m4/printf.m4: Make the shell script snippets copy&pastable.
103866 2007-03-02  Bruno Haible  <bruno@clisp.org>
103868         * lib/netinet_in_.h: New file.
103869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103870         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103871         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103872         (Depends-on): Add absolute-header.
103873         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103874         into netinet/in.h.
103876 2007-03-03  Bruno Haible  <bruno@clisp.org>
103878         * lib/sys_select_.h: New file.
103879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103880         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103881         * modules/sys_select (Files): Add lib/sys_select_.h.
103882         (Depends-on): Add absolute-header.
103883         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103884         into sys/select.h.
103886 2007-03-02  Bruno Haible  <bruno@clisp.org>
103888         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103889         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103890         values.
103891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103892         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103893         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103894         * modules/sys_socket (Depends-on): Add absolute-header.
103895         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103896         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103897         (Include): Remove requirement of inclusion of <sys/types.h>.
103899 2007-03-02  Bruno Haible  <bruno@clisp.org>
103901         * lib/byteswap_.h (bswap_32): Fix formula.
103903 2007-03-06  Bruno Haible  <bruno@clisp.org>
103905         * modules/sprintf-posix-tests: New file.
103906         * tests/test-sprintf-posix.c: New file.
103908         * modules/sprintf-posix: New file.
103909         * lib/sprintf.c: New file.
103910         * m4/sprintf-posix.m4: New file.
103911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103912         REPLACE_SPRINTF.
103913         * lib/stdio_.h (sprintf): New declaration.
103914         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103915         REPLACE_SPRINTF.
103917 2007-03-06  Bruno Haible  <bruno@clisp.org>
103919         * modules/vsprintf-posix-tests: New file.
103920         * tests/test-vsprintf-posix.c: New file.
103921         * tests/test-sprintf-posix.h: New file.
103923         * modules/vsprintf-posix: New file.
103924         * lib/vsprintf.c: New file.
103925         * m4/vsprintf-posix.m4: New file.
103926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103927         REPLACE_VSPRINTF.
103928         * lib/stdio_.h (vsprintf): New declaration.
103929         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103930         REPLACE_VSPRINTF.
103932 2007-03-06  Bruno Haible  <bruno@clisp.org>
103934         * modules/vsnprintf (Depend-on): Remove minmax.
103936 2007-03-06  Bruno Haible  <bruno@clisp.org>
103938         * modules/snprintf-posix-tests: New file.
103939         * tests/test-snprintf-posix.c: New file.
103941         * modules/snprintf-posix: New file.
103942         * m4/snprintf-posix.m4: New file.
103943         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103944         gl_FUNC_SNPRINTF.
103945         (gl_FUNC_SNPRINTF): Invoke it.
103946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103947         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103948         is set.
103949         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103951 2007-03-06  Bruno Haible  <bruno@clisp.org>
103953         * modules/vsnprintf-posix-tests: New file.
103954         * tests/test-vsnprintf-posix.c: New file.
103955         * tests/test-snprintf-posix.h: New file.
103957         * modules/vsnprintf-posix: New file.
103958         * m4/vsnprintf-posix.m4: New file.
103959         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103960         gl_FUNC_VSNPRINTF.
103961         (gl_FUNC_VSNPRINTF): Invoke it.
103962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103963         * lib/stdio_.h (vsnprintf): Define as a replacement if
103964         REPLACE_VSNPRINTF is set.
103965         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103967 2007-03-06  Bruno Haible  <bruno@clisp.org>
103969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103972 2007-03-06  Bruno Haible  <bruno@clisp.org>
103974         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103975         (asinl): Declare also if HAVE_DECL_ASINL is set.
103976         (atanl): Declare also if HAVE_DECL_ATANL is set.
103977         (ceill): Declare also if HAVE_DECL_CEILL is set.
103978         (cosl): Declare also if HAVE_DECL_COSL is set.
103979         (expl): Declare also if HAVE_DECL_EXPL is set.
103980         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103981         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103982         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103983         (logl): Declare also if HAVE_DECL_LOGL is set.
103984         (sinl): Declare also if HAVE_DECL_SINL is set.
103985         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103986         (tanl): Declare also if HAVE_DECL_TANL is set.
103987         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103990         declaration of frexpl, ldexpl.
103991         * modules/printf-frexpl (Depends-on): Add math.
103992         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103994 2007-03-05  Bruno Haible  <bruno@clisp.org>
103996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103997         frexpl and ldexpl are declared.
103998         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
104000 2007-03-05  Bruno Haible  <bruno@clisp.org>
104002         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
104003         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
104005 2007-03-05  Bruno Haible  <bruno@clisp.org>
104007         * lib/stdio_.h: Include <stddef.h>.
104009 2007-03-05  Bruno Haible  <bruno@clisp.org>
104011         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
104013 2007-03-05  Bruno Haible  <bruno@clisp.org>
104015         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
104016         NetBSD 4, from Ralf Wildenhues.
104018 2007-03-04  Bruno Haible  <bruno@clisp.org>
104020         * lib/vasprintf.h: Update #if logic for the case when the functions
104021         exist but are overridden.
104023 2007-03-04  Bruno Haible  <bruno@clisp.org>
104025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
104026         implementations: glibc-2.4 and MacOS X 10.3.
104027         * tests/test-vasnprintf-posix.c (test_function): Test also the case
104028         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
104029         * tests/test-vasprintf-posix.c (test_function): Likewise.
104031 2007-03-04  Bruno Haible  <bruno@clisp.org>
104033         * modules/vasprintf-posix-tests: New file.
104034         * tests/test-vasprintf-posix.c: New file.
104036         * modules/vasprintf-posix: New file.
104037         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
104038         defined.
104039         * m4/vasprintf-posix.m4: New file.
104040         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
104041         gl_FUNC_VASPRINTF.
104042         (gl_FUNC_VASPRINTF): Invoke it.
104043         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
104044         here.
104045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
104047 2007-03-04  Bruno Haible  <bruno@clisp.org>
104049         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
104050         REPLACE_GETTIMEOFDAY.
104051         * modules/sys_time (Makefile.am): Likewise.
104052         * m4/sys_time_h.m4: Likewise.
104053         * m4/gettimeofday.m4: Likewise.
104055 2007-03-04  Bruno Haible  <bruno@clisp.org>
104057         * modules/vasnprintf-posix-tests: New file.
104058         * tests/test-vasnprintf-posix.c: New file.
104060         * modules/vasnprintf-posix: New file.
104061         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
104062         printf-frexpl.h.
104063         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
104064         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
104065         REPLACE_VASNPRINTF is defined.
104066         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
104067         gl_FUNC_VASNPRINTF.
104068         (gl_FUNC_VASNPRINTF): Invoke it.
104069         * m4/vasnprintf-posix.m4: New file.
104070         * m4/printf.m4: New file.
104072 2007-03-04  Bruno Haible  <bruno@clisp.org>
104074         Compile progreloc.c only if --enable-relocatable is specified.
104075         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
104076         if --enable-relocatable was specified.
104077         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
104078         lib_SOURCES.
104080 2007-03-04  Jim Meyering  <jim@meyering.net>
104082         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
104083         Use it consistently, rather than enumerating errno constants.
104085 2007-03-04  Bruno Haible  <bruno@clisp.org>
104087         * modules/xvasprintf-tests: New file.
104088         * tests/test-xvasprintf.c: New file.
104090         * modules/vasprintf-tests: New file.
104091         * tests/test-vasprintf.c: New file.
104093         * modules/vasnprintf-tests: New file.
104094         * tests/test-vasnprintf.c: New file.
104096         * modules/vsnprintf-tests: New file.
104097         * tests/test-vsnprintf.c: New file.
104099         * modules/snprintf-tests: New file.
104100         * tests/test-snprintf.c: New file.
104102 2007-03-04  Bruno Haible  <bruno@clisp.org>
104104         Compile relocatable.c only if --enable-relocatable is specified.
104105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
104106         gl_RELOCATABLE_LIBRARY.
104107         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
104108         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
104109         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
104110         gl_RELOCATABLE_LIBRARY.
104111         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
104112         (Makefile.am): Remove lib_SOURCES.
104113         * modules/relocatable-lib-lgpl (configure.ac): Invoke
104114         gl_RELOCATABLE_LIBRARY.
104115         (Makefile.am): Remove lib_SOURCES.
104116         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
104117         always.
104118         * modules/relocatable-prog-wrapper (configure.ac): Invoke
104119         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
104121 2007-03-04  Bruno Haible  <bruno@clisp.org>
104123         * modules/argmatch-tests: New file.
104124         * tests/test-argmatch.c: New file.
104126         * tests/test-allocsa.c (main): Halve the number of loop runs.
104128         * modules/alloca-opt-tests: New file.
104129         * tests/test-alloca-opt.c: New file.
104131 2007-03-04  Jim Meyering  <jim@meyering.net>
104133         Work around difference between Linux ACLs and Solaris 10 ZFS.
104134         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
104135         for EINVAL.
104137 2007-03-03  Bruno Haible  <bruno@clisp.org>
104139         * modules/relocatable-prog (Depends-on): Add back progreloc's
104140         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
104142 2007-03-03  Bruno Haible  <bruno@clisp.org>
104144         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
104145         * modules/relocatable-lib: New file.
104147 2007-03-03  Bruno Haible  <bruno@clisp.org>
104149         * modules/relocatable-prog: Renamed from modules/relocatable.
104150         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
104152 2007-03-03  Bruno Haible  <bruno@clisp.org>
104154         * modules/relocatable-script (Files): Add doc/relocatable.texi,
104155         m4/relocatable-lib.m4.
104156         (Depends-on): Remove 'relocatable'.
104157         (configure.ac): Add gl_RELOCATABLE_NOP.
104159 2007-03-03  Bruno Haible  <bruno@clisp.org>
104161         * modules/relocatable-prog-wrapper: New file.
104162         * modules/relocatable (Depends-on): Add it. Remove all other
104163         dependencies except progname.
104164         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
104166         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
104167         (gl_FUNC_STRERROR): Nop.
104168         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
104170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
104171         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
104173         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
104174         (gl_FUNC_READLINK): Update.
104176         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
104178 2007-03-03  Bruno Haible  <bruno@clisp.org>
104180         * lib/xreadlink.c: Include <unistd.h> unconditionally.
104181         * modules/xreadlink (Depends-on): Add unistd.
104182         * modules/xreadlink-with-size (Depends-on): Likewise.
104184 2007-03-03  Bruno Haible  <bruno@clisp.org>
104186         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
104187         extracted from gt_FUNC_SETENV.
104188         (gt_FUNC_SETENV): Remove macro.
104189         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
104190         remove gt_FUNC_SETENV.
104192 2007-03-03  Bruno Haible  <bruno@clisp.org>
104194         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
104195         ENABLE_RELOCATABLE here.
104196         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
104198 2007-03-03  Bruno Haible  <bruno@clisp.org>
104200         * modules/rbtreehash-list-tests (Depends-on): Add progname.
104201         * tests/test-rbtreehash_list.c: Include progname.h.
104202         (main): Call set_program_name.
104204         * modules/rbtree-oset-tests (Depends-on): Add progname.
104205         * tests/test-rbtree_oset.c: Include progname.h.
104206         (main): Call set_program_name.
104208         * modules/rbtree-list-tests (Depends-on): Add progname.
104209         * tests/test-rbtree_list.c: Include progname.h.
104210         (main): Call set_program_name.
104212         * modules/linked-list-tests (Depends-on): Add progname.
104213         * tests/test-linked_list.c: Include progname.h.
104214         (main): Call set_program_name.
104216 2007-03-03  Bruno Haible  <bruno@clisp.org>
104218         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
104219         All uses of __restrict changed to _Restrict_.
104220         * lib/glob_.h (__restrict): Remove macro.
104222 2007-03-02  Bruno Haible  <bruno@clisp.org>
104224         * modules/gettext (configure.ac): Require gettext infrastructure
104225         from version 0.16.1.
104227 2007-03-02  Bruno Haible  <bruno@clisp.org>
104229         * modules/linkedhash-list-tests (Depends-on): Add progname.
104230         * tests/test-linkedhash_list.c: Include progname.h.
104231         (main): Call set_program_name.
104233         * modules/carray-list-tests (Depends-on): Add progname.
104234         * tests/test-carray_list.c: Include progname.h.
104235         (main): Call set_program_name.
104237         * modules/avltreehash-list-tests (Depends-on): Add progname.
104238         * tests/test-avltreehash_list.c: Include progname.h.
104239         (main): Call set_program_name.
104241         * modules/avltree-oset-tests (Depends-on): Add progname.
104242         * tests/test-avltree_oset.c: Include progname.h.
104243         (main): Call set_program_name.
104245         * modules/avltree-list-tests (Depends-on): Add progname.
104246         * tests/test-avltree_list.c: Include progname.h.
104247         (main): Call set_program_name.
104249         * modules/array-oset-tests (Depends-on): Add progname.
104250         * tests/test-array_oset.c: Include progname.h.
104251         (main): Call set_program_name.
104253         * modules/array-list-tests (Depends-on): Add progname.
104254         * tests/test-array_list.c: Include progname.h.
104255         (main): Call set_program_name.
104257         * modules/argp-tests (Depends-on): Add progname.
104258         * tests/test-argp.c: Include argp.h first. Include progname.h.
104259         (main): Call set_program_name.
104261 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
104263         * doc/gnulib-tool.texi (Initial import): Reword description of
104264         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
104265         limited effect even if defined after the first system include.
104267 2007-03-01  Bruno Haible  <bruno@clisp.org>
104269         * build-aux/config.libpath: Update to libtool-1.5.22.
104270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
104272 2007-03-01  Bruno Haible  <bruno@clisp.org>
104274         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
104275         foo_CFLAGS.
104276         Reported by Ralf Wildenhues.
104278 2007-03-01  Bruno Haible  <bruno@clisp.org>
104280         * build-aux/install-reloc: Remove object files left over by some
104281         compilers.
104282         Reported by Ralf Wildenhues.
104284 2007-03-01  Bruno Haible  <bruno@clisp.org>
104286         * build-aux/install-reloc: Break long lines.
104288 2007-03-01  Bruno Haible  <bruno@clisp.org>
104290         * doc/relocatable.texi: Document that it may not work on OpenBSD.
104291         Reported by Ralf Wildenhues.
104293 2007-03-01  Bruno Haible  <bruno@clisp.org>
104295         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
104296         include ordering constraints.
104298 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104300         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
104301         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
104302         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
104303         as another example.
104304         * lib/time_.h: Fix misspelling.
104305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104306         Require gl_HEADER_TIME_H_DEFAULTS.
104307         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
104308         * m4/time_r.m4 (gl_TIME_R): Likewise.
104309         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
104311 2007-03-01  Bruno Haible  <bruno@clisp.org>
104313         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
104314         * m4/utimens.m4 (gl_UTIMENS): Likewise.
104316 2007-03-01  Jim Meyering  <jim@meyering.net>
104318         * modules/xreadlink (Maintainer): Add my name.
104319         * modules/xreadlink-with-size (Depends-on): Alphabetize.
104321 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
104322             Bruno Haible  <bruno@clisp.org>
104324         * build-aux/install-reloc: Compile also c-ctype.c.
104325         * build-aux/relocatable.sh.in: New file.
104326         * doc/relocatable.texi: New file.
104327         * doc/relocatable-maint.texi: New file.
104328         * doc/gnulib.texi: Include relocatable-maint.texi.
104329         * lib/progreloc.c: Include unistd.h unconditionally.
104330         * lib/relocwrapper.c: Include unistd.h unconditionally.
104331         Include c-ctype.h.
104332         (add_dotbin): Use c_tolower.
104333         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
104334         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
104335         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
104336         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
104337         to m4/relocatable-lib.m4.
104338         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
104339         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
104340         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
104341         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
104342         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
104343         * modules/relocatable: New file.
104344         * modules/relocatable-lib: New file.
104345         * modules/relocatable-script: New file.
104347 2007-02-28  Bruno Haible  <bruno@clisp.org>
104349         Import --enable-relocatable infrastructure.
104350         * build-aux/config.libpath: New file, from GNU gettext.
104351         * build-aux/install-reloc: New file, from GNU gettext.
104352         * build-aux/reloc-ldflags: New file, from GNU gettext.
104353         * lib/relocatable.h: New file, from GNU gettext.
104354         * lib/relocatable.c: New file, from GNU gettext.
104355         * lib/relocwrapper.c: New file, from GNU gettext.
104356         * m4/relocatable.m4: New file, from GNU gettext.
104358 2007-02-28  Bruno Haible  <bruno@clisp.org>
104360         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
104362         * modules/xreadlink: New file, from GNU gettext with modifications.
104363         * lib/xreadlink.c: New file, from GNU gettext.
104364         * lib/xreadlink.h: Add comments.
104365         (xreadlink): New declaration.
104367         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
104368         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
104369         lib/xreadlink-with-size.c.
104370         (configure.ac): Remove gl_XREADLINK invocation.
104371         (Makefile.am): Augment lib_SOURCES.
104372         * m4/xreadlink.m4: Remove file.
104373         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
104374         (xreadlink_with_size): Renamed from xreadink.
104375         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
104376         * modules/canonicalize (Depends-on): Replace xreadlink with
104377         xreadlink-with-size.
104378         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104380 2007-02-25  Jim Meyering  <jim@meyering.net>
104382         * build-aux/announce-gen: When complaining about excess arguments,
104383         list them.
104385 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104387         * README: Document signed integer overflow situation more
104388         accurately.
104390 2007-02-25  Bruno Haible  <bruno@clisp.org>
104392         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104393         'a' or 'A' conversion.
104395 2007-02-25  Bruno Haible  <bruno@clisp.org>
104397         * modules/filename: Renamed from modules/pathname.
104398         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104399         lib/concatpath.c with lib/concat-filename.c.
104400         (Makefile.am): Update.
104401         (Include): Replace pathname.h with filename.h.
104402         * lib/filename.h: Renamed from lib/pathname.h.
104403         (concatenated_filename): Renamed from concatenated_pathname.
104404         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104405         (concatenated_filename): Renamed from concatenated_pathname.
104406         * lib/findprog.c: Include filename.h instead of pathname.h.
104407         (find_in_path): Update.
104408         * lib/javacomp.c: Include filename.h instead of pathname.h.
104409         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104410         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104411         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104412         is_oldgcj_14_13_usable, is_javac_usable): Update.
104413         * lib/javaexec.c: Include filename.h instead of pathname.h.
104414         (execute_java_class): Update.
104415         * modules/findprog: Update.
104416         * modules/javacomp: Update.
104417         * modules/javaexec: Update.
104418         * MODULES.html.sh (File system functions): Add 'filename', remove
104419         'pathname'.
104421 2007-02-25  Bruno Haible  <bruno@clisp.org>
104423         * modules/printf-frexpl-tests: New file.
104424         * tests/test-printf-frexpl.c: New file.
104426         * modules/printf-frexpl: New file.
104427         * lib/printf-frexpl.h: New file.
104428         * lib/printf-frexpl.c: New file.
104429         * m4/printf-frexpl.m4: New file.
104431 2007-02-25  Bruno Haible  <bruno@clisp.org>
104433         * modules/printf-frexp-tests: New file.
104434         * tests/test-printf-frexp.c: New file.
104436         * modules/printf-frexp: New file.
104437         * lib/printf-frexp.h: New file.
104438         * lib/printf-frexp.c: New file.
104439         * m4/printf-frexp.m4: New file.
104441 2007-02-25  Bruno Haible  <bruno@clisp.org>
104443         Assume automake >= 1.10 for the tests.
104444         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104445         * modules/arctwo-tests: Likewise.
104446         * modules/argp-tests: Likewise.
104447         * modules/avltree-list-tests: Likewise.
104448         * modules/avltree-oset-tests: Likewise.
104449         * modules/avltreehash-list-tests: Likewise.
104450         * modules/carray-list-tests: Likewise.
104451         * modules/crc-tests: Likewise.
104452         * modules/des-tests: Likewise.
104453         * modules/gc-arcfour-tests: Likewise.
104454         * modules/gc-arctwo-tests: Likewise.
104455         * modules/gc-des-tests: Likewise.
104456         * modules/gc-hmac-md5-tests: Likewise.
104457         * modules/gc-hmac-sha1-tests: Likewise.
104458         * modules/gc-md2-tests: Likewise.
104459         * modules/gc-md4-tests: Likewise.
104460         * modules/gc-md5-tests: Likewise.
104461         * modules/gc-pbkdf2-sha1-tests: Likewise.
104462         * modules/gc-rijndael-tests: Likewise.
104463         * modules/gc-sha1-tests: Likewise.
104464         * modules/gc-tests: Likewise.
104465         * modules/getaddrinfo-tests: Likewise.
104466         * modules/hmac-md5-tests: Likewise.
104467         * modules/hmac-sha1-tests: Likewise.
104468         * modules/linked-list-tests: Likewise.
104469         * modules/linkedhash-list-tests: Likewise.
104470         * modules/lock-tests: Likewise.
104471         * modules/md2-tests: Likewise.
104472         * modules/md4-tests: Likewise.
104473         * modules/md5-tests: Likewise.
104474         * modules/rbtree-list-tests: Likewise.
104475         * modules/rbtree-oset-tests: Likewise.
104476         * modules/rbtreehash-list-tests: Likewise.
104477         * modules/read-file-tests: Likewise.
104478         * modules/rijndael-tests: Likewise.
104479         * modules/stdint-tests: Likewise.
104480         * modules/tls-tests: Likewise.
104482 2007-02-24  Bruno Haible  <bruno@clisp.org>
104484         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104485         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104486         function; instead check whether isnan with a double argument links.
104487         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104488         function; instead check whether isnan with a 'long double' argument
104489         links.
104490         Reported by Eric Blake <ebb9@byu.net>.
104492 2007-02-24  Bruno Haible  <bruno@clisp.org>
104494         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104495         defined.
104496         * lib/isnanl.c: Remove all code. Just include isnan.c.
104497         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104499 2007-02-25  Jim Meyering  <jim@meyering.net>
104501         Avoid conflicting types for 'unsetenv' on FreeBSD.
104502         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104503         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104504         in stdlib.h.
104506 2007-02-24  Bruno Haible  <bruno@clisp.org>
104508         * modules/isnanl-nolibm-tests: New file.
104509         * tests/test-isnanl.c: New file.
104511         * modules/isnanl-nolibm: New file.
104512         * lib/isnanl.h: New file.
104513         * lib/isnanl.c: New file.
104514         * m4/isnanl.m4: New file.
104516 2007-02-24  Bruno Haible  <bruno@clisp.org>
104518         * modules/isnan-nolibm-tests: New file.
104519         * tests/test-isnan.c: New file.
104521         * modules/isnan-nolibm: New file.
104522         * lib/isnan.h: New file.
104523         * lib/isnan.c: New file.
104524         * m4/isnan.m4: New file.
104526 2007-02-24  Bruno Haible  <bruno@clisp.org>
104528         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104529         assume that an exponent fits in 20 bits.
104531 2007-02-24  Jim Meyering  <jim@meyering.net>
104533         * m4/regex.m4: Update the description of the configure-time option,
104534         --without-included-regex, to state accurately what the defaults are,
104535         and perhaps to give people an idea why using this option is risky.
104537 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104540         loops on small arguments.  This attempts to avoid the problem
104541         Bruno Haible reported for AIX 4.3.2 in
104542         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104544 2007-02-23  Bruno Haible  <bruno@clisp.org>
104546         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104547         Needed for help2man.
104549 2007-02-23  Karl Berry  <karl@gnu.org>
104551         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104552         exists, foo.h should be cvs-ignored, not committed.
104554 2007-02-23  Eric Blake  <ebb9@byu.net>
104556         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104557         * lib/stat-time.h (includes): Likewise.
104558         * lib/utimecmp.c (includes): Likewise.
104559         * lib/utimens.h (includes): Likewise.
104560         * lib/getdate.y (includes): Also include "timespec.h" for use
104561         internal to the module.
104562         * modules/utimens (Depends-on): Revert yesterday's patch.
104563         * modules/nanosleep (Depends-on): Add missing dependency.
104565 2007-02-22  Bruno Haible  <bruno@clisp.org>
104567         * lib/glob.c: Don't include getlogin_r.h.
104569 2007-02-22  Jim Meyering  <jim@meyering.net>
104571         * modules/utimens (Depends-on): Add timespec, required for
104572         utimens.h's inclusion of timespec.h.
104574 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104576         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104577         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104578         Schwab in
104579         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104580         I'll try to think of a better way to fix the Solaris problem.
104582         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104583         like glibc; on Solaris 10, it fails with errno == EINVAL.
104584         POSIX says the behavior is unspecified if the first argument is NULL,
104585         so play it safe and never pass NULL to the system getcwd.
104587 2007-02-21  Jim Meyering  <jim@meyering.net>
104589         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104590         of gettimeofday.  It would conflict with the one now always
104591         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104592         an IRIX 6.5 build failure.
104594 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104596         Minor fixups to port to Solaris 10 with Sun C 5.8.
104597         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104598         * modules/getcwd (Depends-on): Add dirfd.
104599         * lib/putenv.c (putenv): #undef it.
104600         (rpl_putenv): New decl.
104601         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104603 2007-02-20  Bruno Haible  <bruno@clisp.org>
104605         * modules/stdio-tests: New file.
104606         * tests/test-stdio.c: New file.
104608         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104609         (Depends-on): Add stdio.
104610         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104611         (Include): Use <stdio.h> instead of vsnprintf.h.
104612         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104613         HAVE_DECL_VSNPRINTF.
104614         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104616         * modules/snprintf (Files): Remove lib/snprintf.h.
104617         (Depends-on): Add stdio.
104618         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104619         (Include): Use <stdio.h> instead of snprintf.h.
104620         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104621         HAVE_DECL_SNPRINTF.
104622         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104623         * lib/getaddrinfo.c: Likewise.
104625         * modules/stdio: New file.
104626         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104627         * lib/snprintf.h: Remove file.
104628         * lib/vsnprintf.h: Remove file.
104629         * lib/.cppi-disable: Remove snprintf.h.
104630         * m4/stdio_h.m4: New file.
104631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104633 2007-02-20  Jim Meyering  <jim@meyering.net>
104635         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104636         used by e.g., mingw.  From Bruno Haible.
104638 2007-02-19  Bruno Haible  <bruno@clisp.org>
104640         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104641         warnings.
104642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104644 2007-02-19  Bruno Haible  <bruno@clisp.org>
104646         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104647         from mingw users.
104649 2007-02-19  Bruno Haible  <bruno@clisp.org>
104651         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104652         warnings.
104653         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104655 2007-02-19  Jim Meyering  <jim@meyering.net>
104657         Don't use FD after a successful "fdopendir (fd)".
104658         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104659         Reset it by calling dirfd on the just-obtained DIR*.
104661         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104662         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104664 2007-02-18  Bruno Haible  <bruno@clisp.org>
104666         * lib/readlink.c: Include <unistd.h>.
104667         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104668         HAVE_READLINK.
104669         * modules/readlink (Depends-on): Add unistd.
104670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104671         (Include): Add <unistd.h>.
104673         * lib/getlogin_r.h: Remove file.
104674         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104675         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104676         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104677         HAVE_DECL_GETLOGIN_R.
104678         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104680         (Include): Use <unistd.h> instead of getlogin_r.h.
104682         * lib/getcwd.h: Remove file.
104683         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104684         * lib/xgetcwd.c: Likewise.
104685         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104686         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104687         * modules/getcwd (Files): Remove lib/getcwd.h.
104688         (Depends-on): Add unistd.
104689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104690         (Include): Use <unistd.h> instad of getcwd.h.
104692         * lib/ftruncate.c: Include <unistd.h> first.
104693         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104694         Set HAVE_FTRUNCATE.
104695         * modules/ftruncate (Depends-on): Add unistd.
104696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104698         * lib/fchdir.c: Include <unistd.h> first.
104699         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104701         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104702         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104703         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104705         * lib/dup2.c: Include <unistd.h> first.
104706         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104707         HAVE_DUP2.
104708         * modules/dup2 (Depends-on): Add unistd.
104709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104711         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104712         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104713         REPLACE_CHOWN. Don't define chown as a macro here.
104714         * modules/chown (Depends-on): Add unistd.
104715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104717         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104718         Add definition for GL_LINK_WARNING.
104719         (chown, dup2): New declarations.
104720         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104721         link warning.
104722         (ftruncate): New declaration.
104723         (getcwd): New declaration, taken from old getcwd.h.
104724         (getlogin_r): New declaration, taken from old getlogin_r.h.
104725         (readlink): New declaration.
104726         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104727         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104728         (gl_PREREQ_UNISTD): Remove macro.
104729         (gl_UNISTD_MODULE_INDICATOR): New macro.
104730         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104731         many new variables. Don't set UNISTD_H.
104732         * modules/unistd (Description): Change.
104733         (Depends-on): Add link-warning.
104734         (configure.ac): Update.
104735         (Makefile.am): Create unistd.h always. Substitute many new variables
104736         into it.
104738 2007-02-18  Bruno Haible  <bruno@clisp.org>
104740         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104741         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104742         HAVE_GETSUBOPT.
104743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104744         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104745         * lib/getsubopt.h: Remove file.
104746         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104747         (Depends-on): Add stdlib.
104748         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104749         (Includes): Use <stdlib.h> instead of getsubopt.h.
104750         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104751         Set HAVE_GETSUBOPT.
104752         * lib/getsubopt.c: Don't include getsubopt.h.
104754 2007-02-18  Bruno Haible  <bruno@clisp.org>
104756         * modules/fchdir (Depends-on): Add dup2.
104758 2007-02-18  Bruno Haible  <bruno@clisp.org>
104760         * lib/stdlib_.h: Handle glibc's special invocation convention
104761         specially.
104763 2007-02-18  Bruno Haible  <bruno@clisp.org>
104765         * modules/stdlib-tests: New file.
104766         * tests/test-stdlib.c: New file.
104768         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104769         (Depends-on): Add stdlib.
104770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104771         (Includes): Use <stdlib.h> instead of mkstemp.h.
104772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104773         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104774         * lib/mkstemp.c: Don't include mkstemp.h.
104775         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104776         * lib/stdlib--.h: Don't include mkstemp.h.
104778         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104779         (Depends-on): Add stdlib.
104780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104781         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104782         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104783         HAVE_MKDTEMP.
104784         * lib/mkdtemp.c: Don't include mkdtemp.h.
104785         * lib/clean-temp.c: Don't include mkdtemp.h.
104787         * modules/exit (Files): Remove lib/exit.h.
104788         (Depends-on): Add stdlib.
104789         (Makefile.am): Remove lib_SOURCES.
104790         (Include): Use <stdlib.h> instead of exit.h.
104791         * lib/argmatch.c: Don't include exit.h.
104792         * lib/execute.c: Likewise.
104793         * lib/pagealign_alloc.c: Likewise.
104794         * lib/pipe.c: Likewise.
104795         * lib/wait-process.c: Likewise.
104796         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
104797         * lib/exitfail.c: Likewise.
104798         * lib/savewd.c: Likewise.
104799         * lib/xsetenv.c: Likewise.
104801         * modules/stdlib: New file.
104802         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
104803         and extra comments about mkstemp().
104804         * lib/exit.h: Remove file.
104805         * lib/mkdtemp.h: Remove file.
104806         * lib/mkstemp.h: Remove file.
104807         * m4/stdlib_h.m4: New file.
104808         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
104810 2007-02-18  Bruno Haible  <bruno@clisp.org>
104812         * modules/math-tests: New file.
104813         * tests/test-math.c: New file.
104815         * modules/math: New file.
104816         * modules/mathl (Files): Remove lib/mathl.h.
104817         (Depends-on): Add math.
104818         (Makefile.am): Don't mention mathl.h.
104819         (Include): Use <math.h> instead of mathl.h.
104820         * lib/math_.h: New file.
104821         * lib/mathl.h: Remove file.
104822         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104823         mathl.h.
104824         * lib/asinl.c: Likewise.
104825         * lib/atanl.c: Likewise.
104826         * lib/ceill.c: Likewise.
104827         * lib/cosl.c: Likewise.
104828         * lib/expl.c: Likewise.
104829         * lib/floorl.c: Likewise.
104830         * lib/frexpl.c: Likewise.
104831         * lib/ldexpl.c: Likewise.
104832         * lib/logl.c: Likewise.
104833         * lib/sincosl.c: Likewise.
104834         * lib/sinl.c: Likewise.
104835         * lib/sqrtl.c: Likewise.
104836         * lib/tanl.c: Likewise.
104837         * lib/trigl.c: Likewise.
104838         * m4/math_h.m4: New file.
104839         * MODULES.html.sh (Mathematics): Add math.
104841 2007-02-17  Bruno Haible  <bruno@clisp.org>
104843         * modules/wctype-tests: New file.
104844         * tests/test-wctype.c: New file.
104846         * modules/wchar-tests: New file.
104847         * tests/test-wchar.c: New file.
104849         * modules/unistd-tests: New file.
104850         * tests/test-unistd.c: New file.
104852         * modules/time-tests: New file.
104853         * tests/test-time.c: New file.
104855         * modules/sysexits-tests: New file.
104856         * tests/test-sysexits.c: New file.
104858         * modules/sys_time-tests: New file.
104859         * tests/test-sys_time.c: New file.
104861         * modules/sys_stat-tests: New file.
104862         * tests/test-sys_stat.c: New file.
104864         * modules/sys_socket-tests: New file.
104865         * tests/test-sys_socket.c: New file.
104867         * modules/sys_select-tests: New file.
104868         * tests/test-sys_select.c: New file.
104870         * modules/string-tests: New file.
104871         * tests/test-string.c: New file.
104873         * modules/stdbool-tests: New file.
104874         * tests/test-stdbool.c: New file.
104876         * modules/netinet_in-tests: New file.
104877         * tests/test-netinet_in.c: New file.
104879         * modules/inttypes-tests: New file.
104880         * tests/test-inttypes.c: New file.
104882         * modules/fcntl-tests: New file.
104883         * tests/test-fcntl.c: New file.
104885         * modules/byteswap-tests: New file.
104886         * tests/test-byteswap.c: New file.
104888         * modules/arpa_inet-tests: New file.
104889         * tests/test-arpa_inet.c: New file.
104891 2007-02-17  Bruno Haible  <bruno@clisp.org>
104893         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104894         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104895         if the corresponding module is not enabled. Emit link warnings if
104896         the function is used nevertheless.
104897         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104898         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104899         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104900         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104901         * modules/inttypes (Depends-on): Add link-warning.
104902         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104903         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104904         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104905         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104906         * modules/imaxdiv (configure.ac): Likewise.
104907         * modules/strtoimax (configure.ac): Likewise.
104908         * modules/strtoumax (configure.ac): Likewise.
104910 2007-02-17  Bruno Haible  <bruno@clisp.org>
104912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104913         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104914         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104915         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104917 2007-02-17  Bruno Haible  <bruno@clisp.org>
104919         * modules/link-warning: New file.
104920         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104921         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104922         * modules/string (Depends-on): Add link-warning.
104923         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104924         string.h.
104925         * MODULES.html.sh (Support for building libraries and executables): Add
104926         link-warning.
104928 2007-02-17  Bruno Haible  <bruno@clisp.org>
104930         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104931         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104932         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104933         long lines.
104935 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104936             Bruno Haible  <bruno@clisp.org>
104938         * modules/tmpfile: New file.
104939         * lib/tmpfile.c: New file.
104940         * m4/tmpfile.m4: New file.
104941         * MODULES.html.sh (func_all_modules): New section "Input/output".
104943 2007-02-15  Bruno Haible  <bruno@clisp.org>
104945         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104946         (supports_delete_on_close): New function.
104947         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104949 2007-02-14  Bruno Haible  <bruno@clisp.org>
104951         * modules/mbspcasecmp-tests: New file.
104952         * tests/test-mbspcasecmp.sh: New file.
104953         * tests/test-mbspcasecmp.c: New file.
104955         New module mbspcasecmp.
104956         * modules/mbspcasecmp: New file.
104957         * lib/mbspcasecmp.c: New file.
104958         * lib/string_.h (strncasecmp): Change warning message.
104959         (mbspcasecmp): New declaration.
104960         * m4/mbspcasecmp.m4: New file.
104961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104962         GNULIB_MBSPCASECMP.
104963         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104964         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104966 2007-02-14  Bruno Haible  <bruno@clisp.org>
104968         * modules/mbsncasecmp-tests: New file.
104969         * tests/test-mbsncasecmp.sh: New file.
104970         * tests/test-mbsncasecmp.c: New file.
104972         New module mbsncasecmp.
104973         * modules/mbsncasecmp: New file.
104974         * lib/mbsncasecmp.c: New file.
104975         * lib/string_.h (mbsncasecmp): New declaration.
104976         * m4/mbsncasecmp.m4: New file.
104977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104978         GNULIB_MBSNCASECMP.
104979         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104980         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104982 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104984         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104985         Verify that it doesn't overlap with our flags.
104986         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104987         do not have the desired effect in multibyte locales; instead, use
104988         mbscasecmp.
104989         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104990         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104991         we don't require GNU fnmatch ourselves (if our users require it, they
104992         should do so explicitly).
104994         Fix regex code so it doesn't rely on strcasecmp.
104995         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104996         Otherwise, include gnulib's langinfo.h.
104997         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104998         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104999         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
105000         * modules/regex (FILES): Remove m4/codeset.m4.
105001         (Depends-on): Add localcharset.  Remove strcase.
105003 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105005         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
105006         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
105008 2007-02-13  Bruno Haible  <bruno@clisp.org>
105010         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
105011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105013 2007-02-12  Bruno Haible  <bruno@clisp.org>
105015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105016         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
105017         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
105018         time warning rather than a link error.
105020 2007-02-12  Bruno Haible  <bruno@clisp.org>
105022         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
105023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
105024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105026 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105028         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
105029         args, not 2.
105031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105033         New module 'time', so that apps can include <time.h> as per
105034         POSIX and GNU instead of separate include files like time_r.h
105035         and timegm.h.  This implementation tries out a simpler approach
105036         for replacing decls in standard include files (as compared to
105037         the string module), somewhat as an experiment.
105039         * config/srclist.txt: Comment out mktime.c for now.
105040         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
105041         since it doesn't apply any more.  Use generic wording instead.
105042         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
105043         'time'.
105044         * lib/time_.h, m4/time_h.m4, modules/time: New files.
105045         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
105046         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
105047         Don't include <sys/types.h>; no longer needed since we assume C89.
105048         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
105049         * lib/strftime.c: Likewise.
105050         * lib/time_r.c: Likewise.
105051         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
105052         * lib/nanosleep.c: Include <time.h> first, to check interface.
105053         * lib/strptime.c: Likewise.
105054         * lib/time_r.c: Likewise.
105055         * lib/timegm.c: Likewise.
105056         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
105057         needed.
105058         * lib/timegm.c: Don't include timegm.h; no longer needed.
105059         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
105060         time.h now handles any problems in that area.
105061         (struct timespec, nanosleep): Remove; time.h now arranges for these.
105062         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
105063         that time.h defines struct timespec.
105064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
105065         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
105066         handles that.
105067         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
105068         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
105069         needed.  Set REPLACE_LOCALTIME.
105070         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
105071         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
105072         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
105073         nanosleep; time_h.m4 now does that.  Don't require
105074         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
105075         module handles this now.
105076         * modules/getdate (Depends-on): Remove timespec.  Add time.
105077         * modules/nanosleep (Depends-on): Likewise.
105078         * modules/stat-time (Depends-on): Likewise.
105079         * modules/nanosleep (Include): Include time.h, not timespec.h.
105080         * modules/strptime (Files): Remove lib/strptime.h.
105081         (Depends-on): Add extensions, time.
105082         (Include): Include time.h, not strptime.h.
105083         * modules/time_r (Files): Remove lib/time_r.h.
105084         (Depends-on): Add time.
105085         (Include): Include time.h, not time_r.h.
105086         * modules/timegm: Likewise.
105087         * modules/timespec (Description): Now does timespec-related decls
105088         of our own, instead of struct timespec itself.
105089         (Depends-on): Add time; remove extensions.
105090         (Maintainer): Add self.
105091         * modules/utimecmp (Depends-on): Add time; remove timespec.
105092         * modules/utimens (Depends-on): Likewise.
105093         * modules/xnanosleep (Depends-on): Likewise.
105095 2007-02-11  Bruno Haible  <bruno@clisp.org>
105097         * lib/c-strstr.c: Include allocsa.h.
105098         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105099         * lib/c-strcasestr.c: Include allocsa.h.
105100         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105101         * lib/strcasestr.c: Include allocsa.h.
105102         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105103         * lib/mbsstr.c: Include allocsa.h.
105104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105105         allocsa/freesa instead of malloc/free.
105106         * lib/mbscasestr.c: Include allocsa.h.
105107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105108         allocsa/freesa instead of malloc/free.
105109         * modules/c-strstr (Depends-on): Add allocsa.
105110         * modules/c-strcasestr (Depends-on): Likewise.
105111         * modules/strcasestr (Depends-on): Likewise.
105112         * modules/mbsstr (Depends-on): Likewise.
105113         * modules/mbscasestr (Depends-on): Likewise.
105115 2007-02-11  Bruno Haible  <bruno@clisp.org>
105117         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
105119         * modules/mbsspn-tests: New file.
105120         * tests/test-mbsspn.sh: New file.
105121         * tests/test-mbsspn.c: New file.
105123 2007-02-11  Bruno Haible  <bruno@clisp.org>
105125         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
105127         * modules/mbspbrk-tests: New file.
105128         * tests/test-mbspbrk.sh: New file.
105129         * tests/test-mbspbrk.c: New file.
105131 2007-02-11  Bruno Haible  <bruno@clisp.org>
105133         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
105134         unneeded cast.
105136         * modules/mbscspn-tests: New file.
105137         * tests/test-mbscspn.sh: New file.
105138         * tests/test-mbscspn.c: New file.
105140 2007-02-11  Bruno Haible  <bruno@clisp.org>
105142         * modules/mbscasecmp-tests: New file.
105143         * tests/test-mbscasecmp.sh: New file.
105144         * tests/test-mbscasecmp.c: New file.
105146 2007-02-11  Bruno Haible  <bruno@clisp.org>
105148         Ensure O(n) worst-case complexity of mbscasestr.
105149         * lib/mbscasestr.c: Include stdbool.h.
105150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105151         functions.
105152         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
105153         the bookkeeping indicates that it's worth it.
105154         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
105156         * modules/mbscasestr-tests: New file.
105157         * tests/test-mbscasestr1.c: New file.
105158         * tests/test-mbscasestr2.sh: New file.
105159         * tests/test-mbscasestr2.c: New file.
105160         * tests/test-mbscasestr3.sh: New file.
105161         * tests/test-mbscasestr3.c: New file.
105162         * tests/test-mbscasestr4.sh: New file.
105163         * tests/test-mbscasestr4.c: New file.
105164         * m4/locale-tr.m4: New file.
105166 2007-02-11  Bruno Haible  <bruno@clisp.org>
105168         Ensure O(n) worst-case complexity of mbsstr.
105169         * lib/mbsstr.c: Include stdbool.h.
105170         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105171         functions.
105172         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
105173         bookkeeping indicates that it's worth it.
105174         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
105176         * modules/mbsstr-tests: New file.
105177         * tests/test-mbsstr1.c: New file.
105178         * tests/test-mbsstr2.sh: New file.
105179         * tests/test-mbsstr2.c: New file.
105180         * tests/test-mbsstr3.sh: New file.
105181         * tests/test-mbsstr3.c: New file.
105182         * m4/locale-fr.m4: New file.
105184 2007-02-11  Bruno Haible  <bruno@clisp.org>
105186         * lib/mbsrchr.c (mbsrchr): Fix bug.
105188         * modules/mbsrchr-tests: New file.
105189         * tests/test-mbsrchr.sh: New file.
105190         * tests/test-mbsrchr.c: New file.
105192 2007-02-11  Bruno Haible  <bruno@clisp.org>
105194         * lib/mbschr.c (mbschr): Fix bug.
105196         * modules/mbschr-tests: New file.
105197         * tests/test-mbschr.sh: New file.
105198         * tests/test-mbschr.c: New file.
105199         * m4/locale-zh.m4: New file.
105201 2007-02-11  Bruno Haible  <bruno@clisp.org>
105203         Support for copying multibyte string iterators.
105204         * lib/mbiter.h: Include <string.h>.
105205         (mbiter_multi_copy): New function.
105206         (mbi_copy): New macro.
105207         * lib/mbuiter.h: Include <string.h>.
105208         (mbuiter_multi_copy): New function.
105209         (mbui_copy): New macro.
105211 2007-02-11  Bruno Haible  <bruno@clisp.org>
105213         New module mbslen.
105214         * modules/mbslen: New file.
105215         * lib/mbslen.c: New file.
105216         * lib/string_.h (mbslen): New declaration.
105217         * m4/mbslen.m4: New file.
105218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105219         GNULIB_MBSLEN.
105220         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
105221         * MODULES.html.sh (Internationalization functions): Add mbslen.
105223 2007-02-11  Bruno Haible  <bruno@clisp.org>
105225         Ensure O(n) worst-case complexity of strcasestr substitute.
105226         * lib/strcasestr.c: Include stdbool.h.
105227         (knuth_morris_pratt): New function.
105228         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105229         bookkeeping indicates that it's worth it.
105230         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
105232         * modules/strcasestr-tests: New file.
105233         * tests/test-strcasestr.c: New file.
105235 2007-02-11  Bruno Haible  <bruno@clisp.org>
105237         Ensure O(n) worst-case complexity of c_strcasestr.
105238         * lib/c-strcasestr.c: Include stdbool.h, string.h.
105239         (knuth_morris_pratt): New function.
105240         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
105241         the bookkeeping indicates that it's worth it.
105242         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
105244         * modules/c-strcasestr-tests: New file.
105245         * tests/test-c-strcasestr.c: New file.
105247 2007-02-11  Bruno Haible  <bruno@clisp.org>
105249         Ensure O(n) worst-case complexity of c_strstr.
105250         * lib/c-strstr.c: Include stdbool.h, string.h.
105251         (knuth_morris_pratt): New function.
105252         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105253         bookkeeping indicates that it's worth it.
105254         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
105256         * lib/c-strstr.c: Complete rewrite for maintainability.
105258         * modules/c-strstr-tests: New file.
105259         * tests/test-c-strstr.c: New file.
105261 2007-02-11  Bruno Haible  <bruno@clisp.org>
105263         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
105264         5.2.1 and earlier, whereby \055 was treated just like the range
105265         delimiter '-'.
105266         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
105268 2007-02-08  Bruno Haible  <bruno@clisp.org>
105270         * modules/regex (Depends-on): Add stdbool.
105271         Reported by Dalibor Topic <robilad@kaffe.org>.
105273 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
105275         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
105276         Prefer returning from main to exiting from it.
105277         Remove unnecessary parens after sizeof.
105279 2007-02-05  Bruno Haible  <bruno@clisp.org>
105281         New module mbssep.
105282         * modules/mbssep: New file.
105283         * lib/mbssep.c: New file.
105284         * lib/string_.h (strsep): Add a conditional link warning.
105285         (mbssep): New declaration.
105286         * m4/mbssep.m4: New file.
105287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105288         GNULIB_MBSSEP.
105289         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
105290         * MODULES.html.sh (Internationalization functions): Add mbssep.
105292 2007-02-05  Bruno Haible  <bruno@clisp.org>
105294         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
105295         Optimize search in case of 1 delimiter.
105297 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105299         * lib/acl.h: Include sys/types.h before sys/acl.h.
105301 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105303         Merge upstream fix for glibc bugzilla #3957:
105305         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
105307         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
105308         bit for RE_HAT_LISTS_NOT_NEWLINE.
105309         (build_charclass_op): Remove bogus comment.
105311 2007-02-05  Simon Josefsson  <simon@josefsson.org>
105313         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
105315 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105317         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
105318         * lib/memmem.c [!defined _LIBC]: Include config.h.
105320 2007-02-04  Bruno Haible  <bruno@clisp.org>
105322         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
105323         warning message.
105325 2007-02-04  Bruno Haible  <bruno@clisp.org>
105327         New module mbstok_r.
105328         * modules/mbstok_r: New file.
105329         * lib/mbstok_r.c: New file.
105330         * lib/string_.h (strtok_r): Change argument names to match the
105331         comments. Add a conditional link warning.
105332         (mbstok_r): New declaration.
105333         * m4/mbstok_r.m4: New file.
105334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105335         GNULIB_MBSTOK_R.
105336         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
105337         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
105339 2007-02-04  Bruno Haible  <bruno@clisp.org>
105341         New module mbsspn.
105342         * modules/mbsspn: New file.
105343         * lib/mbsspn.c: New file.
105344         * lib/string_.h (strspn): Add a conditional link warning.
105345         (mbsspn): New declaration.
105346         * m4/mbsspn.m4: New file.
105347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105348         GNULIB_MBSSPN.
105349         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
105350         * MODULES.html.sh (Internationalization functions): Add mbsspn.
105352 2007-02-04  Bruno Haible  <bruno@clisp.org>
105354         New module mbspbrk.
105355         * modules/mbspbrk: New file.
105356         * lib/mbspbrk.c: New file.
105357         * lib/string_.h (strpbrk): Add a conditional link warning.
105358         (mbspbrk): New declaration.
105359         * m4/mbspbrk.m4: New file.
105360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105361         GNULIB_MBSPBRK.
105362         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
105363         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
105365 2007-02-04  Bruno Haible  <bruno@clisp.org>
105367         New module mbscspn.
105368         * modules/mbscspn: New file.
105369         * lib/mbscspn.c: New file.
105370         * lib/string_.h (strcspn): Add a conditional link warning.
105371         (mbscspn): New declaration.
105372         * m4/mbscspn.m4: New file.
105373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105374         GNULIB_MBSCSPN.
105375         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
105376         * MODULES.html.sh (Internationalization functions): Add mbscspn.
105378 2007-02-04  Bruno Haible  <bruno@clisp.org>
105380         New module mbscasestr, reduced goal of strcasestr.
105381         * modules/mbscasestr: New file.
105382         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105383         (mbscasestr): Renamed from strcasestr.
105384         * lib/strcasestr.c: Don't include mbuiter.h.
105385         (strcasestr): Remove support for multibyte locales.
105386         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105387         Change the conditional link warning.
105388         (mbscasestr): New declaration.
105389         * m4/mbscasestr.m4: New file.
105390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105391         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105392         REPLACE_STRCASESTR.
105393         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105395         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105397         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105398         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105399         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105400         (Depends-on): Remove mbuiter.
105401         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105403 2007-02-04  Bruno Haible  <bruno@clisp.org>
105405         Simplify handling of strncasecmp.
105406         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105407         the conditional link warning.
105408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105409         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105411         * modules/strcase (configure.ac): Don't invoke
105412         gl_STRING_MODULE_INDICATOR.
105413         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105415 2007-02-04  Bruno Haible  <bruno@clisp.org>
105417         New module mbscasecmp, reduced goal of strcasecmp.
105418         * modules/mbscasecmp: New file.
105419         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105420         (mbscasecmp): Renamed from strcasecmp.
105421         * lib/strcasecmp.c: Don't include mbuiter.h.
105422         (strcasecmp): Remove support for multibyte locales.
105423         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105424         Change the conditional link warning.
105425         (mbscasecmp): New declaration.
105426         * m4/mbscasecmp.m4: New file.
105427         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105428         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105429         REPLACE_STRCASECMP.
105430         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105432         GNULIB_MBSCASECMP.
105433         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105434         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105435         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105436         (Depends-on): Remove mbuiter.
105437         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105439 2007-02-04  Bruno Haible  <bruno@clisp.org>
105441         New module mbsstr. Remove module strstr.
105442         * modules/mbsstr: New file.
105443         * modules/strstr: Remove file.
105444         * lib/mbsstr.c: Renamed from lib/strstr.c.
105445         (mbsstr): Renamed from strstr.
105446         * lib/string_.h (strstr): Remove declaration. Change the conditional
105447         link warning.
105448         (mbsstr): New declaration.
105449         * m4/mbsstr.m4: New file.
105450         * m4/strstr.m4: Remove file.
105451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105452         REPLACE_STRSTR.
105453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105454         Don't initialize GNULIB_STRSTR.
105455         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105456         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105457         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105458         (Support for systems lacking ANSI C 89): Remove strstr.
105460 2007-02-04  Bruno Haible  <bruno@clisp.org>
105462         New module mbsrchr.
105463         * modules/mbsrchr: New file.
105464         * lib/mbsrchr.c: New file.
105465         * lib/string_.h (strrchr): Add a conditional link warning.
105466         (mbsrchr): New declaration.
105467         * m4/mbsrchr.m4: New file.
105468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105469         GNULIB_MBSRCHR.
105470         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105471         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105473 2007-02-04  Bruno Haible  <bruno@clisp.org>
105475         New module mbschr.
105476         * modules/mbschr: New file.
105477         * lib/mbschr.c: New file.
105478         * lib/string_.h (strchr): Add a conditional link warning.
105479         (mbschr): New declaration.
105480         * m4/mbschr.m4: New file.
105481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105482         GNULIB_MBSCHR.
105483         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105484         * MODULES.html.sh (Internationalization functions): Add mbschr.
105486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105488         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105490         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105492 2007-02-04  Bruno Haible  <bruno@clisp.org>
105494         New module description section 'configure.ac-early'.
105495         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105496         (func_get_autoconf_early_snippet): New function.
105497         (func_import, func_create_testdir): Use it. Remove special cases for
105498         modules 'extensions' and 'lock'.
105499         * modules/extensions (configure.ac-early): Require
105500         gl_USE_SYSTEM_EXTENSIONS.
105501         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105503 2007-02-04  Bruno Haible  <bruno@clisp.org>
105505         Make use of gcj-4.3's -fsource and -ftarget option.
105506         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105507         and if so try the options -fsource and -ftarget.
105508         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105509         source_version, ftarget_option, target_version arguments.
105510         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105511         (is_envjavac_oldgcj_14_14_usable): Renamed from
105512         is_envjavac_gcj_14_14_usable.
105513         (is_envjavac_oldgcj_14_13_usable): Renamed from
105514         is_envjavac_gcj_14_13_usable.
105515         (is_gcj_present): Update.
105516         (is_gcj_43, is_gcj43_usable): New functions.
105517         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105518         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105519         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105520         try the options -fsource and -ftarget.
105522 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105524         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105525         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105526         larger value.
105528 2007-02-03  Jim Meyering  <jim@meyering.net>
105530         Give tools a better chance to allocate space for very large buffers.
105531         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105533         Make pwd and readlink work also when run with an unreadable parent dir
105534         on systems with openat support.
105535         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105536         provided getcwd function, even when we have openat support.
105537         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105539 2007-02-02  Bruno Haible  <bruno@clisp.org>
105541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105543         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105544         portability problems if one of these functions is only used on specific
105545         platforms.
105546         Reported by Paul Eggert.
105548 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105550         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105551         is causing more trouble than it's curing.
105552         * lib/regex_internal.h (__mempcpy): Remove.
105553         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105554         (and make the code a tad smaller to boot).
105555         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105557 2007-02-02  Jim Meyering  <jim@meyering.net>
105559         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105560         section, not in the Makefile.am: one.
105562 2007-02-02  Eric Blake  <ebb9@byu.net>
105564         * lib/strchrnul.c: Always include config.h first.
105566         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105567         gnulib strstr is not necessary here.
105569 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105571         * m4/socklen.m4: Fix typo.
105573 2007-02-02  Eric Blake  <ebb9@byu.net>
105575         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105576         * modules/netinet_in (Makefile.am): Likewise.
105578 2007-02-01  Bruno Haible  <bruno@clisp.org>
105580         * lib/string_.h (GL_LINK_WARNING): New macro.
105581         (strcasecmp, strstr, strcasestr): If provided by the system,
105582         conditionally define as a macro that leads to a warning instead of to
105583         an error.
105584         (strncasecmp): Conditionally define as a macro that leads to a warning.
105586 2007-02-01  Karl Berry  <karl@gnu.org>
105588         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105590 2007-02-01  Bruno Haible  <bruno@clisp.org>
105592         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105593         renamings.
105595 2007-02-01  Eric Blake  <ebb9@byu.net>
105597         * modules/regex (Depends-on): Revert dependence on mempcpy.
105598         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105599         module's definition of mempcpy.
105600         Reported by Paul Eggert.
105602 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105604         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105605         the symbol XYZ before redefining it.  This fixes a problem with
105606         programs that don't use XYZ, when compiled on systems that define
105607         XYZ to something else.
105609 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105611         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105612         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105613         writeable to group or other and (2) is intended to have a special
105614         mode bit that is set or cleared.  In such a case, the directory
105615         should be neither group- nor other-writeable until the special
105616         mode bits are right.
105618 2007-01-31  Eric Blake  <ebb9@byu.net>
105620         * modules/mountlist (Depends-on): Add strstr.
105622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105623         bug.
105624         * modules/string (Makefile.am): Remove redundant replacement.
105625         * modules/regex (Depends-on): Add mempcpy.
105627 2007-01-31  Bruno Haible  <bruno@clisp.org>
105629         New module description field 'Link'.
105630         * gnulib-tool (func_usage): Document --extract-link-directive.
105631         (sed_extract_prog): Recognize 'Link' directive.
105632         (func_get_link_directive): New function.
105633         (func_import): Show summary of link directives.
105634         Handle --extract-link-directive option.
105635         * modules/acl (Link): New section.
105636         * modules/clock-time (Link): New section.
105637         * modules/euidaccess (Link): New section.
105638         * modules/gettext (Link): New section.
105639         * modules/iconv (Link): New section.
105640         * modules/lock (Link): New section.
105641         * modules/nanosleep (Link): New section.
105642         * modules/readline (Link): New section.
105644 2007-01-27  Bruno Haible  <bruno@clisp.org>
105646         Enforce the use of gnulib modules for unportable <string.h> functions.
105647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105649         (gl_HEADER_STRING_H_BODY): Require it.
105650         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105651         the symbol XYZ to one that gives a link error.
105652         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105653         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105654         * modules/mempcpy (configure.ac): Likewise.
105655         * modules/memrchr (configure.ac): Likewise.
105656         * modules/stpcpy (configure.ac): Likewise.
105657         * modules/stpncpy (configure.ac): Likewise.
105658         * modules/strcase (configure.ac): Likewise.
105659         * modules/strcasestr (configure.ac): Likewise.
105660         * modules/strchrnul (configure.ac): Likewise.
105661         * modules/strdup (configure.ac): Likewise.
105662         * modules/strndup (configure.ac): Likewise.
105663         * modules/strnlen (configure.ac): Likewise.
105664         * modules/strpbrk (configure.ac): Likewise.
105665         * modules/strsep (configure.ac): Likewise.
105666         * modules/strstr (configure.ac): Likewise.
105667         * modules/strtok_r (configure.ac): Likewise.
105669 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105671         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105673 2007-01-30  Jim Meyering  <jim@meyering.net>
105675         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105677 2007-01-29  Bruno Haible  <bruno@clisp.org>
105679         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105680         * lib/execute.c: Likewise.
105681         * lib/pipe.c: Likewise.
105682         * lib/printf-args.h: Likewise.
105683         * lib/printf-args.c: Likewise.
105684         * lib/printf-parse.c: Likewise.
105685         * lib/vasnprintf.c: Likewise.
105687 2007-01-29  Eric Blake  <ebb9@byu.net>
105689         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105690         declaration.
105692 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105694         * lib/strptime.h (strptime): Use 'restrict' for args where
105695         POSIX requires this.
105696         * lib/strptime.c (strptime): Likewise.
105697         Change license notice from LGPL to GPL, since gnulib-tool will
105698         change this as needed.
105699         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105700         defined.
105701         Include "strptime.h" first, to check interface.
105702         Do not #undef _LIBC and _NL_CURRENT.
105703         Do not include <stdlib.h>; no longer needed.
105704         Include "time_r.h" and declare ptime_locale_status
105705         only if _LIBC is not defined.
105706         (__P): Remove unused macro.
105707         (match_string): Bring back glibc version, but use it only if _LIBC
105708         is defined.
105709         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105710         Remove unnecessary assertion and abort() call.
105711         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105712         * m4/strptime.m4: Fix serial number comment.
105713         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105714         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105715         (Depends-on): Add time_r.
105717 2007-01-29  Bruno Haible  <bruno@clisp.org>
105719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105720         strptime.
105721         * modules/strptime (Depends-on): Add stdbool.
105722         * lib/strptime.h: Include <time.h> always. Add comments.
105724 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105726         * modules/strptime: New file.
105727         * lib/strptime.h: New file.
105728         * lib/strptime.c: New file.
105729         * m4/strptime.m4: New file.
105731 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105733         * MODULES.html.sh: New module mpsort.
105734         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105736         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105737         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105738         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105739         All uses changed.
105740         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105741         All uses changed.
105742         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105743         to _Restrict_.
105744         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105745         the parameter matches the prototype.
105747 2007-01-28  Jim Meyering  <jim@meyering.net>
105749         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105750         sys/time.h here, reverting that part of the previous patch:
105751         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105753 2007-01-28  Bruno Haible  <bruno@clisp.org>
105755         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105756         value of $(SYS_TIME_H).
105757         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105758         remove it conditionally, too. [added by Jim Meyering]
105759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105761         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105762         GETTIMEOFDAY_REPLACEMENT to 1.
105764 2007-01-28  Bruno Haible  <bruno@clisp.org>
105766         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105767         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105769         Set UNISTD_H instead of UNISTD_H2.
105770         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105772 2007-01-28  Bruno Haible  <bruno@clisp.org>
105774         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105775         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105777 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105779         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105780         (func_create_testdir): Ensure C locale for `grep' and `tr'
105781         character ranges.
105782         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105783         ACLOCAL_AMFLAGS parsing state machine.
105785 2007-01-27  Bruno Haible  <bruno@clisp.org>
105787         * modules/unistr/base: Update.
105789 2007-01-27  Bruno Haible  <bruno@clisp.org>
105791         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105792         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
105793         * modules/unistr/u32-mbtouc-unsafe: Renamed from
105794         modules/unistr/u32-mbtouc.
105795         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
105796         * lib/unistr.h: Update.
105797         * lib/linebreak.c: Update.
105798         * modules/unistr/u32-mbtouc: Renamed from
105799         modules/unistr/u32-mbtouc-safe.
105800         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
105801         * lib/unistr.h: Update.
105802         * lib/unistr/u32-to-u8.c: Update.
105803         * lib/unistr/u32-to-u16.c: Update.
105805 2007-01-27  Bruno Haible  <bruno@clisp.org>
105807         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
105808         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
105809         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
105810         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
105811         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
105812         * modules/unistr/u16-mbtouc-unsafe: Renamed from
105813         modules/unistr/u16-mbtouc.
105814         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
105815         * lib/unistr.h: Update.
105816         * lib/linebreak.c: Update.
105817         * modules/linebreak: Update.
105818         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105819         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105820         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105821         * modules/unistr/u16-mbtouc: Renamed from
105822         modules/unistr/u16-mbtouc-safe.
105823         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105824         * lib/unistr.h: Update.
105825         * lib/unistr/u16-to-u8.c: Update.
105826         * modules/unistr/u16-to-u8: Update.
105827         * lib/unistr/u16-to-u32.c: Update.
105828         * modules/unistr/u16-to-u32: Update.
105830 2007-01-27  Bruno Haible  <bruno@clisp.org>
105832         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105833         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105834         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105835         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105836         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105837         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105838         modules/unistr/u8-mbtouc.
105839         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105840         * lib/unistr.h: Update.
105841         * lib/striconveh.c: Update.
105842         * modules/striconveh: Update.
105843         * lib/linebreak.c: Update.
105844         * modules/linebreak: Update.
105845         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105846         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105847         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105848         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105849         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105850         * lib/unistr.h: Update.
105851         * lib/striconveh.c: Update.
105852         * modules/striconveh: Update.
105853         * lib/unistr/u8-to-u16.c: Update.
105854         * modules/unistr/u8-to-u16: Update.
105855         * lib/unistr/u8-to-u32.c: Update.
105856         * modules/unistr/u8-to-u32: Update.
105858 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105860         Sync from Libtool.
105861         * lib/argz.c: Do not include strings.h nor memory.h, include
105862         string.h unconditionally.  Patch by Simon Josefsson.
105864 2007-01-27  Bruno Haible  <bruno@clisp.org>
105866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105867         from gl_HEADER_STRING_H_BODY.
105868         (gl_HEADER_STRING_H_BODY): Require it.
105869         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105870         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105872         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105874         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105876         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105877         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105880         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105881         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105885 2007-01-27  Bruno Haible  <bruno@clisp.org>
105887         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105888         check_PROGRAMS into noinst_PROGRAMS.
105889         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105890         check_PROGRAMS in this case.
105891         (func_import): Set for_test to false.
105892         (func_create_testdir): Set for_test to true.
105894 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105895             Bruno Haible  <bruno@clisp.org>
105897         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105898         (Depends-on): Add string.
105899         (Includes): Use <string.h> instead of strcasestr.h.
105900         * modules/string (Makefile.am): Also substitute the value of
105901         REPLACE_STRCASESTR.
105902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105903         assume strcasestr is declared in <string.h> not <strings.h>. Also
105904         set REPLACE_STRCASESTR.
105905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105906         REPLACE_STRCASESTR.
105907         * lib/strcasestr.h: Remove file.
105908         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105909         * lib/string_.h (strcasestr): New declaration.
105911 2007-01-27  Bruno Haible  <bruno@clisp.org>
105913         * lib/string_.h: Use 'extern'.
105915 2007-01-27  Jim Meyering  <jim@meyering.net>
105917         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105918         of set-but-not-used local, "q".
105920         * lib/mempcpy.c: Include <config.h> before <string.h>.
105921         This fixes a compilation error on HP-UX, due to the system's
105922         "restrict"-using mempcpy prototype.
105924 2007-01-26  Bruno Haible  <bruno@clisp.org>
105926         Small optimization.
105927         * lib/javacomp.c: Include c-strstr.h.
105928          (is_envjavac_gcj): Use c_strstr instead of strstr.
105929         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105931 2007-01-26  Bruno Haible  <bruno@clisp.org>
105933         * MODULES.html.sh (Unicode string functions): Add the new modules.
105935         * modules/uniconv/u32-strconv-to-locale: New file.
105936         * lib/uniconv/u32-strconv-to-locale.c: New file.
105938         * modules/uniconv/u16-strconv-to-locale: New file.
105939         * lib/uniconv/u16-strconv-to-locale.c: New file.
105941         * modules/uniconv/u8-strconv-to-locale: New file.
105942         * lib/uniconv/u8-strconv-to-locale.c: New file.
105944         * modules/uniconv/u32-strconv-from-locale: New file.
105945         * lib/uniconv/u32-strconv-from-locale.c: New file.
105947         * modules/uniconv/u16-strconv-from-locale: New file.
105948         * lib/uniconv/u16-strconv-from-locale.c: New file.
105950         * modules/uniconv/u8-strconv-from-locale: New file.
105951         * lib/uniconv/u8-strconv-from-locale.c: New file.
105953         * modules/uniconv/u32-strconv-to-enc: New file.
105954         * lib/uniconv/u32-strconv-to-enc.c: New file.
105955         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105956         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105958         * modules/uniconv/u16-strconv-to-enc: New file.
105959         * lib/uniconv/u16-strconv-to-enc.c: New file.
105960         * lib/uniconv/u-strconv-to-enc.h: New file.
105961         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105962         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105964         * modules/uniconv/u8-strconv-to-enc: New file.
105965         * lib/uniconv/u8-strconv-to-enc.c: New file.
105966         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105967         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105969         * modules/uniconv/u32-strconv-from-enc: New file.
105970         * lib/uniconv/u32-strconv-from-enc.c: New file.
105971         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105972         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105974         * modules/uniconv/u16-strconv-from-enc: New file.
105975         * lib/uniconv/u16-strconv-from-enc.c: New file.
105976         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105977         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105979         * modules/uniconv/u8-strconv-from-enc: New file.
105980         * lib/uniconv/u8-strconv-from-enc.c: New file.
105981         * lib/uniconv/u-strconv-from-enc.h: New file.
105982         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105983         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105985         * modules/uniconv/u32-conv-from-enc: New file.
105986         * lib/uniconv/u32-conv-from-enc.c: New file.
105987         * modules/uniconv/u32-conv-from-enc-tests: New file.
105988         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105990         * modules/uniconv/u16-conv-from-enc: New file.
105991         * lib/uniconv/u16-conv-from-enc.c: New file.
105992         * lib/uniconv/u-conv-from-enc.h: New file.
105993         * modules/uniconv/u16-conv-from-enc-tests: New file.
105994         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105996         * modules/uniconv/u8-conv-from-enc: New file.
105997         * lib/uniconv/u8-conv-from-enc.c: New file.
105998         * modules/uniconv/u8-conv-from-enc-tests: New file.
105999         * tests/uniconv/test-u8-conv-from-enc.c: New file.
106001         * modules/uniconv/base: New file.
106002         * lib/uniconv.h: New file.
106004 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106006         * doc/gnulib-tool.texi (Initial import): Update to match current
106007         behavior with strdup module.
106008         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
106009         * lib/memmem.h: Remove; all uses removed.  This is now done
106010         by <string.h>.
106011         * lib/mempcpy.h: Likewise.
106012         * lib/memrchr.h: Likewise.
106013         * lib/stpcpy.h: Likewise.
106014         * lib/stpncpy.h: Likewise.
106015         * lib/strcase.h: Likewise.
106016         * lib/strchrnul.h: Likewise.
106017         * lib/strdup.h: Likewise.
106018         * lib/strndup.h: Likewise.
106019         * lib/strnlen.h: Likewise.
106020         * lib/strpbrk.h: Likewise.
106021         * lib/strsep.h: Likewise.
106022         * lib/strstr.h: Likewise.
106023         * lib/strtok_r.h: Likewise.
106024         * lib/string_.h: New file.
106025         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
106026         Rely on <string.h> instead.
106027         * lib/canon-host.c: Likewise.
106028         * lib/chdir-long.c: Likewise.
106029         * lib/concatpath.c: Likewise.
106030         * lib/exclude.c: Likewise.
106031         * lib/fchdir.c: Likewise.
106032         * lib/getaddrinfo.c: Likewise.
106033         * lib/getcwd.c: Likewise.
106034         * lib/getsubopt.c: Likewise.
106035         * lib/glob.c: Likewise.
106036         * lib/hard-locale.c: Likewise.
106037         * lib/iconvme.c: Likewise.
106038         * lib/javacomp.c: Likewise.
106039         * lib/mempcpy.c: Likewise.
106040         * lib/memrchr.c: Likewise.
106041         * lib/regex_internal.h: Likewise.
106042         * lib/stpncpy.c: Likewise.
106043         * lib/strcasecmp.c: Likewise.
106044         * lib/strchrnul.c: Likewise.
106045         * lib/strdup.c: Likewise.
106046         * lib/striconv.c: Likewise.
106047         * lib/striconveh.c: Likewise.
106048         * lib/striconveha.c: Likewise.
106049         * lib/strncasecmp.c: Likewise.
106050         * lib/strndup.c: Likewise.
106051         * lib/strnlen.c: Likewise.
106052         * lib/strsep.c: Likewise.
106053         * lib/strstr.c: Likewise.
106054         * lib/strtok_r.c: Likewise.
106055         * lib/userspec.c: Likewise.
106056         * lib/w32spawn.h: Likewise.
106057         * lib/xstrndup.c: Likewise.
106058         * lib/mountlist.c (strstr): Remove decl.
106059         * m4/string_h.m4: New file.
106060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
106061         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
106062         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
106063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
106064         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
106065         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
106066         Set REPLACE_STRCASECMP if necessary.
106067         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
106068         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
106069         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
106070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
106071         HAVE_DECL_STRDUP if necessary.
106072         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
106073         since gl_FUNC_STRNDUP does that now.
106074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
106075         Check for decl here...
106076         (gl_PREREQ_STRNLEN): ... not here.
106077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
106078         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
106079         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
106080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
106081         necessary.
106082         * modules/string: New file.
106083         * modules/memmem (Files): Remove special-purpose include file.
106084         (Depends-on): Add string.
106085         (Include): Include <string.h>, not the removed file.
106086         * modules/mempcpy: Likewise.
106087         * modules/memrchr: Likewise.
106088         * modules/stpcpy: Likewise.
106089         * modules/stpncpy: Likewise.
106090         * modules/strcase: Likewise.
106091         * modules/strchrnul: Likewise.
106092         * modules/strdup: Likewise.
106093         * modules/strndup: Likewise.
106094         * modules/strnlen: Likewise.
106095         * modules/strpbrk: Likewise.
106096         * modules/strsep: Likewise.
106097         * modules/strstr: Likewise.
106098         * modules/strtok_r: Likewise.
106099         * tests/test-dirname.c: Don't include "strdup.h", since
106100         <string.h> now suffices.
106101         * tests/test-memmem.c: Don't include "memmem.h", since
106102         <string.h> now suffices.
106104 2007-01-25  Bruno Haible  <bruno@clisp.org>
106106         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
106107         *resultp is 0.
106109         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
106110         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
106111         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
106112         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
106114         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
106115         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
106116         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
106117         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
106118         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
106119         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
106121 2007-01-24  Bruno Haible  <bruno@clisp.org>
106123         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
106124         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
106125         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
106126         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
106127         gl_FUNC_FTS_CORE.
106128         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
106129         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
106130         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
106131         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
106132         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
106133         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
106134         gl_FUNC_FCHOWNAT.
106135         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
106136         gl_FUNC_STRFTIME.
106137         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
106138         Reported by Ralf Wildenhues.
106140 2007-01-24  Bruno Haible  <bruno@clisp.org>
106142         Drop AC_REQUIRE calls that are redundant with the module dependencies.
106143         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
106144         gl_GETADDRINFO.
106145         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
106146         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
106147         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
106149 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
106151         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
106152         Don't use 'exit'; just return from 'main'.
106153         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
106155         * lib/fnmatch_.h: Readjust white space and comments to match
106156         glibc, to avoid spurious diffs.
106158 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106160         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
106161         2004-12-01 change by Jakub Jelinek, since this code won't compile
106162         if !LIBC.  Problem reported by Bob Proulx.
106164 2007-01-23  Bruno Haible  <bruno@clisp.org>
106166         * lib/striconveh.c: Include c-strcaseeq.h.
106167         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
106168         * modules/striconveh (Depends-on): Add c-strcaseeq.
106170 2007-01-23  Bruno Haible  <bruno@clisp.org>
106172         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
106174         * modules/c-strcaseeq: New file.
106175         * lib/c-strcaseeq.h: New file.
106177         * modules/streq: New file.
106178         * lib/streq.h: New file.
106180 2007-01-23  Bruno Haible  <bruno@clisp.org>
106182         * modules/striconveha-tests: New file.
106183         * tests/test-striconveha.c: New file.
106185         * lib/striconveha.h: Include <stdbool.h>.
106186         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
106187         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
106188         (mem_iconveha_notranslit): Renamed from mem_iconveha.
106189         (mem_iconveha): New function.
106190         (str_iconveha_notranslit): Renamed from str_iconveha.
106191         (str_iconveha): New function.
106192         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
106193         c-strcase.
106195 2007-01-23  Bruno Haible  <bruno@clisp.org>
106197         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
106198         encodings without forgiving before trying any encoding with handler.
106199         (str_iconveha): Try all encodings without forgiving before trying any
106200         encoding with handler.
106202 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106204         Import the following changes from libc.
106206         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106208         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
106210         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
106212         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
106213         normal_bracket label.
106215         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
106217         [BZ #361]
106218         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
106219         to normal_bracket after fetching the next character.
106221 2007-01-22  Bruno Haible  <bruno@clisp.org>
106223         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
106224         argument.
106225         * lib/striconveh.c (iconv_carefully_1): New function.
106226         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
106227         argument.
106228         (str_cd_iconveh): Update.
106229         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
106230         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
106231         * tests/test-striconveh.c (MAGIC): New macro.
106232         (new_offsets): New function.
106233         (main): Test call with and without offsets.
106235 2007-01-22  Bruno Haible  <bruno@clisp.org>
106237         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
106238         * modules/sys_select (Makefile.am): Likewise.
106239         * modules/sys_socket (Makefile.am): Likewise.
106240         * modules/sys_time (Makefile.am): Likewise.
106242 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106244         * modules/gettimeofday (License): Change from GPL to LGPL, since
106245         gettimeofday is a library function.
106247 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106249         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
106251 2007-01-21  Bruno Haible  <bruno@clisp.org>
106253         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
106255 2007-01-21  Bruno Haible  <bruno@clisp.org>
106257         * modules/striconveha: New file.
106258         * lib/striconveha.h: New file.
106259         * lib/striconveha.c: New file.
106260         * MODULES.html.sh (Internationalization functions): Add striconveha.
106261         * lib/striconv.c (str_iconv): Optimize the case of an empty input
106262         string.
106263         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
106265 2007-01-21  Bruno Haible  <bruno@clisp.org>
106267         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
106268         * lib/striconveh.c (str_iconveh): Likewise.
106270 2007-01-21  Bruno Haible  <bruno@clisp.org>
106272         * lib/striconveh.h (mem_iconveh): New declaration.
106273         * lib/striconveh.c (mem_iconveh): New function.
106274         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
106276 2007-01-21  Bruno Haible  <bruno@clisp.org>
106278         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
106280         * lib/striconveh.h (mem_cd_iconveh): Change specification.
106281         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
106282         original result buffer.
106283         (str_cd_iconveh): Update.
106284         * tests/test-striconveh.c (main): Update.
106286         * lib/striconv.h (mem_cd_iconv): Change specification.
106287         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
106288         result buffer.
106289         (str_cd_iconv): Update.
106290         * tests/test-striconv.c (main): Update.
106292 2007-01-21  Bruno Haible  <bruno@clisp.org>
106294         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
106296 2007-01-20  Jim Meyering  <jim@meyering.net>
106298         * lib/userspec.c (parse_with_separator): If a user or group string
106299         starts with "+", skip the corresponding name-to-ID look-up, since
106300         such a look-up must fail: user and group names may not include "+".
106302 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106304         * lib/poll.c: Include sys/time.h and time.h unconditionally,
106305         since we now assume the sys_time module.
106306         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
106307         check for sys/time.h; no longer needed.
106308         * modules/poll (Depends-on): Depend on sys_time.
106310 2007-01-18  Bruno Haible  <bruno@clisp.org>
106312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
106313         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106315         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
106316         gettimeofday.
106318         * tests/test-gettimeofday.c: Include <time.h>.
106319         (dummy): Remove variable.
106321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
106322         gl_HEADER_SYS_TIME_H.
106323         (gl_HEADER_SYS_TIME_H): New macro.
106325         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
106326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
106328         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
106329         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
106331         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
106332         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106333         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
106334         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
106335         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106337         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
106338         last change; it caused a compilation error when cross-compiling to
106339         Cygwin.
106341 2007-01-18  Jim Meyering  <jim@meyering.net>
106343         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
106344         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
106345         than the race-prone "test -d sys || mkdir sys".
106346         (configure.ac): Use AC_PROG_MKDIR_P.
106347         * modules/sys_select: Likewise.
106348         * modules/sys_socket: Likewise.
106349         * modules/sys_time: Likewise.
106351 2007-01-18  Eric Blake  <ebb9@byu.net>
106353         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
106354         replace gettimeofday.
106355         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
106356         name, to avoid infinite recursion.
106358 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
106360         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
106361         module sys_time.
106362         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
106363         assume timespec.h defines struct timeval.
106364         * lib/settime.c: Likewise.
106365         * lib/utimens.c: Likewise.
106366         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
106367         since we now assume the gettimeofday module.
106368         * lib/tempname.c (__gen_tempname): Likewise.
106369         * lib/gettimeofday.h: Remove.
106370         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
106371         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
106372         Include <time.h>, for 'time()'.
106373         (localtime_buffer_addr): Also use this workaround if
106374         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
106375         to simplify the uses.  All uses changed.
106376         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
106377         that #undef is inside {}, and 'const' follows type name consistently.
106378         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
106379         (gettimeofday): Do not use the maximum possible value for
106380         tv->tv_usec, since that might break usages other than ls.c.
106381         Instead, we'll leave ls.c alone.  This undoes today's patch
106382         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106383         we've never observed the problem but might as well keep the
106384         canary.
106385         * lib/nanosleep.c: Include timespec.h first, for interface check.
106386         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106387         now assume the sys_time module.
106388         * lib/tempname.c: Likewise.
106389         * lib/timespec.h: Likewise.
106390         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106391         needed.
106392         * lib/strftime.c: Likewise.
106393         * lib/timespec.h: Likewise.
106394         * lib/posixtm.c: Include posixtm.h first, for interface check.
106395         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106396         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106397         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106398         * lib/sys_time_.h: New file.
106399         * lib/timespec.h (struct timespec): Use long int, not long.
106400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106401         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106402         Remove obsolescent call to AC_HEADER_TIME.
106403         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106406         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106407         Likewise.
106408         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106409         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106411         into the sys_time module.  Check for gettimeofday just once.
106412         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106413         for gettimeofday signature to just check the signature.  Merely
106414         compile it, since linking doesn't test signature.  Improve test for
106415         whether gettimeofday.o is actually needed.
106416         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106417         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106418         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106419         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106420         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106421         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106422         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106423         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106424         than worrying about sys/time.h.
106425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106426         Don't bother worrying about TIME_WITH_SYS_TIME.
106427         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106428         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106429         * m4/sys_time_h.m4: New file.
106430         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106431         Don't include sys/time.h.  Return from main rather than exiting.
106432         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106433         all uses changed.
106434         * modules/gethrxtime (Depends-on): Add sys_time.
106435         * modules/gettime (Depends-on): Likewise.
106436         * modules/gettimeofday (Depends-on): Likewise.
106437         * modules/nanosleep (Depends-on): Likewise.
106438         * modules/settime (Depends-on): Likewise.
106439         * modules/tempname (Depends-on): Likewise.
106440         * modules/utimens (Depends-on): Likewise.
106441         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106442         (Include): Change back to <sys/time.h>.
106443         (Maintainer): Add self.
106444         * modules/sys_time: New file.
106445         * modules/tempname (Depends-on): Add gettimeofday.
106446         * tests/test-gettimeofday.c: Include <sys/time.h>
106447         rather than gettimeofday.h.
106449 2007-01-17  Bruno Haible  <bruno@clisp.org>
106451         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106452         the license default to GPL.
106453         (func_create_testdir): Don't complain if a module is LGPL and its
106454         tests module depends on GPLed modules.
106456 2007-01-17  Bruno Haible  <bruno@clisp.org>
106458         * lib/gettimeofday.c (gettimeofday): Add code for the case
106459         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106460         maximum possible value for tv->tv_usec, rather than the minimum one.
106462 2005-10-08  Martin Lambers  <marlam@marlam.de>
106463 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106464 2007-01-16  Bruno Haible  <bruno@clisp.org>
106466         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106467         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106468         gl_FUNC_GETTIMEOFDAY.
106469         (Include): Add gettimeofday.h.
106470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106471         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106472         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106473         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106474         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106475         * lib/gettimeofday.h: New file.
106476         * lib/gettimeofday.c: Include <sys/timeb.h>.
106477         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106478         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106479         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106480         fall back on time().
106482         * tests/test-gettimeofday.c: New file.
106483         * modules/gettimeofday-tests: New file.
106485 2007-01-16  Eric Blake  <ebb9@byu.net>
106487         * modules/fnmatch (Depends-on): Depend on wchar.
106488         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106489         * m4/fnmatch.m4: Likewise.
106490         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106491         * m4/mbchar.m4: Likewise.
106492         * modules/mbswidth (Depends-on): Depend on wchar.
106493         * lib/mbswidth.c: Assume <wchar.h>.
106494         * m4/mbswidth.m4: Likewise.
106495         * modules/quotearg (Depends-on): Depend on wchar.
106496         * lib/quotearg.c: Assume <wchar.h>.
106497         * m4/quotearg.m4: Likewise.
106498         * modules/regex (Depends-on): Depend on wchar.
106499         * lib/regex_internal.h: Assume <wchar.h>.
106500         * m4/regex.m4: Likewise.
106501         * modules/stdint (Depends-on): Depend on wchar.
106502         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106503         * m4/stdint.m4: Likewise.
106504         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106505         * modules/strftime (Depends-on): Depend on wchar.
106506         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106507         * modules/strtol (Depends-on): Depend on wchar.
106508         * lib/strtol.c: Assume <wchar.h>.
106509         * modules/wcwidth (Depends-on): Depend on wchar.
106510         * lib/wcwidth.h: Assume <wchar.h>.
106511         * m4/wcwidth.m4: Likewise.
106513 2007-01-16  Bruno Haible  <bruno@clisp.org>
106515         * modules/csharpexec-script: New, created from...
106516         * modules/csharpexec: ... this.
106518 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106520         * modules/javaexec-script: New, created from...
106521         * modules/javaexec: ... this.
106523 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106525         * modules/poll (Dependencies): Add sys_select.
106527 2007-01-15  Jim Meyering  <jim@meyering.net>
106529         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106530         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106531         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106532         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106534 2007-01-15  Bruno Haible  <bruno@clisp.org>
106536         * modules/striconveh: New file.
106537         * lib/striconveh.h: New file.
106538         * lib/striconveh.c: New file.
106539         * MODULES.html.sh (Internationalization functions): Add striconveh.
106541         * modules/striconveh-tests: New file.
106542         * tests/test-striconveh.c: New file.
106544 2007-01-15  Bruno Haible  <bruno@clisp.org>
106546         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106547         not from GNU libiconv or GNU libc.
106549 2007-01-15  Bruno Haible  <bruno@clisp.org>
106551         * doc/gnulib-intro.texi (Copyright): Explain the different license
106552         terms for module descriptions, autoconf macros, tests, documentation.
106554 2007-01-14  Bruno Haible  <bruno@clisp.org>
106556         * modules/striconv-tests: New file.
106557         * tests/test-striconv.c: New file.
106559 2007-01-14  Bruno Haible  <bruno@clisp.org>
106561         * modules/iconv-tests: New file.
106562         * tests/test-iconv.c: New file.
106564 2007-01-14  Bruno Haible  <bruno@clisp.org>
106566         * gnulib-tool (func_get_license): For test modules, use the license of
106567         the main module.
106569 2007-01-14  Bruno Haible  <bruno@clisp.org>
106571         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106572         if iconv is found to exist.
106574 2007-01-14  Bruno Haible  <bruno@clisp.org>
106576         * modules/c-ctype-tests: New file.
106577         * tests/test-c-ctype.c: New file.
106579 2007-01-14  Bruno Haible  <bruno@clisp.org>
106581         * modules/binary-io-tests: New file.
106582         * tests/test-binary-io.sh: New file.
106583         * tests/test-binary-io.c: New file.
106585 2007-01-14  Bruno Haible  <bruno@clisp.org>
106587         * modules/array-oset-tests: New file.
106588         * tests/test-array_oset.c: New file.
106590 2007-01-14  Bruno Haible  <bruno@clisp.org>
106592         * modules/array-list-tests: New file.
106593         * tests/test-array_list.c: New file.
106595 2007-01-14  Bruno Haible  <bruno@clisp.org>
106597         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106598         and make.
106599         Reported by Simon Josefsson in
106600         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106602 2007-01-14  Bruno Haible  <bruno@clisp.org>
106604         * modules/allocsa-tests: New file.
106605         * tests/test-allocsa.c: New file.
106607 2007-01-14  Bruno Haible  <bruno@clisp.org>
106609         * modules/fchdir (Depends-on): Add absolute-header.
106610         * modules/unistd (Depends-on): Likewise.
106612 2006-12-30  Bruno Haible  <bruno@clisp.org>
106614         * modules/fchdir: New file.
106615         * modules/unistd (Files): Add lib/unistd_.h.
106616         (Makefile.am): Generate unistd.h from unistd_.h.
106617         * lib/fchdir.c: New file.
106618         * lib/dirent_.h: New file.
106619         * lib/unistd_.h: New file.
106620         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106621         * m4/fchdir.m4: New file.
106622         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106623         (gl_HEADER_UNISTD): Invoke it.
106624         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106625         function.
106626         * lib/backupfile.c (opendir, closedir): Undefine.
106627         * lib/chown.c (open, close): Undefine.
106628         * lib/clean-temp.c (open, close): Undefine.
106629         * lib/copy-file.c (open, close): Undefine.
106630         * lib/execute.c (open, close): Undefine.
106631         * lib/fsusage.c (open, close): Undefine.
106632         * lib/gc-gnulib.c (open, close): Undefine.
106633         * lib/getcwd.c (opendir, closedir): Undefine.
106634         * lib/glob.c (opendir, closedir): Undefine.
106635         * lib/javacomp.c (open, close): Undefine.
106636         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106637         * lib/openat-proc.c (open, close): Undefine.
106638         * lib/pagealign_alloc.c (open, close): Undefine.
106639         * lib/pipe.c (open, close): Undefine.
106640         * lib/progreloc.c (open, close): Undefine.
106641         * lib/savedir.c (opendir, closedir): Undefine.
106642         * lib/utime.c (open, close): Undefine.
106643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106645 2007-01-10  Bruno Haible  <bruno@clisp.org>
106647         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106649 2007-01-12  Eric Blake  <ebb9@byu.net>
106651         Provide a robust <wchar.h>.  Further simplifications are now
106652         possible in other modules, but not included here.
106653         * modules/wchar: New module.
106654         * m4/wchar.m4: New file.
106655         * lib/wchar_.h: Likewise.
106656         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106657         of the new module.
106658         * MODULES.html.sh (Extended multibyte and wide character utilities):
106659         New section.
106661 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106663         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106664         to a reasonable default for memory allocation.
106665         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106666         file system that reports garbage st_size values for symlinks.
106667         Problem reported by Liyang Hu.
106669 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106671         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106672         Emacs .#* auto-save files).
106674 2007-01-11  Bruno Haible  <bruno@clisp.org>
106676         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106677         directory.
106679 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106681         Use @...@ consistently in lib/wctype_.h.
106682         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106683         on it being set to 1 or 0.
106684         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106685         go back to AC_SUBSTing it.
106686         * modules/wctype (Makefile.am): Undo previous change.
106688 2007-01-10  Eric Blake  <ebb9@byu.net>
106690         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106691         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106692         * modules/wctype (Makefile.am): Likewise.
106693         Reported by Chris McGuire.
106695 2007-01-10  Jim Meyering  <jim@meyering.net>
106697         fts.c: a small readability/maintainability improvement
106698         * lib/fts.c (fts_read): Make this code slightly more readable and
106699         maintainable by hoisting the "sp->fts_cur = p" assignments to
106700         immediately follow the statements that set P.  Derived from
106701         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106703 2007-01-10  Eric Blake  <ebb9@byu.net>
106705         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106706         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106708         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106709         Reported by Chris McGuire.
106711 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106713         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106714         in sed script.
106716 2007-01-09  Bruno Haible  <bruno@clisp.org>
106718         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106719         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106720         variables.
106721         (func_module): Use them.
106723 2007-01-09  Bruno Haible  <bruno@clisp.org>
106725         * modules/unistr/base: New file.
106726         * lib/unistr.h: New file.
106728         * modules/unistr/u8-to-u16: New file.
106729         * lib/unistr/u8-to-u16.c: New file.
106731         * modules/unistr/u8-to-u32: New file.
106732         * lib/unistr/u8-to-u32.c: New file.
106734         * modules/unistr/u16-to-u8: New file.
106735         * lib/unistr/u16-to-u8.c: New file.
106737         * modules/unistr/u16-to-u32: New file.
106738         * lib/unistr/u16-to-u32.c: New file.
106740         * modules/unistr/u32-to-u8: New file.
106741         * lib/unistr/u32-to-u8.c: New file.
106743         * modules/unistr/u32-to-u16: New file.
106744         * lib/unistr/u32-to-u16.c: New file.
106746         * modules/unistr/u8-check: New file.
106747         * modules/unistr/u16-check: New file.
106748         * modules/unistr/u32-check: New file.
106749         * lib/unistr/u8-check.c: New file.
106750         * lib/unistr/u16-check.c: New file.
106751         * lib/unistr/u32-check.c: New file.
106753         * modules/unistr/u8-chr: New file.
106754         * modules/unistr/u16-chr: New file.
106755         * modules/unistr/u32-chr: New file.
106756         * lib/unistr/u8-chr.c: New file.
106757         * lib/unistr/u16-chr.c: New file.
106758         * lib/unistr/u32-chr.c: New file.
106760         * modules/unistr/u8-cmp: New file.
106761         * modules/unistr/u16-cmp: New file.
106762         * modules/unistr/u32-cmp: New file.
106763         * lib/unistr/u8-cmp.c: New file.
106764         * lib/unistr/u16-cmp.c: New file.
106765         * lib/unistr/u32-cmp.c: New file.
106767         * modules/unistr/u8-cpy: New file.
106768         * modules/unistr/u16-cpy: New file.
106769         * modules/unistr/u32-cpy: New file.
106770         * lib/unistr/u8-cpy.c: New file.
106771         * lib/unistr/u16-cpy.c: New file.
106772         * lib/unistr/u32-cpy.c: New file.
106773         * lib/unistr/u-cpy.h: New file.
106775         * modules/unistr/u8-cpy-alloc: New file.
106776         * modules/unistr/u16-cpy-alloc: New file.
106777         * modules/unistr/u32-cpy-alloc: New file.
106778         * lib/unistr/u8-cpy-alloc.c: New file.
106779         * lib/unistr/u16-cpy-alloc.c: New file.
106780         * lib/unistr/u32-cpy-alloc.c: New file.
106781         * lib/unistr/u-cpy-alloc.h: New file.
106783         * modules/unistr/u8-endswith: New file.
106784         * modules/unistr/u16-endswith: New file.
106785         * modules/unistr/u32-endswith: New file.
106786         * lib/unistr/u8-endswith.c: New file.
106787         * lib/unistr/u16-endswith.c: New file.
106788         * lib/unistr/u32-endswith.c: New file.
106789         * lib/unistr/u-endswith.h: New file.
106791         * modules/unistr/u8-mblen: New file.
106792         * modules/unistr/u16-mblen: New file.
106793         * modules/unistr/u32-mblen: New file.
106794         * lib/unistr/u8-mblen.c: New file.
106795         * lib/unistr/u16-mblen.c: New file.
106796         * lib/unistr/u32-mblen.c: New file.
106798         * modules/unistr/u8-mbtouc: New file.
106799         * modules/unistr/u16-mbtouc: New file.
106800         * modules/unistr/u32-mbtouc: New file.
106801         * lib/unistr/u8-mbtouc.c: New file.
106802         * lib/unistr/u16-mbtouc.c: New file.
106803         * lib/unistr/u32-mbtouc.c: New file.
106805         * modules/unistr/u8-mbtouc-safe: New file.
106806         * modules/unistr/u16-mbtouc-safe: New file.
106807         * modules/unistr/u32-mbtouc-safe: New file.
106808         * lib/unistr/u8-mbtouc-safe.c: New file.
106809         * lib/unistr/u16-mbtouc-safe.c: New file.
106810         * lib/unistr/u32-mbtouc-safe.c: New file.
106812         * modules/unistr/u8-move: New file.
106813         * modules/unistr/u16-move: New file.
106814         * modules/unistr/u32-move: New file.
106815         * lib/unistr/u8-move.c: New file.
106816         * lib/unistr/u16-move.c: New file.
106817         * lib/unistr/u32-move.c: New file.
106818         * lib/unistr/u-move.h: New file.
106820         * modules/unistr/u8-next: New file.
106821         * modules/unistr/u16-next: New file.
106822         * modules/unistr/u32-next: New file.
106823         * lib/unistr/u8-next.c: New file.
106824         * lib/unistr/u16-next.c: New file.
106825         * lib/unistr/u32-next.c: New file.
106827         * modules/unistr/u8-prev: New file.
106828         * modules/unistr/u16-prev: New file.
106829         * modules/unistr/u32-prev: New file.
106830         * lib/unistr/u8-prev.c: New file.
106831         * lib/unistr/u16-prev.c: New file.
106832         * lib/unistr/u32-prev.c: New file.
106834         * modules/unistr/u8-set: New file.
106835         * modules/unistr/u16-set: New file.
106836         * modules/unistr/u32-set: New file.
106837         * lib/unistr/u8-set.c: New file.
106838         * lib/unistr/u16-set.c: New file.
106839         * lib/unistr/u32-set.c: New file.
106840         * lib/unistr/u-set.h: New file.
106842         * modules/unistr/u8-startswith: New file.
106843         * modules/unistr/u16-startswith: New file.
106844         * modules/unistr/u32-startswith: New file.
106845         * lib/unistr/u8-startswith.c: New file.
106846         * lib/unistr/u16-startswith.c: New file.
106847         * lib/unistr/u32-startswith.c: New file.
106848         * lib/unistr/u-startswith.h: New file.
106850         * modules/unistr/u8-stpcpy: New file.
106851         * modules/unistr/u16-stpcpy: New file.
106852         * modules/unistr/u32-stpcpy: New file.
106853         * lib/unistr/u8-stpcpy.c: New file.
106854         * lib/unistr/u16-stpcpy.c: New file.
106855         * lib/unistr/u32-stpcpy.c: New file.
106856         * lib/unistr/u-stpcpy.h: New file.
106858         * modules/unistr/u8-stpncpy: New file.
106859         * modules/unistr/u16-stpncpy: New file.
106860         * modules/unistr/u32-stpncpy: New file.
106861         * lib/unistr/u8-stpncpy.c: New file.
106862         * lib/unistr/u16-stpncpy.c: New file.
106863         * lib/unistr/u32-stpncpy.c: New file.
106864         * lib/unistr/u-stpncpy.h: New file.
106866         * modules/unistr/u8-strcat: New file.
106867         * modules/unistr/u16-strcat: New file.
106868         * modules/unistr/u32-strcat: New file.
106869         * lib/unistr/u8-strcat.c: New file.
106870         * lib/unistr/u16-strcat.c: New file.
106871         * lib/unistr/u32-strcat.c: New file.
106872         * lib/unistr/u-strcat.h: New file.
106874         * modules/unistr/u8-strchr: New file.
106875         * modules/unistr/u16-strchr: New file.
106876         * modules/unistr/u32-strchr: New file.
106877         * lib/unistr/u8-strchr.c: New file.
106878         * lib/unistr/u16-strchr.c: New file.
106879         * lib/unistr/u32-strchr.c: New file.
106881         * modules/unistr/u8-strcmp: New file.
106882         * modules/unistr/u16-strcmp: New file.
106883         * modules/unistr/u32-strcmp: New file.
106884         * lib/unistr/u8-strcmp.c: New file.
106885         * lib/unistr/u16-strcmp.c: New file.
106886         * lib/unistr/u32-strcmp.c: New file.
106888         * modules/unistr/u8-strcpy: New file.
106889         * modules/unistr/u16-strcpy: New file.
106890         * modules/unistr/u32-strcpy: New file.
106891         * lib/unistr/u8-strcpy.c: New file.
106892         * lib/unistr/u16-strcpy.c: New file.
106893         * lib/unistr/u32-strcpy.c: New file.
106894         * lib/unistr/u-strcpy.h: New file.
106896         * modules/unistr/u8-strcspn: New file.
106897         * modules/unistr/u16-strcspn: New file.
106898         * modules/unistr/u32-strcspn: New file.
106899         * lib/unistr/u8-strcspn.c: New file.
106900         * lib/unistr/u16-strcspn.c: New file.
106901         * lib/unistr/u32-strcspn.c: New file.
106902         * lib/unistr/u-strcspn.h: New file.
106904         * modules/unistr/u8-strdup: New file.
106905         * modules/unistr/u16-strdup: New file.
106906         * modules/unistr/u32-strdup: New file.
106907         * lib/unistr/u8-strdup.c: New file.
106908         * lib/unistr/u16-strdup.c: New file.
106909         * lib/unistr/u32-strdup.c: New file.
106910         * lib/unistr/u-strdup.h: New file.
106912         * modules/unistr/u8-strlen: New file.
106913         * modules/unistr/u16-strlen: New file.
106914         * modules/unistr/u32-strlen: New file.
106915         * lib/unistr/u8-strlen.c: New file.
106916         * lib/unistr/u16-strlen.c: New file.
106917         * lib/unistr/u32-strlen.c: New file.
106918         * lib/unistr/u-strlen.h: New file.
106920         * modules/unistr/u8-strmblen: New file.
106921         * modules/unistr/u16-strmblen: New file.
106922         * modules/unistr/u32-strmblen: New file.
106923         * lib/unistr/u8-strmblen.c: New file.
106924         * lib/unistr/u16-strmblen.c: New file.
106925         * lib/unistr/u32-strmblen.c: New file.
106927         * modules/unistr/u8-strmbtouc: New file.
106928         * modules/unistr/u16-strmbtouc: New file.
106929         * modules/unistr/u32-strmbtouc: New file.
106930         * lib/unistr/u8-strmbtouc.c: New file.
106931         * lib/unistr/u16-strmbtouc.c: New file.
106932         * lib/unistr/u32-strmbtouc.c: New file.
106934         * modules/unistr/u8-strncat: New file.
106935         * modules/unistr/u16-strncat: New file.
106936         * modules/unistr/u32-strncat: New file.
106937         * lib/unistr/u8-strncat.c: New file.
106938         * lib/unistr/u16-strncat.c: New file.
106939         * lib/unistr/u32-strncat.c: New file.
106940         * lib/unistr/u-strncat.h: New file.
106942         * modules/unistr/u8-strncmp: New file.
106943         * modules/unistr/u16-strncmp: New file.
106944         * modules/unistr/u32-strncmp: New file.
106945         * lib/unistr/u8-strncmp.c: New file.
106946         * lib/unistr/u16-strncmp.c: New file.
106947         * lib/unistr/u32-strncmp.c: New file.
106949         * modules/unistr/u8-strncpy: New file.
106950         * modules/unistr/u16-strncpy: New file.
106951         * modules/unistr/u32-strncpy: New file.
106952         * lib/unistr/u8-strncpy.c: New file.
106953         * lib/unistr/u16-strncpy.c: New file.
106954         * lib/unistr/u32-strncpy.c: New file.
106955         * lib/unistr/u-strncpy.h: New file.
106957         * modules/unistr/u8-strnlen: New file.
106958         * modules/unistr/u16-strnlen: New file.
106959         * modules/unistr/u32-strnlen: New file.
106960         * lib/unistr/u8-strnlen.c: New file.
106961         * lib/unistr/u16-strnlen.c: New file.
106962         * lib/unistr/u32-strnlen.c: New file.
106963         * lib/unistr/u-strnlen.h: New file.
106965         * modules/unistr/u8-strpbrk: New file.
106966         * modules/unistr/u16-strpbrk: New file.
106967         * modules/unistr/u32-strpbrk: New file.
106968         * lib/unistr/u8-strpbrk.c: New file.
106969         * lib/unistr/u16-strpbrk.c: New file.
106970         * lib/unistr/u32-strpbrk.c: New file.
106971         * lib/unistr/u-strpbrk.h: New file.
106973         * modules/unistr/u8-strrchr: New file.
106974         * modules/unistr/u16-strrchr: New file.
106975         * modules/unistr/u32-strrchr: New file.
106976         * lib/unistr/u8-strrchr.c: New file.
106977         * lib/unistr/u16-strrchr.c: New file.
106978         * lib/unistr/u32-strrchr.c: New file.
106980         * modules/unistr/u8-strspn: New file.
106981         * modules/unistr/u16-strspn: New file.
106982         * modules/unistr/u32-strspn: New file.
106983         * lib/unistr/u8-strspn.c: New file.
106984         * lib/unistr/u16-strspn.c: New file.
106985         * lib/unistr/u32-strspn.c: New file.
106986         * lib/unistr/u-strspn.h: New file.
106988         * modules/unistr/u8-strstr: New file.
106989         * modules/unistr/u16-strstr: New file.
106990         * modules/unistr/u32-strstr: New file.
106991         * lib/unistr/u8-strstr.c: New file.
106992         * lib/unistr/u16-strstr.c: New file.
106993         * lib/unistr/u32-strstr.c: New file.
106994         * lib/unistr/u-strstr.h: New file.
106996         * modules/unistr/u8-strtok: New file.
106997         * modules/unistr/u16-strtok: New file.
106998         * modules/unistr/u32-strtok: New file.
106999         * lib/unistr/u8-strtok.c: New file.
107000         * lib/unistr/u16-strtok.c: New file.
107001         * lib/unistr/u32-strtok.c: New file.
107002         * lib/unistr/u-strtok.h: New file.
107004         * modules/unistr/u8-uctomb: New file.
107005         * modules/unistr/u16-uctomb: New file.
107006         * modules/unistr/u32-uctomb: New file.
107007         * lib/unistr/u8-uctomb.c: New file.
107008         * lib/unistr/u16-uctomb.c: New file.
107009         * lib/unistr/u32-uctomb.c: New file.
107011         * MODULES.html.sh (Unicode string functions): Add the new modules.
107013 2007-01-08  Bruno Haible  <bruno@clisp.org>
107015         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
107016         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
107017         subdirectories.
107019 2007-01-08  Karl Berry  <karl@gnu.org>
107021         * doc/error.texi: mention that main() fns must set program_name
107022         when progname is used.
107024 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
107026         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
107027         WCTYPE_H is empty, for the benefit of builds from non-distclean
107028         directories.  Problem reported by Eric Blake in
107029         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
107031 2007-01-08  Bruno Haible  <bruno@clisp.org>
107033         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
107034         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
107035         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
107036         PROVIDE_CANONICALIZE_FILENAME_MODE.
107037         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
107039 2007-01-08  Bruno Haible  <bruno@clisp.org>
107041         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
107042         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
107043         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
107044         * lib/fts.c: Likewise.
107045         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
107047 2006-12-25  Bruno Haible  <bruno@clisp.org>
107049         * modules/utf8-ucs4-safe: New file.
107050         * lib/utf8-ucs4-safe.h: New file.
107051         * lib/unistr/utf8-ucs4-safe.c: New file.
107053         * modules/utf16-ucs4-safe: New file.
107054         * lib/utf16-ucs4-safe.h: New file.
107055         * lib/unistr/utf16-ucs4-safe.c: New file.
107057         * MODULES.html.sh (Unicode string functions): Add the new modules.
107059 2007-01-08  Bruno Haible  <bruno@clisp.org>
107061         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
107062         (Depends-on): Add unitypes.
107063         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107064         (u8_mbtouc_aux): Move out to separate file.
107065         (u8_mbtouc): Use ucs4_t, uint8_t types.
107066         * lib/unistr/utf8-ucs4.c: New file.
107068         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
107069         (Depends-on): Add unitypes.
107070         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107071         (u16_mbtouc_aux): Move out to separate file.
107072         (u16_mbtouc): Use ucs4_t, uint16_t types.
107073         * lib/unistr/utf16-ucs4.c: New file.
107075         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
107076         (Depends-on): Add unitypes.
107077         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
107078         (u8_uctomb_aux): Move out to separate file.
107079         (u8_uctomb): Use ucs4_t, uint8_t types.
107080         * lib/unistr/ucs4-utf8.c: New file.
107082         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
107083         (Depends-on): Add unitypes.
107084         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
107085         (u16_uctomb_aux): Move out to separate file.
107086         (u16_uctomb): Use ucs4_t, uint16_t types.
107087         * lib/unistr/ucs4-utf16.c: New file.
107089 2006-12-25  Bruno Haible  <bruno@clisp.org>
107091         * modules/unitypes: New file.
107092         * lib/unitypes.h: New file.
107093         * MODULES.html.sh (func_all_modules): New section "Unicode string
107094         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
107095         this section. Add unitypes.
107097 2007-01-08  Bruno Haible  <bruno@clisp.org>
107099         Avoid variable names that conflict with those from libtool.
107100         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
107101         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
107102         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
107103         library_names_spec to acl_library_names_spec, hardcode_* to
107104         acl_hardcode_*.
107105         Reported by Ralf Wildenhues.
107107 2007-01-08  Bruno Haible  <bruno@clisp.org>
107109         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
107110         definition.
107111         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
107112         definition.
107113         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
107114         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
107115         definition.
107116         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
107117         definition.
107118         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
107119         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
107120         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
107121         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
107122         definition.
107123         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
107124         definition.
107125         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
107126         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
107127         GC_USE_<algorithm>.
107128         * lib/gc-libgcrypt.c: Likewise.
107129         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
107130         * modules/gc-arctwo (configure.ac): Likewise.
107131         * modules/gc-des (configure.ac): Likewise.
107132         * modules/gc-hmac-md5 (configure.ac): Likewise.
107133         * modules/gc-hmac-sha1 (configure.ac): Likewise.
107134         * modules/gc-md2 (configure.ac): Likewise.
107135         * modules/gc-md4 (configure.ac): Likewise.
107136         * modules/gc-md5 (configure.ac): Likewise.
107137         * modules/gc-random (configure.ac): Likewise.
107138         * modules/gc-rijndael (configure.ac): Likewise.
107139         * modules/gc-sha1 (configure.ac): Likewise.
107141 2007-01-08  Bruno Haible  <bruno@clisp.org>
107143         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
107144         macro definition.
107145         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
107146         definition.
107147         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
107148         definition.
107149         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
107150         * modules/fcntl-safer (configure.ac): Likewise.
107151         * modules/fopen-safer (configure.ac): Likewise.
107152         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
107153         GNULIB_FWRITEERROR macro definition.
107155 2007-01-08  Bruno Haible  <bruno@clisp.org>
107157         * m4/gnulib-common.m4: New file.
107158         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
107159         (func_get_filelist): Add m4/gnulib-common.m4.
107161 2007-01-08  Bruno Haible  <bruno@clisp.org>
107163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
107164         command.
107166 2007-01-08  Jim Meyering  <jim@meyering.net>
107168         Use a more robust test for a "can't happen" condition.
107169         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
107170         narrowed the st_size value.  Presuming the "can't happen" condition
107171         is true, that narrowing could conceivably convert an invalid st_size
107172         value into a valid one.  Instead, use a change based on Matthew
107173         Woehlke's original patch.
107175         Slight readability improvement: use an assert-like macro
107176         in place of literal "abort ()" uses.
107177         * lib/fts.c (fts_assert): Define.
107178         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
107179         Use this macro instead of a bare 'abort'.
107181 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
107183         Don't worry about using IRIX 5.3's wctype.h broken definitions;
107184         simply work around them.
107185         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
107186         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
107187         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
107188         declaring.
107189         Don't bother to define as macros, since the standard doesn't require it.
107190         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
107191         longer worry about IRIX 5.3.
107192         (HAVE_WCTYPE_CTMP_BUG): Remove.
107194 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107196         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
107197         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
107198         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
107199         Problems reported by Georg Schwarz for IRIX 5.3.
107201         * gnulib-tool (autoconf_minversion): Take the maximum version number
107202         found, not the minimum.  Problem reported by James Youngman.
107204 2007-01-03  Karl Berry  <karl@gnu.org>
107206         * doc/error.texi: new file, explaining interaction with progname.
107207         * doc/gnulib.texi: include it.  Update copyright.
107209 2007-01-03  Simon Josefsson  <simon@josefsson.org>
107211         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
107212         AC_CANONICAL_HOST, to improve autobuild outputs.
107214 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
107215             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
107217         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
107218         sockets, server sockets, and other file descriptors.  Count errors
107219         to compute the return value.  Reorder the code a bit to be easier
107220         to follow.  Don't set event bits that were not requested (except
107221         POLLERR and POLLHUP).
107223 2007-01-01  Bruno Haible  <bruno@clisp.org>
107225         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
107227 2007-01-03  Jim Meyering  <jim@meyering.net>
107229         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
107231 2007-01-02  Bruno Haible  <bruno@clisp.org>
107233         * modules/settime (Include): Require timespec.h.
107234         * modules/nanosleep (Include): Likewise.
107236 2007-01-01  Bruno Haible  <bruno@clisp.org>
107238         * gnulib-tool (func_emit_copyright_notice): Bump year.
107239         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
107241 2007-01-01  Bruno Haible  <bruno@clisp.org>
107243         Improve support for OpenBSD.
107244         * build-aux/config.rpath (libname_spec): Export.
107245         (library_names_spec): New variable. Export.
107246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
107247         library_names_spec from the config.rpath output. Locate shared library
107248         through the name pattern in library_names_spec.
107250 2007-01-01  Eric Blake  <ebb9@byu.net>
107252         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
107254 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
107256         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
107257         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
107258         assume the C locale, and avoid an "eval" that could cause trouble.
107259         Problem with SORT reported by Bob Proulx.
107261         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
107262         Define.  Trivial patch from Henning Nielsen Lund, originally
107263         sent to bug-grep@gnu.org today.
107265 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
107267         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
107268         struct stat.  Problem reported by Henning Nielsen Lund.
107269         * lib/acl.c: Include acl.h first, to check interface.  Don't
107270         bother to include sys/types.h and sys/stat.h again.
107272 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107274         Import the following change from libc; problem reported by
107275         Sven Verdoolaege.
107277         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
107279         [BZ #1373]
107280         * lib/argp.h: Remove __NTH for __argp_usage inline function.
107282 2006-12-28  Jim Meyering  <jim@meyering.net>
107284         * build-aux/announce-gen: Do not assume that the package
107285         builds any of tar.gz, tar.bz2, and .xdelta files.
107286         Suggestion from Simon Josefsson.
107288 2006-12-28  Simon Josefsson  <simon@josefsson.org>
107290         * modules/announce-gen: New file.
107292 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107294         * lib/mbchar.h: Just include <wctype.h>; the wctype module
107295         handles its gotchas now.
107296         * lib/mbswidth.c: Likewise.
107297         * lib/wcwidth.h: Likewise.
107298         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
107299         and iswcntrl; the wctype module does this stuff now.
107300         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107302         * modules/mbchar (Depends-on): Add wctype.
107303         * modules/mbswidth (Depends-on): Likewise.
107304         * modules/wcwidth (Depends-on): Likewise.
107306 2006-12-27  Eric Blake  <ebb9@byu.net>
107308         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
107309         module uses more than what <wctype.h> is required to provide.
107311 2006-12-26  Eric Blake  <ebb9@byu.net>
107313         * gnulib-tool (sed_extract_prog): Avoid space-tab.
107315 2006-12-26  Eric Blake  <ebb9@byu.net>
107317         * modules/absolute-header: New module.
107318         * modules/fcntl (Depends-on): Depend on it.
107319         * modules/inttypes (Depends-on): Likewise.
107320         * modules/stdint (Depends-on): Likewise.
107321         * modules/sys_stat (Depends-on): Likewise.
107322         * modules/wctype (Depends-on): Likewise.
107323         * MODULES.html.sh (Support for building libraries and
107324         executables): Document it.
107326 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
107328         * gnulib-tool (SED): Remove, undoing previous change.
107329         The problem was that it broke coreutils on Solaris, because
107330         "sed --posix" leaked into a makefile.
107331         (sed): New alias, if 'alias' and GNU sed.
107333 2006-12-24  Jim Meyering  <jim@meyering.net>
107335         Work around an fchownat bug in glibc-2.4:
107336         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
107337         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
107338         in spite of the -P option.
107339         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
107340         New macros.
107341         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
107342         * modules/openat (Files): Add lib/fchownat.c.
107343         * lib/openat.c (fchownat): Don't define here.  Move to...
107344         * lib/fchownat.c: ...this new file.
107346 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107348         Fix bug reported by Bruno Haible in
107349         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
107350         where quotearg.c didn't compile on Mac OS X 10.2 because it
107351         lacks <wchar.h> and wint_t.
107352         * lib/wctype_.h (__wctype_wint_t): New type.
107353         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
107354         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
107355         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
107356         Arg is now of type __wctype_wint_t, not wint_t.
107357         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
107358         substitute HAVE_WINT_T.
107359         * modules/wctype (Files): Add m4/wint_t.m4.
107360         (wctype.h): Substitute HAVE_WINT_T.
107362 2006-12-23  Bruno Haible  <bruno@clisp.org>
107364         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
107366 2006-12-23  Bruno Haible  <bruno@clisp.org>
107368         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
107369         S_ISLNK.
107370         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
107371         mingw.
107373 2006-12-22  Bruno Haible  <bruno@clisp.org>
107375         * lib/copy-file.c: Include acl.h.
107376         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
107377         Close the file descriptors only after being done with copy_acl.
107378         * modules/copy-file (Depends-on): Add acl.
107380 2006-12-22  Bruno Haible  <bruno@clisp.org>
107382         * gnulib-tool (SED): New variable.
107383         Use $SED instead of sed everywhere.
107385 2006-12-22  Bruno Haible  <bruno@clisp.org>
107387         * modules/no-c++: New file.
107388         * m4/no-c++.m4: New file.
107389         * MODULES.html.sh (Support for building libraries and executables):
107390         Add no-c++.
107392 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107394         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107395         Include <limits.h>, and use its INT_MAX to rewrite the
107396         j loop so that it does not overflow 'int'.  Problem reported by
107397         Ralf Wildenhues in
107398         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107399         Play it safe by shifting left by 1 rather than multiplying by 2,
107400         as GCC is less likely to optimize this away when the value
107401         is signed (when it assumes overflow leads to undefined behavior).
107402         Also, don't assume time_t uses two's complement.
107404 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107406         * MODULES.html.sh: New module wctype.
107407         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107408         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107409         <wctype.h>, since the new wctype module should fix this.
107410         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107411         the wctype module should arrange for it.
107412         * lib/regex_internal.h: Likewise.
107413         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107414         since the wctype module should handle this now.
107415         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107416         * modules/fnmatch (Depends-on): Add wctype.
107417         * modules/quotearg (Depends-on): Likewise.
107418         * modules/regex (Depends-on): Likewise.
107420 2006-12-19  Bruno Haible  <bruno@clisp.org>
107422         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107423         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107425 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107427         * modules/savewd (Depends-on): Fix dependency on fcntl.
107429 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107431         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107432         conforms to C99, rather than relying on the user's environment
107433         setting of STDINT_H.
107435 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107436         and Eric Blake  <ebb9@byu.net>
107438         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107439         This is more consistent with the other defines here.
107440         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107441         Port to z/OS.  Problem reported by Paul Gilmartin.
107442         Change local vars to use gl_ prefix rather than ac_.
107443         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107444         with other defines.
107445         * modules/double-slash-root: New module.
107446         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107447         (Depends-on): Add double-slash-root.
107448         * MODULES.html.sh (File system functions): Mention new module.
107450 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107452         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107453         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107454         This is for the benefit of gzip, which doesn't do i18n.
107456 2006-12-12  Jim Meyering  <jim@meyering.net>
107458         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107459         Reported by Andreas Schwab <schwab@suse.de>.
107461 2006-12-12  Bruno Haible  <bruno@clisp.org>
107463         Merge these changes.
107464         2006-09-05  Bruno Haible  <bruno@clisp.org>
107465         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107466         iconv_alloc succeeded.
107467         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107468         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107469         test for " && dest " at the end - dest is always != NULL there. Call
107470         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107471         with 2xNULL arguments, also to flush the state storage. Handle the
107472         IRIX iconv behaviour. Realloc the final result, to throw away unused
107473         memory.
107475 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107477         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107478         and fchmodat unconditionally, since glibc 2.4 has them.
107479         Problem reported by Arkadiusz Miskiewicz.
107481 2006-12-10  Bruno Haible  <bruno@clisp.org>
107483         * gnulib-tool (func_import): Show the include files only for those
107484         modules that are copied and specified.
107485         Reported by Karl Berry.
107487 2006-12-08  Jim Meyering  <jim@meyering.net>
107489         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107490         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107492         * build-aux/announce-gen: Add two new options, both optional:
107493         --bootstrap-tools=TOOL_LIST
107494               a comma-separated list of tools, e.g.,
107495               autoconf,automake,bison,gnulib
107496         --gnulib-snapshot-date=DATE
107497               if gnulib is in the bootstrap tool list,
107498               then report this as the snapshot date.
107499               If not specified, use the current date/time.
107500               If you specify a date here, be sure it's UTC.
107502 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107504         * tests/test-argp-2.sh: Fix test to match actual output.
107505         (func_compare): Fix sed script to be portable.
107507 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107509         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107510         workaround for this case.  It is not autoconfigured now; offhand
107511         it's hard to see how to autoconfigure it.
107513 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107515         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107516         a directory that is about to be chowned.  Such a directory's
107517         initial file permissions should permit the owner only and this
107518         should not be changed until after the chown, since the group and
107519         other bits would be incorrect if they granted permission before
107520         the chown.
107522         Fix porting problem for iswctype reported by Georg Schwarz in:
107523         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107525         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107529 2006-12-03  Jim Meyering  <jim@meyering.net>
107531         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107532         p->fts_statp may not yet be defined.
107533         (fts_read): Instead, set it in the caller, once p->fts_statp is
107534         sure to be defined, and corresponds to a top-level directory.
107535         This bug made du -x fail.  Here's the coreutils test case:
107536         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107537         Reported by Mike Frysinger.
107539 2006-12-01  Jim Meyering  <jim@meyering.net>
107541         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107542         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107543         Reported by Simon Josefsson.
107545 2006-11-30  Jim Meyering  <jim@meyering.net>
107547         * m4/warning.m4: Use the all-permissive copyright notice
107548         recommended by RMS (rather than LGPL).
107549         * m4/vararrays.m4: Likewise.
107550         * m4/flexmember.m4: Likewise.
107552 2006-11-29  Bruno Haible  <bruno@clisp.org>
107554         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107555         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107556         using +=.
107557         Reported by Simon Josefsson <simon@josefsson.org>.
107559 2006-11-28  James Youngman  <jay@gnu.org>
107561         * README: Advise users that they might find the bug-gnulib@gnu.org
107562         and autotools-announce@gnu.org mailing lists useful.
107564 2006-11-28  Bruno Haible  <bruno@clisp.org>
107566         * m4/ptrdiff_max.m4: Remove file.
107568 2006-11-21  Bruno Haible  <bruno@clisp.org>
107570         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107571         _AC_COMPUTE_INT.
107572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107573         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107574         _AC_COMPUTE_INT.
107575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107576         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107577         _AC_COMPUTE_INT.
107578         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107580 2006-11-28  Jim Meyering  <jim@meyering.net>
107582         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107583         warning from "gcc -Wshadow" about shadowing the builtin.
107585 2006-11-27  Bruno Haible  <bruno@clisp.org>
107587         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107588         _AC_COMPUTE_INT.
107589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107591 2006-11-27  Bruno Haible  <bruno@clisp.org>
107592             Paul Eggert  <eggert@cs.ucla.edu>
107594         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107596 2006-11-26  Bruno Haible  <bruno@clisp.org>
107598         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107599         noinst_LTLIBRARIES.
107601 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107602             Bruno Haible  <bruno@clisp.org>
107604         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107605         if compiling with "gcc -ansi".
107607 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107609         Fix some incompatibilities with gcc -ansi -pedantic.
107610         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107611         if compiling pedantically with GCC, unless it's C99 or later.
107612         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107613         it mishandles gcc -ansi -pedantic as well.
107614         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107615         if gcc -pedantic.
107616         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107617         initializers for struct if -pedantic, unless it's C99 or later.
107619 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107621         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107622         Don't close an fd more than once. Identical atimes indicate
107623         success, not failure.
107625 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107627         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107629 2006-11-23  Jim Meyering  <jim@meyering.net>
107631         * build-aux/announce-gen: New file.  From coreutils.
107633 2006-11-22  Jim Meyering  <jim@meyering.net>
107635         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107636         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107637         (fts_read): Use a temporary to narrow the overused st_size member
107638         before using it in a switch statement.  Reported by Matthew Woehlke.
107640         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107643 2006-11-20  Bruno Haible  <bruno@clisp.org>
107645         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107646         changequote instead of pairs of brackets.
107647         Reported by Andreas Schwab <schwab@suse.de>.
107649 2006-11-21  Jim Meyering  <jim@meyering.net>
107651         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107652         so as to remain compatible with older compilers.
107653         Patch from Michael Deutschmann.
107655 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107657         * MODULES.html.sh (File system functions): Add openat.
107659         * lib/openat.h (rpl_fstatat): New macro, if
107660         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107661         (fstatat): Define to rpl_fstatat under the same conditions,
107662         unless COMPILING_FSTATAT.
107663         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107664         seems to have the bug.
107665         * lib/fstatat.c: New file.
107666         * modules/openat (Files): Add it.
107668 2006-11-20  Bruno Haible  <bruno@clisp.org>
107670         * Makefile: New file.
107672 2006-11-20  Jim Meyering  <jim@meyering.net>
107674         The beginnings of syntax-related checks for gnulib.
107675         * lib/Makefile: New file.
107676         * lib/t-idcache: New script.  Ensure that the two halves of
107677         idcache.c stay in sync.
107679         * lib/idcache.c: Adjust comments in user- and group- portions to
107680         be more accurate, and to be consistent with one another.
107682 2006-11-20  Jim Meyering  <jim@meyering.net>
107684         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107685         continue using the flexible array member (thus, this module performs
107686         half as many malloc calls), with the addition that...
107687         (getgroup, getuser): Consistently record a non-match via an empty
107688         "name" string, and map an empty string match to a NULL return value.
107689         * modules/idcache (Depends-on): Re-add flexmember.
107691         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107692         (getuidbyname, getgroup, getgidbyname): Likewise.
107694         Use cleaner syntax: NULL rather than 0.
107695         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107697 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107699         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107700         It mishandled the case where the group was missing.
107701         Problem reported by Greg Schafer.
107702         * modules/idcache: Likewise.
107704 2006-11-18  Jim Meyering  <jim@meyering.net>
107706         * check-module (%exempt_header): Add exception for some
107707         conditionally-included headers.
107709         * modules/i-ring (Depends-on): Add verify.
107710         (License): Change to LGPL.
107712 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107714         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107715         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107716         and inttostr.h.  Use snprintf rather than uinttostr, so that
107717         LGPLed code doesn't depend on GPLed.
107719 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107721         * modules/inline (License): Change from GPL to LGPL.
107723 2006-11-17  Jim Meyering  <jim@meyering.net>
107725         * modules/d-type (License): Switch to LGPL.
107727 2006-11-15  Bruno Haible  <bruno@clisp.org>
107729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107731 2006-11-15  Eric Blake  <ebb9@byu.net>
107733         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107734         the module dependency.
107736 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107737             Bruno Haible  <bruno@clisp.org>
107739         * gnulib-tool (func_create_testdir): Add license consistency check.
107741 2006-11-15  Eric Blake  <ebb9@byu.net>
107743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107744         random "(cached)" in configure output.
107746 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107748         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107749         test for conforming inttypes.h is both announced and cached.
107751         * MODULES.html.sh (seen_modules, seen_files): New variables.
107752         (func_module): Rewrite to use a few less gnulib-tool and sed
107753         invocations.  Avoid a couple of quadratic algorithms for ...
107754         (missed_modules, missed_files): ... these, with ...
107755         (func_append, func_tmpdir): ... these new functions, from
107756         gnulib-tool.  Analogously, install traps for cleanup.
107758         * tests/test-gc.c (main): Remove unused variables.
107759         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107761 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107763         * modules/inttostr (License): Change to LGPL.
107765 2006-11-14  Eric Blake  <ebb9@byu.net>
107767         * modules/tempname (License): Change to LGPL.
107769 2006-11-14  Eric Blake  <ebb9@byu.net>
107771         * doc/functions.texi (Function Portability): *printf functions on
107772         Cygwin now understand all POSIX size specifiers.
107774 2006-11-14  Bruno Haible  <bruno@clisp.org>
107776         * modules/c-ctype (License): Change to LGPL.
107778 2006-11-12  Bruno Haible  <bruno@clisp.org>
107780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107781         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107782         for GNOME libraries, for which the include files are installed in
107783         subdirectories of $prefix/include.
107785 2006-11-12  Bruno Haible  <bruno@clisp.org>
107787         * m4/lib-link.m4: Require at least autoconf-2.54.
107788         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107789         name to underscores for the --with option.
107791 2006-11-13  Bruno Haible  <bruno@clisp.org>
107793         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
107794         the tests directory.
107795         Reported by Ralf Wildenhues.
107797 2006-11-13  Bruno Haible  <bruno@clisp.org>
107799         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
107800         (func_emit_initmacro_end): Undo the override here.
107801         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
107802         Works around the famous automake error in coreutils.
107804 2006-11-13  Eric Blake  <ebb9@byu.net>
107806         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
107807         element, not its node.
107809 2006-11-12  Bruno Haible  <bruno@clisp.org>
107811         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
107812         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
107814 2006-11-12  Bruno Haible  <bruno@clisp.org>
107816         * gnulib-tool: New option --local-symlink.
107817         (func_usage): Document it.
107818         (lsymbolic): New variable.
107819         (func_import, func_create_testdir): If --symlink was not specified,
107820         test whether --local-symlink was specified and the file comes from
107821         the local_gnulib_dir.
107823 2006-11-12  Bruno Haible  <bruno@clisp.org>
107825         * gnulib-tool (func_ln): New function.
107826         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107828 2006-11-12  Bruno Haible  <bruno@clisp.org>
107830         Finish support for source files in subdirectories.
107831         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107832         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107833         AUTOMAKE_OPTIONS.
107834         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107836 2006-11-12  Bruno Haible  <bruno@clisp.org>
107838         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107839         EXTRA_lib_SOURCES augmentation.
107840         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107842 2006-11-12  Jim Meyering  <jim@meyering.net>
107844         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107845         file descriptors.  This also averts a failure on systems with
107846         native openat support when a traversed directory lacks "x" access.
107847         * lib/fts_.h: Include "i-ring.h"
107848         (struct FTS) [fts_fd_ring]: New member.
107849         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107850         (FCHDIR): Add parentheses.
107851         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107852         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107853         When descending, rather than simply closing the previous
107854         fts_cwd_fd value, push that file descriptor onto the ring.
107855         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107856         (fts_open): Initialize the new fd_ring member.
107857         (fts_close): Clear the ring.
107858         (fts_safe_changedir): When possible, use our new fd_ring to skip
107859         the diropen and fstat and dev/ino comparison that would normally
107860         accompany a virtual `chdir ("..")'.
107862         * modules/fts (Depends-on): Add i-ring.
107863         * modules/i-ring: New module.
107864         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107865         * m4/i-ring.m4: New file.
107867 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107869         * gnulib-tool (func_create_testdir): Fix replacement of
107870         `build-aux' in configure.ac.  Run autotools in gltests
107871         subdirectory.
107872         (func_create_testdir, func_create_megatestdir, test): There is
107873         no need for '--force' in most autotool invocations in a new
107874         tree.  Actually fail the whole test if any of the tools, or the
107875         configure or make stages fail.
107877         Sync from Automake.
107878         * build-aux/gnupload: Revert last change.  Add pointer to upload
107879         instructions of the GNU Maintenance Instructions.
107880         Suggestion by Karl Berry.
107882 2006-11-10  Jim Meyering  <jim@meyering.net>
107884         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107886 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107888         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107889         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107890         (bind_textdomain_codeset) [! ENABLE_NLS]:
107891         Evaluate all the arguments.  That way, callers get compatible behavior
107892         if the arguments have side effects.  Also, it avoids some GCC
107893         diagnostics in some cases; Joel E. Denny reported problems when Bison
107894         was configured with --enable-gcc-warnigs.
107896 2006-11-10  Jim Meyering  <jim@meyering.net>
107898         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107899         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107900         account.
107902 2006-11-10  Jim Meyering  <jim@meyering.net>
107904         * modules/inline: New file/module.
107905         * modules/xalloc (Files): Remove m4/inline.m4.
107906         (Depends-on): Add inline, instead.
107907         * modules/oset: Likewise.
107908         * modules/list: Likewise.
107910 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107912         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107913         Problem reported by Matthew Woehlke.
107915 2006-11-09  Bruno Haible  <bruno@clisp.org>
107917         * lib/tempname.c (gen_tempname): Remove variant that invokes
107918         __gen_tempname.
107919         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107920         __gen_tempname.
107922 2006-11-08  Bruno Haible  <bruno@clisp.org>
107924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107925         to 'yes' instead of 'cross-compiling'.
107927 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107929         * lib/quotearg.h (quotearg_free): New decl.
107930         * lib/quotearg.c (quotearg_free): New function.
107931         (slot0, nslots, slotvec0, slotvec):
107932         Now file-scope so that quotearg_free can get at them.
107934 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107936         Sync from Automake.
107937         * build-aux/gnupload: Add missing 'gnu' to example URL.
107938         Report by Karl Berry.
107940 2006-11-08  Bruno Haible  <bruno@clisp.org>
107942         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107943         Suggested by Paul Eggert.
107945 2006-11-08  Jim Meyering  <jim@meyering.net>
107947         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107948         It's already included if !_LIBC.
107949         (fts_safe_changedir): Add a comment.
107951 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107954         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107955         Matthew Woehlke.
107957         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107958         definitions up, to avoid colliding with change below.
107959         (static_inline) [HAVE_INLINE]: New macro.
107960         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107961         Provide extern decls when !HAVE_INLINE.  Do not define unless
107962         static_inline is defined, either by us or by xmalloc.c.  Use
107963         static_inline rather than static inline.
107964         (XCALLOC): Optimize sizeof(T) = 1 case.
107965         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107967 2006-11-07  Bruno Haible  <bruno@clisp.org>
107969         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107971         AC_C_INLINE.
107972         * modules/xalloc (Files): Add m4/inline.m4.
107974 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107976         * README: Fix typo.
107977         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107978         (Miscellanous Notes): ...from this.
107980 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107982         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107983         Mention that offsetof should be used instead of sizeof.
107984         From Bruno Haible.
107986 2006-11-07  Bruno Haible  <bruno@clisp.org>
107988         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107990 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107992         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107993         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107994         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107995         (gl_tree_add_before, gl_tree_add_after):
107996         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107997         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107998         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107999         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
108000         (gl_linked_add_after, gl_linked_add_at): Likewise.
108001         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
108002         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108003         (gl_tree_add_before, gl_tree_add_after): Likewise.
108004         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
108005         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
108006         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
108008 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108010         * lib/gl_oset.h: Use C comment style, not C++ comment style.
108012 2006-11-06  Bruno Haible  <bruno@clisp.org>
108014         * m4/inline.m4: New file.
108015         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
108016         * modules/list (Files): Add m4/inline.m4.
108017         * modules/oset (Files): Likewise.
108019 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108021         * lib/idcache.c: Include <stddef.h>, for offsetof.
108022         (struct userid.name): Change from char * to a flexible array member.
108023         All uses changed.
108024         * modules/idcache (Depends-on): Add flexmember.
108026         * MODULES.html.sh (Core language properties): New module flexmember.
108027         * modules/flexmember, m4/flexmember.m4: New files.
108029         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
108030         inline functions that are identical with the old xnmalloc_inline,
108031         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
108032         that we can avoid some unnecessary integer multiplications and
108033         divisions in the common case where the element size is known at
108034         compile time.
108035         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
108036         needed.
108037         (xnboundedmalloc): Remove.
108038         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
108039         arguments, for consistency with rest of this header.
108040         (xcharalloc): Rewrite using XNMALLOC.
108041         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
108042         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
108043         versions have been moved to lib/xalloc.h and renamed to be the
108044         non-*_inline versions.
108045         (xmalloc, xrealloc): Implement without reference to the xnmalloc
108046         and xnrealloc functions, since those functions are now inline and
108047         now call us.
108048         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
108049         renaming described above.
108050         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
108051         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
108052         captures the dependency in AC_C_INLINE.
108054         New module canonicalize-lgpl, proposed by Charles Wilson in
108055         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
108056         with a few small changes afterwards.
108057         * MODULES.html.sh (File system functions): New module
108058         canonicalize-lgpl.
108059         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
108060         and canonicalize_file_name.
108061         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
108062         * modules/canonicalize-lgpl: New files.
108064 2006-11-05  Bruno Haible  <bruno@clisp.org>
108066         * gnulib-tool (func_import, func_create_testdir): Create directories
108067         also for files in subdirectories of lib/.
108069 2006-11-05  Bruno Haible  <bruno@clisp.org>
108071         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
108072         ANSI C compliant.
108074 2006-11-03  Bruno Haible  <bruno@clisp.org>
108076         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
108078         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
108079         (xnboundedmalloc): New inline function.
108080         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
108081         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
108082         xmalloc.
108083         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
108084         xmalloc.
108085         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
108086         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
108087         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
108088         xmalloc.
108089         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108090         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
108091         xmalloc.
108092         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
108093         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108094         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
108095         xmalloc.
108096         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108097         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
108098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108099         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
108100         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
108101         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
108102         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
108104 2006-11-03  Bruno Haible  <bruno@clisp.org>
108106         * lib/c-ctype.h [C++]: Define functions without name mangling.
108107         * lib/fwriteerror.h [C++]: Likewise.
108108         * lib/gcd.h [C++]: Likewise.
108109         * lib/linebreak.h [C++]: Likewise.
108111 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108113         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
108114         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
108115         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
108116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108117         Check for functions and headers just once.
108118         Check for declaration of canonicalize_file_name.
108119         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
108121 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108123         * gnulib-tool (func_import): Fix typo in actioncmd.
108125 2006-11-02  Bruno Haible  <bruno@clisp.org>
108127         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
108128         newline sequence in the Makefile.am snippet as a space, like "make"
108129         does.
108130         Reported by Roger Persson <perrog@gmail.com>.
108132 2006-11-01  Bruno Haible  <bruno@clisp.org>
108134         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
108135         already declared in <string.h>.
108136         * lib/strcase.h (strncasecmp): Don't declare it if yes.
108138 2006-11-01  Bruno Haible  <bruno@clisp.org>
108140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
108141         * lib/strcase.h: Include <string.h>.
108142         (strcasecmp): Define to rpl_strcasecmp here.
108144 2006-11-01  Bruno Haible  <bruno@clisp.org>
108146         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
108148 2006-11-01  Eric Blake  <ebb9@byu.net>
108150         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
108152         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
108154 2006-10-29  Bruno Haible  <bruno@clisp.org>
108156         Make it compile in C++ mode.
108157         * lib/full-write.c (full_rw): Add a cast.
108159 2006-11-01  Bruno Haible  <bruno@clisp.org>
108161         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
108162         be POSIX compliant.
108163         Reported by Roger Persson <perrog@gmail.com>.
108165 2006-11-01  Eric Blake  <ebb9@byu.net>
108167         * lib/getopt_.h: Fix comments.
108169 2006-10-31  Eric Blake  <ebb9@byu.net>
108171         * modules/tmpdir (Depends-on): Add sys_stat.
108172         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
108173         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
108174         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
108175         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
108176         tempname.
108178 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
108180         Avoid some C++ diagnostics reported by Bruno Haible.
108181         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
108182         xmalloc.
108183         (quotearg_alloc): Use xcharalloc rather than xmalloc.
108184         (struct slotvec): Move to top level.
108185         (quotearg_n_options): Rewrite to avoid xmalloc.
108186         * lib/xalloc.h (xcharalloc): New function.
108187         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
108188         [defined __cplusplus]: Add function template that provides result
108189         type propagation.  This part of the change is from Bruno Haible.
108191 2006-10-29  Bruno Haible  <bruno@clisp.org>
108193         Make it compile in C++ mode.
108194         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
108195         * lib/strnlen1.c (strnlen1): Cast memchr result.
108196         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
108197         * lib/clean-temp.c (string_equals, string_hash): Add casts.
108198         (create_temp_dir): Rename local variable 'template'.
108199         (compile_csharp_using_sscli): Add cast.
108200         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
108201         * lib/findprog.c (find_in_path): Likewise.
108202         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
108203         * lib/wait-process.c (register_slave_subprocess): Likewise.
108205 2006-10-22  Bruno Haible  <bruno@clisp.org>
108207         * modules/tsearch: New file.
108208         * lib/tsearch.h: New file.
108209         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
108210         * m4/tsearch.m4: New file.
108211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
108213 2006-10-29  Eric Blake  <ebb9@byu.net>
108215         * lib/arcfour.c: Assume config.h.
108216         * lib/arctwo.c: Likewise.
108217         * lib/base64.c: Likewise.
108218         * lib/check-version.c: Likewise.
108219         * lib/crc.c: Likewise.
108220         * lib/des.c: Likewise.
108221         * lib/gc-gnulib.c: Likewise.
108222         * lib/gc-libgcrypt.c: Likewise.
108223         * lib/gc-pbkdf2-sha1.c: Likewise.
108224         * lib/getaddrinfo.c: Likewise.
108225         * lib/getdelim.c: Likewise.
108226         * lib/getline.c: Likewise.
108227         * lib/hmac-md5.c: Likewise.
108228         * lib/hmac-sha1.c: Likewise.
108229         * lib/iconvme.c: Likewise.
108230         * lib/md2.c: Likewise.
108231         * lib/md4.c: Likewise.
108232         * lib/memxor.c: Likewise.
108233         * lib/read-file.c: Likewise.
108234         * lib/readline.c: Likewise.
108235         * lib/rijndael-alg-fst.c: Likewise.
108236         * lib/rijndael-api-fst.c: Likewise.
108237         * lib/xgetdomainname.c: Likewise.
108239 2006-10-28  Eric Blake  <ebb9@byu.net>
108241         * lib/xstrndup.c: Assume config.h.
108243 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108245         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
108246         stat-macros.h is now for our own macros, whereas stat_h is for
108247         macros in the <sys/stat.h> name space.
108248         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
108249         (STAT_MACROS_H): Remove.
108250         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
108251         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
108252         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
108253         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
108254         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
108255         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
108256         Move these macros to ...
108257         * lib/stat_.h: here.  Don't include stat-macros.h.
108258         * lib/canonicalize.c: Don't include stat-macros.h.
108259         * lib/chown.c: Likewise.
108260         * lib/euidaccess.c: Likewise.
108261         * lib/file-type.c: Likewise.
108262         * lib/filemode.c: Likewise.
108263         * lib/glob.c: Likewise.
108264         * lib/isapipe.c: Likewise.
108265         * lib/lchown.c: Likewise.
108266         * lib/lstat.c: Likewise.
108267         * lib/mkdir-p.c: Likewise.
108268         * lib/rmdir.c: Likewise.
108269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
108270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
108271         unless mkdir isn't declared, to speed up 'configure'.
108272         Always create sys/stat.h, since it's unlikely any real sys/stat.h
108273         would define all the S_* symbols.
108274         * modules/canonicalize (Depends-on):
108275         Depend on sys_stat, not stat-macros.
108276         * modules/chown: Likewise.
108277         * modules/euidaccess: Likewise.
108278         * modules/filemode: Likewise.
108279         * modules/file-type: Likewise.
108280         * modules/glob: Likewise.
108281         * modules/isapipe: Likewise.
108282         * modules/lchown: Likewise.
108283         * modules/lstat: Likewise.
108284         * modules/mkancesdirs: Likewise.
108285         * modules/rmdir: Likewise.
108286         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
108287         * modules/modechange: Likewise.
108288         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
108289         (configure.ac): Remove gl_STAT_MACROS.
108290         * modules/sys_stat (Depends-on): Remove stat-macros.
108292 2006-10-27  Bruno Haible  <bruno@clisp.org>
108294         * m4/signed.m4: Remove file.
108295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
108296         invocation.
108297         * modules/vasnprintf (Files): Remove m4/signed.m4.
108299 2006-10-27  Bruno Haible  <bruno@clisp.org>
108301         Update to GNU gettext 0.16.
108302         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
108303         m4/inttypes-h.m4, m4/signed.m4.
108304         * m4/gettext.m4: Update to GNU gettext 0.16.
108305         * m4/intl.m4: New file, from GNU gettext.
108306         * m4/intldir.m4: New file, from GNU gettext.
108307         * config/srclist.txt: Update
108309 2006-10-27  Eric Blake  <ebb9@byu.net>
108311         * MODULES.html.sh: Document tempname.
108312         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
108313         dependencies.
108314         (Files): Move lib/tempname.c...
108315         * modules/tempname: ...to this new module.
108316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
108317         (gl_PREREQ_TEMPNAME): Move...
108318         * m4/tempname.m4: ...to this new file.
108319         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
108320         * modules/sys_stat (Depends-on): Add stat-macros.
108321         * lib/stat_.h (includes): Pick up stat macros.
108322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
108323         if stat macros are broken.
108324         * lib/tempname.c (includes): No need to include "stat-macros.h".
108325         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
108326         (direxists, __path_search) [!_LIBC]: Don't compile these in
108327         gnulib; the tmpdir module covers that.
108328         * lib/tempname.h: New file.
108330 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
108332         * COPYING: Explain how gnulib-tool converts licence headers.
108333         Almost all wording by Eric Blake.
108335 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
108337         * lib/mbchar.h (is_basic_table): Make read-only.
108338         * lib/mbchar.c (is_basic_table): Likewise.
108339         Reported by John Darrington.
108341 2006-10-25  Bruno Haible  <bruno@clisp.org>
108343         * lib/progname.h (set_program_name): Undefine before defining.
108345 2006-10-25  Bruno Haible  <bruno@clisp.org>
108347         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
108348         false for non-gcc C++ compilers.
108349         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108351 2006-10-24  Bruno Haible  <bruno@clisp.org>
108353         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
108354         iconv implementations like Irix iconv.
108356 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108358         * modules/vararrays: New file.
108359         * m4/vararrays.m4: New file, taken from diffutils.
108360         * MODULES.html.sh: New module vararrays.
108362 2006-10-24  Karl Berry  <karl@gnu.org>
108364         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
108365         Don't call GNU Unix.
108367 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108369         * users.txt: Add Libtool.
108371         Sync from Libtool:
108373         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108375         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
108376         to gnulib's policy of including config.h unconditionally.
108378 2006-10-24  Bruno Haible  <bruno@clisp.org>
108380         * modules/wcwidth (Files): Add m4/wint_t.m4.
108381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108382         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108384 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108386         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108387         to pacify GCC with some -W flags enabled.  Problem reported by
108388         Bruno Haible.
108390 2006-10-24  Jim Meyering  <jim@meyering.net>
108392         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108393         Reported by Karl Berry.
108395 2006-10-23  Bruno Haible  <bruno@clisp.org>
108397         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108399 2006-10-24  Bruno Haible  <bruno@clisp.org>
108401         * lib/gl_list.h: Use C comment style, not C++ comment style.
108403 2006-10-23  Eric Blake  <ebb9@byu.net>
108405         * lib/getaddrinfo.c (includes): Add missing include.
108407 2006-10-23  Bruno Haible  <bruno@clisp.org>
108408             Paul Eggert  <eggert@cs.ucla.edu>
108410         Ability to rename obstack_free.
108411         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108412         obstack_free.
108413         (obstack_free): Invoke the __obstack_free macro.
108414         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108416 2006-10-23  Bruno Haible  <bruno@clisp.org>
108417             Paul Eggert  <eggert@cs.ucla.edu>
108419         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108420         __argc, __argv from the declaration. (They are defined as macros on
108421         mingw.)
108423 2006-10-22  Bruno Haible  <bruno@clisp.org>
108425         * doc/gnulib-intro.texi: New file.
108426         * doc/gnulib.texi: Include it.
108428 2006-10-21  Bruno Haible  <bruno@clisp.org>
108430         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108431         "Introduction", "Miscellanous Notes", "Particular Modules".
108433 2006-10-21  Bruno Haible  <bruno@clisp.org>
108435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108436         Change mostlyclean-local rule to avoid sh syntax error from bash
108437         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108439 2006-10-23  Jim Meyering  <jim@meyering.net>
108441         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108442         in place of snprintf.
108444         * modules/inttostr (Files): Add lib/uinttostr.c.
108445         * lib/uinttostr.c (inttostr): New file/function.
108446         * lib/inttostr.h (uinttostr): Declare.
108447         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108448         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108449         Add uinttostr.
108450         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108452 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108454         * lib/canonicalize.c (ELOOP): Define if not already defined.
108455         Problem reported by Bruno Haible in
108456         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108458 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108460         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108461         Problem reported by Perry Smith and Ville Laurikari.
108463         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108464         uses.
108466 2006-10-19  Bruno Haible  <bruno@clisp.org>
108468         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108469         for mingw.
108471 2006-10-19  Bruno Haible  <bruno@clisp.org>
108473         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108474         Needed for mingw.
108476 2006-10-19  Bruno Haible  <bruno@clisp.org>
108478         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108480 2006-10-19  Bruno Haible  <bruno@clisp.org>
108482         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108483         it.
108485 2006-10-19  Bruno Haible  <bruno@clisp.org>
108487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108488         invocation.
108490 2006-10-19  Bruno Haible  <bruno@clisp.org>
108492         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108493         mountlist by default.
108495 2006-10-16  Bruno Haible  <bruno@clisp.org>
108497         * lib/c-strstr.c: Include c-strstr.h.
108499 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108501         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108502         in a slash.
108504 2006-10-18  Bruno Haible  <bruno@clisp.org>
108506         * lib/lock.h [C++]: Wrap definitions in extern "C".
108508 2006-10-18  Bruno Haible  <bruno@clisp.org>
108510         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108511         gl_LIBOBJS list.
108513 2006-10-18  Bruno Haible  <bruno@clisp.org>
108515         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108517 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108519         * lib/xstrtol.h: Include gettext.h.
108520         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108521         Problem reported by Eric Blake.
108522         * modules/xstrtol (Depends-on): Add gettext-h.
108524 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108526         * lib/strftime.c (advance): New macro.
108527         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108528         incomplete type, so you can't add 0 to it.  Problem and patch
108529         reported by Eelco Dolstra for dietlibc.
108531 2006-10-18  Jim Meyering  <jim@meyering.net>
108533         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108534         type for a local, and rename it: s/up/user_proc/.
108536 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108538         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108539         READ_UTMP_USER_PROCESS.
108540         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108542 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108544         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108545         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108547 2006-10-17  Eric Blake  <ebb9@byu.net>
108549         * lib/sigprocmask.c (sigprocmask): Fix typo.
108551         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108553         * modules/clean-temp (Makefile.am): Don't add to make output...
108554         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108555         config.h.
108557 2006-10-17  Bruno Haible  <bruno@clisp.org>
108559         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108560         differently if DEFAULT_TEXT_DOMAIN is set.
108562 2006-10-16  Bruno Haible  <bruno@clisp.org>
108564         * lib/clean-temp.c: Include fwriteerror.h.
108566 2006-10-16  Bruno Haible  <bruno@clisp.org>
108568         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108570 2006-10-16  Bruno Haible  <bruno@clisp.org>
108572         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108573         * lib/sigprocmask.h: Include <sys/types.h>.
108574         (sigset_t): Use the system's definition if present.
108576 2006-10-17  Eric Blake  <ebb9@byu.net>
108578         * lib/xvasprintf.c (includes): Assume config.h.
108579         * lib/xasprintf.c (includes): Likewise.
108581 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108583         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108584         at least as wide as intmax_t.
108586 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108588         (Imported from Automake.)
108589         * build-aux/gnupload: Update to version 1.1 of directive file.
108591 2006-10-16  Eric Blake  <ebb9@byu.net>
108593         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108594         match Automake 1.10a.
108596 2006-10-14  Bruno Haible  <bruno@clisp.org>
108598         * modules/sigprocmask: New file.
108599         * lib/sigprocmask.h: New file.
108600         * lib/sigprocmask.c: New file.
108601         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108602         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108603         request sigprocmask.o.
108604         (gl_PREREQ_SIGPROCMASK): New macro.
108605         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108606         (Depends-on): Add sigprocmask.
108607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108608         gt_SIGNALBLOCKING. Test for 'raise' only once.
108609         * lib/fatal-signal.c: Include sigprocmask.h.
108610         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108611         unblock_fatal_signals): Define always.
108612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108613         sigprocmask.
108615 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108617         Sync from Automake.
108618         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108619         which incorrectly sets the mode of an existing destination
108620         directory.  In some cases the unpatched install-sh could do the
108621         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108622         system.  We hope this is rare in practice, but it's clearly worth
108623         fixing.  Problem reported by Alex Unleashed in
108624         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108625         Also, don't bother to check for -m bugs unless we're using -m;
108626         suggested by Stepan Kasal.
108628 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108630         Sync from Automake.
108631         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108632         `-c' flag, so they appear at the same position as in %FASTDEP%
108633         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108634         which ignores unknown options only after the first non-option.
108635         Bug report against M4 by Nelson H. F. Beebe.
108637 2006-10-13  Jim Meyering  <jim@meyering.net>
108639         Fix a bug in yesterday's change.
108640         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108641         p->fts_statp->st_dev would be used uninitialized.
108642         Ensures that we always call fts_stat on the very first entry.
108643         Miklos Szeredi reported that find -xdev stopped working.
108645 2006-10-12  Bruno Haible  <bruno@clisp.org>
108647         * gnulib-tool (func_get_automake_snippet): Append an automatically
108648         computed EXTRA_DIST augmentation.
108649         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108650         * modules/alloca-opt (Makefile.am): Likewise.
108651         * modules/allocsa (Makefile.am): Likewise.
108652         * modules/arcfour (Makefile.am): Likewise.
108653         * modules/arctwo (Makefile.am): Likewise.
108654         * modules/argmatch (Makefile.am): Likewise.
108655         * modules/argz (Makefile.am): Likewise.
108656         * modules/atexit (Makefile.am): Likewise.
108657         * modules/backupfile (Makefile.am): Likewise.
108658         * modules/byteswap (Makefile.am): Likewise.
108659         * modules/c-strtod (Makefile.am): Likewise.
108660         * modules/c-strtold (Makefile.am): Likewise.
108661         * modules/calloc (Makefile.am): Likewise.
108662         * modules/canon-host (Makefile.am): Likewise.
108663         * modules/canonicalize (Makefile.am): Likewise.
108664         * modules/chdir-long (Makefile.am): Likewise.
108665         * modules/chdir-safer (Makefile.am): Likewise.
108666         * modules/check-version (Makefile.am): Likewise.
108667         * modules/chown (Makefile.am): Likewise.
108668         * modules/cloexec (Makefile.am): Likewise.
108669         * modules/close-stream (Makefile.am): Likewise.
108670         * modules/closeout (Makefile.am): Likewise.
108671         * modules/crc (Makefile.am): Likewise.
108672         * modules/csharpexec (Makefile.am): Likewise.
108673         * modules/cycle-check (Makefile.am): Likewise.
108674         * modules/des (Makefile.am): Likewise.
108675         * modules/dev-ino (Makefile.am): Likewise.
108676         * modules/dirfd (Makefile.am): Likewise.
108677         * modules/dirname (Makefile.am): Likewise.
108678         * modules/dup2 (Makefile.am): Likewise.
108679         * modules/eealloc (Makefile.am): Likewise.
108680         * modules/error (Makefile.am): Likewise.
108681         * modules/euidaccess (Makefile.am): Likewise.
108682         * modules/exclude (Makefile.am): Likewise.
108683         * modules/exitfail (Makefile.am): Likewise.
108684         * modules/fcntl-safer (Makefile.am): Likewise.
108685         * modules/fcntl (Makefile.am): Likewise.
108686         * modules/file-type (Makefile.am): Likewise.
108687         * modules/fileblocks (Makefile.am): Likewise.
108688         * modules/filemode (Makefile.am): Likewise.
108689         * modules/filenamecat (Makefile.am): Likewise.
108690         * modules/fnmatch (Makefile.am): Likewise.
108691         * modules/fopen-safer (Makefile.am): Likewise.
108692         * modules/fpending (Makefile.am): Likewise.
108693         * modules/fprintftime (Makefile.am): Likewise.
108694         * modules/free (Makefile.am): Likewise.
108695         * modules/fsusage (Makefile.am): Likewise.
108696         * modules/ftruncate (Makefile.am): Likewise.
108697         * modules/fts (Makefile.am): Likewise.
108698         * modules/gc-arcfour (Makefile.am): Likewise.
108699         * modules/gc-des (Makefile.am): Likewise.
108700         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108701         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108702         * modules/gc-md4 (Makefile.am): Likewise.
108703         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108704         * modules/gc-sha1 (Makefile.am): Likewise.
108705         * modules/gc (Makefile.am): Likewise.
108706         * modules/getaddrinfo (Makefile.am): Likewise.
108707         * modules/getcwd (Makefile.am): Likewise.
108708         * modules/getdelim (Makefile.am): Likewise.
108709         * modules/getdomainname (Makefile.am): Likewise.
108710         * modules/getgroups (Makefile.am): Likewise.
108711         * modules/gethostname (Makefile.am): Likewise.
108712         * modules/gethrxtime (Makefile.am): Likewise.
108713         * modules/getline (Makefile.am): Likewise.
108714         * modules/getloadavg (Makefile.am): Likewise.
108715         * modules/getlogin_r (Makefile.am): Likewise.
108716         * modules/getndelim2 (Makefile.am): Likewise.
108717         * modules/getopt (Makefile.am): Likewise.
108718         * modules/getpagesize (Makefile.am): Likewise.
108719         * modules/getpass-gnu (Makefile.am): Likewise.
108720         * modules/getpass (Makefile.am): Likewise.
108721         * modules/getsubopt (Makefile.am): Likewise.
108722         * modules/gettime (Makefile.am): Likewise.
108723         * modules/gettimeofday (Makefile.am): Likewise.
108724         * modules/getugroups (Makefile.am): Likewise.
108725         * modules/getusershell (Makefile.am): Likewise.
108726         * modules/glob (Makefile.am): Likewise.
108727         * modules/group-member (Makefile.am): Likewise.
108728         * modules/hard-locale (Makefile.am): Likewise.
108729         * modules/hash (Makefile.am): Likewise.
108730         * modules/hmac-md5 (Makefile.am): Likewise.
108731         * modules/hmac-sha1 (Makefile.am): Likewise.
108732         * modules/human (Makefile.am): Likewise.
108733         * modules/idcache (Makefile.am): Likewise.
108734         * modules/imaxabs (Makefile.am): Likewise.
108735         * modules/imaxdiv (Makefile.am): Likewise.
108736         * modules/inet_ntop (Makefile.am): Likewise.
108737         * modules/inet_pton (Makefile.am): Likewise.
108738         * modules/intprops (Makefile.am): Likewise.
108739         * modules/inttostr (Makefile.am): Likewise.
108740         * modules/inttypes (Makefile.am): Likewise.
108741         * modules/isapipe (Makefile.am): Likewise.
108742         * modules/javaversion (Makefile.am): Likewise.
108743         * modules/lchmod (Makefile.am): Likewise.
108744         * modules/lchown (Makefile.am): Likewise.
108745         * modules/localcharset (Makefile.am): Likewise.
108746         * modules/long-options (Makefile.am): Likewise.
108747         * modules/lstat (Makefile.am): Likewise.
108748         * modules/malloc (Makefile.am): Likewise.
108749         * modules/mathl (Makefile.am): Likewise.
108750         * modules/mbchar (Makefile.am): Likewise.
108751         * modules/md2 (Makefile.am): Likewise.
108752         * modules/md4 (Makefile.am): Likewise.
108753         * modules/md5 (Makefile.am): Likewise.
108754         * modules/memcasecmp (Makefile.am): Likewise.
108755         * modules/memchr (Makefile.am): Likewise.
108756         * modules/memcmp (Makefile.am): Likewise.
108757         * modules/memcoll (Makefile.am): Likewise.
108758         * modules/memcpy (Makefile.am): Likewise.
108759         * modules/memmem (Makefile.am): Likewise.
108760         * modules/memmove (Makefile.am): Likewise.
108761         * modules/mempcpy (Makefile.am): Likewise.
108762         * modules/memrchr (Makefile.am): Likewise.
108763         * modules/memset (Makefile.am): Likewise.
108764         * modules/memxor (Makefile.am): Likewise.
108765         * modules/mkancesdirs (Makefile.am): Likewise.
108766         * modules/mkdir-p (Makefile.am): Likewise.
108767         * modules/mkdir (Makefile.am): Likewise.
108768         * modules/mkdtemp (Makefile.am): Likewise.
108769         * modules/mkstemp (Makefile.am): Likewise.
108770         * modules/mktime (Makefile.am): Likewise.
108771         * modules/modechange (Makefile.am): Likewise.
108772         * modules/mountlist (Makefile.am): Likewise.
108773         * modules/nanosleep (Makefile.am): Likewise.
108774         * modules/obstack (Makefile.am): Likewise.
108775         * modules/openat (Makefile.am): Likewise.
108776         * modules/pagealign_alloc (Makefile.am): Likewise.
108777         * modules/pathmax (Makefile.am): Likewise.
108778         * modules/physmem (Makefile.am): Likewise.
108779         * modules/poll (Makefile.am): Likewise.
108780         * modules/posixtm (Makefile.am): Likewise.
108781         * modules/posixver (Makefile.am): Likewise.
108782         * modules/putenv (Makefile.am): Likewise.
108783         * modules/quote (Makefile.am): Likewise.
108784         * modules/quotearg (Makefile.am): Likewise.
108785         * modules/raise (Makefile.am): Likewise.
108786         * modules/read-file (Makefile.am): Likewise.
108787         * modules/readline (Makefile.am): Likewise.
108788         * modules/readlink (Makefile.am): Likewise.
108789         * modules/readtokens (Makefile.am): Likewise.
108790         * modules/readutmp (Makefile.am): Likewise.
108791         * modules/realloc (Makefile.am): Likewise.
108792         * modules/regex (Makefile.am): Likewise.
108793         * modules/rename-dest-slash (Makefile.am): Likewise.
108794         * modules/rename (Makefile.am): Likewise.
108795         * modules/rijndael (Makefile.am): Likewise.
108796         * modules/rmdir (Makefile.am): Likewise.
108797         * modules/rpmatch (Makefile.am): Likewise.
108798         * modules/safe-read (Makefile.am): Likewise.
108799         * modules/safe-write (Makefile.am): Likewise.
108800         * modules/same-inode (Makefile.am): Likewise.
108801         * modules/same (Makefile.am): Likewise.
108802         * modules/save-cwd (Makefile.am): Likewise.
108803         * modules/savedir (Makefile.am): Likewise.
108804         * modules/setenv (Makefile.am): Likewise.
108805         * modules/settime (Makefile.am): Likewise.
108806         * modules/sha1 (Makefile.am): Likewise.
108807         * modules/sig2str (Makefile.am): Likewise.
108808         * modules/snprintf (Makefile.am): Likewise.
108809         * modules/stat-macros (Makefile.am): Likewise.
108810         * modules/stat-time (Makefile.am): Likewise.
108811         * modules/stdbool (Makefile.am): Likewise.
108812         * modules/stdint (Makefile.am): Likewise.
108813         * modules/stdlib-safer (Makefile.am): Likewise.
108814         * modules/stpcpy (Makefile.am): Likewise.
108815         * modules/stpncpy (Makefile.am): Likewise.
108816         * modules/strcase (Makefile.am): Likewise.
108817         * modules/strcasestr (Makefile.am): Likewise.
108818         * modules/strchrnul (Makefile.am): Likewise.
108819         * modules/strcspn (Makefile.am): Likewise.
108820         * modules/strdup (Makefile.am): Likewise.
108821         * modules/strerror (Makefile.am): Likewise.
108822         * modules/strftime (Makefile.am): Likewise.
108823         * modules/strndup (Makefile.am): Likewise.
108824         * modules/strnlen (Makefile.am): Likewise.
108825         * modules/strpbrk (Makefile.am): Likewise.
108826         * modules/strsep (Makefile.am): Likewise.
108827         * modules/strstr (Makefile.am): Likewise.
108828         * modules/strtod (Makefile.am): Likewise.
108829         * modules/strtoimax (Makefile.am): Likewise.
108830         * modules/strtok_r (Makefile.am): Likewise.
108831         * modules/strtol (Makefile.am): Likewise.
108832         * modules/strtoll (Makefile.am): Likewise.
108833         * modules/strtoul (Makefile.am): Likewise.
108834         * modules/strtoull (Makefile.am): Likewise.
108835         * modules/strtoumax (Makefile.am): Likewise.
108836         * modules/strverscmp (Makefile.am): Likewise.
108837         * modules/sys_socket (Makefile.am): Likewise.
108838         * modules/sys_stat (Makefile.am): Likewise.
108839         * modules/sysexits (Makefile.am): Likewise.
108840         * modules/time_r (Makefile.am): Likewise.
108841         * modules/timegm (Makefile.am): Likewise.
108842         * modules/timespec (Makefile.am): Likewise.
108843         * modules/tmpfile-safer (Makefile.am): Likewise.
108844         * modules/trim (Makefile.am): Likewise.
108845         * modules/unistd-safer (Makefile.am): Likewise.
108846         * modules/unlinkdir (Makefile.am): Likewise.
108847         * modules/unlocked-io (Makefile.am): Likewise.
108848         * modules/userspec (Makefile.am): Likewise.
108849         * modules/utime (Makefile.am): Likewise.
108850         * modules/utimecmp (Makefile.am): Likewise.
108851         * modules/utimens (Makefile.am): Likewise.
108852         * modules/vasnprintf (Makefile.am): Likewise.
108853         * modules/vasprintf (Makefile.am): Likewise.
108854         * modules/vsnprintf (Makefile.am): Likewise.
108855         * modules/xalloc (Makefile.am): Likewise.
108856         * modules/xgetcwd (Makefile.am): Likewise.
108857         * modules/xnanosleep (Makefile.am): Likewise.
108858         * modules/xreadlink (Makefile.am): Likewise.
108859         * modules/xstrtod (Makefile.am): Likewise.
108860         * modules/xstrtol (Makefile.am): Likewise.
108861         * modules/xstrtold (Makefile.am): Likewise.
108862         * modules/yesno (Makefile.am): Likewise.
108863         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108865 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108867         * modules/error (Makefile.am): Distribute files through
108868         EXTRA_DIST, not lib_SOURCES.
108870 2006-10-12  Eric Blake  <ebb9@byu.net>
108872         * modules/error (Makefile.am): Distribute files in /lib.
108873         * modules/obstack (Makefile.am): Likewise.
108875 2006-10-12  Bruno Haible  <bruno@clisp.org>
108877         * modules/acl (Makefile.am): Distribute all files in lib/ through
108878         EXTRA_DIST.
108879         * modules/arcfour (Makefile.am): Likewise.
108880         * modules/arctwo (Makefile.am): Likewise.
108881         * modules/argmatch (Makefile.am): Likewise.
108882         * modules/argz (Makefile.am): Likewise.
108883         * modules/atexit (Makefile.am): Likewise.
108884         * modules/backupfile (Makefile.am): Likewise.
108885         * modules/c-strtod (Makefile.am): Likewise.
108886         * modules/c-strtold (Makefile.am): Likewise.
108887         * modules/calloc (Makefile.am): Likewise.
108888         * modules/canon-host (Makefile.am): Likewise.
108889         * modules/canonicalize (Makefile.am): Likewise.
108890         * modules/chdir-long (Makefile.am): Likewise.
108891         * modules/chdir-safer (Makefile.am): Likewise.
108892         * modules/check-version (Makefile.am): Likewise.
108893         * modules/chown (Makefile.am): Likewise.
108894         * modules/cloexec (Makefile.am): Likewise.
108895         * modules/close-stream (Makefile.am): Likewise.
108896         * modules/closeout (Makefile.am): Likewise.
108897         * modules/crc (Makefile.am): Likewise.
108898         * modules/cycle-check (Makefile.am): Likewise.
108899         * modules/des (Makefile.am): Likewise.
108900         * modules/dirfd (Makefile.am): Likewise.
108901         * modules/dirname (Makefile.am): Likewise.
108902         * modules/dup2 (Makefile.am): Likewise.
108903         * modules/euidaccess (Makefile.am): Likewise.
108904         * modules/exclude (Makefile.am): Likewise.
108905         * modules/exitfail (Makefile.am): Likewise.
108906         * modules/fcntl-safer (Makefile.am): Likewise.
108907         * modules/file-type (Makefile.am): Likewise.
108908         * modules/fileblocks (Makefile.am): Likewise.
108909         * modules/filemode (Makefile.am): Likewise.
108910         * modules/filenamecat (Makefile.am): Likewise.
108911         * modules/fnmatch (Makefile.am): Likewise.
108912         * modules/fopen-safer (Makefile.am): Likewise.
108913         * modules/fpending (Makefile.am): Likewise.
108914         * modules/fprintftime (Makefile.am): Likewise.
108915         * modules/free (Makefile.am): Likewise.
108916         * modules/fsusage (Makefile.am): Likewise.
108917         * modules/ftruncate (Makefile.am): Likewise.
108918         * modules/fts (Makefile.am): Likewise.
108919         * modules/gc (Makefile.am): Likewise.
108920         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108921         * modules/getaddrinfo (Makefile.am): Likewise.
108922         * modules/getcwd (Makefile.am): Likewise.
108923         * modules/getdelim (Makefile.am): Likewise.
108924         * modules/getdomainname (Makefile.am): Likewise.
108925         * modules/getgroups (Makefile.am): Likewise.
108926         * modules/gethostname (Makefile.am): Likewise.
108927         * modules/gethrxtime (Makefile.am): Likewise.
108928         * modules/getline (Makefile.am): Likewise.
108929         * modules/getloadavg (Makefile.am): Likewise.
108930         * modules/getlogin_r (Makefile.am): Likewise.
108931         * modules/getopt (Makefile.am): Likewise.
108932         * modules/getpass (Makefile.am): Likewise.
108933         * modules/getpass-gnu (Makefile.am): Likewise.
108934         * modules/getsubopt (Makefile.am): Likewise.
108935         * modules/gettime (Makefile.am): Likewise.
108936         * modules/gettimeofday (Makefile.am): Likewise.
108937         * modules/getugroups (Makefile.am): Likewise.
108938         * modules/getusershell (Makefile.am): Likewise.
108939         * modules/glob (Makefile.am): Likewise.
108940         * modules/group-member (Makefile.am): Likewise.
108941         * modules/hard-locale (Makefile.am): Likewise.
108942         * modules/hash (Makefile.am): Likewise.
108943         * modules/hmac-md5 (Makefile.am): Likewise.
108944         * modules/hmac-sha1 (Makefile.am): Likewise.
108945         * modules/human (Makefile.am): Likewise.
108946         * modules/idcache (Makefile.am): Likewise.
108947         * modules/imaxabs (Makefile.am): Likewise.
108948         * modules/imaxdiv (Makefile.am): Likewise.
108949         * modules/inet_ntop (Makefile.am): Likewise.
108950         * modules/inet_pton (Makefile.am): Likewise.
108951         * modules/inttostr (Makefile.am): Likewise.
108952         * modules/isapipe (Makefile.am): Likewise.
108953         * modules/lchown (Makefile.am): Likewise.
108954         * modules/long-options (Makefile.am): Likewise.
108955         * modules/lstat (Makefile.am): Likewise.
108956         * modules/malloc (Makefile.am): Likewise.
108957         * modules/mathl (Makefile.am): Likewise.
108958         * modules/mbchar (Makefile.am): Likewise.
108959         * modules/md2 (Makefile.am): Likewise.
108960         * modules/md4 (Makefile.am): Likewise.
108961         * modules/md5 (Makefile.am): Likewise.
108962         * modules/memcasecmp (Makefile.am): Likewise.
108963         * modules/memchr (Makefile.am): Likewise.
108964         * modules/memcmp (Makefile.am): Likewise.
108965         * modules/memcoll (Makefile.am): Likewise.
108966         * modules/memcpy (Makefile.am): Likewise.
108967         * modules/memmem (Makefile.am): Likewise.
108968         * modules/memmove (Makefile.am): Likewise.
108969         * modules/mempcpy (Makefile.am): Likewise.
108970         * modules/memrchr (Makefile.am): Likewise.
108971         * modules/memset (Makefile.am): Likewise.
108972         * modules/memxor (Makefile.am): Likewise.
108973         * modules/mkancesdirs (Makefile.am): Likewise.
108974         * modules/mkdir (Makefile.am): Likewise.
108975         * modules/mkdir-p (Makefile.am): Likewise.
108976         * modules/mkdtemp (Makefile.am): Likewise.
108977         * modules/mkstemp (Makefile.am): Likewise.
108978         * modules/mktime (Makefile.am): Likewise.
108979         * modules/modechange (Makefile.am): Likewise.
108980         * modules/mountlist (Makefile.am): Likewise.
108981         * modules/nanosleep (Makefile.am): Likewise.
108982         * modules/openat (Makefile.am): Likewise.
108983         * modules/pagealign_alloc (Makefile.am): Likewise.
108984         * modules/physmem (Makefile.am): Likewise.
108985         * modules/poll (Makefile.am): Likewise.
108986         * modules/posixtm (Makefile.am): Likewise.
108987         * modules/posixver (Makefile.am): Likewise.
108988         * modules/putenv (Makefile.am): Likewise.
108989         * modules/quote (Makefile.am): Likewise.
108990         * modules/quotearg (Makefile.am): Likewise.
108991         * modules/raise (Makefile.am): Likewise.
108992         * modules/read-file (Makefile.am): Likewise.
108993         * modules/readline (Makefile.am): Likewise.
108994         * modules/readlink (Makefile.am): Likewise.
108995         * modules/readtokens (Makefile.am): Likewise.
108996         * modules/readutmp (Makefile.am): Likewise.
108997         * modules/realloc (Makefile.am): Likewise.
108998         * modules/regex (Makefile.am): Likewise.
108999         * modules/rename (Makefile.am): Likewise.
109000         * modules/rename-dest-slash (Makefile.am): Likewise.
109001         * modules/rijndael (Makefile.am): Likewise.
109002         * modules/rmdir (Makefile.am): Likewise.
109003         * modules/rpmatch (Makefile.am): Likewise.
109004         * modules/safe-read (Makefile.am): Likewise.
109005         * modules/safe-write (Makefile.am): Likewise.
109006         * modules/same (Makefile.am): Likewise.
109007         * modules/save-cwd (Makefile.am): Likewise.
109008         * modules/savedir (Makefile.am): Likewise.
109009         * modules/setenv (Makefile.am): Likewise.
109010         * modules/settime (Makefile.am): Likewise.
109011         * modules/sha1 (Makefile.am): Likewise.
109012         * modules/sig2str (Makefile.am): Likewise.
109013         * modules/snprintf (Makefile.am): Likewise.
109014         * modules/stdlib-safer (Makefile.am): Likewise.
109015         * modules/stpcpy (Makefile.am): Likewise.
109016         * modules/stpncpy (Makefile.am): Likewise.
109017         * modules/strcase (Makefile.am): Likewise.
109018         * modules/strcasestr (Makefile.am): Likewise.
109019         * modules/strchrnul (Makefile.am): Likewise.
109020         * modules/strcspn (Makefile.am): Likewise.
109021         * modules/strdup (Makefile.am): Likewise.
109022         * modules/strerror (Makefile.am): Likewise.
109023         * modules/strftime (Makefile.am): Likewise.
109024         * modules/strndup (Makefile.am): Likewise.
109025         * modules/strnlen (Makefile.am): Likewise.
109026         * modules/strpbrk (Makefile.am): Likewise.
109027         * modules/strsep (Makefile.am): Likewise.
109028         * modules/strstr (Makefile.am): Likewise.
109029         * modules/strtod (Makefile.am): Likewise.
109030         * modules/strtoimax (Makefile.am): Likewise.
109031         * modules/strtok_r (Makefile.am): Likewise.
109032         * modules/strtol (Makefile.am): Likewise.
109033         * modules/strtoll (Makefile.am): Likewise.
109034         * modules/strtoul (Makefile.am): Likewise.
109035         * modules/strtoull (Makefile.am): Likewise.
109036         * modules/strtoumax (Makefile.am): Likewise.
109037         * modules/strverscmp (Makefile.am): Likewise.
109038         * modules/time_r (Makefile.am): Likewise.
109039         * modules/timegm (Makefile.am): Likewise.
109040         * modules/tmpfile-safer (Makefile.am): Likewise.
109041         * modules/unistd-safer (Makefile.am): Likewise.
109042         * modules/unlinkdir (Makefile.am): Likewise.
109043         * modules/userspec (Makefile.am): Likewise.
109044         * modules/utime (Makefile.am): Likewise.
109045         * modules/utimecmp (Makefile.am): Likewise.
109046         * modules/utimens (Makefile.am): Likewise.
109047         * modules/vasnprintf (Makefile.am): Likewise.
109048         * modules/vasprintf (Makefile.am): Likewise.
109049         * modules/vsnprintf (Makefile.am): Likewise.
109050         * modules/xalloc (Makefile.am): Likewise.
109051         * modules/xgetcwd (Makefile.am): Likewise.
109052         * modules/xnanosleep (Makefile.am): Likewise.
109053         * modules/xreadlink (Makefile.am): Likewise.
109054         * modules/xstrtod (Makefile.am): Likewise.
109055         * modules/xstrtol (Makefile.am): Likewise.
109056         * modules/xstrtold (Makefile.am): Likewise.
109057         * modules/yesno (Makefile.am): Likewise.
109059 2006-10-12  Jim Meyering  <jim@meyering.net>
109061         * m4/getloadavg.m4: Revert the change below.
109063         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
109064         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
109065         fail with a symlink, which is what coreutils' ./bootstrap now
109066         creates by default.
109068 2006-10-12  Bruno Haible  <bruno@clisp.org>
109070         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
109071         mingw.
109072         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
109073         MSVC and mingw explicitly.
109075 2006-10-11  Simon Josefsson  <jas@extundo.com>
109076             Bruno Haible  <bruno@clisp.org>
109078         Add support for multiple gnulib-tool invocations in the scope of a
109079         single configure.ac file.
109080         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
109081         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
109082         with the same contents as the _LIBADD variable.
109083         (func_emit_initmacro_start, func_emit_initmacro_end,
109084         func_emit_initmacro_done): New functions.
109085         (func_import, func_create_testdir): Invoke them. Allow the identifiers
109086         gl_LIBOBJS and gl_LTLIBOBJS.
109088 2006-10-11  Bruno Haible  <bruno@clisp.org>
109090         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
109091         (func_create_testdir): Don't create po/Makefile.am, don't invoke
109092         autoreconf. Instead, invoke autopoint explicitly but move back the
109093         *.m4 files from gnulib.
109095 2006-10-11  Bruno Haible  <bruno@clisp.org>
109097         * gnulib-tool (func_usage): Make module names after --create-testdir
109098         optional.
109099         (func_create_testdir): If no module was specified, use nearly all
109100         modules.
109102 2006-10-12  Jim Meyering  <jim@meyering.net>
109104         Big performance improvement for fts-based tools that use FTS_NOSTAT.
109105         Avoid spurious inode-mismatch problems on non-POSIX file systems.
109106         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
109107         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
109108         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
109109         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
109110         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
109111         (fts_set_stat_required): New function.
109112         (fts_open): Defer the calls to fts_stat, if possible or requested.
109113         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
109114         into fts_stat itself.
109115         (fts_read): Perform any required (deferred) fts_stat call.
109116         (fts_build): Likewise, for the directory we're about to open and read.
109117         In the readdir loop, carefully decide whether each entry will require
109118         an eventual call to fts_stat, using dirent.d_type info if available.
109119         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
109120         a command line argument into this function.  Update all callers.
109121         Map a return value of FTS_DOT to FTS_D for a command line argument.
109122         * modules/fts (Depends-on): Add d-type.  Alphabetize.
109123         Thanks to Miklos Szeredi for his tenacity and for the initial
109124         bug report about "find" failing on a FUSE-based file system.
109126         * lib/fts.c (fts_open): Use consistent indentation.
109128 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
109131         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
109132         reported by Jim Meyering.  All uses of cache variables renamed
109133         to match Autoconf's.
109134         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
109135         the other one.
109137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
109138         Fix misspelling in diagnostic.
109140 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109142         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
109143         defined.  Problem reported by Matthew Woehlke.
109145         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
109146         Add support for Tandem NonStop R series.
109147         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
109148         Use new macro.
109150         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
109151         (has_trailing_slash): Omit size arg; all callers changed.
109152         Omit 'inline', since it doesn't help performance and we'd
109153         need to configure it.
109154         Don't count //, ///, etc. as having a trailing slash.
109155         As a side effect, this removes a C99ism reported by Matthew Woehlke.
109156         (rpl_rename_dest_slash): On failure, use rename's errno rather
109157         than (in some cases) an incorrect or junk errno.
109158         Simplify code by removing need to compute length; this does
109159         cause it to make two passes instead of one over the file name,
109160         but it's worth it.
109162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
109163         change, since Autoconf's version may no longer be appropriate now
109164         that we are using CVS Autoconf's version.  Add support for Tandem.
109166 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109167             Bruno Haible  <bruno@clisp.org>
109169         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
109170         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
109171         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
109172         gl_AC_TYPE_LONG_LONG.
109174         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
109175         instead of HAVE_LONG_LONG.
109176         * lib/printf-args.c (printf_fetchargs): Likewise.
109177         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
109178         * lib/vasnprintf.c (VASNPRINTF): Likewise.
109179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
109180         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
109181         gl_AC_TYPE_LONG_LONG.
109183 2006-10-11  Bruno Haible  <bruno@clisp.org>
109185         * m4/longlong.m4: Add comments.
109186         * m4/ulonglong.m4: Likewise.
109188 2006-10-10  Bruno Haible  <bruno@clisp.org>
109190         Make it possible to #define stpcpy, strdup to aliases.
109191         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
109192         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
109194 2006-10-10  Bruno Haible  <bruno@clisp.org>
109196         Make it possible to #define gcd to an alias.
109197         * lib/gcd.c: Include config.h.
109199 2006-10-10  Bruno Haible  <bruno@clisp.org>
109201         Make it possible to #define c_isascii to an alias.
109202         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
109203         defined. Undefine the macros before defining them, to avoid gcc
109204         warnings.
109205         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
109206         define NO_C_CTYPE_MACROS early.
109208 2006-10-10  Bruno Haible  <bruno@clisp.org>
109210         Make it possible to #define set_program_name to an alias.
109211         * lib/progname.c: Don't undefine set_program_name; instead, undefine
109212         ENABLE_RELOCATABLE early.
109214 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
109216         Port to Tandem NSK OSS, which has 64-bit signed int but at most
109217         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
109218         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
109219         More generally, don't assume that 64-bit signed int is available
109220         if unsigned int is, and vice versa.
109221         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
109222         unsigned symbols, not on their signed counterparts.
109223         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
109224         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
109225         (UINT64_C, UINTMAX_C):
109226         Likewise.
109227         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
109228         unsigned counterparts.
109229         (Have_long_long, Unsigned): New macros.
109230         (Int): Renamed from INT.
109231         (strtoimax): Use the new macros.
109232         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
109233         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
109234         * modules/inttypes (inttypes.h): Substitute
109235         HAVE_UNSIGNED_LONG_LONG_INT.
109236         * modules/stdint (stdint.h): Likewise.
109237         (Files): Add m4/ulonglong.m4.
109239 2006-10-10  Bruno Haible  <bruno@clisp.org>
109241         Fix a gcc -Wshadow warning.
109242         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
109243         to 'bucket'.
109244         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
109245         gl_linked_indexof_from_to): Likewise.
109246         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
109247         Likewise.
109248         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
109249         Likewise.
109250         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
109251         Reported by Eric Blake.
109253 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
109255         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
109256         for NetBSD.  Problem reported by Bruno Haible.
109258 2006-10-09  Jim Meyering  <jim@meyering.net>
109260         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
109261         Patch from Bruno Haible.
109263 2006-10-09  Jim Meyering  <jim@meyering.net>
109265         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
109266         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
109267         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
109269 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109271         Don't include <config.h> twice; this doesn't work in some cases,
109272         e.g., when config.h has "#define intmax_t long long int" and
109273         we include <config.h>, <inttypes.h>, <config.h> in that order.
109274         Problem reported by Matthew Woehlke in:
109275         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
109276         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
109277         * lib/fts-cycle.c: Don't include config.h.
109278         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
109279         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
109280         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
109281         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
109282         inttypes.h.
109283         * lib/xstrtoumax.c: Likewise.
109284         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
109285         __strtol and the like, so that this module is more like its siblings.
109286         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
109287         Remove; no longer needed now that we assume gnulib inttypes.h.
109289 2006-10-08  Bruno Haible  <bruno@clisp.org>
109291         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
109292         option.
109294 2006-10-07  Jim Meyering  <jim@meyering.net>
109296         * modules/inttypes (inttypes.h): Revert what seems to have been
109297         an inadvertent part of today's change: use "|", not "/" in the
109298         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
109300 2006-10-07  Bruno Haible  <bruno@clisp.org>
109302         * modules/sublist: New file.
109304 2006-10-07  Bruno Haible  <bruno@clisp.org>
109306         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109307         * modules/argz (argz.h): Likewise.
109308         * modules/arpa_inet (arpa/inet.h): Likewise.
109309         * modules/byteswap (byteswap.h): Likewise.
109310         * modules/configmake (configmake.h): Likewise.
109311         * modules/fcntl (fcntl.h): Likewise.
109312         * modules/fnmatch (fnmatch.h): Likewise.
109313         * modules/getopt (getopt.h): Likewise.
109314         * modules/glob (glob.h): Likewise.
109315         * modules/inttypes (inttypes.h): Likewise.
109316         * modules/netinet_in (netinet/in.h): Likewise.
109317         * modules/poll (poll.h): Likewise.
109318         * modules/stdbool (stdbool.h): Likewise.
109319         * modules/stdint (stdint.h): Likewise.
109320         * modules/sys_select (sys/select.h): Likewise.
109321         * modules/sys_socket (sys/socket.h): Likewise.
109322         * modules/sys_stat (sys/stat.h): Likewise.
109323         * modules/sysexits (sysexits.h): Likewise.
109324         * modules/unistd (unistd.h): Likewise.
109325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109326         Add a "DO NOT EDIT" comment to the generated file.
109327         (func_import): Likewise for gnulib-comp.m4.
109329 2006-10-07  Bruno Haible  <bruno@clisp.org>
109331         * lib/gl_sublist.h: New file.
109332         * lib/gl_sublist.c: New file.
109334 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109336         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
109337         name (relative to the original working directory) and the file
109338         name component (relative to the temporary working directory).  All
109339         callers changed.
109340         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
109341         * lib/mkdir-p.c (make_dir_parents): Likewise.
109342         * lib/mkdir-p.h (make_dir_parents): Likewise.
109344 2006-10-06  Eric Blake  <ebb9@byu.net>
109346         Define several macros for use by the clean-temp module.
109347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
109348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
109349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
109351         * lib/clean-temp.h (close_stream_temp): New declaration.
109352         * lib/clean-temp.c (includes): Pull in headers according to what
109353         other modules are in use.
109354         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
109356 2006-10-06  Bruno Haible  <bruno@clisp.org>
109358         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
109359         instead of fopen, fwriteerror.
109361 2006-10-06  Bruno Haible  <bruno@clisp.org>
109363         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
109364         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
109365         int.
109366         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
109367         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
109368         Return an error indicator.
109369         Suggested by Eric Blake.
109371 2006-10-06  Bruno Haible  <bruno@clisp.org>
109373         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
109374         Reported by Eric Blake.
109376 2006-10-06  Bruno Haible  <bruno@clisp.org>
109378         * modules/closeout (Description): Mention stderr too.
109380 2006-10-06  Bruno Haible  <bruno@clisp.org>
109381         and Paul Eggert  <eggert@cs.ucla.edu>
109383         * lib/closeout.c (close_stdout): Also close stderr.
109384         * lib/closeout.h: Update comment.
109386 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109388         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109389         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109390         * lib/dirchownmod.c: Include lchown.h.
109391         * lib/lchown.c: Don't include files that lchown.h now includes.
109392         Don't declare chown, since lchown.h now does that.
109393         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109394         (lchown): Define to rpl_chown if lchown is declared but
109395         does not exist.  Declare using a prototype if lchown is not
109396         declared.  Add a copyright notice.
109397         * lib/mkstemp.h: Include <unistd.h>.
109398         * lib/openat.c: Include lchown.h.
109400         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109401         we now test for that separately.
109402         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109403         rather than O_NOFOLLOW, when testing whether it's possible to
109404         avoid a race condition reliably.
109405         * lib/savewd.c (savewd_chdir): Likewise.
109407         Remove macros that are no longer needed now that stdint.h is
109408         reliable.
109409         * lib/fsusage.c (UINTMAX_MAX): Remove.
109410         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109411         * lib/utimecmp.c (SIZE_MAX): Remove.
109413         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109415         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109416         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109417         O_NOATIME works.
109419 2006-10-05  Bruno Haible  <bruno@clisp.org>
109421         * lib/gl_list.h (gl_sortedlist_search_from_to,
109422         gl_sortedlist_indexof_from_to): New declarations.
109423         (gl_list_implementation): New fields sortedlist_search_from_to,
109424         sortedlist_indexof_from_to.
109425         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109426         inline functions.
109427         * lib/gl_list.c (gl_sortedlist_search_from_to,
109428         gl_sortedlist_indexof_from_to): New functions.
109429         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109430         function.
109431         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109432         (gl_array_sortedlist_search_from_to): New function.
109433         (gl_array_list_implementation): Update.
109434         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109435         function.
109436         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109437         (gl_carray_sortedlist_search_from_to): New function.
109438         (gl_carray_list_implementation): Update.
109439         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109440         gl_linked_sortedlist_indexof_from_to): New functions.
109441         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109442         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109443         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109444         gl_tree_sortedlist_indexof_from_to): New functions.
109445         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109447         Update.
109448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109449         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109450         Update.
109452 2006-10-05  Bruno Haible  <bruno@clisp.org>
109454         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109455         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109456         (struct gl_list_implementation): Add fields search_from_to,
109457         indexof_from_to. Remove fields search, indexof.
109458         (gl_list_search): Use the search_from_to method.
109459         (gl_list_search_from, gl_list_search_from_to): New functions.
109460         (gl_list_indexof): Use the indexof_from_to method.
109461         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109462         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109463         (gl_list_search_from, gl_list_search_from_to): New functions.
109464         (gl_list_indexof): Use the indexof_from_to method.
109465         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109466         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109467         gl_array_indexof. Add start_index, end_index arguments.
109468         (gl_array_search_from_to): Renamed from gl_array_search. Add
109469         start_index, end_index arguments.
109470         (gl_array_remove, gl_array_list_implementation): Update.
109471         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109472         gl_carray_indexof. Add start_index, end_index arguments.
109473         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109474         start_index, end_index arguments.
109475         (gl_carray_remove, gl_carray_list_implementation): Update.
109476         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109477         gl_linked_search. Add start_index, end_index arguments.
109478         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109479         start_index, end_index arguments.
109480         (gl_linked_remove): Update.
109481         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109483         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109484         field to 'size_t'.
109485         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109486         gl_tree_search. Add start_index, end_index arguments.
109487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109488         start_index, end_index arguments.
109489         (gl_tree_remove): Update.
109490         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109491         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109492         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109493         function.
109494         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109495         gl_tree_search. Add start_index, end_index arguments.
109496         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109497         start_index, end_index arguments.
109498         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109499         Update.
109500         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109502 2006-10-05  Bruno Haible  <bruno@clisp.org>
109504         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109506         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109507         fwriteerror_temp): New declarations.
109508         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109509         (descriptors): New variable.
109510         (cleanup): First, close the descriptors.
109511         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109512         fclose_temp, fwriteerror_temp): New functions.
109514 2006-10-04  Jim Meyering  <jim@meyering.net>
109516         * lib/fts.c (fts_open): Tiny comment change.
109518 2006-10-04  Bruno Haible  <bruno@clisp.org>
109520         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109522         gl_LOCK_BODY.
109523         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109524         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109525         gl_LOCK_EARLY_BODY.
109526         (gl_LOCK): Require gl_LOCK_BODY.
109528 2006-10-04  Bruno Haible  <bruno@clisp.org>
109530         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109531         (gl_oset_search_atleast): New declaration.
109532         (struct gl_oset_implementation): Add field 'search_atleast'.
109533         (gl_oset_search_atleast): New inline function.
109534         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109535         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109536         (gl_array_oset_implementation): Update.
109537         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109538         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109539         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109541 2006-10-04  Bruno Haible  <bruno@clisp.org>
109543         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109545 2006-10-03  Bruno Haible  <bruno@clisp.org>
109547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109548         from gl_avltreehash_list_implementation.
109550 2006-10-03  Bruno Haible  <bruno@clisp.org>
109552         * lib/gl_oset.c (gl_oset_add): Fix return type.
109554 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109556         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109558 2006-10-02  Eric Blake  <ebb9@byu.net>
109560         * modules/strnlen (Depends-on): Add extensions.
109562 2006-10-02  Eric Blake  <ebb9@byu.net>
109564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109565         definition in 2.60+.
109567 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109569         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109570         checks.
109572 2006-10-02  Bruno Haible  <bruno@clisp.org>
109574         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109575         to the AUTOMAKE_OPTIONS.
109576         Reported by Jim Meyering.
109578 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109580         Work around bug in Solaris 10 /proc file system:
109581         /proc/self/fd/NNN/.. isn't the parent directory of
109582         the directory whose file descriptor is NNN.  This needs to
109583         be worked around at run time, not compile time, since a
109584         program might be built on Solaris 8, where things work, and
109585         run on Solaris 10.
109586         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109587         to use the following interface instead:
109588         (OPENAT_BUFFER_SIZE): New macro.
109589         (openat_proc_name): New function.
109590         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109591         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109592         Likewise.
109593         * lib/openat-proc.c: New file.
109594         * modules/openat (Files): Add lib/openat-proc.c.
109595         (Depends-on): Add same-inode, stdbool.
109596         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109598 2006-09-29  Bruno Haible  <bruno@clisp.org>
109600         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109601         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109602         argument. Set stdout_closed before testing for ferror, not after.
109603         (fwriteerror, fwriteerror_no_ebadf): New functions.
109605 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109607         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109609 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109611         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109612         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109614 2006-09-28  Jim Meyering  <jim@meyering.net>
109616         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109617         Include <unistd.h>.
109619 2006-09-28  Bruno Haible  <bruno@clisp.org>
109621         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109622         * modules/linkedhash-list (Depends-on): Likewise.
109623         * modules/rbtreehash-list (Depends-on): Likewise.
109625 2006-09-28  Bruno Haible  <bruno@clisp.org>
109627         * lib/strndup.h: Simplify the redefinition of strndup.
109628         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109631 2006-09-28  Bruno Haible  <bruno@clisp.org>
109633         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109634         * lib/gl_linkedhash_list.c: Likewise.
109635         * lib/gl_rbtreehash_list.c: Likewise.
109637 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109639         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109640         getaddrinfo.
109642         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109643         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109644         it causes <stdio_ext.h> to cause a compile-time error.
109645         Problem reported by Nelson H. F. Beebe.
109646         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109647         of HAVE_DECL___PENDING.
109649         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109651         declaration.
109653 2006-09-27  Jim Meyering  <jim@meyering.net>
109655         This file could end up with a definition for a function
109656         named __strndup, rather than rpl_strndup on a system with
109657         incomplete weak_alias support.
109658         * lib/strndup.c (strndup): Rename from __strndup.
109659         Remove #defines that used to map __strndup to strndup.
109660         Don't use K&R prototypes.
109661         Remove LIBC-related code, since this file is not sync'd with glibc.
109662         * lib/strndup.h: Revamp, accordingly.
109663         * m4/strndup.m4: Modernize.
109665 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109667         * modules/savewd (Depends-on): Add 'raise'.
109668         * lib/savewd.c: Include <signal.h>, for 'raise'.
109670 2006-09-26  Jim Meyering  <jim@meyering.net>
109672         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109673         when we detect Darwin 8.7.0's acl_get_file bug.
109674         Rearrange to perform the new (below) run-test while $LIBS
109675         contains any acl-related library.  Set USE_ACL at the end.
109676         (gl_ACL_GET_FILE): New function.
109678 2006-09-26  Eric Blake  <ebb9@byu.net>
109680         * lib/verror.c: Include <config.h> unconditionally.
109682 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109684         * modules/clock-time (Maintainer): Add self.
109685         * modules/getlogin_r (Depends-on): Add extensions.
109687 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109689         * modules/clock-time: New module.
109690         * modules/nanosleep (Depends-on): Add clock-time.
109691         * modules/gethrxtime (Depends-on): Likewise.
109692         * modules/gettime (Depends-on): Likewise.
109693         * modules/settime (Depends-on): Likewise.
109695         * modules/fts-lgpl: Depend on openat.
109696         * modules/mkancesdirs: Depend on savewd.
109697         * modules/mkdir-p: Likewise.
109699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109701         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109704         `gl_have_arbitrary_file_name_length_limit' to
109705         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109706         actually works between configure runs.
109708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109709             Bruno Haible  <bruno@clisp.org>
109711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109713 2006-09-25  Jim Meyering  <jim@meyering.net>
109715         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109716         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109718 2006-09-25  Eric Blake  <ebb9@byu.net>
109720         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109721         exec's in 2006-09-18 patch when shuffling fds.
109723 2006-09-25  Bruno Haible  <bruno@clisp.org>
109725         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109726         Reported by Jim Meyering.
109728 2006-09-24  Jim Meyering  <jim@meyering.net>
109730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109731         compare a pointer against a literal "0".  That caused failures with
109732         at least HP-UX's hpcc.
109734 2006-09-22  Simon Josefsson  <jas@extundo.com>
109736         * modules/gc-sha1:
109737         * modules/gc-md4:
109738         * modules/gc-hmac-sha1:
109739         * modules/gc-hmac-md5:
109740         * modules/gc-des:
109741         * modules/gc-arcfour: Distribute more files.
109743 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109745         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109746         (gl_linked_iterator_from_to): Initialize struct completely.
109747         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109748         (gl_tree_iterator_from_to): Likewise
109749         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109750         * lib/gl_array_list.c [lint] (gl_array_iterator)
109751         (gl_array_iterator_from_to): Likewise.
109752         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109753         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109754         (gl_carray_iterator_from_to): Likewise.
109756         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109757         * lib/md4.c (md4_process_block): Remove unused variable.
109758         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109759         parentheses for clarity.
109761 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109763         * modules/bison-i18n (Depends-on): Add gettext.
109765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109767         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109768         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109769         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109770         also add missing comma that caused broken test.
109771         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109772         stdlib.h, for `abort'.
109773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109774         variables.
109775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109776         include unistd.h if present, for `rmdir'.
109777         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109778         variables.
109779         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109780         in the process include standard headers for prototypes.
109781         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109782         gets declared on GNU/Linux.
109783         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109784         unistd.h, for `rmdir'.
109785         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109787         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109788         always true.
109789         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109791         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
109793 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109795         * gnulib-tool (func_version): Create output all at once.  This
109796         may help avoid triggering unnecessary SIGPIPEs, and at any
109797         rate it doesn't hurt.
109799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109800             Bruno Haible  <bruno@clisp.org>
109802         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
109803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109804         * m4/signed.m4 (bh_C_SIGNED): Likewise.
109806         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
109807         (gl_FUNC_VASPRINTF): Invoke it.
109809 2006-09-22  Bruno Haible  <bruno@clisp.org>
109811         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
109812         getloadavg.c as first argument.
109814 2006-09-22  Bruno Haible  <bruno@clisp.org>
109816         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
109817         at the beginning of the gl_INIT macro.
109818         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109819         gl_GETLOADAVG.
109821 2006-09-22  Bruno Haible  <bruno@clisp.org>
109823         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109824         module.
109825         Suggested by Ralf Wildenhues.
109827 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109829         Import this patch from libc:
109831         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109833         * lib/regex_internal.c (re_string_reconstruct): Handle
109834         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109835         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109836         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109837         re_string_context_at.
109839         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109840         now requires it.
109841         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109842         gl_REGEX now does it for us.
109843         (gl_REGEX): Add test taken from
109844         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109846         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109847         Check that large offsets work.  Modernize Autoconf usages.
109848         Prefer "yes" to mean a good thing rather than a bad.
109849         Don't put "#define mkstemp" in config.h, as this might interfere
109850         with standard system headers that "#define mkstemp mkstemp64".
109852         * modules/mkstemp (Depends-on): Add extensions, so that
109853         mkstemp is visible on some platforms.
109854         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109855         (Include): Change to "mkstemp.h" from <stdlib.h>.
109856         (Files): Add mkstemp.h.
109858         * lib/mkstemp.h: New file, since some standard headers
109859         #define mkstemp.
109860         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109861         Include "mkstemp.h".
109862         Make the _LIBC code resemble glibc original more,
109863         e.g., use K&R style.
109864         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109865         (mkstemp): Remove, since mkstemp.h does this for us.
109866         * lib/stdlib--.h: Include mkstemp.h.
109868         Import this patch from libc:
109870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109872         * lib/tempname.c (__gen_tempname): Change attempts_min
109873         into a macro.  Use preprocessor to decide how to initialize
109874         attempts [Coverity CID 67].
109876 2006-09-20  Bruno Haible  <bruno@clisp.org>
109878         * lib/mkdtemp.c: Import from libc.
109879         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109880                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109881                 attempts_min into a macro.  Use preprocessor to decide how to
109882                 initialize attempts [Coverity CID 67].
109883         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109884                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109885                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109887 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109889         * gnulib-tool (func_exit): New function, to allow to pass the
109890         exit status portably through the trap.  Use everywhere.
109891         (--help, --version): Signal a write error.
109892         (trap): catch SIGPIPE, for write errors.
109893         Exit at the end of the trap, with the correct exit status.
109895 2006-09-19  Karl Berry  <karl@gnu.org>
109897         * doc/gnulib.texi: note about the license texinfo files.
109899 2006-09-19  Eric Blake  <ebb9@byu.net>
109901         * gnulib-tool: Avoid space-tab.
109903 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109905         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109906         that prevented coreutils 6.1 from building.  Problem reported
109907         by Petter Reinholdtsen.
109909 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109911         * gnulib-tool (avoidlist): Fix typo that broke options like
109912         --avoid=lock that are used by coreutils bootstrap.
109914 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109916         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109917         more systematically.
109919 2006-09-18  Jim Meyering  <jim@meyering.net>
109921         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109923 2006-09-18  Bruno Haible  <bruno@clisp.org>
109925         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109927 2006-09-18  Bruno Haible  <bruno@clisp.org>
109929         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109930         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109931         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109932         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109933         * m4/gettext.m4: Require autoconf >= 2.52.
109934         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109935         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109936         of gl_cv_header_inttypes_h.
109938 2006-09-18  Bruno Haible  <bruno@clisp.org>
109940         * lib/javaversion.c: Include configmake.h.
109942 2006-09-18  Bruno Haible  <bruno@clisp.org>
109944         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109945         avoid that the while loops be executed in a subshell.
109947 2006-09-18  Bruno Haible  <bruno@clisp.org>
109949         * MODULES.html.sh (func_module): Break long lines.
109950         Suggested by Bruce Korb <bkorb@gnu.org>.
109952 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109954         Speed up by a factor of 1.12.
109955         * gnulib-tool (nl): New variable.
109956         (func_import): Rewrite include directive extraction to only read each
109957         directive once.
109959 2006-09-17  Bruno Haible  <bruno@clisp.org>
109961         * modules/javaversion (Makefile.am): Remove DEFS setting.
109962         (Depends-on): Add configmake, for PKGDATADIR definition.
109964 2006-09-17  Bruno Haible  <bruno@clisp.org>
109966         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109968 2006-09-17  Bruno Haible  <bruno@clisp.org>
109970         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109971         (func_modules_transitive_closure, func_modules_add_dummy,
109972         func_modules_to_filelist, func_import, func_create_testdir,
109973         func_create_megatestdir, ...): Use it wherever possible.
109974         Suggested by Ralf Wildenhues.
109976 2006-09-16  Karl Berry  <karl@gnu.org>
109978         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109979         to avoid sectioning errors.
109980         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109981         [ifinfo]: blank line after @center-ed titles.
109982         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109983         Spell FSF address consistently with others.
109984         (These changes approved by rms.)
109986 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109988         Speed up by a factor of 1.61.
109989         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109990         already checked module names again.
109992 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109994         Speed up by a factor of 1.13.
109995         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109996         for new_files, and the input to func_add_or_update.
109998 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110000         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
110001         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
110003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110005         * modules/mkancesdirs (Depends-on): Add fcntl.
110006         * modules/savewd: New file.
110007         * MODULES.html.sh (File system functions): Add savewd.
110009         * modules/configmake (Makefile.am): Add support for the
110010         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
110012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110014         * m4/savewd.m4: New file.
110016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110018         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
110019         (dirchownmod): New arg FD.  All callers changed.
110020         Use FD rather than opening the directory ourself, as opening is
110021         now the caller's responsibility.
110022         * lib/dirchownmod.h: Likewise.
110023         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
110024         hosts that require <sys/types.h> before <sys/stat.h>.  Include
110025         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
110026         (test_dir): Remove.
110027         (mkancesdirs): Return length of prefix of FILE that has already
110028         been made, or -2 if there is a child doing the work.  Redo
110029         algorithm so that it is O(N) rather than O(N**2).  Optimize away
110030         ".", and treat ".." specially since it might stray back into
110031         already-created areas.  Use a subprocess if necessary.  New arg
110032         WD; all users changed.  MAKE_DIR function should now return 1
110033         if it creates a directory that is not readable.  Return -2 if
110034         a child process is spun off.
110035         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
110036         Adjust signature to match code.
110037         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
110038         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
110039         all users changed.
110040         * lib/savewd.c, lib/savewd.h: New files.
110042 2006-09-15  Jim Meyering  <jim@meyering.net>
110044         * modules/rename-dest-slash: New module.
110045         * MODULES.html.sh (posix_compat): Add it here.
110047         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
110049 2006-09-15  Jim Meyering  <jim@meyering.net>
110051         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
110052         file.
110054         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
110056 2006-09-15  Jim Meyering  <jim@meyering.net>
110058         * lib/rename-dest-slash.c (has_trailing_slash): Use
110059         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
110060         (rpl_rename_dest_slash): Perform the cheaper trailing slash
110061         test before testing whether SRC is a directory.
110062         Suggestions from Bruno Haible.
110064         Avoid a warning about an unused variable.
110065         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
110066         into the #ifdef block where it's used.
110068         * lib/rename-dest-slash.c: New file.
110070 2006-09-14  Bruno Haible  <bruno@clisp.org>
110072         * lib/allocsa.c: Include <config.h> unconditionally.
110073         * lib/asnprintf.c: Likewise.
110074         * lib/asprintf.c: Likewise.
110075         * lib/c-strcasecmp.c: Likewise.
110076         * lib/c-strcasestr.c: Likewise.
110077         * lib/c-strncasecmp.c: Likewise.
110078         * lib/c-strstr.c: Likewise.
110079         * lib/classpath.c: Likewise.
110080         * lib/clean-temp.c: Likewise.
110081         * lib/concatpath.c: Likewise.
110082         * lib/copy-file.c: Likewise.
110083         * lib/csharpcomp.c: Likewise.
110084         * lib/csharpexec.c: Likewise.
110085         * lib/execute.c: Likewise.
110086         * lib/fatal-signal.c: Likewise.
110087         * lib/findprog.c: Likewise.
110088         * lib/fwriteerror.c: Likewise.
110089         * lib/gl_array_list.c: Likewise.
110090         * lib/gl_array_oset.c: Likewise.
110091         * lib/gl_avltree_list.c: Likewise.
110092         * lib/gl_avltree_oset.c: Likewise.
110093         * lib/gl_avltreehash_list.c: Likewise.
110094         * lib/gl_carray_list.c: Likewise.
110095         * lib/gl_linked_list.c: Likewise.
110096         * lib/gl_linkedhash_list.c: Likewise.
110097         * lib/gl_list.c: Likewise.
110098         * lib/gl_oset.c: Likewise.
110099         * lib/gl_rbtree_list.c: Likewise.
110100         * lib/gl_rbtree_oset.c: Likewise.
110101         * lib/gl_rbtreehash_list.c: Likewise.
110102         * lib/imaxabs.c: Likewise.
110103         * lib/imaxdiv.c: Likewise.
110104         * lib/javacomp.c: Likewise.
110105         * lib/javaexec.c: Likewise.
110106         * lib/javaversion.c: Likewise.
110107         * lib/linebreak.c: Likewise.
110108         * lib/localcharset.c: Likewise.
110109         * lib/lock.c: Likewise.
110110         * lib/mbchar.c: Likewise.
110111         * lib/mbswidth.c: Likewise.
110112         * lib/mkdtemp.c: Likewise.
110113         * lib/pipe.c: Likewise.
110114         * lib/printf-args.c: Likewise.
110115         * lib/printf-parse.c: Likewise.
110116         * lib/progname.c: Likewise.
110117         * lib/progreloc.c: Likewise.
110118         * lib/readlink.c: Likewise.
110119         * lib/sh-quote.c: Likewise.
110120         * lib/stpcpy.c: Likewise.
110121         * lib/stpncpy.c: Likewise.
110122         * lib/strcasecmp.c: Likewise.
110123         * lib/strcasestr.c: Likewise.
110124         * lib/strcspn.c: Likewise.
110125         * lib/striconv.c: Likewise.
110126         * lib/strncasecmp.c: Likewise.
110127         * lib/strnlen1.c: Likewise.
110128         * lib/strstr.c: Likewise.
110129         * lib/strtok_r.c: Likewise.
110130         * lib/tls.c: Likewise.
110131         * lib/tmpdir.c: Likewise.
110132         * lib/unicodeio.c: Likewise.
110133         * lib/unsetenv.c: Likewise.
110134         * lib/vasnprintf.c: Likewise.
110135         * lib/vasprintf.c: Likewise.
110136         * lib/wait-process.c: Likewise.
110137         * lib/xallocsa.c: Likewise.
110138         * lib/xsetenv.c: Likewise.
110139         * lib/xstriconv.c: Likewise.
110141 2006-09-13  Simon Josefsson  <jas@extundo.com>
110143         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
110144         that internally, suggested by Ralf Wildenhues
110145         <Ralf.Wildenhues@gmx.de>.
110147 2006-09-13  Simon Josefsson  <jas@extundo.com>
110149         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
110150         @LIBOBJS@.
110151         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110153 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
110155         * lib/_fpending.c: Include <config.h> unconditionally, since we no
110156         longer worry about uses that don't define HAVE_CONFIG_H.
110157         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
110158         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
110159         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
110160         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
110161         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
110162         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
110163         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
110164         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
110165         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
110166         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
110167         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
110168         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
110169         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
110170         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
110171         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
110172         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
110173         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
110174         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
110175         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
110176         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
110177         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
110178         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
110179         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
110180         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
110181         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
110182         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
110183         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
110184         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
110185         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
110186         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
110187         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
110188         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
110189         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
110190         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
110191         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
110192         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
110193         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
110194         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
110195         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
110196         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
110197         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
110198         Likewise.
110200 2006-09-13  Eric Blake  <ebb9@byu.net>
110202         * lib/getopt.c: Fix typo in last commit.
110204 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
110206         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
110207         dgettext.
110209 2006-09-12  Jim Meyering  <jim@meyering.net>
110211         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
110212         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
110213         Reported by Nelson H. F. Beebe.
110215 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110217         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
110218         program_invocation_name and program_invocation_short_name are
110219         initialized.
110220         * lib/argp-namefrob.h: Move declarations of program_invocation_name
110221         and program_invocation_short_name to argp.h, so they are visible
110222         to user programs.
110223         * lib/argp.h: Likewise
110225 2006-09-10  Bruno Haible  <bruno@clisp.org>
110227         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110228         m4/inttypes_h.m4, m4/uintmax_t.m4.
110230 2006-09-10  Bruno Haible  <bruno@clisp.org>
110232         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
110233         gl_AC_TYPE_UINTMAX_T.
110235 2006-09-10  Bruno Haible  <bruno@clisp.org>
110237         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
110239 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110241         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
110242         convention.  Text proposed by Bruno Haible.
110243         (struct argp_option): Document the use of N_() wrappers.
110245         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
110246         '\v', and translate the two parts separately, instead of feeding
110247         the whole string to gettext.  This allows to exclude
110248         '\v' from the strings visible to the translator by writing doc
110249         strings as N_("..") "\v" N_("..").
110251 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
110253         * config/srclist.txt: Undo latest change; the bug was fixed.
110255 2006-09-09  Bruno Haible  <bruno@clisp.org>
110257         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
110258         assignments if building a library without libtool.
110259         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
110260         in func_emit_lib_Makefile_am.
110261         (func_import): When building a static library libfoo.a, arrange to
110262         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
110263         (func_create_testdir): Likewise.
110264         * modules/gc (configure.ac, Makefile.am): If building statically,
110265         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
110266         * modules/iconvme (configure.ac, Makefile.am): Likewise.
110267         * modules/striconv (configure.ac, Makefile.am): Likewise.
110268         Based on a suggestion by Ralf Wildenhues.
110270 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110272         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110273         Check for unistd.h too, since Autoconf doesn't assume POSIX.
110274         Also:
110276         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110277         Add year_2050_test to catch glibc bug 2821
110278         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110280         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110281         Prefer #ifdef to #if.
110283         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
110284         Return from 'main' instead of calling 'exit'.
110286 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110288         * lib/mktime.c (guess_time_tm): Fix bug where mktime
110289         returned the maximum time_t value rather than (time_t) -1.
110290         Problem originally reported by William Bardwell
110291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110293         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110294         Moved to here ...
110295         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110296         ... from here.
110298 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110300         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
110301         2821 is fixed.
110303 2006-09-08  Jim Meyering  <jim@meyering.net>
110305         Don't make generated files read-only.  That would bother too many
110306         people.  However, do retain the ability to work when targets are
110307         read-only: remove the destination and temporary files before writing
110308         them (when generated via sed or echo), or by using the -f option for
110309         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
110310         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110311         * modules/byteswap, modules/configmake, modules/fcntl:
110312         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110313         * modules/localcharset, modules/netinet_in, modules/poll:
110314         * modules/stdbool, modules/stdint, modules/sys_select:
110315         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110317 2006-09-08  Jim Meyering  <jim@meyering.net>
110319         Avoid new build failure on FreeBSD 6.0.
110320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
110321         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
110322         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
110324 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
110328 2006-09-07  Jim Meyering  <jim@meyering.net>
110330         Fix global typo in last change: use chmod u-w, not chmod u-x.
110331         Spotted by Paul Eggert and Bruce Korb.
110332         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110333         * modules/byteswap, modules/configmake, modules/fcntl:
110334         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110335         * modules/localcharset, modules/netinet_in, modules/poll:
110336         * modules/stdbool, modules/stdint, modules/sys_select:
110337         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110339 2006-09-06  Jim Meyering  <jim@meyering.net>
110341         Make generated files be read-only.
110342         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
110343         Ensure that each generated file is now read-only.
110344         * modules/argz: Likewise.
110345         * modules/arpa_inet: Likewise.
110346         * modules/byteswap: Likewise.
110347         * modules/configmake: Likewise.
110348         * modules/fcntl: Likewise.
110349         * modules/fnmatch: Likewise.
110350         * modules/getopt: Likewise.
110351         * modules/glob: Likewise.
110352         * modules/inttypes: Likewise.
110353         * modules/netinet_in: Likewise.
110354         * modules/poll: Likewise.
110355         * modules/stdbool: Likewise.
110356         * modules/stdint: Likewise.
110357         * modules/sys_select: Likewise.
110358         * modules/sys_socket: Likewise.
110359         * modules/sys_stat: Likewise.
110360         * modules/sysexits: Likewise.
110361         * modules/localcharset: Same as above, but continue using temporary
110362         file named "t-$@" (why different?) rather than the "$@-t" used
110363         everywhere else.
110365         * modules/sysexits (Makefile.am): Replace literal occurrences
110366         of "sysexit.h" more readable, and more consistent, "$@".
110368 2006-09-06  Bruno Haible  <bruno@clisp.org>
110370         * modules/striconv: New file.
110371         * modules/xstriconv: New file.
110372         * MODULES.html.sh (Internationalization functions): Add striconv,
110373         xstriconv.
110375 2006-09-06  Bruno Haible  <bruno@clisp.org>
110377         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
110378         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
110379         not using libtool correctly.
110381 2006-09-06  Bruno Haible  <bruno@clisp.org>
110383         * lib/striconv.h: New file.
110384         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110385         iconvstring.c.
110386         * lib/xstriconv.h: New file.
110387         * lib/xstriconv.c: New file.
110389 2006-09-06  Bruno Haible  <bruno@clisp.org>
110391         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110392         lib_..._LDFLAGS.
110394 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110396         * lib/argz_.h: Sync from Libtool.
110398         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110399                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110401         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110403 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110405         * modules/trim: New file.
110407 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110409         * lib/trim.h: New file.
110410         * lib/trim.c: New file.
110412 2006-09-05  Bruno Haible  <bruno@clisp.org>
110414         * MODULES.html.sh (String handling): Add trim.
110416 2006-09-04  Karl Berry  <karl@gnu.org>
110418         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110419         until next release.
110421 2006-09-03  Bruno Haible  <bruno@clisp.org>
110423         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110424         correctly.
110426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110428         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110429         not gl_GETLOADAVG.  Omit unneeded semicolons.
110430         Problems reported by Ralf Wildenhues in
110431         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110432         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110433         at the end, which is the usual gnulib style.
110435         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110436         of doing all the work ourselves.
110437         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110438         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110442         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110443         Problem reported by Ralf Wildenhues in
110444         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110446         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110447         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110449 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110451         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110452         yesterday's patch by changing test -n to test -z.
110454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110456         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110457         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110458         the former is now obsolescent.
110460         * modules/chdir-long (Depends-on): Add fcntl.
110462 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110464         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110465         obsolescent, and programs should use gnulib instead.
110466         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110467         but with prefixes changed.
110469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110471         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110472         or stdbool.h, because they might not exist while configuring.
110474         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110475         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110476         does that for us.
110477         (O_DIRECTORY): Remove.
110479 2006-08-31  Eric Blake  <ebb9@byu.net>
110481         * gnulib-tool: Don't let emacs change spaces to TAB.
110483 2006-08-31  Bruno Haible  <bruno@clisp.org>
110485         * gnulib-tool: When calling func_import more than once, do it in a
110486         subshell.
110487         Reported by Eric Blake <ebb9@byu.net>.
110489 2006-08-31  Bruno Haible  <bruno@clisp.org>
110491         * gnulib-tool (nl): Remove variable.
110492         (sed_transform_lib_file): Use more robust test for config-h module.
110493         (func_import): Fix typo in 2006-08-25 patch.
110495 2006-08-31  Bruno Haible  <bruno@clisp.org>
110497         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110498         specified, augment Makefile.am variables instead of assigning them.
110500 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110502         Work around a bug in both the Linux and SunOS 64-bit kernels:
110503         nanosleep mishandles sleeps for longer than 2**31 seconds.
110504         Problem reported by Frank v Waveren in
110505         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110507         Check for nanosleep bug.
110508         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110512         Work around a bug in both the Linux and SunOS 64-bit kernels:
110513         nanosleep mishandles sleeps for longer than 2**31 seconds.
110514         Problem reported by Frank v Waveren in
110515         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110516         * lib/nanosleep.c (BILLION): New constant.
110517         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110518         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110519         implementation.
110521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110523         * modules/nanosleep (Depends-on): Add gettime.
110525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110526         and Simon Josefsson  <jas@extundo.com>
110527         and Oskar Liljeblad  <oskar@osk.mine.nu>
110529         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110530         * gnulib-tool (func_import): New license type 'unmodifiable license
110531         text'.
110532         * modules/fdl: Use it.  Longer description.
110533         * module/gpl, module/lgpl: New files.
110535 2006-08-30  Jim Meyering  <jim@meyering.net>
110537         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110538         shadowing the parameter.
110540 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110542         Sync from Libtool:
110544         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110546         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110547         sharing with gnulib.  Report by Eric Blake.
110549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110551         * modules/isapipe: New file.
110552         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110556         * modules/configmake (Makefile.am): Add a comment, and omit
110557         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110558         by Bruno Haible.
110560 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110562         * m4/isapipe.m4: New file.
110564 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110566         * lib/isapipe.c, lib/isapipe.h: New files.
110568 2006-08-29  Jim Meyering  <jim@meyering.net>
110570         * modules/configmake (Makefile.am): Make configmake.h depend on
110571         Makefile.  Otherwise, a stale configmake.h could hang around.
110573 2006-08-29  Eric Blake  <ebb9@byu.net>
110575         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110576         resolution of upstream bug 3044.
110578 2006-08-29  Bruno Haible  <bruno@clisp.org>
110580         * modules/localcharset (Depends-on): Add configmake.
110581         (Makefile.am): Remove setting of LIBDIR through DEFS.
110583 2006-08-29  Bruno Haible  <bruno@clisp.org>
110585         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110586         defined.
110588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110590         * modules/fcntl: New file.
110591         * modules/chdir-safer (Depends-on): Add fcntl.
110592         * modules/fts: Likewise.
110593         * modules/mkdir-p: Likewise.
110595         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110596         This undoes the most recent change, since we're now addressing the
110597         problem in a different way.
110599         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110600         into output, since the output might be called Makefile.am even
110601         if $makefile_name is something different.
110602         (func_import): Use $makefile_am rather than
110603         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110604         empty.
110606         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110608 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110610         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110611         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110612         recent change to stdint.m4, since we're now addressing the problem in a
110613         different way.
110615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110617         * m4/fcntl_h.m4: New file.
110619 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110621         * lib/fcntl_.h: New file.
110622         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110623         the fcntl module.
110624         * lib/dirchownmod.c: Likewise.
110625         * lib/fts.c: Likewise.
110627         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110628         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110629         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110630         just before including <inttypes.h>, to avoid circular inclusion.
110632 2006-08-28  Jim Meyering  <jim@meyering.net>
110634         * doc/visibility.texi: Actually read and correct the grammar of the
110635         sentence affected by yesterday's change.
110637 2006-08-28  Eric Blake  <ebb9@byu.net>
110639         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110640         needs wrapper.
110642 2006-08-28  Eric Blake  <ebb9@byu.net>
110644         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110646 2006-08-28  Eric Blake  <ebb9@byu.net>
110648         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110650 2006-08-28  Bruno Haible  <bruno@clisp.org>
110652         * modules/c-strstr: New file, from GNU gettext.
110653         * MODULES.html.sh (String handling): Add c-strstr.
110655 2006-08-28  Bruno Haible  <bruno@clisp.org>
110657         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110658         macros.
110659         Reported by Eric Blake.
110661 2006-08-28  Bruno Haible  <bruno@clisp.org>
110663         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110664         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110665         * lib/vasprintf.c: Include errno.h, limits.h.
110666         (EOVERFLOW): New fallback definition.
110667         (vasprintf): Test here whether the string length is > INT_MAX.
110668         * lib/vsnprintf.c: Include errno.h, limits.h.
110669         (EOVERFLOW): New fallback definition.
110670         (vsnprintf): Fix bug when generated string was too long for the buffer.
110671         Test here whether the string length is > INT_MAX.
110673 2006-08-28  Bruno Haible  <bruno@clisp.org>
110675         * lib/inttypes_.h (SCNX*): Remove definitions.
110676         Reported by Eric Blake.
110678 2006-08-28  Bruno Haible  <bruno@clisp.org>
110680         * lib/c-strstr.h: New file, from GNU gettext.
110681         * lib/c-strstr.c: New file, from GNU gettext.
110683 2006-08-28  Bruno Haible  <bruno@clisp.org>
110685         * gnulib-tool: Reorder some statements.
110687 2006-08-28  Bruno Haible  <bruno@clisp.org>
110689         * gnulib-tool: New option --makefile-name.
110690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110691         $makefile_name.
110692         (func_import): Write $makefile_name to the cache file, and read it from
110693         there unless explicitly specified. Use $makefile_name as file name
110694         instead of Makefile.am. Adjust the recommendations accordingly.
110696 2006-08-28  Bruno Haible  <bruno@clisp.org>
110698         * gnulib-tool (func_verify_module): Check against misapplying patch.
110700 2006-08-28  Bruno Haible  <bruno@clisp.org>
110702         * gnulib-tool (func_relativize, func_relconcat): New functions.
110703         Give an error if --local-dir is given with --update.
110704         Remove trailing slashes from $local_gnulib_dir.
110705         (func_import): Store the relativized $local_gnulib_dir in
110706         gnulib-cache.m4, and read it from there if not specified explicitly.
110708 2006-08-28  Bruno Haible  <bruno@clisp.org>
110710         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110711         is the current directory. Respect also $local_gnulib_dir.
110713 2006-08-28  Bruno Haible  <bruno@clisp.org>
110714             Simon Josefsson  <jas@extundo.com>
110716         BeOS portability.
110717         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110719 2006-08-27  Jim Meyering  <jim@meyering.net>
110721         * doc/visibility.texi: Remove duplicate word: "pointer".
110723 2006-08-26  Bruno Haible  <bruno@clisp.org>
110725         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110726         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110727         (Makefile.am): Create inttypes.h from inttypes_.h.
110728         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110730         * modules/imaxabs: New file.
110732         * modules/imaxdiv: New file.
110734 2006-08-26  Bruno Haible  <bruno@clisp.org>
110736         * m4/inttypes.m4: New file.
110737         * m4/_inttypes_h.m4: Remove file.
110738         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110739         PRI_MACROS_BROKEN.
110740         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110742         * m4/imaxabs.m4: New file.
110744         * m4/imaxdiv.m4: New file.
110746 2006-08-26  Bruno Haible  <bruno@clisp.org>
110748         * lib/inttypes_.h: New file.
110749         * lib/inttypes.h: Remove file.
110750         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110752         * lib/imaxabs.c: New file.
110754         * lib/imaxdiv.c: New file.
110756 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110758         New config-h module, so that "make" output needn't be cluttered
110759         by -DHAVE_CONFIG_H.
110760         * MODULES.html.sh (Support for building libraries and executables):
110761         Add config-h.
110762         * modules/config-h: New file.
110763         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110764         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110765         the config-h module is used.
110767         New configmake module, so that "make" output needn't be cluttered
110768         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110769         * MODULES.html.sh (Support for building libraries and executables):
110770         Add configmake.
110771         * modules/configmake: New file.
110773 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110775         * m4/config-h.m4: New file.
110777 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110779         * config/srclist.txt: Add elisp-comp.
110781 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110783         * MODULES.html.sh (Support for building libraries and executables):
110784         Add elisp-comp.
110785         * build-aux/elisp-comp: New file.
110786         * modules/elisp-comp: New file.
110788 2006-08-24  Bruno Haible  <bruno@clisp.org>
110790         * gnulib-tool (func_create_testdir): Use non-default values of
110791         sourcebase and m4base.
110793 2006-08-24  Bruno Haible  <bruno@clisp.org>
110795         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
110796         HTML structure.
110798 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110800         * modules/openat (Depends-on): Add lchown.
110802 2006-08-23  Bruno Haible  <bruno@clisp.org>
110804         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
110805         of gl_LOCK_EARLY instead of gl_LOCK.
110807 2006-08-23  Bruno Haible  <bruno@clisp.org>
110809         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
110810         on OSF/1 to no.
110811         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
110813 2006-08-23  Bruno Haible  <bruno@clisp.org>
110815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
110816         as unusable.
110818         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110819         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110820         (gl_LOCK): New macro.
110822 2006-08-22  Simon Josefsson  <jas@extundo.com>
110824         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110825         to md5 module.
110827 2006-08-22  Simon Josefsson  <jas@extundo.com>
110829         * MODULES.html.sh: Add "Support for maintaining and release
110830         projects".
110832         * build-aux/gnupload: New file, from coreutils.
110834 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110836         Avoid the need for AC_LIBSOURCES in m4 macros.
110837         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110838         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110839         * modules/check-version (EXTRA_DIST): Add check-version.h.
110840         * modules/crc (EXTRA_DIST): Add crc.h.
110841         * modules/des (EXTRA_DIST): Add des.h.
110842         * modules/gc (EXTRA_DIST): Add gc.h.
110843         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110844         * modules/getline (EXTRA_DIST): Add getline.h.
110845         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110846         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110847         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110848         * modules/md2 (EXTRA_DIST): Add md2.h.
110849         * modules/md4 (EXTRA_DIST): Add md4.h.
110850         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110851         * modules/read-file (EXTRA_DIST): Add read-file.h.
110852         * modules/readline (EXTRA_DIST): Add readline.h.
110853         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110854         rijndael-api-fst.h.
110856 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110858         * m4/rijndael.m4 (gl_ARCFOUR):
110859         * m4/arctwo.m4 (gl_ARCTWO):
110860         * m4/check-version.m4 (gl_CHECK_VERSION):
110861         * m4/crc.m4 (gl_CRC):
110862         * m4/des.m4 (gl_DES):
110863         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110864         * m4/gc.m4 (gl_GC):
110865         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110866         * m4/getline.m4 (gl_FUNC_GETLINE):
110867         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110868         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110869         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110870         * m4/md2.m4 (gl_MD2):
110871         * m4/md4.m4 (gl_MD4):
110872         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110873         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110874         * m4/readline.m4 (gl_FUNC_READLINE):
110875         * m4/rijndael.m4 (gl_RIJNDAEL):
110876         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110877         to get the necessary .h files and whatnot.
110879 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110881         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110882         gnulib rather than the other way around.
110883         * config/srclistvars.sh (COREUTILS): Remove.
110885 2006-08-22  Jim Meyering  <jim@meyering.net>
110887         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110889         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110891 2006-08-22  Eric Blake  <ebb9@byu.net>
110893         * modules/regexprops-generic: New file.
110894         * MODULES.html.sh (Support for building documentation): List it.
110896 2006-08-22  Eric Blake  <ebb9@byu.net>
110898         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110899         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110900         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110903 2006-08-22  Bruno Haible  <bruno@clisp.org>
110905         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110906         and lib_LTLIBRARIES like the other lib_* variables.
110908 2006-08-22  Bruno Haible  <bruno@clisp.org>
110910         * build-aux/x-to-1.in: New file, from GNU gettext.
110912 2006-08-22  Bruno Haible  <bruno@clisp.org>
110914         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110915         <utmpx.h> exists.
110917 2006-08-22  Bruno Haible  <bruno@clisp.org>
110919         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110920         <utmpx.h> exists.
110922 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110924         BeOS portability.
110925         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110926         exist.
110927         Problem reported by Bruno Haible.
110929 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110931         Avoid the need for AC_LIBSOURCES in m4 macros.
110932         * modules/acl (EXTRA_DIST): Add acl.h.
110933         * modules/argmatch (Files): Add m4/argmatch.m4.
110934         (configure.ac): Add gl_ARGMATCH.
110935         (EXTRA_DIST): Renamed from lib_SOURCES, for
110936         consistency with the other modules.  Remove argmatch.c.
110937         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110938         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110939         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110940         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110941         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110942         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110943         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110944         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110945         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110946         * modules/closeout (EXTRA_DIST): Add closeout.h.
110947         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110948         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110949         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110950         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110951         dirname.h; remove basename.c and stripslash.c.
110952         * modules/exclude (EXTRA_DIST): Add exclude.h.
110953         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110954         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110955         * modules/file-type (EXTRA_DIST): Add file-type.h.
110956         * modules/filemode (EXTRA_DIST): Add filemode.h.
110957         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110958         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110959         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110960         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110961         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110962         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110963         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110964         * modules/getdate (EXTRA_DIST): Add getdate.c.
110965         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110966         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110967         * modules/getpass (EXTRA_DIST): Add getpass.h.
110968         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110969         * modules/group-member (EXTRA_DIST): Add group-member.h.
110970         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110971         * modules/hash (EXTRA_DIST): Add hash.h.
110972         * modules/human (EXTRA_DIST): Add human.h.
110973         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110974         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110975         * modules/lchown (EXTRA_DIST): Add lchown.h.
110976         * modules/long-options (EXTRA_DIST): Add long-options.h.
110977         * modules/lstat (EXTRA_DIST): Add lstat.h.
110978         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110979         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110980         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110981         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110982         * modules/memxor (EXTRA_DIST): Add memxor.h.
110983         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110984         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110985         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110986         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110987         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110988         * modules/physmem (EXTRA_DIST): Add physmem.h.
110989         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110990         * modules/posixver (EXTRA_DIST): Add posixver.h.
110991         * modules/quote (EXTRA_DIST): Add quote.h.
110992         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110993         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110994         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110995         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110996         regex_internal.h regexec.c.
110997         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110998         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110999         * modules/same (EXTRA_DIST): Add same.h.
111000         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
111001         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
111002         * modules/savedir (EXTRA_DIST): Add savedir.h.
111003         * modules/sha1 (EXTRA_DIST): Add sha1.h.
111004         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
111005         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
111006         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
111007         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
111008         * modules/strdup (EXTRA_DIST): Add strdup.h.
111009         * modules/strftime (EXTRA_DIST): Add strftime.h.
111010         * modules/strndup (EXTRA_DIST): Add strndup.h.
111011         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
111012         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
111013         * modules/time_r (EXTRA_DIST): Add time_r.h.
111014         * modules/timespec (EXTRA_DIST): Add timespec.h.
111015         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111016         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
111017         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
111018         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
111019         * modules/userspec (EXTRA_DIST): Add userspec.h.
111020         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
111021         * modules/utimens (EXTRA_DIST): Add utimens.h.
111022         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
111023         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
111024         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
111025         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
111026         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
111027         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
111028         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
111029         * modules/yesno (EXTRA_DIST): Add yesno.h.
111031 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111033         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
111035         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
111036         * m4/dev-ino.m4, same-inode.m4: Remove.
111038         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
111039         * m4/acl.m4 (AC_FUNC_ACL):
111040         * m4/backupfile.m4 (gl_BACKUPFILE):
111041         * m4/c-strtod.m4 (gl_C99_STRTOLD):
111042         * m4/canon-host.m4 (gl_CANON_HOST):
111043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
111045         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
111046         * m4/cloexec.m4 (gl_CLOEXEC):
111047         * m4/close-stream.m4 (gl_CLOSE_STREAM):
111048         * m4/closeout.m4 (gl_CLOSEOUT):
111049         * m4/dirfd.m4 (gl_FUNC_DIRFD):
111050         * m4/dirname.m4 (gl_DIRNAME):
111051         * m4/exclude.m4 (gl_EXCLUDE):
111052         * m4/exitfail.m4 (gl_EXITFAIL):
111053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
111054         * m4/file-type.m4 (gl_FILE_TYPE):
111055         * m4/filemode.m4 (gl_FILEMODE):
111056         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
111057         * m4/fpending.m4 (gl_FUNC_FPENDING):
111058         * m4/fprintftime.m4 (gl_FPRINTFTIME):
111059         * m4/fts.m4 (gl_FUNC_FTS):
111060         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
111061         * m4/getdate.m4 (gl_GETDATE):
111062         * m4/gethrxtime.m4 (gl_GETHRXTIME):
111063         * m4/getpagesize.m4 (gl_GETPAGESIZE):
111064         * m4/getpass.m4 (gl_FUNC_GETPASS):
111065         * m4/gettime.m4 (gl_GETTIME):
111066         * m4/getugroups.m4 (gl_GETUGROUPS):
111067         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
111068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
111069         * m4/hard-locale.m4 (gl_HARD_LOCALE):
111070         * m4/hash.m4 (gl_HASH):
111071         * m4/idcache.m4 (gl_IDCACHE):
111072         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
111073         * m4/lchown.m4 (gl_FUNC_LCHOWN):
111074         * m4/long-options.m4 (gl_LONG_OPTIONS):
111075         * m4/lstat.m4 (gl_FUNC_LSTAT):
111076         * m4/md5.m4 (gl_MD5):
111077         * m4/memcasecmp.m4 (gl_MEMCASECMP):
111078         * m4/memcoll.m4 (gl_MEMCOLL):
111079         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
111080         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
111081         * m4/memxor.m4 (gl_MEMXOR):
111082         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
111083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
111084         * m4/modechange.m4 (gl_MODECHANGE):
111085         * m4/mountlist.m4 (gl_MOUNTLIST):
111086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
111087         * m4/openat.m4 (gl_FUNC_OPENAT):
111088         * m4/pathmax.m4 (gl_PATHMAX):
111089         * m4/physmem.m4 (gl_PHYSMEM):
111090         * m4/posixtm.m4 (gl_POSIXTM):
111091         * m4/posixver.m4 (gl_POSIXVER):
111092         * m4/quote.m4 (gl_QUOTE):
111093         * m4/quotearg.m4 (gl_QUOTEARG):
111094         * m4/readtokens.m4 (gl_READTOKENS):
111095         * m4/readutmp.m4 (gl_READUTMP):
111096         * m4/regex.m4 (gl_REGEX):
111097         * m4/safe-read.m4 (gl_SAFE_READ):
111098         * m4/safe-write.m4 (gl_SAFE_WRITE):
111099         * m4/same.m4 (gl_SAME):
111100         * m4/save-cwd.m4 (gl_SAVE_CWD):
111101         * m4/savedir.m4 (gl_SAVEDIR):
111102         * m4/settime.m4 (gl_SETTIME):
111103         * m4/sha1.m4 (gl_SHA1):
111104         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
111105         * m4/stat-macros.m4 (gl_STAT_MACROS):
111106         * m4/stat-time.m4 (gl_STAT_TIME):
111107         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
111108         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
111109         * m4/strdup.m4 (gl_FUNC_STRDUP):
111110         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
111111         * m4/strndup.m4 (gl_FUNC_STRNDUP):
111112         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
111113         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
111114         * m4/time_r.m4 (gl_TIME_R):
111115         * m4/timespec.m4 (gl_TIMESPEC):
111116         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
111117         * m4/unlinkdir.m4 (gl_UNLINKDIR):
111118         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
111119         * m4/userspec.m4 (gl_USERSPEC):
111120         * m4/utimecmp.m4 (gl_UTIMECMP):
111121         * m4/utimens.m4 (gl_UTIMENS):
111122         * m4/xalloc.m4 (gl_XALLOC):
111123         * m4/xgetcwd.m4 (gl_XGETCWD):
111124         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
111125         * m4/xreadlink.m4 (gl_XREADLINK):
111126         * m4/xstrtod.m4 (gl_XSTRTOD):
111127         * m4/yesno.m4 (gl_YESNO):
111128         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111129         to get the necessary .h files and whatnot.
111131 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
111132             Bruno Haible  <bruno@clisp.org>
111134         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
111135         /bin/sh understanding of '!' conditional negation.
111137 2006-08-21  Jim Meyering  <jim@meyering.net>
111139         * modules/openat (Depends-on): Really alphabetize.
111141         * modules/acl (Depends-on): Add error and quote.
111143         * check-module (find_included_lib_files): Add at-func.c to the
111144         ok-to-include-more-than-once white list.
111146         * modules/openat (Depends-on): Add lstat.  Alphabetize.
111148 2006-08-21  Bruno Haible  <bruno@clisp.org>
111150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111151         Emit a pkgdata_DATA variable only if some snippets add contents to it.
111152         Reported by Martin Lambers <marlam@marlam.de>.
111154 2006-08-21  Bruno Haible  <bruno@clisp.org>
111156         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
111157         specify an installation location, don't emit a noinst_LIBRARIES or
111158         noinst_LTLIBRARIES assignment.
111160 2006-08-21  Bruno Haible  <bruno@clisp.org>
111162         BeOS portability.
111163         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
111164         BeOS has mbrtowc() but no <wctype.h>.
111166 2006-08-21  Bruno Haible  <bruno@clisp.org>
111168         BeOS portability.
111169         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
111170         exist.
111172 2006-08-21  Bruno Haible  <bruno@clisp.org>
111174         BeOS portability.
111175         * lib/mbchar.h: Include <wctype.h> only if it exists.
111177 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111179         Remove files that are no longer needed by their respective modules.
111180         * m4/obstack.m4: Remove.
111181         * m4/strerror_r.m4: Remove.
111182         * m4/uint32_t.m4: Remove.
111183         * m4/uintptr_t.m4: Remove.
111184         * m4/ullong_max.m4: Remove.
111185         * m4/xstrtoimax.m4: Remove.
111186         * m4/xstrtoumax.m4: Remove.
111188         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
111189         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
111190         dependencies now capture this.
111192         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
111193         Do not use AC_LIBSOURCES, since gnulib modules now do this.
111194         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
111195         * m4/human.m4 (gl_HUMAN): Likewise.
111196         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
111197         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
111199         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
111201         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
111202         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
111203         stdint.
111204         * m4/human.m4 (gl_HUMAN): Likewise.
111205         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
111206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
111207         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111208         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111209         * m4/xstrtol (gl_XSTRTOL): Likewise.
111211         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
111212         AC_TYPE_LONG_LONG_INT.
111213         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111214         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
111215         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
111216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111218         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
111219         on stdbool.
111221         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
111222         (gl_PREREQ_XSTRTOUL): Remove.
111224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
111226         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
111227         mode.
111229 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111231         Add and change modules to make it easier for coreutils to use
111232         gnulib-tool.
111233         * modules/backupfile (Files): Remove m4/d-ino.m4.
111234         (Depends-on): Add d-ino.
111235         * modules/cycle-check (Depends-on): Add stdint.
111236         (lib_SOURCES): Add cycle-check.h.
111237         * modules/d-ino: New module.
111238         * modules/d-type: New module.
111239         * modules/error (Files): Remove m4/strerror_r.m4.
111240         * modules/filemode (Files): Add m4/st_dm_mode.m4.
111241         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111242         m4/inttypes_h.m4, m4/uintmax_t.m4.
111243         (Depends-on): Add stdint.
111244         (lib_SOURCES): Add fsusage.h.
111245         * modules/getcwd (Files): Remove d-ino.m4.
111246         (Depends-on): Add d-ino.
111247         * modules/getndelim2 (Depends-on): Add stdint.
111248         * modules/glob (Files): Remove m4/d-type.m4.
111249         (Depends-on): Add d-type.
111250         * modules/host-os: New module.
111251         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
111252         m4/inttypes_h.m4, m4/uintmax_t.m4.
111253         * Depends-on: Add stdint.
111254         (lib_SOURCES): Add human.h.
111255         * modules/inttostr (Files): Remove m4/intmax_t.m4,
111256         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
111257         m4/uintmax_t.m4, m4/ulonglong.m4.
111258         (Depends-on): Add stdint.
111259         (EXTRA_DIST): Add inttostr.h.
111260         * modules/lchmod: New module.
111261         * modules/link-follow: New module.
111262         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
111263         (Depends-on): Add lchmod.
111264         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
111265         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
111266         (Depends-on): Add stdint.
111267         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
111268         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
111269         (Depends-on): Add stdint.
111270         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
111271         * modules/perl: New module.
111272         * modules/regex (Depends-on): Add stdint.
111273         * modules/rmdir-errno: New module.
111274         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111275         m4/intmax_t.m4.
111276         (Depends-on): Add stdint.
111277         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111278         m4/uintmax_t.m4.
111279         (Depends-on): Add stdint.
111280         * modules/unlink-busy: New module.
111281         * modules/utimecmp (Depends-on): Add stdint.
111282         * modules/uptime: New module.
111283         * modules/winsz-ioctl: New module.
111284         * modules/winsz-termios: New module.
111285         * modules/xnanosleep (Depends-on): Add nanosleep.
111286         * modules/ullong_max: Remove.
111287         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
111288         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
111289         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
111290         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
111291         (Depends-on): Add inttypes.
111292         (lib_SOURCES): Add xstrtol.h.
111293         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
111294         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
111295         * MODULES.html.sh: Move 'assert' into the assert section.
111296         Move 'dummy' into the linking section.
111297         Remove ullong_max.
111298         Add section for compatibility checks for POSIX:2001 functions,
111299         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
111300         winsz-ioctl, and winsz-termios into it.
111301         Add lchmod.
111302         Add top-level Misc section and put host-os, perl, and uptime
111303         into it.
111305 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111307         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
111308         now assume the stdint module.  Do not include inttypes.h.
111309         * lib/fsusage.h: Likewise.
111310         * lib/getndelim2.c: Likewise.
111311         * lib/human.h: Likewise.
111312         * lib/inttostr.h: Likewise.
111313         * lib/obstack.c: Likewise.
111314         * lib/regex_internal.h: Likewise.
111315         * lib/tempname.c: Likewise.
111316         * lib/utimecmp.c: Likewise.
111317         * lib/xstrtol.h: Likewise.
111319         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
111321         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
111322         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
111323         * lib/xtime.h: Likewise.
111325 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111327         * modules/openat (Files): Add lib/fchmodat.c.
111328         Fixes problem reported by Jay Youngman.
111330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111332         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
111333         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
111335 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
111336             Bruno Haible  <bruno@clisp.org>
111338         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
111339         and is a script that invokes bison. Tighten the code. Add comments.
111341 2006-08-18  Jim Meyering  <jim@meyering.net>
111343         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
111344         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
111345         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
111346         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
111348 2006-08-18  Bruno Haible  <bruno@clisp.org>
111350         * modules/bison-i18n: New file.
111351         * MODULES.html.sh (Internationalization functions): Add it.
111353 2006-08-18  Bruno Haible  <bruno@clisp.org>
111355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
111356         sys/statvfs.h. When getmntinfo was found, check its declaration and
111357         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
111359 2006-08-18  Bruno Haible  <bruno@clisp.org>
111361         * m4/bison-i18n.m4: New file, from bison.
111363 2006-08-18  Bruno Haible  <bruno@clisp.org>
111365         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
111366         (ME_DUMMY): Treat "kernfs" as a dummy.
111367         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
111369 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111371         Update from coreutils.
111373         2006-08-15  Jim Meyering  <jim@meyering.net>
111375         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
111377         2006-01-17  Jim Meyering  <jim@meyering.net>
111379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111381         2006-01-11  Jim Meyering  <jim@meyering.net>
111383         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111384         Check for the lchmod function.
111386 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111388         Update from coreutils.
111390         * lib/__fpending.h: Add copyright notice.
111391         * lib/fprintftime.h: Likewise.
111392         * lib/savedir.c: Use (C) in copyright notice.
111393         * lib/savedir.h: Likewise.
111395         2006-08-15  Jim Meyering  <jim@meyering.net>
111397         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111398         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111399         in support of the EXPECTED_ERRNO macro.
111400         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111401         definitions.  Instead, define the appropriate symbols and include
111402         "at-func.c".
111403         * lib/mkdirat.c (mkdirat): Likewise.
111404         * lib/fchmodat.c (fchmodat): Likewise.
111405         (ENOSYS): Remove definition.
111406         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111407         it.  Don't include "unistd--.h" -- it wasn't ever used.
111409         2006-01-17  Jim Meyering  <jim@meyering.net>
111411         Rewrite fts.c not to change the current working directory,
111412         by using openat, fstatat, fdopendir, etc..
111414         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111415         (HAVE_OPENAT_SUPPORT): Define.
111416         [_LIBC] (fchdir): Don't undef or define; no longer used.
111417         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111418         Now, this `function' always succeeds, and consumes its file descriptor
111419         parameter -- so callers must not close such FDs.  Update callers.
111420         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111421         (diropen): Add parameter, SP.  Adjust all callers.
111422         Implement using diropen_fd, rather than open.
111423         (fts_open): Initialize new member, fts_cwd_fd.
111424         Remove fts_rft-setting code.
111425         (fts_close): Close fts_cwd_fd, if necessary.
111426         (__opendir2): Define in terms of opendir or opendirat,
111427         depending on whether the FST_NOCHDIR flag is set.
111428         (fts_build): Since fts_safe_changedir consumes its FD, and since
111429         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111430         and close the dup'd file descriptor upon failure.
111431         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111432         (fts_safe_changedir): Tweak semantics to reflect that this function
111433         now calls cwd_advance_fd and hence consumes its FD argument.
111434         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111435         [struct FTS] (fts_rft): Remove now-unused member.
111436         [struct FTS] (fts_cycle.state): Improve comment.
111438         * lib/openat.c (openat_needs_fchdir): New function.
111439         * lib/openat.h (openat_needs_fchdir): Declare it.
111441 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111443         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111444         Problem and fix reported by Pádraig Brady in
111445         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111449         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111451 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111453         * lib/memcoll.c (memcoll): Optimize for the common case where the
111454         arguments are bytewise equal.
111456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111458         * doc/regexprops-generic.texi: Add a copyright notice.
111460 2006-08-15  Bruno Haible  <bruno@clisp.org>
111462         * modules/tmpdir (License): Change to LGPL.
111464 2006-08-15  Bruno Haible  <bruno@clisp.org>
111466         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111467         module.
111469 2006-08-14  Simon Josefsson  <jas@extundo.com>
111471         * config/srclist.txt: Add gnupload.
111473 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111475         Change copyright notice from LGPL 2 to GPL 2, since that's the
111476         standard form used in the gnulib repository.
111477         * tests/test-lock.c: Likewise.
111478         * tests/test-stdint.c: Likewise.
111479         * tests/test-tls.c: Likewise.
111481         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111482         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111483         Add copyright notice.
111485         * check-module: Add copyright notice.  Output a copyright
111486         notice if "--version" is specified.
111487         * modules/COPYING: New file.
111488         * tests/test-getaddrinfo.c: Add copyright notice.
111489         * tests/test-verify.c: Likewise.
111491 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111493         Change copyright notice from LGPL 2 to GPL 2, since that's the
111494         standard form used in the gnulib repository.
111495         * lib/lock.c: LGPL -> GPL.
111496         * lib/lock.h: Likewise.
111497         * lib/strnlen1.c: Likewise.
111498         * lib/strnlen1.h: Likewise.
111499         * lib/tls.c: Likewise.
111500         * lib/tls.h: Likewise.
111501         * lib/tmpdir.c: Likewise.
111503         * lib/TODO: Remove; this belongs only in coreutils.
111505 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111507         Add copyright notices to long-enough files that lack them, since
111508         otherwise the files aren't clearly free.  Use the same notice that
111509         getdate.texi already uses.
111510         * doc/alloca-opt.texi: Add copyright notice.
111511         * doc/alloca.texi: Likewise.
111512         * doc/ctime.texi: Likewise.
111513         * doc/functions.texi: Likewise.
111514         * doc/gcd.texi: Likewise.
111515         * doc/gnulib-tool.texi: Likewise.
111516         * doc/inet_ntoa.texi: Likewise.
111517         * doc/visibility.texi: Likewise.
111519         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111520         * doc/quote.texi: Add copyright notice.
111522         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111523         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111524         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111525         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111526         is now obsolete, and give a pointer to the Sun list.
111527         Add copyright notice.
111529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111531         * config/srclistvars.sh: Add copyright notice.
111533 2006-08-14  Eric Blake  <ebb9@byu.net>
111535         Import the following change from libc:
111537         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111539         Upstream bug 2997.
111540         * lib/misc/error.c: Add space between program name and message if file
111541         name is missing.
111543 2006-08-12  Karl Berry  <karl@gnu.org>
111545         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111546         remove, these originate in gnulib now.
111548 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111550         * doc/Makefile (standards.info standards.html standards.dvi):
111551         Also depend on make-stds.texi.
111553 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111555         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111556         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111558         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111559         in wchar_t.  Problem reported by Eric Blake.
111561         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111562         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111563         Also, help the compiler to keep LEN in a register.
111565 2006-08-11  Eric Blake  <ebb9@byu.net>
111567         * users.txt: Sort.  Add tar.
111569 2006-08-11  Bruno Haible  <bruno@clisp.org>
111571         * users.txt: New file.
111573 2006-08-11  Bruno Haible  <bruno@clisp.org>
111575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111576         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111578 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111580         * modules/snprintf (Depends-on): Remove minmax.
111581         (Maintainer): Add self and Bruno.
111583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111585         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111586         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111587         (EOVERFLOW): Define if the system does not.
111588         Do not include "minmax.h"; it wasn't used.
111589         (snprintf): Don't assume size_t promotes to an unsigned type.
111590         Fix bug when generated string was too long for the buffer: the
111591         buffer's contents are supposed to be the initial prefix of the
111592         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111593         exceeds INT_MAX; do the check ourselves.
111595         Import the following changes from libc:
111597         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111599         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111600         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111601         set wc to the byte which couldn't be converted.
111602         (re_string_reconstruct): Don't clear valid_raw_len before calling
111603         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111604         tip_context using re_string_context_at.
111606         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111608         * lib/posix/regex.h: g++ still cannot handled [restrict].
111610         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111612         * lib/posix/regex.h: Remove special handling for VMS.
111614 2006-08-10  Jim Meyering  <jim@meyering.net>
111616         * modules/same-inode: New module.
111617         * modules/dev-ino: New module.
111618         * modules/cycle-check: Depend on these modules, rather than simply
111619         including their .h files.
111620         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111621         required via m4/cycle-check.m4.
111622         * modules/same: Depend on new same-inode module, rather than
111623         including same-inode.h.
111624         * modules/chdir-safer: New file.
111626         * modules/chown (Depends-on): Add stat-macros.
111628 2006-08-10  Jim Meyering  <jim@meyering.net>
111630         * m4/cycle-check.m4: New file.
111631         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111632         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111634 2006-08-10  Eric Blake  <ebb9@byu.net>
111636         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111637         in from original proposal.
111639 2006-08-10  Eric Blake  <ebb9@byu.net>
111640         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111642         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111643         namespace.
111645 2006-08-10  Bruno Haible  <bruno@clisp.org>
111647         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111648         as well.
111650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111652         Sync from coreutils.
111654         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111656         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111657         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111659 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111661         * modules/restrict: Remove; no longer needed now that we assume
111662         Autoconf 2.59 or later.
111663         * MODULES.html.sh: Remove 'restrict'.
111664         * modules/argp (Depends-on): Remove 'restrict'.
111665         * modules/base64 (Depends-on): Likewise.
111666         * modules/gc (Depends-on): Likewise.
111667         * modules/getaddrinfo (Depends-on): Likewise.
111668         * modules/glob (Depends-on): Likewise.
111669         * modules/inet_ntop (Depends-on): Likewise.
111670         * modules/inet_pton (Depends-on): Likewise.
111671         * modules/memxor (Depends-on): Likewise.
111672         * modules/regex (Depends-on): Likewise.
111673         * modules/strtok_r (Depends-on): Likewise.
111674         * modules/time_r (Depends-on): Likewise.
111676 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111678         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111679         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111680         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111681         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111682         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111683         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111684         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111685         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111687         Merge from coreutils.
111688         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111689         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111690         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111691         * m4/time_r.m4 (gl_TIME_R): Likewise.
111693 2006-08-09  Karl Berry  <karl@gnu.org>
111695         * config/srclist.txt: no more gettext-tools, per Bruno.
111697 2006-08-08  Eric Blake  <ebb9@byu.net>
111699         * modules/verror: New module.
111700         * MODULES.html.sh: Document it.
111702 2006-08-08  Eric Blake  <ebb9@byu.net>
111704         * lib/verror.h, lib/verror.c: New files.
111706 2006-08-08  Eric Blake  <ebb9@byu.net>
111708         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111709         verror_at_line output complies with GNU Coding Standards even when
111710         file is NULL.
111712 2006-08-07  Bruno Haible  <bruno@clisp.org>
111714         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111715         versions of AIX.
111716         Reported by Ralf Wildenhues.
111718 2006-08-07  Bruno Haible  <bruno@clisp.org>
111720         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111721         in an AC_DEFUN. Needed so that the autoconf snippets can use
111722         AC_REQUIRE.
111724 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111727         Initialize pkgdata_DATA.
111728         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111729         overriding it.
111731 2006-08-06  Eric Blake  <ebb9@byu.net>
111733         * lib/error.h: Fold in some upstream changes from glibc.
111734         * lib/error.c: Likewise.
111736 2006-08-04  Bruno Haible  <bruno@clisp.org>
111738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111739         Make the mostlyclean-local rule depend on mostlyclean-generic.
111740         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111742 2006-07-31  Bruno Haible  <bruno@clisp.org>
111744         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111745         <stdlib.h>, <string.h>.
111747 2006-07-30  Bruno Haible  <bruno@clisp.org>
111749         * modules/readlink (License): Change to LGPL.
111751 2006-07-30  Bruno Haible  <bruno@clisp.org>
111753         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111754         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111755         set PKGDATADIR to point to it.
111757 2006-07-30  Bruno Haible  <bruno@clisp.org>
111759         * modules/csharpexec (configure.ac): Comment out macro invocation.
111760         * modules/javaexec (configure.ac): Likewise.
111761         * modules/javacomp-script (configure.ac): Likewise.
111763         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111765 2006-07-30  Bruno Haible  <bruno@clisp.org>
111767         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111768         linked-list.
111770 2006-07-30  Bruno Haible  <bruno@clisp.org>
111772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111774 2006-07-30  Bruno Haible  <bruno@clisp.org>
111776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111777         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111778         get removed.
111780 2006-07-29  Bruno Haible  <bruno@clisp.org>
111782         Make it possible for gnulib-tool to work with locally modified or
111783         augmented gnulib repositories.
111784         * gnulib-tool (func_usage): Document --local-dir option.
111785         (local_gnulib_dir): New variable.
111786         Handle --local-dir option.
111787         (func_lookup_file): New function.
111788         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111789         (func_get_description, func_get_filelist, func_get_description,
111790         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111791         func_get_automake_snippet, func_get_include_directive,
111792         func_get_license, func_get_maintainer): Use func_lookup_file.
111793         (func_import, func_create_testdir): Use func_lookup_file.
111795 2006-07-29  Bruno Haible  <bruno@clisp.org>
111797         * modules/setenv (Depends-on): Add unistd.
111799 2006-07-29  Bruno Haible  <bruno@clisp.org>
111801         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
111803 2006-07-29  Bruno Haible  <bruno@clisp.org>
111805         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
111807 2006-07-29  Bruno Haible  <bruno@clisp.org>
111809         * gnulib-tool (import, update): If there is no Makefile.am, look at
111810         aclocal.m4, instead of bailing out.
111812 2006-07-29  Bruno Haible  <bruno@clisp.org>
111814         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
111815         Categorize the options by when they are useful.
111817 2006-07-29  Bruno Haible  <bruno@clisp.org>
111819         * gnulib-tool (func_usage): Document option --no-libtool.
111820         Handle option --no-libtool.
111821         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111822         for changed semantics of $libtool variable.
111823         (func_import): Likewise. If libtool is not used, show this through
111824         an option --no-libtool.
111825         (func_create_testdir): Update.
111827 2006-07-29  Bruno Haible  <bruno@clisp.org>
111829         * gnulib-tool (func_import): Extend error message about missing
111830         --doc-base.
111832 2006-07-29  Bruno Haible  <bruno@clisp.org>
111834         * gnulib-tool (func_import): Don't create the $docbase directory if
111835         there is no file to store there.
111837 2006-07-29  Bruno Haible  <bruno@clisp.org>
111839         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111840         relevant, look for configure.ac there, not in the current directory.
111841         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111843 2006-07-29  Bruno Haible  <bruno@clisp.org>
111845         * gnulib-tool (SORT): New variable.
111846         (func_usage): Undocument --assume-autoconf option.
111847         Remove --assume-autoconf option handling.
111848         (autoconf_minversion): Determine from the contents of configure.ac.
111849         (func_import): Remove autoconf_minversion handling.
111850         Suggested by Eric Blake.
111852 2006-07-29  Bruno Haible  <bruno@clisp.org>
111854         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111856 2006-07-29  Bruno Haible  <bruno@clisp.org>
111858         * config/srclist.txt (*setenv.[ch]): Remove rules.
111860 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111862         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111864 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111866         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111867         arpa/inet.h.
111869 2006-07-28  Simon Josefsson  <jas@extundo.com>
111871         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111872         * modules/inet_pton (Depends-on): Likewise.
111874 2006-07-28  Simon Josefsson  <jas@extundo.com>
111876         * m4/netinet_in_h.m4: New file.
111878 2006-07-28  Simon Josefsson  <jas@extundo.com>
111880         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111881         #include's.
111883 2006-07-28  Simon Josefsson  <jas@extundo.com>
111885         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111886         #include's.
111888 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111890         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111891         setgid on directories only if they set these bits.
111892         * lib/modechange.h: Remove obsolete comment about masks.
111894 2006-07-28  Eric Blake  <ebb9@byu.net>
111896         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111897         macro expansion.
111899 2006-07-28  Bruno Haible  <bruno@clisp.org>
111901         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111903 2006-07-28  Bruno Haible  <bruno@clisp.org>
111905         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111907 2006-07-28  Bruno Haible  <bruno@clisp.org>
111909         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111910         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111911         Define fallbacks.
111912         Avoids link error on FreeBSD 4.x.
111913         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111915         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111916         encoding.
111917         * lib/mbswidth.c (iswcntrl): Likewise.
111919 2006-07-27  Bruno Haible  <bruno@clisp.org>
111921         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111922         test.
111924 2006-07-27  Bruno Haible  <bruno@clisp.org>
111926         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111927         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111928         defined.
111930 2006-07-26  Eric Blake  <ebb9@byu.net>
111932         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111934 2006-07-26  Eric Blake  <ebb9@byu.net>
111936         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111937         like mingw that lack mkstemp.
111938         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111939         avoid compilation warning on mingw.
111941 2006-07-26  Bruno Haible  <bruno@clisp.org>
111943         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111944         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111945         INT_FAST*_MIN, INTPTR_MIN.
111947 2006-07-25  Bruno Haible  <bruno@clisp.org>
111949         * modules/version-etc (Depends-on): Add stdarg.
111951 2006-07-25  Bruno Haible  <bruno@clisp.org>
111953         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111954         complex commands.
111956 2006-07-25  Bruno Haible  <bruno@clisp.org>
111958         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111959         defined in <stdarg.h> or config.h.
111961 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111963         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111964         (gl_STDIO_SAFER): Remove.
111966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111968         * MODULES.html.sh (File stream based Input/Output):
111969         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111970         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111971         * modules/fopen-safer, modules/tmpfile-safer: New files.
111972         * modules/stdio-safer: Remove.
111974 2006-07-24  Bruno Haible  <bruno@clisp.org>
111976         * modules/tmpdir: New file.
111977         * MODULES.html.sh (File system functions): Add it.
111979 2006-07-24  Bruno Haible  <bruno@clisp.org>
111981         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111982         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111984 2006-07-24  Bruno Haible  <bruno@clisp.org>
111986         * modules/clean-temp: New file.
111988 2006-07-24  Bruno Haible  <bruno@clisp.org>
111990         * m4/tmpdir.m4: New file, from GNU gettext.
111992 2006-07-24  Bruno Haible  <bruno@clisp.org>
111994         * lib/tmpdir.h: New file, from GNU gettext.
111995         * lib/tmpdir.c: New file, from GNU gettext.
111997 2006-07-24  Bruno Haible  <bruno@clisp.org>
111999         * lib/clean-temp.h: New file, from GNU gettext.
112000         * lib/clean-temp.c: New file, from GNU gettext.
112002 2006-07-23  Eric Blake  <ebb9@byu.net>
112004         * modules/stdio-safer (Files): Add tmpfile-safer.c.
112005         (Depends-on): Add binary-io.
112007 2006-07-23  Eric Blake  <ebb9@byu.net>
112009         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
112011 2006-07-23  Eric Blake  <ebb9@byu.net>
112013         * lib/tmpfile-safer.c: New file.
112014         * lib/stdio-safer.h (fopen_safer): Add prototype.
112015         * lib/stdio--.h (tmpfile): Make safer.
112017 2006-07-23  Bruno Haible  <bruno@clisp.org>
112019         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
112020         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
112021         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
112022         gl_linked_remove_at): Use it.
112024 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112025         and Simon Josefsson <jas@extundo.com>
112027         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
112029         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
112031 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112033         * modules/close-stream: New file.
112034         * modules/closeout (Description): Make it clear that it exits
112035         with a diagnostic on error.
112036         (Depends-on): Add close-stream.  Remove fpending, stdbool.
112037         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
112039 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112041         * m4/close-stream.m4: New file.
112043 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112045         * lib/close-stream.c, lib/close-stream.h: New files.
112047 2006-07-22  Bruno Haible  <bruno@clisp.org>
112049         Merge from GNU gettext 0.15.
112051         2006-05-01  Bruno Haible  <bruno@clisp.org>
112053                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
112055         2006-07-22  Bruno Haible  <bruno@clisp.org>
112057                 * modules/javaversion: New file.
112058                 * MODULES.html.sh (Java): Add javaversion.
112060         2006-03-12  Bruno Haible  <bruno@clisp.org>
112062                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
112064         2005-12-04  Bruno Haible  <bruno@clisp.org>
112066                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
112067                 (untested).
112069         2006-06-21  Bruno Haible  <bruno@clisp.org>
112071                 Avoid warnings from recent versions of mcs.
112072                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
112073                 -o, -L, -r any more. Use options documented since mcs-1.0
112074                 instead. Similarly for -g.
112076         2005-12-04  Bruno Haible  <bruno@clisp.org>
112078                 * build-aux/csharpcomp.sh.in: Suffix for resources is
112079                 .resources, not .resource.
112081         2005-07-09  Bruno Haible  <bruno@clisp.org>
112083                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
112084                 add a .dll suffix.
112085                 Reported by Mark Junker <mjscod@gmx.de>.
112087         2006-07-22  Bruno Haible  <bruno@clisp.org>
112089                 * modules/gettext: Upgrade to gettext-0.15.
112090                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
112091                 m4/visibility.m4.
112092                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
112094 2006-07-22  Bruno Haible  <bruno@clisp.org>
112096         Merge from GNU gettext 0.15.
112098         2006-03-25  Bruno Haible  <bruno@clisp.org>
112100                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
112102         2006-07-21  Bruno Haible  <bruno@clisp.org>
112104                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
112105                 "1.1".
112107         2006-05-09  Bruno Haible  <bruno@clisp.org>
112109                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
112110                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
112111                 for the conftestver execution.
112113         2006-05-01  Bruno Haible  <bruno@clisp.org>
112115                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
112116                 optional target-version argument. Verify that the compiler
112117                 groks source of the specified source-version, or add -source
112118                 option as necessary. Verify that the compiler produces
112119                 bytecode in the specified target-version, or add -target and
112120                 -source options as necessary. Make the result of the test
112121                 available as variable CONF_JAVAC. Also log error output in
112122                 config.log.
112124         2006-03-11  Bruno Haible  <bruno@clisp.org>
112126                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
112128         2006-05-09  Bruno Haible  <bruno@clisp.org>
112130                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
112131                 CLASSPATH_SEPARATOR to a semicolon.
112133         2006-03-12  Bruno Haible  <bruno@clisp.org>
112135                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
112136                 available as variable CONF_JAVA, for subsequent autoconf
112137                 tests. Also log error output in config.log.
112139         2006-07-19  Bruno Haible  <bruno@clisp.org>
112141                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
112142                 that getline works on glibc2 systems. Needed to avoid trouble
112143                 in relocatable.c.
112144                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
112146         2005-12-04  Bruno Haible  <bruno@clisp.org>
112148                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
112149                 launcher (untested).
112151         2005-12-04  Bruno Haible  <bruno@clisp.org>
112153                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
112155         2006-07-22  Bruno Haible  <bruno@clisp.org>
112157                 * gettext.m4: Update from GNU gettext-0.15.
112158                 * nls.m4: Likewise.
112159                 * po.m4: Likewise.
112160                 * inttypes-pri.m4: Likewise.
112161                 * inttypes-h.m4: Renamed from inttypes.m4.
112162                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
112164 2006-07-22  Bruno Haible  <bruno@clisp.org>
112166         Merge from GNU gettext 0.15.
112168         2005-07-05  Bruno Haible  <bruno@clisp.org>
112170                 * printf-args.c (printf_fetchargs): Work around broken
112171                 definition of wint_t on mingw.
112173         2005-02-12  Bruno Haible  <bruno@clisp.org>
112175                 * xallocsa.h: Add extern "C" for C++.
112177         2006-05-17  Bruno Haible  <bruno@clisp.org>
112179                 Cygwin portability.
112180                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
112182         2006-04-30  Bruno Haible  <bruno@clisp.org>
112184                 * progreloc.c: Include <mach-o/dyld.h> if available.
112185                 (find_executable): Use _NSGetExecutablePath when possible.
112187         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112189                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
112190                 function.
112192         2005-12-29  Bruno Haible  <bruno@clisp.org>
112194                 * progreloc.c (set_program_name_and_installdir): Fix
112195                 compilation error.
112197         2005-12-04  Bruno Haible  <bruno@clisp.org>
112199                 Cygwin portability.
112200                 * progreloc.c: Include <windows.h> also on Cygwin.
112201                 (find_executable): Add support for Cygwin.
112202                 (set_program_name_and_installdir): Handle also platforms with
112203                 nonempty EXEEXT.
112205         2006-07-11  Bruno Haible  <bruno@clisp.org>
112207                 * javacomp.c: Fix a comment.
112208                 Reported by Jim Meyering.
112210         2006-04-30  Bruno Haible  <bruno@clisp.org>
112212                 * javacomp.h (compile_java_class): Add source_version,
112213                 target_version arguments.
112214                 * javacomp.c: Rewritten to choose only a compiler that
112215                 respects the specified source_version and target_version.
112217         2006-06-27  Bruno Haible  <bruno@clisp.org>
112219                 Assume correct S_ISDIR macro.
112220                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
112222         2006-07-22  Bruno Haible  <bruno@clisp.org>
112224                 * javaversion.h: New file, from GNU gettext.
112225                 * javaversion.c: New file, from GNU gettext.
112226                 * javaversion.java: New file, from GNU gettext.
112227                 * javaversion.class: New file, from GNU gettext.
112229         2006-05-17  Bruno Haible  <bruno@clisp.org>
112231                 Cygwin portability.
112232                 * javaexec.c (execute_java_class): Test for jview program
112233                 also on Cygwin.
112235         2006-04-09  Bruno Haible  <bruno@clisp.org>
112237                 * fatal-signal.c: Don't include string.h.
112238                 (at_fatal_signal): Use a copying loop instead of memcpy.
112240         2005-12-04  Bruno Haible  <bruno@clisp.org>
112242                 * csharpexec.c: Add support for 'clix' launcher (untested).
112243                 (execute_csharp_using_sscli): New function.
112244                 (execute_csharp_program): Call it.
112246         2006-06-21  Bruno Haible  <bruno@clisp.org>
112248                 Avoid warnings from recent versions of mcs.
112249                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
112250                 -o, -L, -r any more. Use options documented since mcs-1.0
112251                 instead. Similarly for -g.
112253         2005-07-09  Bruno Haible  <bruno@clisp.org>
112255                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
112256                 add a .dll suffix.
112257                 Reported by Mark Junker <mjscod@gmx.de>.
112259         2006-06-17  Bruno Haible  <bruno@clisp.org>
112261                 * config.charset: Update for NetBSD 3.0.
112263         2006-05-17  Bruno Haible  <bruno@clisp.org>
112265                 Cygwin portability.
112266                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
112268         2006-05-16  Bruno Haible  <bruno@clisp.org>
112270                 * localcharset.c [CYGWIN]: Include <windows.h>.
112271                 (get_charset_aliases): For Cygwin, return the same CPxxx
112272                 aliases list as under WIN32.
112273                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
112274                 the environment variables. Fall back to GetACP().
112276         2006-04-05  Bruno Haible  <bruno@clisp.org>
112278                 * config.charset: Update Juan Manuel Guerrero's address.
112280         2005-02-12  Bruno Haible  <bruno@clisp.org>
112282                 * allocsa.h: Add extern "C" for C++.
112284         2005-02-10  Bruno Haible  <bruno@clisp.org>
112286                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
112287                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
112289         2006-07-22  Bruno Haible  <bruno@clisp.org>
112291                 * gettext.h: Update to GNU gettext-0.15.
112293 2006-07-22  Bruno Haible  <bruno@clisp.org>
112295         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
112296         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
112297         lib-prefix.m4, longdouble.m4, ssize_t.m4.
112299 2006-07-21  Eric Blake  <ebb9@byu.net>
112301         * modules/stdlib-safer: New file.
112302         * MODULES.html.sh (File stream based Input/Output): Add
112303         stdlib-safer.
112305 2006-07-21  Eric Blake  <ebb9@byu.net>
112307         * lib/stdlib-safer.h: New file from coreutils, required by
112308         stdlib--.h.
112310 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
112312         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
112314 2006-07-20  Bruno Haible  <bruno@clisp.org>
112316         * gnulib-tool: Recognize new option --assume-autoconf.
112317         (autoconf_minversion): New variable.
112318         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
112320 2006-07-20  Bruno Haible  <bruno@clisp.org>
112322         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
112324 2006-07-19  Derek R. Price  <derek@ximbiot.com>
112326         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
112327         Reindent and repaginate.
112329 2006-07-19  Derek Price  <derek@ximbiot.com>
112331         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
112332         Correct grammar.
112334 2006-07-17  Bruno Haible  <bruno@clisp.org>
112336         * modules/list: New file.
112337         * modules/array-list: New file.
112338         * modules/carray-list, modules/carray-list-tests: New files.
112339         * modules/linked-list, modules/linked-list-tests: New files.
112340         * modules/avltree-list, modules/avltree-list-tests: New files.
112341         * modules/rbtree-list, modules/rbtree-list-tests: New files.
112342         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
112343         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
112344         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
112345         * modules/oset: New file.
112346         * modules/array-oset: New file.
112347         * modules/avltree-oset, modules/avltree-oset-tests: New files.
112348         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
112349         * tests/test-carray_list.c: New file.
112350         * tests/test-linked_list.c: New file.
112351         * tests/test-avltree_list.c: New file.
112352         * tests/test-rbtree_list.c: New file.
112353         * tests/test-linkedhash_list.c: New file.
112354         * tests/test-avltreehash_list.c: New file.
112355         * tests/test-rbtreehash_list.c: New file.
112356         * tests/test-avltree_oset.c: New file.
112357         * tests/test-rbtree_oset.c: New file.
112358         * MODULES.html.sh (Container data structures): New section.
112360 2006-07-17  Bruno Haible  <bruno@clisp.org>
112362         * m4/gl_list.m4: New file.
112364 2006-07-17  Bruno Haible  <bruno@clisp.org>
112366         * lib/gl_list.h: New file.
112367         * lib/gl_list.c: New file.
112368         * lib/gl_array_list.h: New file.
112369         * lib/gl_array_list.c: New file.
112370         * lib/gl_carray_list.h: New file.
112371         * lib/gl_carray_list.c: New file.
112372         * lib/gl_linked_list.h: New file.
112373         * lib/gl_linked_list.c: New file.
112374         * lib/gl_anylinked_list1.h: New file.
112375         * lib/gl_anylinked_list2.h: New file.
112376         * lib/gl_avltree_list.h: New file.
112377         * lib/gl_avltree_list.c: New file.
112378         * lib/gl_anyavltree_list1.h: New file.
112379         * lib/gl_anyavltree_list2.h: New file.
112380         * lib/gl_rbtree_list.h: New file.
112381         * lib/gl_rbtree_list.c: New file.
112382         * lib/gl_anyrbtree_list1.h: New file.
112383         * lib/gl_anyrbtree_list2.h: New file.
112384         * lib/gl_anytree_list1.h: New file.
112385         * lib/gl_anytree_list2.h: New file.
112386         * lib/gl_linkedhash_list.h: New file.
112387         * lib/gl_linkedhash_list.c: New file.
112388         * lib/gl_anyhash_list1.h: New file.
112389         * lib/gl_anyhash_list2.h: New file.
112390         * lib/gl_avltreehash_list.h: New file.
112391         * lib/gl_avltreehash_list.c: New file.
112392         * lib/gl_rbtreehash_list.h: New file.
112393         * lib/gl_rbtreehash_list.c: New file.
112394         * lib/gl_anytreehash_list1.h: New file.
112395         * lib/gl_anytreehash_list2.h: New file.
112397         * lib/gl_oset.h: New file.
112398         * lib/gl_oset.c: New file.
112399         * lib/gl_array_oset.h: New file.
112400         * lib/gl_array_oset.c: New file.
112401         * lib/gl_avltree_oset.h: New file.
112402         * lib/gl_avltree_oset.c: New file.
112403         * lib/gl_rbtree_oset.h: New file.
112404         * lib/gl_rbtree_oset.c: New file.
112405         * lib/gl_anytree_oset.h: New file.
112407 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112409         * m4/mkancesdirs.m4: New file.
112410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112411         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112412         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112413         it.
112415 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112417         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112418         * lib/mkancesdirs.h: New files.
112419         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112420         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112421         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112422         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112423         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112424         callers changed.  Revamp internals significantly, by not
112425         attempting to create directories that are temporarily more
112426         permissive than the final results.  Do not attempt to use
112427         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112428         This removes some race conditions, fixes some bugs, and simplifies
112429         things.  Use new dirchownmod function to do owner and mode changes.
112430         * lib/mkdir-p.h: Likewise.
112431         * lib/modechange.c (octal_to_mode): New function.
112432         (struct mode_change): New member mentioned.
112433         (make_node_op_equals): New arg mentioned.  All callers changed.
112434         (mode_compile): Keep track of which mode bits the user has explicitly
112435         mentioned.
112436         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112437         New arg PMODE_BITS, to keep track of which mode bits the user
112438         mentioned; it treats S_ISUID and S_ISGID speciall.
112439         All callers changed.
112440         * lib/modechange.h: Likewise.
112442 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112444         * MODULES.html.sh: Add mkancestors.
112445         * modules/mkancesdirs: New module.
112446         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112447         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112448         The chdir-safer and afs files are now orphans; I'll remove them
112449         unless someone speaks up.
112450         Add lib/dirchownmod.c, lib/dirchownmod.h.
112451         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112452         Add lchown, mkancesdirs.
112453         (Maintainer): Add self.
112455 2006-07-15  Karl Berry  <karl@gnu.org>
112457         * gnulib-tool: help message wording/arrangement.
112459 2006-07-14  Simon Josefsson  <jas@extundo.com>
112461         * doc/gnulib.texi (Libtool and Windows): New section.
112463 2006-07-12  Simon Josefsson  <jas@extundo.com>
112465         * modules/gendocs (License): Fix license, approved by Karl.
112467 2006-07-12  Eric Blake  <ebb9@byu.net>
112469         * MODULES.html.sh: Add gendocs.
112471 2006-07-11  Eric Blake  <ebb9@byu.net>
112473         * modules/fdl: New module, to install doc/fdl.texi.
112474         * MODULES.html.sh: Add new section for documentation modules.
112475         * gnulib-tool: Avoid space-tab.
112476         (--doc-base): New option, to manage files from doc.
112478 2006-07-11  Eric Blake  <ebb9@byu.net>
112480         * m4/absolute-header.m4: Fix comments to match recent change.
112482 2006-07-11  Eric Blake  <ebb9@byu.net>
112484         * gnulib-tool: List --doc-base before --tests-base.
112486 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112488         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112490 2006-07-11  Bruno Haible  <bruno@clisp.org>
112492         * README: Mention where to put documentation.
112494 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112496         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112498 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112501         to stdint.m4.
112503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112505         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112506         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112507         "no/such/file/stdint.h" when there is no such file, so that
112508         the resulting C code can be parsed by dodgy compilers.
112509         Problems reported by Bob Proulx.
112511 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112513         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112514         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112515         macros into the GNU _D_EXACT_NAMLEN.
112516         * lib/savedir.c:  Likewise.
112517         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112519 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112520         and Paul Eggert  <eggert@cs.ucla.edu>
112522         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112523         * m4/savedir.m4:
112524         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112525         macros into the GNU _D_EXACT_NAMLEN.
112527 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112529         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112530         around the absolute name, to work around a problem with the HP-UX
112531         11.23 native C compiler, reported by Bob Proulx.
112533 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112535         * doc/maintain.texi, make-stds.texi: Sync from
112536         <http://savannah.gnu.org/projects/gnustandards>.
112538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112540         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112542 2006-07-09  Jim Meyering  <jim@meyering.net>
112544         * m4/glob.m4: Remove a doubled word in a comment.
112546 2006-07-09  Jim Meyering  <jim@meyering.net>
112548         * lib/argp-pv.c: Remove a doubled word in a comment.
112549         * lib/check-version.c (check_version): Likewise.
112550         * lib/javacomp.c (compile_java_class): Likewise.
112552 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112554         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112555         for the benefit of people using Autoconf 2.60.  If you want to
112556         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112557         (or m4/onceonly.m4, if pre-2.57) manually.
112559 2006-07-08  Jim Meyering  <jim@meyering.net>
112561         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112562         comment.
112563         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112564         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112565         comment.
112567 2006-07-08  Jim Meyering  <jim@meyering.net>
112569         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112571 2006-07-07  Simon Josefsson  <jas@extundo.com>
112573         * tests/test-crc.c: Change expected crc value, the test vector
112574         were probably computed using the old broken crc.c?
112576 2006-07-06  Simon Josefsson  <jas@extundo.com>
112578         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112579         now the canonical place for the M4 file).
112581         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112582         from the sys_socket dependency now.
112584         * modules/inet_pton (Files): Ditto.
112586         * modules/inet_ntop (Files): Ditto.
112588 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112590         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112591         not gl_PREREQ_GETUSERSHELL.
112593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112595         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112596         with only one argument, for Autoconf 2.60.
112597         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112598         expand to nothing, so add a shell command to avoid syntax error.
112599         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112603         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112605 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112608         no longer needed.  Check for isblank decl.
112609         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112610         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112611         of existence.
112613 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112615         * lib/getloadavg.c: Use __VMS, not VMS.
112616         * lib/getopt.c: Likewise.
112617         * lib/getpagesize.h: Likewise.
112618         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112619         and probably does not work.
112621 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112623         * lib/.cppi-disable: Add wcwidth.
112624         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112625         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112626         (ISGRAPH): Remove.  All uses changed to isgraph.
112627         (FOLD) [!defined _LIBC]: Remove special case.
112628         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112629         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112630         HAVE_ISBLANK.
112631         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112632         case.
112634 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112636         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112637         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112638         brackets.  Other minor changes to suppress some compiler
112639         warnings.
112641 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112642         and Paul Eggert  <eggert@cs.ucla.edu>
112644         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112645         of invoking obsolescent AC_HEADER_DIRENT macro.
112646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112647         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112648         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112650         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112651         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112652         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112653         * m4/readdir.m4: Remove; no longer needed.
112655 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112656         and Paul Eggert  <eggert@cs.ucla.edu>
112658         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112659         Don't worry about this obsolete case any more.
112660         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112661         directories.
112662         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112663         worry about this obsolete case any more.
112664         * lib/fts.c: Likewise.
112665         * lib/getcwd.c: Likewise.
112666         * lib/glob.h: Likewise.
112667         * lib/savedir.c: Likewise.
112669 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112672         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112673         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112674         needed.
112675         All uses removed.
112676         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112677         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112678         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112679         needed.
112680         * m4/getdate.m4 (gl_GETDATE): Likewise.
112681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112685         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112687         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112688         needed.
112690 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112692         * lib/memcasecmp.c: Include <limits.h>.
112693         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112694         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112695         Don't assume isdigit succeeds only on '0' through '9'.
112697 2006-07-05  Eric Blake  <ebb9@byu.net>
112699         * modules/getaddrinfo (Depends-on): Add snprintf.
112701 2006-07-05  Eric Blake  <ebb9@byu.net>
112703         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112704         to avoid 'header present but could not be compiled' on cygwin.
112706 2006-07-05  Eric Blake  <ebb9@byu.net>
112708         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112709         missing from netdb.h.
112710         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112712 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112714         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112715         no longer needed.
112716         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112717         * m4/getdate.m4 (gl_GETDATE): Likewise.
112718         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112719         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112721         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112722         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112724 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112726         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112727         All uses of is_space replaced by isspace.
112728         * lib/exit.h: Don't talk about STDC_HEADERS.
112729         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112730         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112731         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112732         replaced by isprint etc.
112733         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112734         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112735         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112736         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112737         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112738         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112740 2006-07-05  Bruno Haible  <bruno@clisp.org>
112742         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112743         the function exists, before testing against AIX.
112744         Reported by Martin Lambers <marlam@marlam.de>.
112746 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112748         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112749         From Mark D. Baushke.
112751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112754         to the absolute name, not just one, to bypass Sun C 5.8's
112755         "warning: #include of /usr/include/... may be non-portable".
112757 2006-07-04  Eric Blake  <ebb9@byu.net>
112759         * modules/dirname-tests: New test module.
112760         * tests/test-dirname.c: New file, replacing dirname.c
112761         TEST_DIRNAME section that was recently deleted.
112763 2006-07-04  Bruno Haible  <bruno@clisp.org>
112765         Assume ANSI C header files and <ctype.h> functions.
112766         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112767         (mbsnwidth): Use isprint, iscntrl instead.
112769 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112771         Merge from coreutils.
112772         * MODULES.html.sh: Add xstrtold.
112773         * modules/xstrtold: New file.
112774         * modules/cycle-check (Files): Add lib/same-inode.h.
112775         * modules/dirname (Files): Add m4/double-slash-root.m4.
112776         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112777         * modules/mkdir-p (Files): Add lib/same-inode.h.
112778         * modules/same (Files): Add lib/same-inode.h.
112780 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112782         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112783         This is to keep the terminology clean; POSIX talks about
112784         "absolute pathnames", not "full pathnames", but the GNU
112785         Coding Standards say to use "path" for something else;
112786         so use "absolute" to keep both sides happy.
112787         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112788         Set gl_absolute_header, not gl_full_header_path.
112789         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112790         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112791         All uses changed.
112793         Merge from coreutils.
112795         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112797         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
112798         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
112799         want to require the building of c-strtod.o.
112800         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
112801         needs -lm directly.
112802         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
112804         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
112807         --as-needed option if available.  Problem reported by Albert Chin in
112808         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
112809         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
112810         cc merely issues a bunch of annoying warnings for --as-needed
112811         (this problem was reported by Bob Proulx).  Also, try linking with
112812         -lm to detect a bug in binutils 2.16 (this problem was reported
112813         by Ralf Wildenhues).
112815         2006-06-18  Jim Meyering  <jim@meyering.net>
112817         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112818         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112819         macro.
112820         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112821         also check for glibc-2.4's abort-inducing bug.
112823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112824         Low-probability clean-up should be to use rmdir to get rid of
112825         the just-created directory, not unlink.
112827         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112828         configure fail, and request a bug report to inform us about it.
112829         Add a comment that, barring reports to the contrary, in 2007 we'll
112830         assume ftruncate is universally available.
112832         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112834         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112836         2006-03-12  Jim Meyering  <jim@meyering.net>
112838         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112839         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112840         * m4/same.m4 (gl_SAME): Likewise.
112841         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112843         2006-03-11  Eric Blake  <ebb9@byu.net>
112845         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112846         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112847         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112848         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112850 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112852         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112853         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112854         reported by Mark D. Baushke, one in
112855         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112857         Merge from coreutils.
112859         * lib/.cppi-disable: Add stdint_.h.
112860         * lib/.cvsignore: Add stdint.h.
112862         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112864         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112865         both double and long double versions.
112866         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112867         * lib/xstrtold.c: New file.
112868         * lib/xstrtod.h (xstrtold): New decl.
112870         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112872         * lib/filemode.c (setst): Remove.
112873         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112874         (arguably) clearer, and the generated code is a bit smaller on my
112875         Debian GNU/Linux stable x86 host.
112877         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112879         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112880         Assume that filemode.h includes sys/types.h and sys/stat.h.
112881         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112882         (ftypelet): Reorder to put common cases first, for efficiency.
112883         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112884         to do 'M'.
112885         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112886         of 10, for compatibility with FreeBSD.  All callers changed.
112887         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112888         types that can't be deduced solely from st_mode.  First arg is now a
112889         const pointer.
112890         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112891         (strmode): Renamed from mode_string.
112892         (filemodestring): New decl.
112893         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112894         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112895         needed.
112896         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112898         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112900         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112901         fsusage.h now does that.  Include fsusage.h first, to test interface.
112902         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112903         at most one method (the old code could have generated decls that
112904         didn't conform to C89, not that this was ever exercised).
112905         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112907         2006-03-19  Jim Meyering  <jim@meyering.net>
112909         Work even in a chroot where d_ino values for entries in "/"
112910         don't match the stat.st_ino values for the same names.
112911         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112912         number, iterate through all entries again, using lstat instead.
112913         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112914         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112916         * lib/getcwd.c (__getcwd): Clarify a comment.
112917         Use memcpy in place of a call to strcpy.
112919         2006-03-12  Jim Meyering  <jim@meyering.net>
112921         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112922         matches that of the current directory (which we're about to chdir ".."
112923         out of), then save the dev-ino of the parent, instead.
112925         * lib/same-inode.h (SAME_INODE): New file/macro.
112926         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112927         Include "same-inode.h", instead.
112928         * lib/same.c: Likewise.
112929         * lib/cycle-check.h: Include "same-inode.h".
112930         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112931         * lib/cycle-check.c (SAME_INODE): Remove definition.
112932         * lib/root-dev-ino.h: Include "same-inode.h".
112934         2006-03-11  Eric Blake  <ebb9@byu.net>
112936         * lib/same.c (same_name): s/base_name/last_component/
112937         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112938         * lib/filenamecat.c (file_name_concat): Likewise.
112940         2006-03-11  Eric Blake  <ebb9@byu.net>,
112941                     Paul Eggert  <eggert@cs.ucla.edu>
112943         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112944         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112945         drive prefix.
112946         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112947         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112948         (last_component): New method.
112949         * lib/dirname.c (dir_len): Determine when drive letters need a
112950         subsequent slash.  Preserve // when it is special.
112951         (dir_name): Don't append dot when drive letter is absolute.
112952         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112953         * lib/basename.c (base_name): New semantics - malloc the result.
112954         Preserve // when it is special.  Preserve relative files that look
112955         like drive letters.
112956         (base_len): Preserve // when it is special.
112957         (last_component): New method, similar to old base_name semantics.
112958         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112959         base_name.  Strip redundant slashes from ///.
112961 2006-07-03  Jim Meyering  <jim@meyering.net>
112963         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112964         macro is used before the first cycle_check call.
112966 2006-07-03  Eric Blake  <ebb9@byu.net>
112968         * modules/dirname (Depends-on): Add xstrndup.
112970 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112972         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112973         test cases, so that config.log is a bit easier to follow.
112975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112977         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112978         both are 64 bits, since this seems to be the tradition, and this
112979         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112980         we ever run into a host that prefers long long to long in this
112981         case, we'll need another configure-time test.  Problem reported by
112982         Jim Meyering.
112984 2006-07-02  Eric Blake  <ebb9@byu.net>
112986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112988 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112990         * modules/inttypes (Depends-on): No longer depends on stdint.
112991         * modules/stdint (Description): Say more about assumptions.
112992         Say that the fast types might differ.  Say macros are used.
112993         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112994         (Makefile.am): Revise list of substituted symbols to match
112995         new stdint.m4.
112996         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112997         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112998         * tests/test-stdint.c (verify_same_types)
112999         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
113000         the code conforms to C99/C89.
113001         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
113002         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
113004 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
113007         but fix a bug, by requiring at least 64 bits.
113008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
113009         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
113010         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
113011         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113013         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
113014         changes.  Make 2.59 a prerequisite.  Check and substitute for
113015         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
113016         inttypes.h.  Do not use special include files; just use the
113017         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
113018         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
113019         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
113020         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
113021         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
113022         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
113023         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
113024         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
113025         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
113026         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
113027         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
113028         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
113029         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
113030         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
113031         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
113032         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
113033         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
113034         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
113035         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
113036         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
113037         WINT_MAX.  Check for C99 conformance more strictly, by detecting
113038         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
113039         not check for things that C99 does not require, e.g., int8_t.  If
113040         a test isn't needed unless <stdint.h> isn't working, and is
113041         unlikely to be needed for any other reason, then don't do it
113042         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
113043         size_t, since we assume C89 freestanding at least.  Do not check
113044         for sig_atomic_t, wchar_t, or wint_t, since the code now does
113045         the right thing even if the types are not defined.  Instead use:
113046         (gl_STDINT_TYPE_PROPERTIES): New macro.
113047         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
113048         testing whether <sys/types.h> clashes, as Autoconf does this for
113049         us now.  All uses removed.
113050         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
113051         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
113052         (gl_CHECK_TYPE_SAME):
113053         Remove; no longer needed.
113054         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
113055         exists, since we'll return 0 anyway in that case.
113056         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
113058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113060         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
113061         possible collision with system files.
113062         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
113063         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
113064         WCHAR_MIN and WCHAR_MAX in this case.
113065         (<stddef.h>): Do not include; no longer needed.
113066         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
113067         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
113068         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
113069         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
113070         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
113071         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
113072         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
113073         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
113074         !defined(__c99))]: Include in this case too, since it's harmless
113075         now.
113076         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
113077         dangerous to do so.
113078         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
113079         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
113080         (_STDINT_MIN, _STDINT_MAX): New macros.
113081         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
113082         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
113083         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
113084         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
113085         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
113086         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
113087         macros, not typedefs; this simplifies things quite a bit.
113088         Use long int for all types narrower than int64_t.
113089         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
113090         Define in terms of long long int or int64_t or long int,
113091         not int64_t or int32_t.  This saves some compile-time testing.
113092         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
113093         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
113094         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
113095         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
113096         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
113097         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
113098         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
113099         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
113100         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
113101         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
113102         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113103         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113104         undef any previous version and define our own version, for
113105         simplicity and consistency with the new macros for types.
113106         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113107         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113108         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
113109         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
113110         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
113111         @WINT_T_SUFFIX@ to keep things simple here.
113112         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
113113         Simplify by assuming typical 8/16/32/64 host, since we're
113114         already doing that elsewhere anyway.
113115         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
113116         and assume long long int is 64 bits if available.  This
113117         speeds up 'configure'.
113119 2006-07-01  Eric Blake  <ebb9@byu.net>
113121         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
113122         Reported by Andreas Buening.
113124 2006-07-01  Eric Blake  <ebb9@byu.net>
113126         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
113128 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113130         * lib/getaddrinfo.c: fixed typo
113132 2006-06-29  Jim Meyering  <jim@meyering.net>
113134         * modules/strftime (Maintainer): Add my name, since with the
113135         FPRINTFTIME changes strftime.c has forked from glibc.
113137 2006-06-29  Eric Blake  <ebb9@byu.net>
113139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
113141 2006-06-29  Eric Blake  <ebb9@byu.net>
113143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
113145 2006-06-29  Eric Blake  <ebb9@byu.net>
113147         * lib/stat_.h: New file.
113149 2006-06-29  Eric Blake  <ebb9@byu.net>
113151         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
113152         unused static function.
113154 2006-06-29  Eric Blake  <ebb9@byu.net>
113156         * doc/functions.texi (Function Portability): Document missing lstat
113157         on mingw.
113159 2006-06-29  Eric Blake  <ebb9@byu.net>
113161         * MODULES.html.sh: Add sys_stat.
113162         * modules/sys_stat: New module.
113163         * modules/mkstemp (Depends-on): Add sys_stat.
113165 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113167         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
113169 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113171         * m4/c-bs-a.m4: Removed.
113173 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113175         * lib/strftime.c: Assume strftime() exists.
113177 2006-06-29  Derek Price  <derek@ximbiot.com>
113179         * modules/c-bs-a: Removed - \a is C89.
113180         * MODULES.html.sh: Remove c-bs-a.
113182 2006-06-29  Bruno Haible  <bruno@clisp.org>
113184         * modules/wcwidth (License): Change to LGPL.
113186 2006-06-28  Simon Josefsson  <jas@extundo.com>
113188         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
113189         on _WIN32.
113191         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
113192         getnameinfo.
113194 2006-06-28  Simon Josefsson  <jas@extundo.com>
113196         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
113198 2006-06-28  Simon Josefsson  <jas@extundo.com>
113200         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
113201         functions there.  It will succeed on Windows XP, but on Windows
113202         2000 and (presumably) earlier, it will fail, and use the internal
113203         re-implementation.
113204         (use_win32_p): New function.
113205         (getaddrinfo): Use strtoul on servname, to support numeric ports.
113206         Support AI_NUMERICSERV to disable getservbyname.
113207         (getnameinfo): New function, only supports
113208         NI_NUMERICHOST|NI_NUMERICSERV for now.
113210         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
113211         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
113212         getnameinfo.
113214 2006-06-28  Eric Blake  <ebb9@byu.net>
113216         * modules/wcwidth: New file.
113217         * modules/mbchar (Depends-on): Add wcwidth.
113218         * modules/mbswidth (Depends-on): Add wcwidth.
113219         * MODULES.html.sh: Add wcwidth.
113221 2006-06-28  Eric Blake  <ebb9@byu.net>
113223         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
113224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
113226 2006-06-28  Eric Blake  <ebb9@byu.net>
113228         * lib/xvasprintf.h: Fix comments.
113230 2006-06-28  Eric Blake  <ebb9@byu.net>
113232         * lib/mbchar.h (wcwidth): Include wcwidth.h.
113233         * lib/mbswidth.c (wcwidth): Move from here...
113234         * lib/wcwidth.h: ...to this new file.
113236 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113238         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
113240         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
113241         it's obsolete.
113242         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
113244 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113246         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
113247         Autoconf 2.60 says this stuff was obsolete.
113249 2006-06-28  Bruno Haible  <bruno@clisp.org>
113251         * modules/wcwidth (Files): Add m4/wchar_t.m4.
113253 2006-06-28  Bruno Haible  <bruno@clisp.org>
113255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
113256         gt_TYPE_WCHAR_T.
113258 2006-06-28  Bruno Haible  <bruno@clisp.org>
113260         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
113261         declaration for wcwidth.
113262         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
113264 2006-06-28  Bruno Haible  <bruno@clisp.org>
113266         * lib/mkdtemp.c [MINGW]: Include <io.h>.
113267         (mkdir): Define using _mkdir.
113269 2006-06-28  Bruno Haible  <bruno@clisp.org>
113271         * lib/getaddrinfo.h: Fix POSIX URL.
113272         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
113273         _WIN32.
113274         (use_win32_p): Make static.
113275         (getaddrinfo): Reject service name if it is empty or does not consist
113276         solely of decimal digits, or if its value is > 65535.
113277         (getnameinfo): Remove useless casts.
113279 2006-06-27  Simon Josefsson  <jas@extundo.com>
113281         * modules/sys_select: New file, suggested by Bruno Haible, Paul
113282         Eggert and Martin Lambers.
113284 2006-06-27  Simon Josefsson  <jas@extundo.com>
113286         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
113287         Eggert and Martin Lambers.
113289 2006-06-27  Bruno Haible  <bruno@clisp.org>
113291         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
113292         result to 0, not to empty.
113293         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
113295 2006-06-27  Bruno Haible  <bruno@clisp.org>
113297         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
113299 2006-06-26  Simon Josefsson  <jas@extundo.com>
113301         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
113302         present.
113304 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
113306         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
113307         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
113308         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
113310 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
113312         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
113314 2006-06-26  Bruno Haible  <bruno@clisp.org>
113316         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
113318 2006-06-26  Bruno Haible  <bruno@clisp.org>
113320         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
113322 2006-06-26  Bruno Haible  <bruno@clisp.org>
113324         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
113325         SGI C compiler in pre-C99 mode.
113326         Suggested by Mark D. Baushke and Larry Jones.
113328 2006-06-26  Bruno Haible  <bruno@clisp.org>
113330         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
113331         WCHAR_MAX.
113332         Reported by Mark D. Baushke and Larry Jones.
113334 2006-06-26  Bruno Haible  <bruno@clisp.org>
113336         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
113337         in pre-C99 mode.
113338         Suggested by Mark D. Baushke and Larry Jones.
113340 2006-06-23  Simon Josefsson  <jas@extundo.com>
113341             Bruno Haible  <bruno@clisp.org>
113343         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
113344         Emit mostlyclean-local rule.
113345         (func_emit_tests_Makefile_am): Likewise.
113346         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
113348 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
113350         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
113352 2006-06-23  Bruno Haible  <bruno@clisp.org>
113354         * tests/test-stdint.c: Update to match ISO C 99 Technical
113355         Corrigendum 1.
113357 2006-06-23  Bruno Haible  <bruno@clisp.org>
113359         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
113361 2006-06-23  Bruno Haible  <bruno@clisp.org>
113363         * lib/stdint_.h: Treat IRIX like OpenBSD.
113365 2006-06-23  Bruno Haible  <bruno@clisp.org>
113367         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
113368         ISO C 99 Technical Corrigendum 1.
113370 2006-06-22  Simon Josefsson  <jas@extundo.com>
113372         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
113373         MinGW.
113375 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113377         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
113378         needed.  Some compiler complained about some of them.  Problem reported
113379         by Larry Jones in
113380         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113382 2006-06-21  Simon Josefsson  <jas@extundo.com>
113384         * tests/test-getaddrinfo.c: New file.
113386         * modules/getaddrinfo-tests: New file.
113388         * MODULES.html.sh: Add inet_pton.
113390         * modules/inet_pton: New file.
113392 2006-06-21  Simon Josefsson  <jas@extundo.com>
113394         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113395         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113396         of using the (limited) gnulib implementation on Windows XP.
113398         * m4/inet_pton.m4: New file.
113400 2006-06-21  Simon Josefsson  <jas@extundo.com>
113402         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113403         variable.
113405         * lib/socket_.h: Don't define WINVER.
113407         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113408         slightly modified to work in gnulib.
113410 2006-06-21  Simon Josefsson  <jas@extundo.com>
113412         * doc/gnulib.texi (Windows sockets): Add.
113414 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113416         * lib/read-file.c (fread_file): Start with buffer allocation of
113417         0 bytes rather than 1 byte; this simplifies the code.
113418         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113419         code to free buffer and save/restore errno.
113420         (internal_read_file): Remove unused local.
113422 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113424         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113425         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113426         Problem reported by Denis Excoffier in
113427         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113429 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113431         * modules/sys_socket, modules/socklen: Include sys/types since
113432         FreeBSD 4.x's sys/socket.h needs it.
113434 2006-06-19  Simon Josefsson  <jas@extundo.com>
113436         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113438 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113440         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113442 2006-06-19  Bruno Haible  <bruno@clisp.org>
113444         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113445         and FULL_PATH_INTTYPES_H in angle brackets.
113446         Reported by Mark D. Baushke <mdb@gnu.org>.
113448 2006-06-17  Eric Blake  <ebb9@byu.net>
113450         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113451         errno.
113453 2006-06-17  Bruno Haible  <bruno@clisp.org>
113455         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113456         <sys/inttypes.h>.
113458 2006-06-17  Bruno Haible  <bruno@clisp.org>
113460         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113461         whether errno is declared. Assume <errno.h> declares errno.
113463 2006-06-17  Bruno Haible  <bruno@clisp.org>
113465         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113467 2006-06-17  Bruno Haible  <bruno@clisp.org>
113469         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113470         problem on Solaris 2.5.1.
113472 2006-06-16  Eric Blake  <ebb9@byu.net>
113474         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113475         * lib/unicodeio.c [!defined errno]: Likewise.
113476         * lib/strtol.c [!defined errno]: Likewise.
113477         * lib/strtod.c [!defined errno]: Likewise.
113479 2006-06-15  Eric Blake  <ebb9@byu.net>
113481         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113483 2006-06-15  Eric Blake  <ebb9@byu.net>
113485         * config/srclist.txt (ssize_t.m4): Lose sync.
113487 2006-06-15  Bruno Haible  <bruno@clisp.org>
113489         * modules/stdint (Files): Include m4/full-header-path.m4,
113490         m4/size_max.m4, m4/wchar_t.m4.
113491         (Makefile.am): Many more substitutions.
113492         * modules/stdint-tests: New file.
113493         * tests/test-stdint.c: New file.
113495 2006-06-15  Bruno Haible  <bruno@clisp.org>
113497         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113498         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113499         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113500         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113501         gl_CHECK_TYPE_SAME): New macros.
113503 2006-06-15  Bruno Haible  <bruno@clisp.org>
113505         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113507 2006-06-15  Bruno Haible  <bruno@clisp.org>
113509         * lib/stdint_.h: Rewritten to be fully auto-configured.
113510         Fixes bug on HP-UX/IA64.
113512 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113514         * lib/getdate.y (__attribute__): Don't define if already defined.
113515         Problem reported by Larry Jones.
113516         * lib/utimens.c (__attribute__): Likewise.
113518 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113520         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113521         reported by Andreas Schwab.
113523 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113524             Bruno Haible  <bruno@clisp.org>
113526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113527         check for the declaration of strnlen and a run test that exposes the
113528         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113529         rpl_strndup.
113531 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113532             Bruno Haible  <bruno@clisp.org>
113534         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113536 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113538         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113539         compile test, for Tru64 4.0D.
113541 2006-05-28  Karl Berry  <karl@gnu.org>
113543         * config/srclist.txt (printf-args.c): lose sync.
113545 2006-05-26  Martin Lambers  <marlam@marlam.de>
113547         * lib/getpass.c: Updates the test for the native W32 API, and adds
113548         missing includes, thus fixing compilation warnings.
113550 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113552         * lib/exclude.c (exclude_fnmatch): New function.
113553         (excluded_file_name): Call exclude_fnmatch.
113554         * lib/exclude.h (excluded_file_name): New prototype
113556 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113558         * lib/tempname.c (small_open, large_open): New macros.
113559         (__open, __open64) [!_LIBC]: Remove.
113560         (__gen_tempname): Use small_open and large_open instead of __open
113561         and __open64.  This fixes a portability bug on HP-UX 11.11i
113562         reported by Simon Wing-Tang in
113563         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113565 2006-05-24  Bruno Haible  <bruno@clisp.org>
113567         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113568         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113569         Reported by Thorsten Maerz <torte@netztorte.de> via
113570         Aaron Stone <aaron@serendipity.cx>.
113572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113575         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113576         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113577         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113578         not really conditional on the cache.
113579         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113581 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113583         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113584         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113585         (my_usleep): Don't mishandle maximum value.
113587 2006-05-19  Jim Meyering  <jim@meyering.net>
113589         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113591 2006-05-17  Bruno Haible  <bruno@clisp.org>
113593         Cygwin portability.
113594         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113596 2006-05-17  Bruno Haible  <bruno@clisp.org>
113598         * lib/stdint_.h: Fix recognition of Cygwin.
113600 2006-05-15  Bruno Haible  <bruno@clisp.org>
113602         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113603         on libtool patch by Ralf Wildenhues.
113605 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113608         test for C99 conformance; (bool) 0.5 is an integer constant
113609         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113610         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113612 2006-05-11  Simon Josefsson  <jas@extundo.com>
113614         * m4/xvasprintf.m4: Fix obvious typo.
113616 2006-05-11  Jim Meyering  <jim@meyering.net>
113618         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113619         James Lemley.
113621 2006-05-10  Simon Josefsson  <jas@extundo.com>
113623         * lib/md4.c: Typo fix, update copyright years.
113624         (K1, K2): Don't use L because it turn computations into 64-bit on
113625         64-bit platforms.
113627 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113629         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113630         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113631         unwanted sign propagation, e.g., on hosts with 64-bit int.
113632         There still are some problems with reeelly weird theoretical hosts
113633         (e.g., 33-bit int) but it's not worth worrying about now.
113634         * lib/sha1.c (rol): Likewise.
113635         (K1, K2, K3, K4): Remove unnecessary L suffix.
113637 2006-05-10  Bruno Haible  <bruno@clisp.org>
113639         * lib/des.c: Cast to avoid warnings.
113641 2006-05-09  Bruno Haible  <bruno@clisp.org>
113643         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113644         (Depends-on): Depend also on xsize, stdarg.
113645         (configure.ac): Add gl_XVASPRINTF.
113647 2006-05-09  Bruno Haible  <bruno@clisp.org>
113649         * m4/xvasprintf.m4: New file.
113651 2006-05-09  Bruno Haible  <bruno@clisp.org>
113653         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113654         (EOVERFLOW): Define fallback value.
113655         (xstrcat): New function.
113656         (xvasprintf): Recognize the special case of a string concatenation.
113658 2006-05-08  Eric Blake  <ebb9@byu.net>
113660         * gnulib-tool (func_version): Base copyright year on CVS date.
113661         (func_emit_copyright_notice): New function.
113662         (func_emit_lib_Makefile_am): Use it.
113663         (func_emit_tests_Makefile_am): Likewise.
113664         (func_import): Likewise.
113666 2006-05-08  Bruno Haible  <bruno@clisp.org>
113668         * modules/stdarg: New file.
113669         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113671 2006-05-08  Bruno Haible  <bruno@clisp.org>
113673         * m4/stdarg.m4: New file, from GNU gettext.
113675 2006-05-08  Bruno Haible  <bruno@clisp.org>
113677         * config/srclist.txt (build-aux/config.rpath): different from latest
113678         release.
113680 2006-05-08  Bruno Haible  <bruno@clisp.org>
113682         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113684 2006-05-05  Jim Meyering  <jim@meyering.net>
113686         * m4/warning.m4: New file, derived from bison's file by the same name.
113688 2006-05-03  Bruno Haible  <bruno@clisp.org>
113690         * lib/stdint_.h: Shorter URL.
113691         * lib/inttypes.h: Likewise.
113693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113695         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113697 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113699         * lib/verify.h: Document the internals better.  Most of this change
113700         was written by Bruno Haible.
113702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113704         * doc/verify.texi: New file, partly based on a proposal by
113705         Bruno Haible.
113707 2006-05-02  Bruno Haible  <bruno@clisp.org>
113709         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113710         test from here...
113711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113713 2006-04-29  Bruno Haible  <bruno@clisp.org>
113715         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113716         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113718 2006-04-29  Bruno Haible  <bruno@clisp.org>
113720         * gnulib-tool: Make --update option actually work.
113722 2006-04-29  Bruno Haible  <bruno@clisp.org>
113724         * doc/gcd.texi: New file.
113725         * doc/gnulib.texi: Include it.
113727 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113729         * lib/getdate.y (get_date): When adding relative date, start with the
113730         initial time, not with the result of the first mktime call.
113732 2006-04-25  Bruno Haible  <bruno@clisp.org>
113734         * gnulib-tool (func_import): Output the include directives in three
113735         blocks, sorted separately.
113736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113738 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113740         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113741         to define main with arguments, for C++.  Reported by Eric Blake.
113742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113743         Prefer 'int main ()' to 'int main (void)', for C++.
113744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113746         for 'main', for C99 and C++.
113748 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113751         Don't assume that exit status -1 is valid.
113752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113753         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113754         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113755         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113756         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113757         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113758         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113759         functions can be used without declaring them, or that you can
113760         exit with status -1.
113761         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113763 2006-04-24  Karl Berry  <karl@gnu.org>
113765         * config/srclist.txt (longdouble.m4): sync lost.
113767 2006-04-24  Eric Blake  <ebb9@byu.net>
113769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113771 2006-04-24  Bruno Haible  <bruno@clisp.org>
113773         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113774         poll() implementation in AIX.
113775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113777 2006-04-24  Bruno Haible  <bruno@clisp.org>
113779         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113780         assigned exactly once.
113782 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113783             Bruno Haible  <bruno@clisp.org>
113785         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113786         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113787         for AM_CPPFLAGS.
113789 2006-04-23  Bruno Haible  <bruno@clisp.org>
113791         * modules/copy-file: Depend on unistd.
113792         * modules/execute: Likewise.
113793         * modules/fatal-signal: Likewise.
113794         * modules/findprog: Likewise.
113795         * modules/mkdtemp : Likewise.
113796         * modules/pipe: Likewise.
113797         * modules/wait-process: Likewise.
113799 2006-04-23  Bruno Haible  <bruno@clisp.org>
113801         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
113802         condition was already detected.
113803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113805 2006-04-23  Bruno Haible  <bruno@clisp.org>
113807         * lib/copy-file.c: Include <unistd.h> unconditionally.
113808         * lib/execute.c: Likewise.
113809         * lib/fatal-signal.c: Likewise.
113810         * lib/findprog.c: Likewise.
113811         * lib/mkdtemp.c: Likewise.
113812         * lib/pipe.h: Likewise.
113813         * lib/pipe.c: Likewise.
113814         * lib/wait-process.h: Likewise.
113816 2006-04-23  Bruno Haible  <bruno@clisp.org>
113818         * gnulib-tool (func_usage): Fix --import description. Document
113819         --update.
113820         (func_import): Create temporary file in a temporary directory, if
113821         --dry-run is specified. Silence errors from 'grep' when there are no
113822         m4 files in $m4dir.
113823         (func_create_testdir): Silence errors from 'grep' when there are no
113824         m4 files in $m4dir.
113825         Reported by Karl Berry <karl@freefriends.org>.
113827 2006-04-20  Bruno Haible  <bruno@clisp.org>
113829         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113830         one argument, so that the code will be portable to Autoconf 2.60.
113831         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113832         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113833         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113835 2006-04-19  Derek Price  <derek@ximbiot.com>
113836             Eric Blake  <ebb9@byu.net>
113838         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113839         rather than "/full/path.h".  Update comment to match.  Shorten &
113840         generalize m4_translit call via AS_TR_CPP.
113842 2006-04-19  Derek Price  <derek@ximbiot.com>
113843             Eric Blake  <ebb9@byu.net>
113845         * lib/inttypes.h: Correct grammar in comment.
113847 2006-04-18  Derek Price  <derek@ximbiot.com>
113848             Paul Eggert  <eggert@cs.ucla.edu>
113850         * modules/inttypes: New file.
113851         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113853 2006-04-18  Derek Price  <derek@ximbiot.com>
113854             Paul Eggert  <eggert@cs.ucla.edu>
113856         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113857         New files.
113859 2006-04-18  Derek Price  <derek@ximbiot.com>
113860             Paul Eggert  <eggert@cs.ucla.edu>
113862         * lib/inttypes.h: New file.
113863         * lib/strtoimax.c: Assume <inttypes.h>.
113865 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113867         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113868         isn't mounted.  Problem reported by Kir Kolyshkin.
113870 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113872         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113873         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113874         Derek R. Price.
113875         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113876         implementation.
113878 2006-04-12  Eric Blake  <ebb9@byu.net>
113880         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113881         is now done automatically by the corresponding Autoconf macro.
113883 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113885         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113886         time_r.h.
113888 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113890         Merge regex changes from libc, removing some of our
113891         POSIX-conformance changes that were rejected and redoing them in a
113892         less-intrusive way.
113894         * lib/regcomp.c (re_compile_internal, init_dfa):
113895         Length arg is now size_t, not Idx.  All uses changed.
113896         (peek_token): Forward decl now says internal_function.
113897         (__re_error_msgid, __re_error_msgid_idx):
113898         Now static rather than extern with attribute_hidden.
113899         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113900         For some reason libc prefers K&R style defns for external functions.
113901         (regerror) [!defined _LIBC]: Likewise.
113902         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113903         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113904         (build_range_exp, build_collating_symbol):
113905         Use K&R-style defn.
113906         (re_compile_fastmap): Use '\0' to memset, not 0.
113907         (utf8_sb_map): Make the calculations more obvious.
113908         (init_dfa, parse_bracket_exp, build_charclass_op):
113909         Call calloc and cast result, as glibc does.
113910         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113911         (build_range_exp, build_collating_symbol):
113912         Now internal functions.
113914         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113916         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113917         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113918         Don't depend on VMS; depend on __VMS instead, for POSIX
113919         namespace cleanness.
113920         (regoff_t): Define to ssize_t, not long int.
113922         Remove the REG_ macros named below.  Instead, make the old names
113923         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113924         __USE_GNU_REGEX.
113925         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113926         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113927         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113928         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113929         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113930         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113931         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113932         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113933         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113934         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113935         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113936         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113937         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113938         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113939         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113940         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113941         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113942         (REG_NREGS):
113943         Remove.  All uses replaced by the old RE_* names.
113944         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113945         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113946         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113947         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113948         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113949         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113950         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113951         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113952         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113953         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113954         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113955         Don't bother having these macros be independent of each others'
113956         values, since they no longer exist in the POSIX name space.
113958         Rename the following member names back to their old names,
113959         unless !__USE_GNU_REGEX.  All uses changed back.
113960         (buffer): Renamed from re_buffer.
113961         (allocated): Renamed from re_allocated.
113962         (used): Renamed from re_used.
113963         (syntax): Renamed from re_syntax.
113964         (fastmap): Renamed from re_fastmap.
113965         (translate): Renamed from re_translate.
113966         (can_be_null): Renamed from re_can_be_null.
113967         (regs_allocated): Renamed from re_regs_allocated.
113968         (fastmap_accurate): Renamed from re_fastmap_accurate.
113969         (no_sub): Renamed from re_no_sub.
113970         (not_bol): Renamed from re_not_bol.
113971         (not_eol): Renamed from re_not_eol.
113972         (newline_anchor): Renamed from re_newline_anchor.
113973         (num_regs): Renamed from rm_num_regs.
113974         (start): Renamed from rm_start.
113975         (end): Renamed from rm_end.
113977         (free_state): Move up a bit.
113979         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113980         #define to be empty.
113981         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113982         when that is what is intended.
113983         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113984         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113985         (MAX): New macro.
113986         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113987         All uses changed back to re_malloc, etc.  It's now the caller's
113988         responsibility to check for overflow; all callers changed.
113989         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113990         (re_x2nrealloc): Remove.
113991         (free_state): Remove decl.
113993         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113994         (re_set_registers, re_exec):
113995         Use K&R-style defn.
113997         2006-01-31  Roland McGrath  <roland@redhat.com>
113999         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
114000         Reported by Mike Frysinger <vapier@gentoo.org>.
114002         2006-01-15  Andreas Jaeger  <aj@suse.de>
114004         [BZ #1950]
114005         * lib/regex_internal.c (re_string_reconstruct): Adjust for
114006         build_wcs_upper_buffer change.
114007         (build_wcs_upper_buffer): Change return type.
114009         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
114011         * lib/regex_internal.h: Include <stdint.h> if available.
114013         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
114015         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
114017         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
114019         * lib/regcomp.c: Adjust for changed secondary hash function.
114021         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
114023         * lib/regex.h: Pretty printing.
114024         Clean up namespace a bit.
114026         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
114028         * lib/regexec.c (update_cur_sifted_state, check_arrival,
114029         check_arrival_add_next_nodes): Avoid using uninitialized variable.
114031         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114032                     Ulrich Drepper  <drepper@redhat.com>
114034         [BZ #1302]
114035         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
114036         changed.
114037         (bitset_word_t): Renamed from bitset_word.  All uses changed.
114039         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
114041         [BZ #281]
114042         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
114043         * lib/regcomp.c: Remove unnecessary uses of
114044         unsigned RE_TRANSLATE_TYPE.
114045         * lib/regex_internal.h: Likewise.
114046         * lib/regex_internal.c: Likewise.
114047         * lib/regexec.c: Likewise.
114048         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
114050         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
114052         * lib/regexec.c (find_recover_state): Remove unnecessary
114053         initialization.
114054         (transit_state_bkref): Make DFA a const pointer.
114055         (get_subexp): Likewise.
114056         (check_arrival): Likewise.
114057         (update_cur_sifted_state): Likewise.
114058         (re_search_internal): Likewise.
114059         (prune_impossible_nodes): Likewise.
114060         (acquire_init_state_context): Likewise.
114061         (proceed_next_node): Likewise.
114062         (set_regs): Likewise.
114063         (free_fail_stack_return): Likewise.
114064         (check_arrival_expand_ecl): Mark DFA parameter as const.
114065         (check_arrival_expand_ecl_sub): Likewise.
114066         (check_subexp_limits): Likewise.
114067         (sub_epsilon_src_nodes):  Likewise.
114068         (add_epsilon_src_nodes):  Likewise.
114069         (merge_state_array): Likewise.
114070         (update_regs): Likewise.
114071         (build_trtable): Likewise.
114072         (sift_states_backward): Mark MCTX parameter as const.
114073         (build_sifted_states): Likewise.
114074         (update_cur_sifted_state): Likewise.
114075         (sift_states_mkref): Likewise.
114076         (check_arrival_expand_ecl): Mark eclosure as const.
114077         (check_dst_limits_calc_pos_1): Likewise.
114078         * lib/regex_internal.h (re_match_context_t): Make dfa a const
114079         pointer.
114081         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
114083         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
114084         (transit_state_sb): Likewise.
114085         (transit_state_mb): Likewise.
114086         (sift_states_iter_mb): Likewise.
114087         (check_arrival_add_next_nodes): Likewise.
114088         (check_node_accept_bytes): Change first parameter to pointer-to-const.
114089         [_LIBC] (re_search_2_stub): Use mempcpy.
114091         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
114092         mbrtowc for very simple UTF-8 case.
114094         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
114095         a pointer-to-const.
114096         (re_acquire_state_context): Likewise.
114097         * lib/regex_internal.h: Adjust prototypes.
114099         * lib/regex.c: Prevent using C++ compilers.
114101         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
114102         (re_acquire_state_context): Likewise.
114104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114106         * modules/regex (Depends-on): Add ssize_t.
114108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114110         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
114111         translation table.
114113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114115         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
114117 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
114118             Bruno Haible  <bruno@clisp.org>
114120         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
114121         <sys/types.h> and <inttypes.h>.
114123 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114125         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
114126         `__error_t_defined', so argp.h will not typedef the former.
114128 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
114130         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
114131         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
114132         glibc names.  Even if glibc is changed to conform to POSIX, the
114133         traditional names will be available anyway, since regex depends on
114134         the extensions module.  Also, fix a longstanding typo in the
114135         implementation of Spencer ERE test #75 from grep 2.3.  Problems
114136         reported by Emanuele Giaquinta.  Also, change sense of cached
114137         variable, so that the message makes sense.
114139 2006-03-24  Simon Josefsson  <jas@extundo.com>
114141         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
114142         including some doc fixes.
114143         (base64_encode_alloc): Fix +1 bug on allocation failures.
114145 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114147         * lib/base64.c (base64_encode): Do not read past end of array with
114148         unsanitized input on systems with CHAR_BIT > 8.
114150 2006-03-24  Eric Blake  <ebb9@byu.net>
114152         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
114154 2006-03-22  Karl Berry  <karl@gnu.org>
114156         * config/srclist.txt (*setenv.[ch]): get from coreutils.
114157         * config/srclistvars.sh (COREUTILS): new var.
114159 2006-03-17  Jim Meyering  <jim@meyering.net>
114161         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
114162         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
114164 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114166         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
114167         no longer needs it.  Instead, check that regoff_t is as least
114168         as wide as ptrdiff_t.
114170         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
114171         so that our regex.h stays compatible with the installed regex.
114172         This is helpful for installers who configure --without-included-regex.
114173         Problem reported by Emanuele Giaquinta.
114175 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114177         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
114178         Typedef to long int, not to off_, as POSIX will likely change
114179         in that direction.
114181 2006-03-15  Eric Blake  <ebb9@byu.net>
114183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
114185 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114187         * lib/argp-help.c (validate_uparams): Fix typo
114188         * lib/argp-parse.c (argp_default_options): Consistently begin help
114189         messages with a lowercase letter.
114191 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
114193         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
114194         overrun buffers and shouldn't be used (much as gets shouldn't be
114195         used).
114196         * lib/time_r.c (asctime_r, ctime_r): Likewise.
114198 2006-03-08  Simon Josefsson  <jas@extundo.com>
114200         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
114201         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114203 2006-03-08  Simon Josefsson  <jas@extundo.com>
114205         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
114206         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114208 2006-03-08  Simon Josefsson  <jas@extundo.com>
114210         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
114211         signal that configure disabled the device.
114213 2006-03-08  Simon Josefsson  <jas@extundo.com>
114215         * build-aux/maint.mk: Fix refresh-po, to handle no translated
114216         languages.
114218 2006-03-07  Simon Josefsson  <jas@extundo.com>
114220         * modules/getopt (Depends-on): Add unistd.
114222         * modules/unistd: New file.
114224 2006-03-07  Simon Josefsson  <jas@extundo.com>
114226         * modules/gc-random: New file.
114228 2006-03-07  Simon Josefsson  <jas@extundo.com>
114230         * m4/unistd_h.m4: New file.
114232 2006-03-07  Simon Josefsson  <jas@extundo.com>
114234         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
114235         test to be side-effect free by storing the result in the cache
114236         variable gl_cv_lib_readline, and moving the assignment of
114237         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
114238         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114240 2006-03-07  Simon Josefsson  <jas@extundo.com>
114242         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
114243         error on missing devices (the functions will return an error).
114245         * m4/gc.m4: Move random stuff to gc-random.m4
114247 2006-03-07  Simon Josefsson  <jas@extundo.com>
114249         * lib/unistd_.h: New file.
114251 2006-03-07  Simon Josefsson  <jas@extundo.com>
114253         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
114255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114257         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
114258         Problem reported by Juan Manuel Guerrero.
114260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114262         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
114263         the unistd module.
114264         * lib/getlogin_r.c: Likewise.
114265         * lib/getlogin_r.h: Likewise.
114266         * lib/glob.c: Likewise.
114267         * lib/pagealign_alloc.c: Likewise.
114268         * lib/unistd_.h: Remove; no longer needed.
114270 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114272         * MODULES.html.sh (Support for systems lacking POSIX:2001):
114273         Add unistd.
114274         * modules/c-stack (Depends-on): Add unistd.
114275         * modules/getlogin_r: Likewise.
114276         * modules/glob: Likewise.
114277         * modules/pagealign_alloc: Likewise.
114278         * modules/unistd (Files): Remove lib/unistd_.h.
114279         (EXTRA_DIST): Remove.
114280         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
114281         need unistd_.h.
114282         (MOSTLYCLEANFILES): Remove unistd.h-t.
114284 2006-03-03  Simon Josefsson  <jas@extundo.com>
114286         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
114288 2006-03-03  Simon Josefsson  <jas@extundo.com>
114290         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
114291         libidn and bison.
114293 2006-03-03  Simon Josefsson  <jas@extundo.com>
114295         * build-aux/maint.mk: Add indent target.
114297 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
114299         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
114300         our replacement poll.h in any case, to avoid a differing
114301         declaration from a system header.  Seen on AIX.
114303 2006-03-01  Simon Josefsson  <jas@extundo.com>
114305         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
114306         <kasal@ucw.cz>.
114308 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114310         * modules/gettime (Depends-on): Add extensions module.
114311         * modules/nanosleep (Depends-on): Likewise.
114312         * modules/settime (Depends-on): Likewise.
114314 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114316         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
114317         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
114318         pedantically.
114319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114320         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
114322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
114323         not "==".  Reported by Ralf Wildenhues.
114325 2006-03-01  Karl Berry  <karl@gnu.org>
114327         * doc/Copyright/request-*: new files, synced from gnuorg.
114329 2006-03-01  Karl Berry  <karl@gnu.org>
114331         * config/srclist.txt (Copyright/*): new entries.
114333 2006-02-28  Simon Josefsson  <jas@extundo.com>
114335         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
114337 2006-02-27  Simon Josefsson  <jas@extundo.com>
114339         * lib/base64.h: Indent #define's.  From Jim Meyering
114340         <jim@meyering.net>.
114342 2006-02-27  Jim Meyering  <jim@meyering.net>
114344         Revert the change of 2006-02-24, so these files can continue
114345         to be sync'd from gettext.
114346         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
114347         of `config.h'.
114349 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114351         * modules/intprops: New file.
114352         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
114353         Add intprops.
114354         * modules/getloadavg (Files): Remove lib/intprops.h.
114355         (Depends-on): Add intprops.
114356         * modules/human: Likewise.
114357         * modules/inttostr: Likewise.
114358         * modules/openat: Likewise.
114359         * modules/sig2str: Likewise.
114360         * modules/userspec: Likewise.
114361         * modules/utimecmp: Likewise.
114362         * modules/xnanosleep: Likewise.
114363         * modules/xstrtol: Likewise.
114365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
114367         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
114368         * modules/lock-tests (TESTS): Use $(EXEEXT).
114369         * modules/tls-tests: Likewise.
114370         * modules/argp-tests: Likewise.
114371         (check_PROGRAMS): New var, replacing...
114372         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
114374 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114376         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
114377         `config.h'.
114379 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114381         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114383 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114385         Sync from coreutils.
114386         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114387         gl_CHDIR_SAFER.
114389 2006-02-22  Jim Meyering  <jim@meyering.net>
114391         Sync from coreutils.
114392         * m4/chdir-safer.m4: New file.
114394 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114396         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114397         AT_FDCWD exceeds INT_MAX.
114398         * lib/openat.h (AT_FDCWD): Likewise.
114400 2006-02-17  Eric Blake  <address@hidden>
114402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114404 2006-02-16  Simon Josefsson  <jas@extundo.com>
114406         * modules/getaddrinfo (Depends-on): Add sys_socket.
114408 2006-02-15  Simon Josefsson  <jas@extundo.com>
114410         * build-aux/maint.mk: Add dsyntax-check rule.
114412 2006-02-15  Eric Blake  <ebb9@byu.net>
114414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114415         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114416         'present but cannot compile' warnings on cygwin.
114417         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114418         use ws2tcpip.h if sys/socket.h works.
114419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114420         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114422 2006-02-14  Simon Josefsson  <jas@extundo.com>
114424         * modules/maintainer-makefile (Files): Rename.
114426         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114427         and (the local) Makefile.cfg to maint-cfg.mk.
114429         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114430         to the latter.
114432         * modules/maintainer-makefile: New module.
114434         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114435         severaly stripped to make it possible to build it up from scratch
114436         with reliable tests.
114438         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114439         fixes to permit overriding the default actions when configure and
114440         makefile are not available.
114442 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114444         Sync from coreutils.
114445         * modules/lstat (Depends-on): Don't depend on xalloc.
114446         (License): Change from GPL to LGPL, since this is now simply a
114447         replacement for a libc function.
114449 2006-02-14  Jim Meyering  <jim@meyering.net>
114451         Sync from coreutils.
114453         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114454         failure on deficient systems, and simplify gnulib lgpl dependencies.
114455         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114456         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114458         * lib/xalloc-die.c: Remove unused definition of N_.
114460 2006-02-14  Jim Meyering  <jim@meyering.net>
114462         Sync from coreutils.
114463         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114464         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114465         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114466         double-quote uses of that variable, to accommodate the rare case in
114467         which getmntent is available in none of the libraries checked.  This
114468         happens at least on FreeBSD 5.0.
114470 2006-02-13  Simon Josefsson  <jas@extundo.com>
114472         * gnulib-tool (Usage): Fix --import, from
114473         karl@freefriends.org (Karl Berry).
114475 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114477         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114479 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114481         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114482         "autoupdate" on 2005-12-12.
114484 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114486         * modules/closeout (Depends-on): Remove atexit.
114488 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114490         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114491         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114493 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114496         __EXTENSIONS__ if this causes compilation to fail.  Problem
114497         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114498         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114500 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114502         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114503         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114504         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114505         All uses changed.
114507 2006-01-26  Simon Josefsson  <jas@extundo.com>
114509         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114510         prototype is visible on mingw32.
114512         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114513         for mingw32.
114515         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114516         mingw32).
114518 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114520         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114521         attempt to open for write; this always fails, at least on POSIX
114522         hosts.  This reinstates the 2006-01-09 change, which was
114523         inadvertently removed.
114525 2006-01-26  Bruno Haible  <bruno@clisp.org>
114527         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114528         Reported by Paul Eggert.
114530 2006-01-26  Bruno Haible  <bruno@clisp.org>
114531             Paul Eggert  <eggert@cs.ucla.edu>
114533         * lib/stdbool_.h (_Bool)
114534         [(! (defined __cplusplus || defined __BEOS__)
114535           && !defined __GNUC__
114536           && !(defined __HP_cc || defined __xlc__
114537                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114538                || defined __sgi))]:
114539         #define to signed char in these cases too; this simplifies
114540         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114541         etc., separately) and makes it more conservative.
114543 2006-01-25  Simon Josefsson  <jas@extundo.com>
114545         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114546         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114547         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114549 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114551         * lib/argp-namefrob.h: Bugfix. Remove stray #
114553 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114556         so that we test the test.
114557         Check for yet another HP-UX cc bug involving *bool |= bool.
114559 2006-01-25  Karl Berry  <karl@gnu.org>
114561         * config/srclist.txt (vasnprintf.c): sync lost.
114563 2006-01-25  Jim Meyering  <jim@meyering.net>
114565         Sync from the stable (b5) branch of coreutils:
114567         * lib/fts.c (fts_children): Don't let close() clobber errno from
114568         failed fchdir().
114570         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114571         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114572         a dangling symlink.  That can also happen at least for ELOOP.
114573         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114574         FYI, this bug predates the inclusion of fts.c in coreutils.
114576         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114577         in their own block, so pre-c99 compilers don't object.
114579         Avoid the double-free (first in fts_read, second in fts_close) that
114580         would occur when an `active' directory is made inaccessible (e.g.,
114581         via chmod a-x) during a traversal.
114582         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114583         before returning.  Reproduce this failure by
114584         mkdir -p a/b; cd a; chmod a-x . b
114585         Reported by Stavros Passas.
114587 2006-01-25  Jim Meyering  <jim@meyering.net>
114589         * lib/fileblocks.c: Remove more useless parentheses.
114590         * lib/readutmp.h: Likewise.
114592 2006-01-25  Bruno Haible  <bruno@clisp.org>
114594         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114595         warnings.
114596         Reported by Paul Eggert.
114598 2006-01-25  Bruno Haible  <bruno@clisp.org>
114600         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114601         rid of a trap command. For Solaris sh.
114602         Reported by Mark D. Baushke <mdb@gnu.org>.
114604 2006-01-24  Simon Josefsson  <jas@extundo.com>
114606         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114607         Bruno.
114609 2006-01-24  Karl Berry  <karl@gnu.org>
114611         * config/srclist.txt (argp-namefrob.h): sync lost.
114613 2006-01-24  Jim Meyering  <jim@meyering.net>
114615         * modules/openat (Files): Add lib/intprops.h.
114616         From Mark D. Baushke.
114618 2006-01-24  Jim Meyering  <jim@meyering.net>
114620         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114621         Reported by Mark D. Baushke.
114623 2006-01-24  Jim Meyering  <jim@meyering.net>
114625         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114627 2006-01-24  Bruno Haible  <bruno@clisp.org>
114629         * modules/strnlen (Maintainer): Change from glibc to all.
114631 2006-01-24  Bruno Haible  <bruno@clisp.org>
114633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114634         Patch by Paul Eggert.
114636 2006-01-24  Bruno Haible  <bruno@clisp.org>
114638         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114639         already has it.
114640         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114641         2005-11-26.
114643         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114644         'signed char' to avoid problems with the built-in _Bool type.
114645         Reported by Paul Eggert on 2005-11-26.
114647 2006-01-24  Bruno Haible  <bruno@clisp.org>
114649         * gnulib-tool (func_import): Avoid constructing complicated sed
114650         expressions inside backquote.
114651         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114653 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114655         These changes imported from libc.
114656         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114657         test and two separate function calls.
114658         * lib/strndup.c (__strndup): Add libc_hidden_def.
114660 2006-01-23  Simon Josefsson  <jas@extundo.com>
114662         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114663         Remove the test_*_SOURCES variable: automake infers it by default.
114664         * modules/tls-tests: Likewise.
114666 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114668         Work around porting bugs reported by Dieter in
114669         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114670         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114671         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114672         Include "getopt.h" first, to check interface.
114673         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114674         !HAVE_DECL_GETENV.
114675         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114676         (__strndup): Revert to K&R-style function dfns, the glibc style.
114677         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114678         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114679         Include strnlen.h first, to get prototype properly.
114680         (strnlen): Renamed from __strnlen.
114681         Remove weak alias.
114683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114685         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114687 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114689         * config/srclist.txt: Adjust to reflect glibc reorganization.
114690         This affects only comments.
114692 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114694          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114695          Reported by Bruce Korb <bkorb@gnu.org>.
114697 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114699         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114700         to pacify gcc -Wswitch-default.
114702 2006-01-22  Bruno Haible  <bruno@clisp.org>
114704         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114705         temporary buffer for sprintf, take into account the precision also
114706         for 'd', 'i', 'u', 'o', 'x', 'X'.
114708 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114710         * modules/argp-tests: New module
114711         * tests/test-argp.c: New file
114712         * tests/test-argp-2.sh: New file
114714 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114716         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114717         (__argp_base_name): Removed
114718         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114719         typo.
114720         (__argp_base_name): Provide macro definition or extern declaration
114721         depending on the configuration
114723 2006-01-20  Simon Josefsson  <jas@extundo.com>
114725         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114727 2006-01-20  Simon Josefsson  <jas@extundo.com>
114729         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114731 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114733         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114734         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114735         Suggested by Bruno Haible.
114737 2006-01-20  Karl Berry  <karl@gnu.org>
114739         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114740         until changes propagate, I guess.
114742 2006-01-19  Simon Josefsson  <jas@extundo.com>
114744         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114746 2006-01-19  Simon Josefsson  <jas@extundo.com>
114748         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114750 2006-01-19  Simon Josefsson  <jas@extundo.com>
114752         * gnulib-tool: Set check_PROGRAMS.
114754         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114755         modules/des-tests, modules/gc-arcfour-tests,
114756         modules/gc-arctwo-tests, modules/gc-des-tests,
114757         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114758         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114759         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114760         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114761         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114762         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114763         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114764         test_*_SOURCES.
114766 2006-01-18  Simon Josefsson  <jas@extundo.com>
114768         * modules/socklen (Depends-on): Depend on sys_socket.
114770 2006-01-18  Simon Josefsson  <jas@extundo.com>
114772         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114773         modules/des-tests, modules/gc-arcfour-tests,
114774         modules/gc-arctwo-tests, modules/gc-des-tests,
114775         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114776         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114777         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114778         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114779         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114780         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114781         $(EXEEXT) to automake TESTS variable, for mingw32.
114783 2006-01-17  Simon Josefsson  <jas@extundo.com>
114785         * modules/socklen (Include): Need sys/socket.h.
114787 2006-01-17  Bruno Haible  <bruno@clisp.org>
114789         * modules/ssize_t (Include): Add <sys/types.h>.
114791 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
114793         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
114794         it's not portable and it doesn't work with cross-compiles.
114795         Problem reported by Bruno Haible.  Fix missing-$ typo in
114796         'test "gl_cv_ignore_unused_libraries" ...' that prevented
114797         -zignore from being used with Sun's C compiler.
114799 2006-01-12  Simon Josefsson  <jas@extundo.com>
114801         * lib/base64.c: Fix warning, reported by Bruno Haible
114802         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
114804 2006-01-12  Bruno Haible  <bruno@clisp.org>
114806         * modules/ldd: New file.
114807         * build-aux/ldd.sh.in: New file.
114808         * MODULES.html.sh (Support for building libraries and executables): Add
114809         ldd.
114811 2006-01-12  Bruno Haible  <bruno@clisp.org>
114813         * m4/ldd.m4: New file.
114815 2006-01-12  Bruno Haible  <bruno@clisp.org>
114817         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114818         endless loop while replacing $auxdir with build-aux.
114820 2006-01-11  Simon Josefsson  <jas@extundo.com>
114822         * lib/stdint_.h (SIZE_MAX): Add missing (.
114824 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114826         Sync from coreutils.
114827         * lib/md5.c: Fix commentary typos.
114828         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114829         * lib/md5.h (__attribute__): Remove; unused.
114830         * lib/sha1.c: Fix commentary to match md5 better.
114831         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114832         so that we don't need to worry about alignment.  All uses changed.
114833         This merges the 2005-10-28 md5 change into sha1.
114835 2006-01-11  Jim Meyering  <jim@meyering.net>
114837         Sync from coreutils.
114838         * lib/md5.c (OP): Fix spacing.
114840 2006-01-11  Bruno Haible  <bruno@clisp.org>
114842         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114843         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114844         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114846 2006-01-11  Bruno Haible  <bruno@clisp.org>
114848         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114849         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114850         the "early" section as well.
114852 2006-01-11  Bruno Haible  <bruno@clisp.org>
114854         Avoid "ar: no archive members specified" error on MacOS X.
114855         * gnulib-tool (func_modules_add_dummy): New function.
114856         (func_import, func_create_testdir): Invoke it.
114858 2006-01-11  Bruno Haible  <bruno@clisp.org>
114860         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114861         with $auxdir in AC_CONFIG_FILES statements.
114863 2006-01-11  Bruno Haible  <bruno@clisp.org>
114865         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114866         Initialize also noinst_HEADERS to empty.
114868 2006-01-11  Bruno Haible  <bruno@clisp.org>
114870         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114871         variables.
114872         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114873         autoreconf.
114875 2006-01-11  Bruno Haible  <bruno@clisp.org>
114877         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114878         overridable by the user.
114879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114881 2006-01-10  Simon Josefsson  <jas@extundo.com>
114883         * modules/sys_socket: New file.
114885 2006-01-10  Simon Josefsson  <jas@extundo.com>
114887         * m4/sys_socket_h.m4: New file.
114889 2006-01-10  Simon Josefsson  <jas@extundo.com>
114891         * lib/socket_.h: New file.
114893 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114895         * modules/readutmp (Maintainer): Add myself.
114897 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114899         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114900         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114901         People who are still concerned with buggy memcmp implementations
114902         can invoke gl_FUNC_MEMCMP themselves.
114904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114906         * lib/regex_internal.h (BITSET_WORD_BITS):
114907         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114908         preprocessor mishandles large unsigned values as if they were signed.
114909         Problem reported by Claudio Fontana in
114910         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114912 2006-01-10  Jim Meyering  <jim@meyering.net>
114914         Avoid the double-free (first in fts_read, second in fts_close) that
114915         would occur when an `active' directory is made inaccessible (e.g.,
114916         via chmod a-x) during a traversal.
114917         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114918         before returning.  Reproduce this failure by
114919         mkdir -p a/b; cd a; chmod a-x . b
114920         Reported by Stavros Passas.
114922         Sync from coreutils.
114923         * lib/sha1.c: Tweak grammar in a comment.
114925 2006-01-10  Jim Meyering  <jim@meyering.net>
114927         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114928         Patch by Joerg Sonnenberger.
114930 2006-01-10  Bruno Haible  <bruno@clisp.org>
114932         * modules/readutmp: Depend on module free.
114933         * modules/strtok_r: Depend on module restrict.
114935 2006-01-10  Bruno Haible  <bruno@clisp.org>
114937         * modules/gettext (configure.ac): Add an invocation of
114938         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114940 2006-01-10  Bruno Haible  <bruno@clisp.org>
114942         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114943         Reported by Werner Lemberg <wl@gnu.org>.
114945 2006-01-10  Bruno Haible  <bruno@clisp.org>
114947         * lib/localcharset.c: Update from GNU gettext.
114949 2006-01-10  Bruno Haible  <bruno@clisp.org>
114951         * lib/argp.h (__const): Remove macro. Use const instead.
114952         * lib/argp-fmtstream.h (__const): Likewise.
114953         * lib/glob_.h (__const): Remove macro.
114954         * lib/glob-libc.h: Use const instead of __const.
114956 2006-01-10  Bruno Haible  <bruno@clisp.org>
114958         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114959         variable.
114960         Needed to avoid an automake error regarding the 'gettext' module.
114962 2006-01-09  Simon Josefsson  <jas@extundo.com>
114964         * modules/inet_ntop (Depends-on): Add restrict.
114966 2006-01-09  Simon Josefsson  <jas@extundo.com>
114968         * modules/gc-rijndael-tests (License): Put under LGPL.
114970         * modules/gc-des-tests (License): Likewise.
114972         * modules/gc-arcfour-tests (License): Likewise.
114974         * modules/gc-arctwo-tests (License): Likewise.
114976         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114978         * modules/gc-hmac-sha1-tests (Files): Likewise.
114980         * modules/gc-hmac-md5-tests (License): Likewise.
114982         * modules/gc-sha1-tests (License): Likewise.
114984         * modules/gc-md5-tests (License): Likewise.
114986         * modules/gc-md4-tests (License): Likewise.
114988         * modules/gc-md2-tests (License): Likewise.
114990         * modules/gc-tests (License): Likewise.
114992         * modules/des-tests (License): Likewise.
114994         * modules/md4-tests (License): Likewise.
114996         * modules/md2-tests (License): Likewise.
114998 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115000         Sync from coreutils:
115002         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
115003         * modules/lib-ignore: New file.
115004         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
115005         chdir-safer.m4, lchmod.m4.
115006         * modules/openat: Add mkdirat.c, openat-priv.h.
115008 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115010         Sync from coreutils.
115011         * m4/lib-ignore.m4: New file.
115012         * m4/lchmod.m4: New file.
115014 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115016         Sync from coreutils.
115017         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
115018         for write access: POSIX says that must fail.
115019         * lib/fts.c (diropen): Likewise.
115020         * lib/save-cwd.c (save_cwd): Likewise.
115021         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
115022         well, for minor improvements on hosts that lack O_DIRECTORY.
115023         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
115024         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
115025         Fall back on chown if open failed with EACCES.
115027         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
115028         Report an error at compile-time if only a 1-second nominal clock
115029         resolution is found.
115031         * lib/lchmod.h: New file.
115032         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
115033         (make_dir_parents): Use lchown rather than chown, and
115034         lchmod rather than chmod.
115036         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
115037         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
115038         "proc" reported by n0dalus.
115040         * lib/mountlist.c: Include <limits.h>.
115041         (dev_from_mount_options)
115042         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
115043         New function.  It no longer assumes "dev=" has the System V meaning
115044         on Linux (since it doesn't).  It also parses "dev=" more carefully.
115045         (read_file_system_list)
115046         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
115047         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
115048         dev= in that case.
115050         * lib/posixtm.h (PDS_PRE_2000): New macro.
115051         * lib/posixtm.c (year): Arg is now syntax_bits rather than
115052         allow_century.  All usages changed.  Reject dates outside the range
115053         1969-1999 if PDS_PRE_2000 is used.
115055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115057         Sync from coreutils.
115058         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
115059         (Time of day items): Mention the possibility of leap seconds.
115060         Problem reported by Dr. David Alan Gilbert.
115062 2006-01-09  Jim Meyering  <jim@meyering.net>
115064         Sync from coreutils.
115066         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
115068         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
115070         * lib/modechange.c (mode_compile): Reject an invalid mode string
115071         that starts with an octal digit.  From Andreas Gruenbacher.
115073         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
115074         and dup to open_safer and dup_safer, respectively.
115075         (openat_permissive): Fix typo in comment.
115077         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
115078         "gettext.h"; either no longer needed or are guaranteed by openat.h.
115079         (_): Remove; no longer needed.
115080         (openat): Renamed from rpl_openat; no need for rpl_openat
115081         since openat.h renames openat for us.
115082         Replace most of the body with a call to openat_permissive,
115083         to avoid duplicate code.
115084         Port to (probably hypothetical) environments were mode_t is
115085         wider than int.
115086         (openat_permissive): Require mode arg, so that we can check
115087         types better.  Put it just after flags.  Change cwd failure
115088         indicator from pointer-to-bool to pointer-to-errno-value.
115089         All callers changed.
115090         Invoke openat_save_fail and/or openat_restore_fail if
115091         cwd_errno is null, so that openat can call us.
115092         (openat_permissive, fdopendir, fstatat, unlinkat):
115093         Simplify errno handling to avoid some duplicate code,
115094         as it's OK to set errno on success.
115095         * lib/openat.h: Revamp code so that function macros depend on
115096         __OPENAT_PREFIX only, not also on AT_FDCWD.
115097         (openat_ro): Remove.  Caller changed to use openat_permissive.
115098         (openat_permissive): Now a macro, if not a function.
115099         (openat_restore_fail, openat_save_fail): Now always functions,
115100         since mkdirat needs them even if __OPENAT_PREFIX is defined.
115102         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
115103         and openat.c.
115104         * lib/mkdirat.c: Include openat-priv.h.
115105         Remove definitions of macros defined therein.
115106         * lib/openat.c: Likewise.
115108         * lib/mkdirat.c (mkdirat): New file and function.
115109         * lib/openat.h (mkdirat): Declare.
115111         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
115113         * lib/openat.h (openat_permissive): Declare.
115114         (openat_ro): Define.
115116         * lib/openat.c (EXPECTED_ERRNO): New macro.
115117         (openat_permissive): New function -- used in remove.c rewrite.
115118         (all functions): Set errno just before returning, only if there
115119         was an actual failure.
115120         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
115122         Emulate openat-family functions using Linux's procfs, if possible.
115123         Idea and some code based on Ulrich Drepper's glibc changes.
115125         * lib/openat.c: (BUILD_PROC_NAME): New macro.
115126         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
115127         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
115128         before falling back on save_cwd and restore_cwd.
115129         (fdopendir, fstatat, unlinkat): Likewise.
115131         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
115132         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
115134         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
115135         as second argument to va_arg.  Otherwise, some versions of gcc
115136         warn that `if this code is reached, the program will abort'.
115138 2006-01-09  Jim Meyering  <jim@meyering.net>
115140         Sync from coreutils.
115141         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
115142         Require openat-priv.h.
115144 2006-01-09  Bruno Haible  <bruno@clisp.org>
115146         * modules/strnlen (Include): Use strnlen.h.
115148 2006-01-09  Bruno Haible  <bruno@clisp.org>
115150         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
115152 2006-01-09  Bruno Haible  <bruno@clisp.org>
115154         * lib/sysexit_.h (EX_OK): New macro.
115155         Suggested by Martin Lambers <marlam@marlam.de>.
115157 2006-01-09  Bruno Haible  <bruno@clisp.org>
115159         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
115160         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
115162 2006-01-09  Bruno Haible  <bruno@clisp.org>
115164         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
115165         numbers.
115167 2006-01-09  Bruno Haible  <bruno@clisp.org>
115169         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
115170         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
115171         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
115172         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
115174 2006-01-09  Bruno Haible  <bruno@clisp.org>
115176         * build-aux/javacomp.sh.in: New file, moved from lib/.
115177         * modules/javacomp-script (Files): Update.
115178         (configure.ac): Add AC_CONFIG_FILES invocation.
115179         (EXTRA_DIST): Remove variable.
115181         * build-aux/javaexec.sh.in: New file, moved from lib/.
115182         * modules/javaexec (Files): Update.
115183         (configure.ac): Add AC_CONFIG_FILES invocation.
115184         (EXTRA_DIST): Remove javaexec.sh.in.
115186         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
115187         * modules/csharpcomp-script (Files): Update.
115188         (configure.ac): Add AC_CONFIG_FILES invocation.
115189         (EXTRA_DIST): Remove variable.
115191         * build-aux/csharpexec.sh.in: New file, moved from lib/.
115192         * modules/csharpexec (Files): Update.
115193         (configure.ac): Add AC_CONFIG_FILES invocation.
115194         (EXTRA_DIST): Remove csharpexec.sh.in.
115196 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115198         Sync from coreutils.
115200         Add POSIX ACL support
115201         * lib/acl.h (copy_acl, set_acl): Add declarations.
115202         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
115203         systems other than Linux.
115204         (chmod_or_fchmod): New function: use fchmod when possible,
115205         and chmod otherwise.
115206         (file_has_acl): Add a POSIX ACL implementation, with a
115207         Linux-specific subcase.
115208         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
115209         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
115210         acls are unsupported.
115211         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
115212         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
115213         are unsupported.
115215 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115217         Sync from coreutils.
115218         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
115220 2006-01-07  Bruno Haible  <bruno@clisp.org>
115222         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
115223         gl_EARLY.
115225 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115227         * lib/strftime.c (tzname): Don't declare if it is already #defined.
115228         Problem reported for Mingw by Mark Junker.
115230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115232         * README: Gnulib normally doesn't generate a tarball.
115234 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
115236         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
115237         long int, not int, for nanosecond counts, so that people who are
115238         used to POSIX struct timespec won't be surprised.  Reported by Jim
115239         Meyering.
115241 2005-12-28  Bruno Haible  <bruno@clisp.org>
115243         * build-aux/config.rpath: Update from GNU gettext.
115245 2005-12-16  Jim Meyering  <jim@meyering.net>
115247         * modules/fprintftime: New module.
115248         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
115250 2005-12-16  Jim Meyering  <jim@meyering.net>
115252         * m4/fprintftime.m4: New file.
115254 2005-12-16  Jim Meyering  <jim@meyering.net>
115256         * lib/fprintftime.c, lib/fprintftime.h: New files.
115258 2005-12-15  Simon Josefsson  <jas@extundo.com>
115260         * modules/socklen (configure.ac): Fix M4 macro name, to align with
115261         new m4/socklen.m4.
115263 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115265         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
115266         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
115268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115270         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
115271         * lib/argp-help.c (fill_in_uparams): Check if the constructed
115272         struct uparams is valid. Fall back to the default values if it is
115273         not.
115275 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115277         * modules/argp (Files): Add argp-pin.c
115278         (Depends-on): dirname
115279         (lib_SOURCES): Add argp-pin.c
115281 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115283         * m4/argp.m4:  Check if program_invocation_name and
115284         program_invocation_short_name are declared and define appropriate
115285         macros if they are not.
115287 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115289         * lib/argp-help.c (__argp_base_name): New function
115290         (__argp_short_program_name): Rewrite using __argp_base_name
115291         * lib/argp-namefrob.h: Define program_invocation_name and
115292         program_invocation_short_name if requested
115293         (__argp_base_name): Add prototype
115294         * lib/argp-parse.c (argp_def): Use gettext wrappers
115295         (argp_default_parser): Use __argp_base_name
115296         * lib/argp-pin.c: New file. Defines program_invocation_name and
115297         program_invocation_short_name on systems that lack them.
115299 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115301         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
115302         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115303         porting problem reported by Georg Schwarz in
115304         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115306 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115308         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
115309         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115310         porting problem reported by Georg Schwarz in
115311         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115313 2005-12-05  Bruno Haible  <bruno@clisp.org>
115315         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
115316         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
115317         Reported by Mark Junker <mjscod@gmx.de>.
115319 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
115321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
115322         Use implementation from Albert Chin, with some
115323         comments/corrections by Stepan Kasal and myself.
115325 2005-12-02  Bruno Haible  <bruno@clisp.org>
115327         * gnulib-tool (func_import): Accept GPLed build tool modules when
115328         --lgpl is given.
115329         * modules/csharpcomp-script: New file.
115330         * modules/csharpcomp: Depend on it.
115331         * modules/javacomp-script: New file.
115332         * modules/javacomp: Depend on it.
115333         Suggested by Simon Josefsson.
115335 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
115337         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
115338         statement, to work around an HP-UX 10.20 compiler bug reported by
115339         Peter O'Gorman.
115341 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115343         * modules/savedir (Depends-on): Add openat.
115345 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115347         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
115348         (uintmax_t) [defined uintmax_t]: Do not declare.
115349         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
115350         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
115351         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
115352         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
115353         sake of portability to weird hosts that C allows (though we don't
115354         know of any practical examples).
115356         * lib/savedir.h (fdsavedir): New decl.
115357         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
115358         contains most of the former guts of savedir.
115359         (savedir): Use savedirstream.
115360         Include "openat.h".
115362 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115364         * modules/obstack (Files): Add m4/ulonglong.m4.
115365         Problem reported by Davide Angelocola.
115367 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
115369         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
115370         coreutils no longer futzes with rounding modes.
115372 2005-11-14  Jim Meyering  <jim@meyering.net>
115374         * lib/mkstemp-safer.c: Include <config.h>, required for possible
115375         replacement of mkstemp.
115377 2005-11-10  Simon Josefsson  <jas@extundo.com>
115379         * lib/readline.c: Remove EOL.
115381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115383         * modules/gethrxtime (Depends-on): Add gettime.
115385 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115387         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115388         or gettimeofday; no longer needed.
115390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115392         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115393         time business.
115394         (gethrxtime) [! (HAVE_NANOUPTIME
115395         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115396         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115397         our own approximation.
115399 2005-11-08  Eric Blake  <ebb9@byu.net>
115401         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115403 2005-11-08  Eric Blake  <ebb9@byu.net>
115405         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115407 2005-11-04  Bruno Haible  <bruno@clisp.org>
115409         * gnulib-tool: Implement --update mode.
115411 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115413         Fix porting problem reported by Theodoros V. Kalamatianos.
115414         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115415         Don't assume that futimes failing means we must fail.
115417 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115420         variables to suggest the intended function of the PATH_MAX check.
115422 2005-10-30  Kean Johnston  <jkj@sco.com>
115424         Trivial changes to support SCO systems.
115425         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115426         as PATH_MAX.
115427         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115428         where __ptr is null when no I/O is pending.
115430 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115432         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115433         leave errno alone.  Problem reported by Dmitry V. Levin.
115435 2005-10-28  Simon Josefsson  <jas@extundo.com>
115437         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115438         Test more.
115440         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115442         * modules/md2, modules/md2-tests: New files.
115444 2005-10-28  Simon Josefsson  <jas@extundo.com>
115446         * m4/inet_ntop.m4: More tests.
115448         * m4/gc-md2.m4, md2.m4: New file.
115450 2005-10-28  Simon Josefsson  <jas@extundo.com>
115452         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115453         "restrict" keywords, as per POSIX.  Protect the function
115454         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115455         Don't use K&R prototypes.  Check the sprintf return values.
115456         Re-define EAFNOSUPPORT if not present.  Indent.
115458         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115459         suggested by Bruno Haible <bruno@clisp.org>.
115461         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115463         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115465         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115466         libgcrypt).
115468         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115470         * lib/md2.h, lib/md2.c: New files.
115472 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115474         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115475         errno alone.  Problem reported by Frederic Jolliton.
115477 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115479         * modules/verify (License): Change from GPL to LGPL.  This is a
115480         tiny module and there are apparently near-equivalents that are
115481         under the BSD license.
115483 2005-10-24  Simon Josefsson  <jas@extundo.com>
115485         * modules/sha1: Relicense to LGPL.
115487 2005-10-24  Simon Josefsson  <jas@extundo.com>
115489         * lib/md4.h: Shrink buffer size, now that we changed the type.
115491 2005-10-23  Simon Josefsson  <jas@extundo.com>
115493         * gnulib-tool (func_import): Fix --tests-base.
115495 2005-10-22  Simon Josefsson  <jas@extundo.com>
115497         * modules/arcfour (Depends-on): Need stdint.
115499 2005-10-22  Simon Josefsson  <jas@extundo.com>
115501         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115502         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115504 2005-10-22  Simon Josefsson  <jas@extundo.com>
115506         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115507         suggested by Bruno Haible <bruno@clisp.org>.
115509 2005-10-22  Simon Josefsson  <jas@extundo.com>
115511         * lib/crc.h: Include stddef.h, for size_t.
115513 2005-10-22  Simon Josefsson  <jas@extundo.com>
115515         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115516         arcfour_context struct (simplify test vector testing in GNU
115517         Shishi).
115519 2005-10-21  Simon Josefsson  <jas@extundo.com>
115521         * modules/des, modules/des-tests: New files.
115523         * modules/gc-des, modules/gc-des-tests: New files.
115525         * tests/test-des.c, tests/test-gc-des.c: New file.
115527 2005-10-21  Simon Josefsson  <jas@extundo.com>
115529         * modules/arctwo, modules/arctwo-tests: New files.
115531         * tests/test-arctwo.c: New file.
115533         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115535         * tests/test-gc-arctwo.c: New file.
115537 2005-10-21  Simon Josefsson  <jas@extundo.com>
115539         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115540         Bruno Haible <bruno@clisp.org>.
115542         * m4/gc-des.m4: New file.
115544 2005-10-21  Simon Josefsson  <jas@extundo.com>
115546         * m4/arctwo.m4: New file.
115548         * m4/gc-arctwo.m4: New file.
115550 2005-10-21  Simon Josefsson  <jas@extundo.com>
115552         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115553         block.
115555 2005-10-21  Simon Josefsson  <jas@extundo.com>
115557         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115558         <bruno@clisp.org>.
115560         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115562         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115563         Bruno Haible <bruno@clisp.org>.
115565         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115566         <bruno@clisp.org>.
115568 2005-10-21  Simon Josefsson  <jas@extundo.com>
115570         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115572 2005-10-21  Simon Josefsson  <jas@extundo.com>
115574         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115576 2005-10-21  Simon Josefsson  <jas@extundo.com>
115578         * lib/des.h, lib/des.c: New files.
115580         * lib/gc-gnulib.c: Support DES.c
115582 2005-10-21  Simon Josefsson  <jas@extundo.com>
115584         * lib/arctwo.h, lib/arctwo.c: New files.
115586         * lib/gc-gnulib.c: Support ARCTWO.
115588 2005-10-21  Simon Josefsson  <jas@extundo.com>
115590         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115591         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115593 2005-10-21  Simon Josefsson  <jas@extundo.com>
115595         * gnulib-tool (func_import, func_create_testdir): Define automake
115596         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115597         Makefile.am snippet),
115598         suggested by Bruno Haible <bruno@clisp.org>.
115600         * modules/gc (Makefile.am): Use it.
115602 2005-10-21  Bruno Haible  <bruno@clisp.org>
115604         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115605         patch.
115607 2005-10-19  Simon Josefsson  <jas@extundo.com>
115609         * tests/test-gc-rijndael.c: New file.
115611         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115613 2005-10-19  Simon Josefsson  <jas@extundo.com>
115615         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115616         interface too.
115618 2005-10-19  Simon Josefsson  <jas@extundo.com>
115620         * tests/test-gc-arcfour.c: New file.
115622         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115624 2005-10-19  Simon Josefsson  <jas@extundo.com>
115626         * modules/gc-md4, modules/gc-md4-tests: New file.
115628         * tests/test-gc-md4.c: New file.
115630 2005-10-19  Simon Josefsson  <jas@extundo.com>
115632         * m4/gc-md4.m4: New file.
115634 2005-10-19  Simon Josefsson  <jas@extundo.com>
115636         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115637         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115638         <kasal@ucw.cz>.
115640 2005-10-19  Simon Josefsson  <jas@extundo.com>
115642         * m4/gc-arcfour.m4: New file.
115644         * m4/gc-rijndael.m4: New file.
115646 2005-10-19  Simon Josefsson  <jas@extundo.com>
115648         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115650 2005-10-19  Simon Josefsson  <jas@extundo.com>
115652         * lib/gc-gnulib.c: Support ARCFOUR.
115654 2005-10-19  Simon Josefsson  <jas@extundo.com>
115656         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115657         support.
115659         * lib/gc.h: Add ECB enum type.
115661         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115663 2005-10-18  Simon Josefsson  <jas@extundo.com>
115665         * tests/test-md5.c: New file.
115667         * modules/md5-tests: New file.
115669 2005-10-18  Simon Josefsson  <jas@extundo.com>
115671         * tests/test-md4.c: New file.
115673         * modules/md4, modules/md4-tests: New files.
115675 2005-10-18  Simon Josefsson  <jas@extundo.com>
115677         * m4/md4.m4: New file.
115679 2005-10-18  Simon Josefsson  <jas@extundo.com>
115681         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115683 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115685         * gnulib-tool (func_create_testdir): Omit the second check whether
115686         BUILT_SOURCES in nonempty.
115688 2005-10-17  Simon Josefsson  <jas@extundo.com>
115690         * tests/test-rijndael.c: New file.
115692 2005-10-17  Simon Josefsson  <jas@extundo.com>
115694         * modules/sha1: Depend on stdint instead of md5.
115696         * modules/md5: Depend on stdint, remove uint32_t.
115698 2005-10-17  Simon Josefsson  <jas@extundo.com>
115700         * modules/gc-sha1-tests: New file.
115702         * tests/test-gc-sha1.c: New file.
115704 2005-10-17  Simon Josefsson  <jas@extundo.com>
115706         * m4/md5.m4: Remove call to uint32_t.m4.
115708 2005-10-17  Simon Josefsson  <jas@extundo.com>
115710         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115712         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115713         md5.h.
115715         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115717         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115719 2005-10-17  Simon Josefsson  <jas@extundo.com>
115721         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115723 2005-10-17  Simon Josefsson  <jas@extundo.com>
115725         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115727 2005-10-17  Simon Josefsson  <jas@extundo.com>
115729         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115731         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115733 2005-10-17  Bruno Haible  <bruno@clisp.org>
115735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115736         that it can also be used in a test.
115738 2005-10-16  Bruno Haible  <bruno@clisp.org>
115740         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115741         TESTS_ENVIRONMENT, so that individual tests can augment it.
115743         * gnulib-tool (func_create_testdir): Use an intermediate target for
115744         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115745         macros, like $(ALLOCA_H), which cannot be passed through the command
115746         line.
115748 2005-10-15  Simon Josefsson  <jas@extundo.com>
115750         * modules/rijndael-tests: New file.
115752         * modules/rijndael: New file.
115754 2005-10-15  Simon Josefsson  <jas@extundo.com>
115756         * m4/rijndael.m4: New file.
115758 2005-10-15  Simon Josefsson  <jas@extundo.com>
115760         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115762         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115764 2005-10-14  Simon Josefsson  <jas@extundo.com>
115766         * tests/test-arcfour.c: New file.
115768         * modules/arcfour, modules/arcfour-tests: New files.
115770 2005-10-14  Simon Josefsson  <jas@extundo.com>
115772         * m4/arcfour.m4: New file.
115774 2005-10-14  Simon Josefsson  <jas@extundo.com>
115776         * lib/arcfour.h, lib/arcfour.c: New files.
115778 2005-10-14  Roland McGrath  <roland@redhat.com>
115780         Import from libc.  [BZ #1331]
115781         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115782         macro argument.
115783         Reported by Matej Vela <vela@debian.org>.
115785 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115787         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115788         include <wchar.h>; no longer needed.
115790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115792         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
115794 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
115795         and  Ulrich Drepper  <drepper@redhat.com>
115797         Import from libc.
115798         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
115799         instead of inline stream orientation test and two separate
115800         function calls.  Pay no attention to USE_IN_LIBIO.
115802 2005-10-13  Simon Josefsson  <jas@extundo.com>
115804         * modules/gc-hmac-md5-tests: New file.
115806         * tests/test-gc-hmac-sha1.c: New file.
115808         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
115810         * modules/gc-hmac-md5-tests: New file.
115812         * tests/test-gc-md5.c: New file.
115814         * modules/gc-md5-tests: New file.
115816 2005-10-13  Simon Josefsson  <jas@extundo.com>
115818         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115819         Move memory allocation outside of loop.
115821 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115823         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115824         intermediate directory is in a read-only file system.  Problem
115825         reported by Eric Blake.
115827 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115829         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115831 2005-10-12  Simon Josefsson  <jas@extundo.com>
115833         * tests/test-hmac-sha1.c: New file.
115835         * modules/hmac-sha1-tests: New file.
115837         * modules/hmac-sha1: New file.
115839 2005-10-12  Simon Josefsson  <jas@extundo.com>
115841         * modules/gc-sha1: New file.
115843 2005-10-12  Simon Josefsson  <jas@extundo.com>
115845         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115847         * tests/test-gc-pbkdf2-sha1.c: New file.
115849 2005-10-12  Simon Josefsson  <jas@extundo.com>
115851         * modules/gc-md5, modules/gc-hmac-md5: New files.
115853         * modules/gc (Files): Remove md5, memxor and hmac files.
115855 2005-10-12  Simon Josefsson  <jas@extundo.com>
115857         * m4/gc-pbkdf2-sha1.m4: New file.
115859         * m4/gc-hmac-sha1.m4: New file.
115861         * m4/gc-sha1: New file.
115863         * m4/hmac-sha1.m4: New file.
115865 2005-10-12  Simon Josefsson  <jas@extundo.com>
115867         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115869         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115871 2005-10-12  Simon Josefsson  <jas@extundo.com>
115873         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115874         suggested by Bruno Haible <bruno@clisp.org>.
115876 2005-10-12  Simon Josefsson  <jas@extundo.com>
115878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115880 2005-10-12  Simon Josefsson  <jas@extundo.com>
115882         * lib/gc-pbkdf2-sha1.c: New file.
115884         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115886 2005-10-12  Simon Josefsson  <jas@extundo.com>
115888         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115890         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115892 2005-10-12  Simon Josefsson  <jas@extundo.com>
115894         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115895         GC_USE_HMAC_MD5, respectively.
115897         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115898         (gc_md5): Fix typo.
115900         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115902         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115904         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115906 2005-10-12  Bruno Haible  <bruno@clisp.org>
115908         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115909         Reported by Stepan Kasal <kasal@ucw.cz>.
115911 2005-10-11  Simon Josefsson  <jas@extundo.com>
115913         * tests/test-crc.c: New file.
115915         * modules/crc, modules/crc-tests: New files.
115917 2005-10-11  Simon Josefsson  <jas@extundo.com>
115919         * m4/crc.m4: New file.
115921 2005-10-11  Simon Josefsson  <jas@extundo.com>
115923         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115925         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115927         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115929 2005-10-11  Simon Josefsson  <jas@extundo.com>
115931         * lib/crc.h, lib/crc.c: New files.
115933         * lib/gc.h (gc_hash_buffer): Add doc.
115935 2005-10-11  Bruno Haible  <bruno@clisp.org>
115937         * modules/c-strcasestr: New file.
115938         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115940 2005-10-11  Bruno Haible  <bruno@clisp.org>
115942         * modules/c-strcase: New file.
115943         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115945 2005-10-11  Bruno Haible  <bruno@clisp.org>
115947         * lib/strcasecmp.c: Include limits.h.
115948         (strcasecmp): Avoid integer overflow on exotic platforms.
115949         * lib/strncasecmp.c: Include limits.h.
115950         (strncasecmp): Avoid integer overflow on exotic platforms.
115951         Reported by Paul Eggert.
115953 2005-10-11  Bruno Haible  <bruno@clisp.org>
115955         * lib/c-strcasestr.h: New file, from GNU gettext.
115956         * lib/c-strcasestr.c: New file, from GNU gettext.
115958 2005-10-11  Bruno Haible  <bruno@clisp.org>
115960         * lib/c-strcase.h: New file, from GNU gettext.
115961         * lib/c-strcasecmp.c: New file, from GNU gettext.
115962         * lib/c-strncasecmp.c: New file, from GNU gettext.
115964 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115966         * modules/mempcpy (License): GPL -> LGPL.
115967         * modules/strchrnul (License): Likewise.
115968         * modules/sysexits (License): Likewise.
115970 2005-10-08  Simon Josefsson  <jas@extundo.com>
115972         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115974 2005-10-07  Simon Josefsson  <jas@extundo.com>
115976         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115978 2005-10-06  Simon Josefsson  <jas@extundo.com>
115980         * tests/test-hmac-md5.c: New file.
115982         * modules/hmac-md5-tests: New file.
115984         * modules/hmac-md5: New file.
115986 2005-10-06  Simon Josefsson  <jas@extundo.com>
115988         * m4/hmac-md5.m4: New file.
115990         * m4/memxor.m4: Require gl_C_RESTRICT.
115992 2005-10-06  Simon Josefsson  <jas@extundo.com>
115994         * lib/memxor.c (memxor): Avoid casts and warnings.
115996 2005-10-06  Simon Josefsson  <jas@extundo.com>
115998         * lib/hmac-md5.c: New file.
116000         * lib/hmac.h: New file.
116002 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
116005         promotes to int, not unsigned int, to catch the AIX 5.3
116006         compiler bug.
116008 2005-10-05  Simon Josefsson  <jas@extundo.com>
116010         * modules/memxor: New file.
116012         * modules/iconv (Files): Move config.rpath to havelib, it is used
116013         there.
116015         * modules/havelib (Files): Add config.rpath.
116017 2005-10-05  Simon Josefsson  <jas@extundo.com>
116019         * m4/memxor.m4: New file.
116021 2005-10-05  Simon Josefsson  <jas@extundo.com>
116023         * lib/memxor.c (memxor): Fix compiler error.
116025         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
116026         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
116028         * lib/memxor.h, lib/memxor.c: New files.
116030         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
116031         we assume all systems have it, suggested by Jim Meyering
116032         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
116033         any systems lack sys/socket.h; mingw32 is known to lack it, but we
116034         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
116035         same reasons.
116037 2005-10-05  Simon Josefsson  <jas@extundo.com>
116039         * config/srclist.txt: Add glibc bug 1423 for md5.h.
116041 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
116043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
116044         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
116045         needed, since the source code now assumes these .h files.
116047 2005-10-05  Derek Price  <derek@ximbiot.com>
116049         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
116051 2005-10-05  Bruno Haible  <bruno@clisp.org>
116053         * modules/stdint (License): Change to LGPL.
116055 2005-10-04  Simon Josefsson  <jas@extundo.com>
116057         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
116058         D. Baushke" <mdb@gnu.org>.
116060 2005-10-04  Bruno Haible  <bruno@clisp.org>
116062         * lib/verify.h (verify_true): Provide alternative definition for C++.
116064 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
116066         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
116067         (SSIZE_MAX): New macro, if not already defined.
116068         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
116069         than 2 GiB.
116071 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116073         Sync from coreutils.
116074         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
116075         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
116076         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
116077         ULLONG_MAX doesn't work with 2.7.2.1.
116079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116081         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
116082         From Ben Pfaff.
116084         * modules/exclude (Depends-on): Depend on verify.
116085         * modules/strtoimax (Depends-on): Likewise.
116086         * modules/utimecmp (Depends-on): Likewise.
116088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116090         * lib/exclude.c: Include verify.h.
116091         (verify): Remove.  All callers changed to use verify.h's version.
116092         * lib/strtoimax.c: Likewise.
116093         * lib/utimecmp.c: Likewis.e
116095         Sync from coreutils.
116096         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
116097         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
116098         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
116099         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
116100         bother returning ENOSYS if settimeofday or stime fails; just let
116101         them return whatever errno they want to return.
116102         * lib/utimens.c: Include unistd.h, for dup2.
116103         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
116104         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
116106 2005-10-02  Jim Meyering  <jim@meyering.net>
116108         Sync from coreutils.
116109         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
116110         from glibc-2.2.5 that fails for read-only files.
116112 2005-10-02  Jim Meyering  <jim@meyering.net>
116114         Sync from coreutils.
116115         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
116116         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
116117         `#if HAVE_CONFIG_H'.
116118         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
116119         Remove AT_FDCWD test.
116120         Do not consume the fd unless successful.
116121         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
116122         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
116123         block, so that we don't even try to compile it if settimeofday is
116124         available.  This works around a compilation failure on OSF1 V5.1,
116125         due to stime requiring a `long int*' while tv_sec is `int'.
116127 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
116129         Sync from coreutils.
116130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
116131         against `yes', rather than just testing for nonempty.
116133 2005-10-01  Simon Josefsson  <jas@extundo.com>
116135         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
116136         and Darwin.
116138         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
116139         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
116140         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
116141         freeaddrinfo and gai_strerror are declared by the POSIX headers.
116142         Check if struct addrinfo is declared.
116144 2005-10-01  Simon Josefsson  <jas@extundo.com>
116146         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
116147         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
116148         AI_* and EAI_* definitions.  Protect function declarations.
116150 2005-10-01  Jim Meyering  <jim@meyering.net>
116152         Sync from coreutils.
116154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
116155         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
116156         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
116157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116158         in the inet and nsl libraries.  Required on Solaris 5.7.
116160 2005-10-01  Jim Meyering  <jim@meyering.net>
116162         Sync from coreutils.
116163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116164         in the inet and nsl libraries.  Required on Solaris 5.7.
116166 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
116168         * lib/getdelim.c (getdelim): Remove unused variables.
116170 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
116172         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
116173         so that the code works even with ancient cpp.  Portability problem
116174         with GCC 2.7.2.1 reported by Thomas M.Ott.
116176 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
116178         * modules/regex (Depends-on): Add strcase.
116180         * modules/gethostname (Licence): Change from GPL to LGPL, since
116181         gethostname.c is a trivial implementation of a standard library
116182         function.
116183         * modules/poll (License): Change from GPL to LGPL, since it's
116184         derived from LGPL code.
116186 2005-09-27  Jim Meyering  <jim@meyering.net>
116188         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
116189         HAVE_CONFIG_H.
116191         * lib/intprops.h (signed_type_or_expr__): Define.
116192         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
116193         for unsigned types.
116195 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
116197         * lib/verify.h (verify_expr): Remove, replacing with:
116198         (verify_true): New macro that returns true instead of void.
116199         (verify_type__): Remove.
116200         (verify): Use verify_true rather than verify_type__.
116202 2005-09-26  Bruno Haible  <bruno@clisp.org>
116204         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
116205         is necessary.
116206         (lib_SOURCES): Remove mbchar.c.
116207         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
116208         (Files): Add m4/mbrtowc.m4.
116209         * modules/mbiter: Likewise.
116210         * modules/mbuiter: Likewise.
116212 2005-09-26  Bruno Haible  <bruno@clisp.org>
116214         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
116215         compile mbchar.c if they are not both present.
116216         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
116217         * m4/mbiter.m4 (gl_MBITER): Likewise.
116218         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
116219         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
116220         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
116222 2005-09-25  Jim Meyering  <jim@meyering.net>
116224         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
116225         also uses socklen_t.
116227 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
116229         * lib/utimens.c (ENOSYS): Define if not already defined.
116230         (futimens): Support having a null PATH if the file descriptor
116231         is nonnegative.
116233         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
116234         Remove.
116235         (__attribute): Define to empty unless GCC 3.1 or later.
116236         This works around a core dump on OpenBSD 3.4, which has GCC
116237         2.95.3, which dumps core when given __attribute__(()).  It also
116238         simplifies other tests, since we really don't want to bother with
116239         worrying about which ancient version of GCC supported what.
116240         Original problem reported by Yoann Vandoorselaere, with part of
116241         the fix suggested by Derek Price.
116243 2005-09-24  Jim Meyering  <jim@meyering.net>
116245         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
116246         so we can once again use a positive bitfield width of 1 -- now we
116247         don't have to explain why we were using a bitfield width of 2.
116249 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116251         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
116252         and similarly for the other external symbols.  Problem reported
116253         by James Gallager.
116255         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
116256         bug reported by Jim Meyering.
116258         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
116259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
116260         not needed, since socklen is a prerequisite module.
116262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116264         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
116265         Problem reported by Eric Blake.
116266         (getaddrinfo): Initialize se so that it's not garbage.
116267         Redo internal storage allocation so that it doesn't make unportable
116268         assumptions about alignment.
116269         Fix a memory leak.
116271         * lib/utimens.c (futimens): Use futimesat if available.
116272         Prefer it to futimes since it doesn't have the futimes bug.
116274         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
116275         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
116276         Instead, declare a function that returns a pointer to an array,
116277         and use verify_type__ to declare the size of the array.
116278         Problem and germ of a solution reported by Bruno Haible.
116279         (verify_type__): Use 2, not 1, for bitfield size, to avoid
116280         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
116282 2005-09-23  Jim Meyering  <jim@meyering.net>
116284         Sync from coreutils.
116285         Correct build failure (socklen_t not defined) on at least
116286         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
116287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
116289 2005-09-23  Jim Meyering  <jim@meyering.net>
116291         * modules/getaddrinfo (Depends-on): Add socklen.
116293 2005-09-23  Bruno Haible  <bruno@clisp.org>
116295         * tests/test-verify.c: New file.
116297 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116299         Sync from coreutils.
116301         * modules/argmatch (Depends-on): Add verify.
116302         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
116303         unistd-safer.
116304         * modules/save-cwd (Depends-on): Likewise.
116306         * modules/openat (Files): Add lib/openat-die.c.
116307         (Depends-on): Remove error, exitfail.
116308         Add dirname.
116310         * modules/verify: New file.
116311         * MODULES.html.sh (Diagnostics <assert.h>): New section,
116312         with "verify" module.
116314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116316         Sync from coreutils.
116318         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
116319         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
116320         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
116321         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
116322         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
116323         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
116324         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
116325         Don't bother checking for string.h, stdlib.h, unistd.h.
116326         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
116327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
116328         module's job.
116329         * m4/jm-macros.m4 (gl_MACROS): Likewise.
116330         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
116332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
116333         (gl_GETDATE): Use it.
116335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
116337 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116339         Sync from coreutils.
116341         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
116342         stat-time.h.
116343         * lib/argmatch.h: Include verify.h
116344         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
116345         (ARGMATCH_ASSERT): Remove; unused.
116346         * lib/canonicalize.c: Assume STDC_HEADERS.
116347         * lib/exclude.c: Include "strcase.h".
116348         * lib/regex_internal.h [!defined _LIBC]: Likewise.
116349         * lib/getusershell.c: Include stdio--.h rather than stdio.h
116350         and stdio-safer.h.
116351         (getusershell): Call fopen, not fopen_safer.
116352         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
116353         Do not include unistd-safer.h.
116354         (save_cwd): Don't call fd_safer; no longer needed
116355         now that we include fcntl--.h.
116357         * lib/getdate.y (relative_time): New type.
116358         (RELATIVE_TIME_0): New constant.
116359         (parser_control): Use relative_time instead of doing it ourselves.
116360         (%union): Add new relative_time rel member.
116361         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
116362         Now typeless.
116363         (relunit, relunit_snumber): Now of type rel.
116364         (zone, rel, relunit, get_date): Adjust to above changes.
116366         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
116367         Do not include unistd-safer.h.
116368         (getloadavg): Don't call fd_safer; no longer needed
116369         now that we include fcntl--.h.
116371         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
116372         (make_dir_parents): Treat ENOSYS like EEXIST.
116374         Improve quality of diagnostics on restore_cwd failure.
116375         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
116376         (make_dir_parents): Last arg is now int * (for errno), not bool *.
116377         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
116378         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
116379         each time through the loop.  Do not diagnose restore_cwd failure;
116380         that is the caller's job (and perhaps the caller does not care).
116382         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116383         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116384         If the file already exists but is not a directory, don't bother
116385         to try to make its parents.
116386         Close potential file descriptor leak if we can't chdir("/") (!).
116387         Don't always return true if chdir($PWD) fails; return true only
116388         if the requested action was done successfully (except for the
116389         chdir($PWD)).
116390         Don't log final directory unless we actually made it.
116391         Refactor to avoid duplicate code to fix up permissions.
116392         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116394         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116395         to make it a bit faster and (I hope) clearer.
116396         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116397         Fix bug in formats like %2N.
116399         * lib/verify.h: New file.
116401 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116403         Sync from coreutils.
116404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116406 2005-09-22  Jim Meyering  <jim@meyering.net>
116408         Sync from coreutils.
116410         * m4/lstat.m4 (gl_FUNC_LSTAT):
116411         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116412         Remove obsolete comment.
116413         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116414         * m4/xstrtod.m4: Likewise.
116416         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116418 2005-09-22  Jim Meyering  <jim@meyering.net>
116420         Sync from coreutils.
116422         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116424         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116425         the .tm_year member, since otherwise gcc-4.0 would now warn about
116426         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116428         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116429         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116431         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116432         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116433         when run in a time zone for which daylight savings time is in effect
116434         for the starting date.
116436         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116437         stop us from restricting permissions of just-created absolute-named
116438         directories.
116439         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116440         to restore initial working directory.
116441         * lib/mkdir-p.c (make_dir_parents): New parameter:
116442         different_working_dir, to tell caller if/when we change the working
116443         directory and are unable to return to the initial one.
116444         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116445         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116446         `return false'.  This fixes a bug introduced on 2004-07-30.
116448         * lib/openat.c (fdopendir): Be sure to close the supplied
116449         file descriptor before returning.  This makes our replacement
116450         implementation a little closer to Solaris's, where fdopendir
116451         ties the file descriptor to the returned DIR* pointer.
116452         * lib/openat.c (unlinkat): New function.
116453         * lib/openat.h (unlinkat): Add prototype.
116454         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116455         (openat_restore_fail): Rename from openat_restore_die.
116456         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116458         Provide an alternative to exiting immediately upon save_cwd or
116459         restore_cwd failure.  Now, an application can arrange e.g.,
116460         to perform a longjump in that case.
116461         * lib/openat.c: Include dirname.h.
116462         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116463         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116464         and openat_restore_die rather than calling error directly.
116465         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116467         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116468         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116469         define.
116471         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116472         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116473                             int utc, int nanoseconds);
116474         Background:
116475         date should not have to allocate a megabyte of virtual memory to
116476         handle a format argument like +%1048575T.  When implemented with
116477         strftime, it must allocate such a buffer, use strftime to fill it
116478         in, print it, then free it.
116479         With fprintftime, it simply prints everything and exits.
116480         With no need for memory allocation, that's one fewer way to fail.
116481         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116482         optional field width, not before, so we accept %9:z, not %:9z.
116483         (my_strftime): Be sure to use L_('x') for literals.
116485         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116486         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116487         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116488         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116489         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116490         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116491         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116492         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116493         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116494         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116495         * lib/xgethostname.c, lib/xreadlink.c:
116496         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116498         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116499         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116500         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116501         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116502         and don't include <sys/file.h>).
116504 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116506         Sync from coreutils.
116508         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116509         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116510         [!LDAV_DONE]: Avoid unused variable warning.
116512 2005-09-21  Bruno Haible  <bruno@clisp.org>
116514         * lib/unicodeio.h (unicode_to_mb): New declaration.
116516 2005-09-20  Derek Price  <derek@ximbiot.com>
116518         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116519         getaddrinfo.h.
116521 2005-09-20  Bruno Haible  <bruno@clisp.org>
116523         * gnulib-tool: Remove trailing slashes from the values specified for
116524         --source-base, --m4-base, --tests-base, --aux-dir.
116525         Suggested by Simon Josefsson <jas@extundo.com>.
116527 2005-09-20  Bruno Haible  <bruno@clisp.org>
116529         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116530         func_modules_to_filelist, func_import, func_create_testdir): Make all
116531         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116532         change when gnulib-tool is invoked in a different locale.
116534 2005-09-19  Simon Josefsson  <jas@extundo.com>
116536         * m4/socklen.m4: Fix typo.
116538 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116540         Use a consistent style for including <config.h>.
116541         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116542         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116543         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116544         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116545         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116546         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116547         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116548         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116549         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116550         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116551         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116552         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116553         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116554         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116555         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116556         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116557         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116558         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116559         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116560         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116561         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116562         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116563         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116564         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116565         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116566         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116567         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116568         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116569         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116570         lib/xstrtoumax.c, lib/yesno.c:
116571         Standardize inclusion of config.h.
116572         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116573         lib/inttostr.h:  Removed inclusion of config.h from header files.
116574         * lib/inttostr.c:  Adjusted in-tree users.
116575         * lib/timespec.h: Remove superfluous warning to include config.h.
116576         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116577         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116578         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116579         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116580         config.h with HAVE_CONFIG_H.
116582 2005-09-19  Jim Meyering  <jim@meyering.net>
116584         * modules/pathmax (License): Change to LGPL.
116586 2005-09-19  Derek Price  <derek@ximbiot.com>
116588         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116590 2005-09-19  Bruno Haible  <bruno@clisp.org>
116592         * gnulib-tool (import): Provide default for --tests-base.
116594 2005-09-19  Bruno Haible  <bruno@clisp.org>
116596         * doc/quote.texi: New file, extracted from gnulib.texi.
116597         * doc/ctime.texi: New file, extracted from gnulib.texi.
116598         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116599         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116600         * doc/gnulib.texi: Include them.
116602 2005-09-18  Bruno Haible  <bruno@clisp.org>
116604         Portability fix.
116605         * gnulib-tool (func_readlink): New function.
116606         (func_ln_if_changed): Use it.
116608 2005-09-18  Bruno Haible  <bruno@clisp.org>
116610         * gnulib-tool: Support --with-tests also with --import.
116611         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116612         (func_import): Use variables $testsbase and $inctests. Emit a
116613         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116614         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116615         SUBDIRS += $testsdir.
116616         (func_create_testdir): Update.
116618 2005-09-18  Bruno Haible  <bruno@clisp.org>
116620         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116621         instead of $dry_run.
116622         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116623         (func_ln_if_changed): Don't handle dry-run here.
116624         (func_import): In dry-run mode, detect more precisely which actions
116625         would be performed, and don't use "...ing" verbs.
116627 2005-09-18  Bruno Haible  <bruno@clisp.org>
116629         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116630         (func_import): Use join on two temporary files instead of three nested
116631         loops, in order to determine which files are new or old.
116633 2005-09-18  Bruno Haible  <bruno@clisp.org>
116635         * gnulib-tool (func_import): Comment out code that spits out the
116636         new files with --dry-run.
116638 2005-09-18  Bruno Haible  <bruno@clisp.org>
116640         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116642 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116644         * lib/stat-time.h: New file.
116645         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116646         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116647         in a different way.
116648         (timespec_cmp): New function.
116649         * lib/utimecmp.c: Include stat-time.h.
116650         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116651         members exist, not on the obsolescent ST_MTIM_NSEC.
116652         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116654 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116656         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116658 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116660         * MODULES.html.sh (File system functions): Add stat-time.
116661         * modules/stat-time: New file.
116662         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116663         is now done in a different way, by the stat-time module.
116664         * modules/utimecmp (Depends-on): Add stat-time.
116666 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116668         * m4/st_mtim.m4: Remove.  Superseded by...
116669         * m4/stat-time.m4: New file.
116670         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116671         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116673 2005-09-15  Derek Price  <derek@ximbiot.com>
116675         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116677 2005-09-15  Derek Price  <derek@ximbiot.com>
116679         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116680         * lib/regex_internal.c: Ditto, using this...
116681         (__GNUC_PREREQ): ...new macro.
116682         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116683         using...
116684         (__GNUC_PREREQ): ...this new macro.
116686         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116688 2005-09-15  Derek Price  <derek@ximbiot.com>
116689             Paul Eggert  <eggert@cs.ucla.edu>
116691         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116692         changes, consolidating in...
116693         * lib/regex_internal.h: ...this file.
116695 2005-09-13  Jim Meyering  <jim@meyering.net>
116697         * lib/canon-host.c: Filter through gnu indent and reword comments
116698         slightly.
116699         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116701 2005-09-13  Derek Price  <derek@ximbiot.com>
116703         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116704         failure.
116705         Reported by Jim Meyering  <jim@meyering.net>.
116707 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116709         * lib/base64.c: Typo.
116710         (base64_encode): Put b64str in initialized data section.
116712 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116714         Merge glibc and coreutils changes into gnulib, plus a few
116715         extra fixes.
116716         * lib/md5.c: Use #error rather than a string.
116717         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116718         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116719         (__attribute__): Define to empty for non recent-GCC.
116720         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116721         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116722         Renamed from their non-__ counterparts, with new macros replacing
116723         them if not _LIBC.  Add __THROW attribute.
116724         (rol): Remove.
116725         (struct md5_ctx): Align buffer if using GCC.
116726         * lib/sha1.h (struct sha1_ctx): Likewise.
116727         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116728         The old name was backwards.
116729         (NOTSWAP): Remove; not used.
116730         (rol): New macro, moved here from md5.h.
116731         (sha1_process_block): Remove a FIXME that doesn't make sense.
116733 2005-09-12  Derek Price  <derek@ximbiot.com>
116735         Return usable errors from canon-host.
116736         * lib/canon-host.h: New file.
116737         * lib/canon-host.c (canon_host): Wrap...
116738         (canon_host_r): ...this new function, which now relies exclusively on
116739         getaddrinfo.
116740         (ch_strerror): New function.
116741         (last_cherror): New global.
116742         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116743         interface.
116744         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116745         void *.
116746         (freeaddrinfo): Free ai->ai_canonname when set.
116748 2005-09-12  Derek Price  <derek@ximbiot.com>
116750         Make canon-host require getaddrinfo.
116751         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116752         AC_LIBSOURCE canon-host.h.  Call...
116753         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116754         gl_GETADDRINFO.
116755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116757 2005-09-12  Derek Price  <derek@ximbiot.com>
116759         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116760         LGPL.
116761         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116763 2005-09-12  Derek Price  <derek@ximbiot.com>
116765         * lib/gai_strerror.c: Include config.h when available.  Include
116766         getaddrinfo.h before other headers to test interface.
116767         Reported by Larry Jones <lawrence.jones@ugs.com>.
116769 2005-09-12  Derek Price  <derek@ximbiot.com>
116770             Paul Eggert  <eggert@cs.ucla.edu>
116772         * modules/glob (Files): Add glob-libc.h.
116774 2005-09-12  Derek Price  <derek@ximbiot.com>
116775             Paul Eggert  <eggert@cs.ucla.edu>
116777         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116778         glob_.h, glob-libc.h.
116779         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116781 2005-09-12  Derek Price  <derek@ximbiot.com>
116782             Paul Eggert  <eggert@cs.ucla.edu>
116784         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116785         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116786         protecting things that should be done only in gnulib contexts.
116787         * lib/glob_.h: New file, containing only the glob things needed for
116788         gnulib.
116789         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116790         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116791         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116792         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
116793         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
116794         and to respect the namespace rules better.
116796 2005-09-08  Simon Josefsson  <jas@extundo.com>
116798         * modules/socklen: New file.
116800 2005-09-08  Simon Josefsson  <jas@extundo.com>
116802         * m4/socklen.m4: New file.
116804 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116806         * modules/utimens (Files): Add m4/utimbuf.m4, since
116807         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
116808         Reported by Sergey Poznyakoff.
116810 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116812         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
116813         definitions, since that's the preferred style in glibc.
116814         Fix a minor spacing issue, and update copyright notice to match
116815         glibc's.
116817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116819         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116821 2005-09-06  Simon Josefsson  <jas@extundo.com>
116823         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116824         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116826 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116828         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116829         warning.
116831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116833         * config/srclist.txt: Add glibc bug 1302.
116835 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116837         Change bitset word type from unsigned int to unsigned long int,
116838         as this has better performance on typical 64-bit hosts.
116839         Port bitset code to hosts with unusual word sizes.
116840         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116841         (build_collating_symbol):
116842         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116843         argument is a bitset.  This is merely a style issue, but it makes
116844         it clearer that an entire array is expected.
116845         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116846         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116847         Port to the case where bitset_word is not the same as unsigned int.
116848         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116849         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116850         Likewise.
116851         * lib/regexec.c (check_dst_limits_calc_pos_1,
116852         check_subexp_matching_top):
116853         (build_trtable, group_nodes_into_DFAstates):
116854         Likewise.
116855         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116856         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116857         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116858         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116859         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116860         * lib/regcomp.c (optimize_subexps, lower_subexp):
116861         Work even if bitset_word has holes in its bitwise representation.
116862         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116863         * lib/regexec.c (check_dst_limits_calc_pos_1,
116864         check_subexp_matching_top):
116865         Likewise.
116866         * lib/regex_internal.c (re_string_reconstruct):
116867         Don't assume UCHAR_MAX == 255.
116868         * lib/regex_internal.h (bitset_set_all): Likewise.
116869         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116870         All uses changed.
116871         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116872         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116873         All uses changed.
116874         (BITSET_WORD_MAX): New macro.
116875         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116876         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116877         (bitset_empty, bitset_copy):
116878         Prefer sizeof (bitset) to multiplying it out ourselves.
116879         (bitset_not_merge): Remove; unused.
116880         (bitset_contain): Return bool, not unsigned int with one bit on.
116881         All callers changed.
116882         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116883         alignment than re_node_set; do this by defining a new internal
116884         type struct dests_alloc and using it to allocate memory.
116886 2005-09-05  Bruno Haible  <bruno@clisp.org>
116888         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116889         links.
116891 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116893         * modules/size_max (Makefile.am): Add size_max.h
116895 2005-09-04  Derek Price  <derek@ximbiot.com>
116897         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116899 2005-09-03  Simon Josefsson  <jas@extundo.com>
116901         * gnulib-tool: Fix typo.
116903 2005-09-03  Simon Josefsson  <jas@extundo.com>
116905         * config/srclist.txt: Add glibc bug 1293.
116907 2005-09-03  Derek Price  <derek@ximbiot.com>
116909         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116910         From Larry Jones <lawrence.jones@ugs.com>.
116912 2005-09-02  Simon Josefsson  <jas@extundo.com>
116914         * modules/socklen: New file.
116916 2005-09-02  Simon Josefsson  <jas@extundo.com>
116918         * modules/havelib: New module.
116920         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116921         Use havelib.
116923 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116925         Check for arithmetic overflow when calculating sizes, to prevent
116926         some buffer-overflow issues.  These patches are conservative, in the
116927         sense that when I couldn't determine whether an overflow was possible,
116928         I inserted a run-time check.
116929         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116930         macros.
116931         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116932         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116933         (re_xnrealloc, re_x2nrealloc): New inline functions.
116934         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116935         parse_bracket_exp):
116936         (build_equiv_class, build_charclass): Check for arithmetic overflow
116937         in size expression calculations.
116938         * lib/regex_internal.c (re_string_realloc_buffers):
116939         (build_wcs_upper_buffer, re_node_set_add_intersect):
116940         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116941         (re_dfa_add_node, register_state): Likewise.
116942         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116943         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116944         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116945         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116947 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116949         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116950         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116952 2005-09-02  Bruno Haible  <bruno@clisp.org>
116954         Support for lib vs. lib64 distinction on biarch platforms.
116955         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116956         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116959 2005-09-02  Bruno Haible  <bruno@clisp.org>
116961         * gnulib-tool (import): In the other first-use case, provide defaults
116962         as well.
116964 2005-09-02  Bruno Haible  <bruno@clisp.org>
116966         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116967         patches not yet found in the latest gettext release.
116969 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116971         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116972         to avoid a collision with bits/local_lim.h in glibc.
116973         All uses changed.  Problem reported by Dmitry V. Levin in
116974         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116976         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116977         bugs in int versus size_t comparisons.
116978         (re_string_context_at): Fix bug where the code assumed that
116979         Idx is signed.
116981         Use bool where appropriate.
116982         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116983         All callers changed.
116984         (calc_eclosure_iter): Likewise, for ROOT arg.
116985         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116986         (build_charclass_op): Likewise, for NON_MATCH arg.
116987         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116988         (re_string_construct_common): Likewise, for ICASE arg.
116989         * lib/regexec.c (re_search_2_stub, re_search_stub):
116990         Likewise, for RET_LEN arg.
116991         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116992         (set_regs): Likewise, for FL_BACKTRACK arg.
116993         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116994         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116995         (calc_eclosure_iter, parse_bracket_exp):
116996         Use bool for internal variables that are booleans.
116997         * lib/regexec.c (re_search_internal, check_matching,
116998         proceed_next_node):
116999         (set_regs, build_sifted_states, sift_states_bkref):
117000         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
117001         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117002         (find_collation_sequence_value):
117003         Likewise.
117004         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
117005         (re_node_set_compare):
117006         Return bool, not int. All callers changed.
117007         * lib/regexec.c (check_halt_node_context, check_dst_limits):
117008         (build_trtable, check_node_accept): Likewise.
117009         * lib/regex_internal.h: Include stdbool.h.
117011         Fix bugs uncovered when converting to bool.
117012         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
117013         failure instead of charging ahead blindly.
117014         * lib/regex_internal.c (register_state): Likewise.
117015         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
117016         for freeing internal storage.
117017         (group_nodes_into_DFA_states): Use unsigned int, not int, for
117018         bitset pieces used as boolean, to avoid undefined behavior
117019         on hosts that do int overflow checking.
117021 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117023         * config/srclist.txt: Add glibc bugs 1285-1287.
117025 2005-09-01  Jim Meyering  <jim@meyering.net>
117027         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
117028         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
117029         Require gl_STAT_MACROS, too.
117031 2005-09-01  Bruno Haible  <bruno@clisp.org>
117033         * gnulib-tool (import): In the first-use case, provide defaults.
117035 2005-09-01  Bruno Haible  <bruno@clisp.org>
117037         * gnulib-tool (func_import): Remove the .tmp files.
117039 2005-09-01  Bruno Haible  <bruno@clisp.org>
117041         * gnulib-tool (func_import): Fix handling of symbolic links.
117043 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117045         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
117046         old glibc regex code mishandles strings longer than 2**31 bytes.
117047         This patch fixes this when the regex code is used in gnulib
117048         (i.e., outside glibc).
117050         This patch should not affect the use of the regex code inside
117051         glibc.  No doubt this problem also needs to be handled for glibc
117052         as well, but the result will be an incompatible change to the
117053         glibc ABI, and the old ABI will have to be supported too.  That
117054         can be the subject for another patch.
117056         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
117057         governing whether the rest of this patch is active.  By default,
117058         the macro is disabled and the patch has no effect.
117059         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
117060         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
117061         (struct re_pattern_buffer, re_search, re_search_2, re_match):
117062         (re_match_2, re_set_registers): Use the new types.
117063         * lib/regex_internal.h (Idx, re_hashval_t): New types.
117064         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
117065         New macros.
117066         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
117067         (re_string_context_at, bin_tree_t, re_dfastate_t):
117068         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
117069         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
117070         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
117071         (re_string_char_size_at, re_string_wchar_at):
117072         (re_string_elem_size_at):
117073         Use the new types and macros to port to 64-bit hosts.
117074         Use unsigned types for internal values, so that the code
117075         mostly works even for arrays larger than SSIZE_MAX.
117076         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
117077         (search_duplicated_node, calc_eclosure_iter, fetch_number):
117078         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
117079         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
117080         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
117081         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
117082         (calc_inveclosure, parse_dup_op, build_range_exp):
117083         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
117084         (fetch_number, create_token_tree, mark_opt_subexp):
117085         Likewise.
117086         * lib/regex_internal.c (re_string_construct_common,
117087         create_ci_newstate):
117088         (create_cd_newstate, re_string_allocate, re_string_construct):
117089         (re_string_realloc_buffers, build_wcs_upper_buffer):
117090         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117091         (re_string_reconstruct, re_string_peek_byte_case):
117092         (re_string_fetch_byte_case, re_string_context_at):
117093         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117094         (re_node_set_init_copy, re_node_set_add_intersect):
117095         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117096         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117097         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117098         (re_acquire_state, re_acquire_state_context, register_state):
117099         Likewise.
117100         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
117101         search_cur_bkref_entry):
117102         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
117103         (re_search_internal, re_search_2_stub, re_search_stub)
117104         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
117105         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
117106         (update_cur_sifted_state, check_dst_limits):
117107         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117108         (check_subexp_limits, sift_states_bkref, merge_state_array):
117109         (check_subexp_matching_top, get_subexp, get_subexp_sub):
117110         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
117111         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117112         (expand_bkref_cache, check_node_accept_bytes):
117113         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
117114         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
117115         (acquire_init_state_context, check_halt_node_context):
117116         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
117117         (sift_states_backward, clean_state_log_if_needed):
117118         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
117119         (find_recover_state, transit_state_sb, transit_state_mb):
117120         (transit_state_bkref, build_trtable, match_ctx_clean):
117121         Likewise.
117122         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
117123         to work around an assumption that REG_MISSING is negative.
117125         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
117126         (seek_collating_symbol_entry) [defined _LIBC]:
117127         (lookup_collation_sequence_value) [defined _LIBC]:
117128         (build_range_exp, build_collating_symbol) [defined _LIBC]:
117129         Use prototypes rather than old-style function definitions.
117130         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
117131         (transit_state_sb) [0]:
117132         (find_collation_sequence_value) [defined _LIBC]: Likewise.
117134         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
117135         rm_eo.
117137         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
117138         (optimize_subexps, lower_subexp):
117139         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
117140         since the signed shift might overflow.  Use 1u<<31 instead.
117141         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117142         Likewise.
117143         * lib/regexec.c (check_dst_limits_calc_pos_1,
117144         check_subexp_matching_top): Likewise.
117146         * lib/regcomp.c (optimize_subexps, lower_subexp):
117147         Use CHAR_BIT rather than 8, for clarity.
117148         * lib/regexec.c (check_dst_limits_calc_pos_1):
117149         (check_subexp_matching_top): Likewise.
117150         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
117151         have to worry about portability issues when shifting it left.
117152         Remove no-longer-needed test for table_size > 0.
117153         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
117154         in a word, as the resulting behavior is undefined.
117155         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
117156         in one case, a <= should have been an <, and in another case the
117157         whole test was missing.
117158         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
117159         the standard name CHAR_BIT.
117160         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
117161         this is not true on one's complement and signed-magnitude hosts.
117163         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
117164         next_last_offset.
117165         (struct re_dfa_t): Remove unused member states_alloc.
117166         * lib/regcomp.c (init_dfa): Don't initialize unused members.
117168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117170         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
117171         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
117172         and large-file glibc and in 32-bit large-file Solaris.
117174 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117176         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
117177         lengths fit in regoff_t; this isn't true if regoff_t is the same
117178         width as size_t.
117179         * lib/regex.c (re_search_internal): 5th arg is LAST_START
117180         (= START + RANGE) instead of RANGE.  This avoids overflow
117181         problems when regoff_t is the same width as size_t.
117182         All callers changed.
117183         (re_search_2_stub): Check for overflow when adding the
117184         sizes of the two strings.
117185         (re_search_stub): Check for overflow when adding START
117186         to RANGE; if it occurs, substitute the extreme value.
117188 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117190         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
117192 2005-08-31  Jim Meyering  <jim@meyering.net>
117194         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
117195         a pointer-to-const.
117196         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
117197         (register_state): Likewise.
117198         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
117199         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117200         (group_nodes_into_DFAstates): Likewise.
117202 2005-08-31  Jim Meyering  <jim@meyering.net>
117204         * check-module: Add a FIXME comment.
117206 2005-08-31  Eric Blake  <ebb9@byu.net>
117208         * modules/unistd-safer (Files): Add unistd--.h.
117209         * modules/stdio-safer (Files): Add stdio--.h.
117211 2005-08-31  Derek Price  <derek@ximbiot.com>
117213         * lib/getdelim.c (getdelim): Return EOF on EOF.
117214         Reported by Larry Jones <lawrence.jones@ugs.com>.
117216 2005-08-31  Bruno Haible  <bruno@clisp.org>
117218         Avoid unnecessary diffs in the generated lib/Makefile.am.
117219         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
117220         the generated files.
117221         (func_import): Don't set cmd.
117223 2005-08-31  Bruno Haible  <bruno@clisp.org>
117225         * lib/strstr.c: Include <stddef.h>, for NULL.
117226         * lib/strcasestr.c: Likewise.
117227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117229 2005-08-31  Bruno Haible  <bruno@clisp.org>
117231         * gnulib-tool: New option --macro-prefix.
117232         (func_import): Use macro_prefix.
117233         (import): Handle option --macro-prefix.
117235 2005-08-31  Bruno Haible  <bruno@clisp.org>
117237         * gnulib-tool (import): Rename most ac_* variables to cached_*.
117238         Also use new variables cached_lgpl, cached_libtool.
117240 2005-08-31  Bruno Haible  <bruno@clisp.org>
117242         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
117243         always instantiating them.
117245 2005-08-31  Bruno Haible  <bruno@clisp.org>
117247         * gnulib-tool (func_import): Read the previous cached settings
117248         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
117249         earlier added by gnulib but are now dropped. Warn when a gnulib file
117250         overwrites a non-gnulib file.
117252 2005-08-31  Bruno Haible  <bruno@clisp.org>
117254         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
117255         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
117256         projects that don't keep autogenerated files in CVS. Put into
117257         actioncmd only the specified modules, not the transitive closure.
117259 2005-08-31  Bruno Haible  <bruno@clisp.org>
117261         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
117262         Create directories that shall be filled.
117263         (import): Don't look for gl_* macros in configure.ac. Recurse across
117264         all directories containing a gnulib-cache.m4 files, if meaningful.
117266 2005-08-31  Bruno Haible  <bruno@clisp.org>
117268         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
117269         (import): Set seen_libtool when we see gl_LIBTOOL.
117271 2005-08-31  Bruno Haible  <bruno@clisp.org>
117273         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
117274         declaration macro definitions from generated gnulib.m4.
117276 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
117278         * lib/iconvme.h: Add prototype for iconv_alloc.
117280 2005-08-29  Simon Josefsson  <jas@extundo.com>
117282         * lib/iconvme.c: Fix errno.
117284 2005-08-29  Bruno Haible  <bruno@clisp.org>
117286         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
117287         that it works when the directory contains spaces.
117289 2005-08-29  Bruno Haible  <bruno@clisp.org>
117291         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
117293 2005-08-29  Bruno Haible  <bruno@clisp.org>
117295         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
117296         Emit more advice.
117298 2005-08-29  Bruno Haible  <bruno@clisp.org>
117299         and Stepan Kasal  <kasal@ucw.cz>
117301         * check-module: If more parameters are given, check each of them
117302         separately; add more exceptions, as noted by Jim Meyering.
117303         (check_module): New procedure.
117304         (%exempt_header): Now contains all exceptions.
117306 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
117308         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
117310 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
117312         * lib/iconvme.c: Split iconv_string into iconv_alloc.
117314 2005-08-28  Bruno Haible  <bruno@clisp.org>
117316         * m4/gnulib-tool.m4: New file.
117318 2005-08-27  Jim Meyering  <jim@meyering.net>
117320         * modules/unistd-safer (Files): Add pipe-safer.c.
117321         * modules/fcntl-safer (Files): Add creat-safer.c.
117323 2005-08-27  Jim Meyering  <jim@meyering.net>
117325         * m4/stdlib-safer.m4: New file.  From coreutils.
117326         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
117327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
117328         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
117329         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
117330         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
117332 2005-08-27  Jim Meyering  <jim@meyering.net>
117334         * lib/fopen-safer.c: Merge minor changes from coreutils.
117335         * lib/dup-safer.c: Likewise.
117336         * lib/fd-safer.c: Likewise.
117338         Merge from coreutils.
117339         * lib/stdio--.h: New file.
117340         * lib/stdlib--.h: New file.
117341         * lib/mkstemp-safer.c: New file.
117343         GNU tar needs these.
117344         * lib/pipe-safer.c: New file.
117345         * lib/creat-safer.c: New file.
117346         * lib/fcntl--.h (creat): Define to creat_safer.
117347         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
117348         * lib/unistd--.h (pipe): Define to pipe_safer.
117349         * lib/unistd-safer.h: Declare pipe_safer.
117351 2005-08-26  Simon Josefsson  <jas@extundo.com>
117353         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
117354         Haible <bruno@clisp.org>.
117356 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
117358         * lib/regex_internal.h: Remove all references to
117359         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
117360         or better.
117361         (bitset_not, bitset_merge, bitset_not_merge):
117362         (bitset_mask, re_string_allocate, re_string_construct):
117363         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
117364         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
117365         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
117366         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
117367         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117368         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117369         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
117370         (re_acquire_state_context):
117371         Remove unnecessary forward decls.
117372         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
117373         Put __attribute at function definition,
117374         now that the function decl has been removed.
117375         * lib/regex_internal.c (re_string_peek_byte_case):
117376         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
117377         Likewise.
117379 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117381         * m4/regex.m4: Add AC_PREREQ(2.50).
117382         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117384 2005-08-25  Simon Josefsson  <jas@extundo.com>
117386         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117387         __fsetlocking.
117389 2005-08-25  Simon Josefsson  <jas@extundo.com>
117391         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117392         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117393         GLIBC specific code.
117395 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117397         Make regex safe for g++.  This fixes one real bug (an "err"
117398         that should have been "*err").  g++ problem reported by
117399         Sam Steingold.
117400         * lib/regex_internal.h (re_calloc): New macro, consistent with
117401         re_malloc etc.  All callers of calloc changed to use re_calloc.
117402         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117403         not int.  All callers changed.
117404         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117405         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117406         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117407         (find_recover_state): Change "err" to "*err"; this fixes what
117408         appears to be a real bug.
117409         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117410         versus int.
117412 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117414         * modules/regex (Depends-on): Add malloc, since the code
117415         assumes that !malloc(0) means failure.
117417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117419         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117421         alloca modernization/simplification for regex.
117422         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117423         needs to be at the start of the file, and can be moved into
117424         regex_internal.h and simplified.
117425         * lib/regex_internal.h: Include <alloca.h>.
117426         (__libc_use_alloca) [!defined _LIBC]: New macro.
117427         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117428         now works outside glibc.
117430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117432         * config/srclist.txt: Add glibc bugs 1241, 1245.
117434 2005-08-25  Jim Meyering  <jim@meyering.net>
117436         * lib/open-safer.c: Include <config.h>.
117437         Otherwise, we'd lose LARGEFILE support in any file using
117438         e.g. "fcntl--.h"
117440 2005-08-25  Bruno Haible  <bruno@clisp.org>
117442         * m4/minmax.m4: Require autoconf 2.52.
117443         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117444         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117445         alternatives of translit over the alphabet.
117446         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117448 2005-08-24  Simon Josefsson  <jas@extundo.com>
117450         * tests/test-getpass.c: New file.
117452 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117454         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117455         for GNU regex features.
117457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117459         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117460         * lib/regex.h (regerror): Likewise.
117462         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117463         requires this.  (The code never needed it.)
117465         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117466         All uses of recently-renamed identifiers changed to use the new,
117467         POSIX-compliant names.  The code will build and run just fine
117468         without these changes, but it's better to eat our own dog food
117469         and use the standard-conforming names.
117471         * lib/regex.h: Fix a multitude of POSIX name space violations.
117472         These changes have an effect only for programs that define
117473         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117474         do not change anything for programs compiled in the normal way.
117475         Also, there is no effect on the ABI.
117477         (_REGEX_SOURCE): New macro.
117478         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117479         defined and _GNU_SOURCE is not; this fixes a name space violation.
117481         Rename the following macros to obey POSIX requirements.
117482         The old names are still visible as macros if _REGEX_SOURCE is defined.
117483         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117484         RE_BACKSLASH_ESCAPE_IN_LISTS.
117485         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117486         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117487         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117488         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117489         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117490         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117491         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117492         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117493         (REG_INTERVALS): renamed from RE_INTERVALS.
117494         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117495         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117496         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117497         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117498         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117499         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117500         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117501         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117502         RE_UNMATCHED_RIGHT_PAREN_ORD.
117503         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117504         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117505         (REG_DEBUG): renamed from RE_DEBUG.
117506         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117507         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117508         unusual, since we can't clash with the POSIX REG_ICASE.
117509         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117510         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117511         (REG_NO_SUB): renamed from RE_NO_SUB.
117512         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117513         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117514         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117515         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117516         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117517         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117518         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117519         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117520         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117521         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117522         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117523         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117524         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117525         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117526         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117527         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117528         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117529         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117530         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117531         (REG_FIXED): Renamed from REGS_FIXED.
117532         (REG_NREGS): Renamed from RE_NREGS.
117534         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117535         of other REG_* macros, since POSIX says the user is allowed to
117536         #undef these macros selectively.
117538         (reg_errcode_t): Update comment stating what other tables need
117539         to be consistent.
117541         Rename the following enum values to obey POSIX requirements.
117542         The old names are still visible as macros.
117543         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117544         is not defined, since GNU is supposed to be a superset of POSIX as
117545         much as possible, and since we want reg_errcode_t to be a signed
117546         type for implementation consistency.
117547         (_REG_NOERROR): Renamed from REG_NOERROR.
117548         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117549         (_REG_BADPAT): Renamed from REG_BADPAT.
117550         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117551         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117552         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117553         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117554         (_REG_EBRACK): Renamed from REG_EBRACK.
117555         (_REG_EPAREN): Renamed from REG_EPAREN.
117556         (_REG_EBRACE): Renamed from REG_EBRACE.
117557         (_REG_BADBR): Renamed from REG_BADBR.
117558         (_REG_ERANGE): Renamed from REG_ERANGE.
117559         (_REG_ESPACE): Renamed from REG_ESPACE.
117560         (_REG_BADRPT): Renamed from REG_BADRPT.
117561         (_REG_EEND): Renamed from REG_EEND.
117562         (_REG_ESIZE): Renamed from REG_ESIZE.
117563         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117564         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117565         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117566         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117567         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117569         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117570         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117571         changed.  But support the old name if the new one is not defined
117572         and if _REGEX_SOURCE.
117574         Change the following member names in struct re_pattern_buffer.
117575         The old names are still supported if !_REGEX_SOURCE.
117576         The new names are always supported, regardless of _REGEX_SOURCE.
117577         (re_buffer): Renamed from buffer.
117578         (re_allocated): Renamed from allocated.
117579         (re_used): Renamed from used.
117580         (re_syntax): Renamed from syntax.
117581         (re_fastmap): Renamed from fastmap.
117582         (re_translate): Renamed from translate.
117583         (re_can_be_null): Renamed from can_be_null.
117584         (re_regs_allocated): Renamed from regs_allocated.
117585         (re_fastmap_accurate): Renamed from fastmap_accurate.
117586         (re_no_sub): Renamed from no_sub.
117587         (re_not_bol): Renamed from not_bol.
117588         (re_not_eol): Renamed from not_eol.
117589         (re_newline_anchor): Renamed from newline_anchor.
117591         Change the following member names in struct re_registers.
117592         The old names are still supported if !_REGEX_SOURCE.
117593         The new names are always supported, regardless of _REGEX_SOURCE.
117594         (rm_num_regs): Renamed from num_regs.
117595         (rm_start): Renamed from start.
117596         (rm_end): Renamed from end.
117598         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117599         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117600         Prepend __ to parameter names.
117602         Undo yesterday's changes.
117604 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117606         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117607         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117608         lib/regex.c.
117610 2005-08-24  Jim Meyering  <jim@meyering.net>
117612         Sync from coreutils.
117613         * m4/fcntl-safer.m4: New file.
117615         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117616         and object files for this module.
117618 2005-08-24  Jim Meyering  <jim@meyering.net>
117620         Sync from coreutils.
117621         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117623 2005-08-24  Jim Meyering  <jim@meyering.net>
117625         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117626         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117628 2005-08-24  Jim Meyering  <jim@meyering.net>
117630         * modules/fcntl-safer: New module.
117631         * modules/fts (Depends-on): Add fcntl-safer.
117632         * MODULES.html.sh (File descriptor based Input/Output):
117633         Add fcntl-safer.
117635 2005-08-24  Bruno Haible  <bruno@clisp.org>
117637         Support for unit test modules.
117638         * modules/README: Mention tests modules.
117639         * modules/TEMPLATE-TESTS: New file.
117640         * gnulib-tool: New options --extract-tests-module, --with-tests and
117641         --tests-base (unused for the moment).
117642         (testsbase, inctests): New variables.
117643         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117644         (func_verify_module): Exclude TEMPLATE-TESTS.
117645         (func_verify_nontests_module, func_verify_tests_module): New functions.
117646         (func_get_dependencies): Add implicit dependency for tests modules.
117647         (func_get_tests_module): New function.
117648         (func_modules_transitive_closure): When --with-tests was specified,
117649         include the unit tests as well, unless explicitly avoided.
117650         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117651         (func_emit_tests_Makefile_am): New function.
117652         (func_create_testdir): When --with-tests was specified, emit a
117653         tests/ directory.
117654         * MODULES.html.sh (Future developments): Update.
117656 2005-08-24  Bruno Haible  <bruno@clisp.org>
117658         * modules/tls-tests: New file.
117659         * tests/test-tls.c: New file, from GNU gettext.
117661 2005-08-24  Bruno Haible  <bruno@clisp.org>
117663         * modules/lock-tests: New file.
117664         * tests/test-lock.c: New file, from GNU gettext.
117666 2005-08-24  Bruno Haible  <bruno@clisp.org>
117668         * lib/lock.h: Add multiple inclusion guard.
117669         * lib/tls.h: Add multiple inclusion guard.
117671 2005-08-24  Bruno Haible  <bruno@clisp.org>
117673         * gnulib-tool: Add support for the --aux-dir option to
117674         --create-testdir, --create-megatestdir, --test, --megatest.
117675         (func_create_testdir, func_create_megatestdir): Optionally emit a
117676         AC_CONFIG_AUX_DIR directive.
117677         (create-testdir, create-megatestdir, test, megatest): Provide a
117678         default value for $auxdir.
117680 2005-08-24  Bruno Haible  <bruno@clisp.org>
117682         * gnulib-tool (import): Use compound statement instead of subshell
117683         where possible.
117685 2005-08-24  Bruno Haible  <bruno@clisp.org>
117687         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117689 2005-08-24  Bruno Haible  <bruno@clisp.org>
117691         * gnulib-tool (func_version): Update.
117693 2005-08-24  Bruno Haible  <bruno@clisp.org>
117695         * gnulib-tool (func_import, func_create_testdir,
117696         func_create_megatestdir): Quote all autoconf macro arguments.
117698 2005-08-24  Bruno Haible  <bruno@clisp.org>
117700         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117701         option --force, because --force causes the aclocal.m4 of each
117702         subdirectory to be newer than the corresponding config.h.in.
117704 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117706         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117707         All contents moved to gl_REGEX.
117708         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117709         assume that it does.
117711 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117713         * lib/regex.h (REG_NOSYS)
117714         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117715         Define, since POSIX requires it as of 2001.
117716         (_REG_ENOSYS)
117717         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117718         New private symbol, used to keep the enum signed in all cases.
117719         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117720         Youngman in
117721         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117723         * lib/regex_internal.c (re_string_skip_chars, register_state):
117724         (calc_state_hash):
117725         Remove forward decls; no longer needed now that we use prototypes.
117726         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117727         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117728         (clean_state_log_if_needed): Likewise.
117730 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117732         * config/srclist.txt: Add glibc bugs 1231-1233.
117734 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117736         Fix problems reported by Sam Steingold in
117737         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117738         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117739         assumed that reg_errcode_t is a signed type, which is not
117740         necessarily true if _XOPEN_SOURCE is not defined.
117741         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117742         since some compilers warn about it otherwise.
117744 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117746         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117747         (init_word_char, create_initial_state, duplicate_node_closure):
117748         (fetch_token, peek_token_bracket, build_range_exp):
117749         (build_collating_symbol): Remove forward decls; no longer needed
117750         now that we use prototypes.
117752         * lib/regcomp.c:
117753         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117754         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117755         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117756         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117757         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117758         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117759         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117760         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117761         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117762         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117763         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117764         (build_charclass, build_charclass_op, fetch_number, create_tree):
117765         (create_token_tree, mark_opt_subexp, duplicate_tree):
117766         Use prototypes rather than old-style definitions.
117768         * lib/regex_internal.c:
117769         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117770         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117771         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117772         (re_string_reconstruct, re_string_peek_byte_case):
117773         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117774         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117775         (re_node_set_init_copy, re_node_set_add_intersect):
117776         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117777         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117778         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117779         (re_acquire_state, re_acquire_state_context, register_state):
117780         (create_ci_newstate, create_cd_newstate, free_state):
117781         Likewise.
117782         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117783         re_search_2):
117784         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117785         (re_search_internal, prune_impossible_nodes):
117786         (acquire_init_state_context, check_matching, static):
117787         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117788         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117789         (update_regs, sift_states_backward, build_sifted_states):
117790         (clean_state_log_if_needed, merge_state_array):
117791         (update_cur_sifted_state, add_epsilon_src_nodes):
117792         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
117793         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
117794         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
117795         (find_recover_state, check_subexp_matching_top, transit_state_mb):
117796         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
117797         (check_arrival, check_arrival_add_next_nodes):
117798         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117799         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117800         (check_node_accept_bytes, check_node_accept, extend_buffers):
117801         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
117802         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
117803         (sift_ctx_init):
117804         Likewise.
117806         * lib/regex_internal.h:
117807         (re_string_allocate, re_string_construct, re_string_reconstruct):
117808         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
117809         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
117810         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
117811         (re_string_context_at, re_string_peek_byte_case):
117812         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
117813         is defined, since we now use prototypes always.
117815         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
117816         C89 or better.  All uses removed.
117818 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117820         * config/srclist.txt: Add glibc bugs 1220-1227.
117822 2005-08-20  Jim Meyering  <jim@meyering.net>
117824         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117825         of unused local, dfa.
117827 2005-08-20  Bruno Haible  <bruno@clisp.org>
117829         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117831 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117833         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117834         (re_node_set_insert_last, re_dfa_add_node):
117835         Rename local variables to avoid GCC shadowing warnings.
117837 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117839         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117840         [defined lint]: Suppress bogus uninitialized-variable warnings.
117842         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117843         and let the caller return REG_ESPACE if out of space.  This
117844         removes an uninitialied-variable warning with GCC 4.0.1, and also
117845         avoids taking the address of a local variable.  All callers
117846         changed.
117848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117850         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117851         $LIBCSRC/posix/regexec.c.
117852         Add glibc bug 1217 for regcomp.c.
117854 2005-08-19  Jim Meyering  <jim@meyering.net>
117856         * lib/regexec.c (proceed_next_node): Redo local variables to
117857         avoid GCC shadowing warnings.
117859 2005-08-18  Bruno Haible  <bruno@clisp.org>
117861         * lib/strstr.c (strstr): Fix return value in multibyte case.
117862         * lib/strcasestr.c (strcasestr): Likewise.
117864 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117866         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117868 2005-08-17  Jim Meyering  <jim@meyering.net>
117870         Make the %s format (seconds since the epoch) work for a negative
117871         number and when used with a zero-padded field width, e.g. %015s.
117873         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117874         label so that it precedes the code to set `digits'.  Otherwise,
117875         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117876         print `00-22'.  Now, it prints `-0022', as it should.
117878 2005-08-17  Bruno Haible  <bruno@clisp.org>
117880         * modules/strstr (Files): Add m4/mbrtowc.m4.
117881         (Depends-on): Add mbuiter.
117883 2005-08-17  Bruno Haible  <bruno@clisp.org>
117885         * modules/strcasestr: New file.
117886         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117887         strcasestr.
117889 2005-08-17  Bruno Haible  <bruno@clisp.org>
117891         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117893 2005-08-17  Bruno Haible  <bruno@clisp.org>
117895         * modules/mbuiter: New file.
117896         * MODULES.html.sh (Extended multibyte and wide character utilities):
117897         Add mbuiter.
117899 2005-08-17  Bruno Haible  <bruno@clisp.org>
117901         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117902         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117904 2005-08-17  Bruno Haible  <bruno@clisp.org>
117906         * m4/strcasestr.m4: New file.
117908 2005-08-17  Bruno Haible  <bruno@clisp.org>
117910         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117911         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117913 2005-08-17  Bruno Haible  <bruno@clisp.org>
117915         * lib/strcasestr.h: New file.
117916         * lib/strcasestr.c: New file.
117918 2005-08-17  Bruno Haible  <bruno@clisp.org>
117920         * lib/strcasecmp.c: Use mbuiter.h.
117922 2005-08-17  Bruno Haible  <bruno@clisp.org>
117924         * lib/mbuiter.h: New file.
117926 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117929         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117930         and gl_GETOPT are both invoked via different paths (as happens
117931         with GNU tar CVS because it uses both argp and getopt), the former
117932         wins.
117934 2005-08-16  Bruno Haible  <bruno@clisp.org>
117936         * modules/tls: New file.
117937         * MODULES.html.sh (Multithreading): Add tls.
117939 2005-08-16  Bruno Haible  <bruno@clisp.org>
117941         * modules/strnlen1: New file.
117942         * MODULES.html.sh (String handling): Add strnlen1.
117944 2005-08-16  Bruno Haible  <bruno@clisp.org>
117946         * modules/strcase (Files): Add m4/mbrtowc.m4.
117947         (Depends-on): Add strnlen1, mbchar.
117949 2005-08-16  Bruno Haible  <bruno@clisp.org>
117951         * modules/mbiter: New file.
117952         * MODULES.html.sh (Extended multibyte and wide character utilities):
117953         Add mbiter.
117955 2005-08-16  Bruno Haible  <bruno@clisp.org>
117957         * modules/mbfile: New file.
117958         * MODULES.html.sh (Extended multibyte and wide character utilities):
117959         Add mbfile.
117961 2005-08-16  Bruno Haible  <bruno@clisp.org>
117963         * modules/mbchar: New file.
117964         * MODULES.html.sh (Extended multibyte and wide character utilities):
117965         New section.
117967 2005-08-16  Bruno Haible  <bruno@clisp.org>
117969         * m4/tls.m4: New file, from GNU gettext.
117971 2005-08-16  Bruno Haible  <bruno@clisp.org>
117973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117974         always.
117975         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117977 2005-08-16  Bruno Haible  <bruno@clisp.org>
117979         * m4/mbiter.m4: New file.
117981 2005-08-16  Bruno Haible  <bruno@clisp.org>
117983         * m4/mbfile.m4: New file.
117985 2005-08-16  Bruno Haible  <bruno@clisp.org>
117987         * m4/mbchar.m4: New file.
117989 2005-08-16  Bruno Haible  <bruno@clisp.org>
117991         * lib/tls.h: New file, from GNU gettext.
117992         * lib/tls.c: New file, from GNU gettext.
117994 2005-08-16  Bruno Haible  <bruno@clisp.org>
117996         * lib/strnlen1.h: New file.
117997         * lib/strnlen1.c: New file.
117999 2005-08-16  Bruno Haible  <bruno@clisp.org>
118001         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
118002         (mbi_init): Update.
118003         (mbi_avail, mbi_advance): Let the iteration end before the terminating
118004         NUL byte, not after it.
118006 2005-08-16  Bruno Haible  <bruno@clisp.org>
118008         * lib/strcase.h (strcasecmp): Add note in comments.
118009         * lib/strncasecmp.c: Use code from strcasecmp.c.
118010         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
118011         (strcasecmp): Work correctly in multibyte locales.
118013 2005-08-16  Bruno Haible  <bruno@clisp.org>
118015         * lib/mbiter.h: New file.
118017 2005-08-16  Bruno Haible  <bruno@clisp.org>
118019         * lib/mbfile.h: New file.
118021 2005-08-16  Bruno Haible  <bruno@clisp.org>
118023         * lib/mbchar.h: New file.
118024         * lib/mbchar.c: New file.
118026 2005-08-16  Bruno Haible  <bruno@clisp.org>
118028         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
118029         the valid ones. Makes the comparison operations transitive:
118030         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
118031         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
118033 2005-08-15  Simon Josefsson  <jas@extundo.com>
118035         * modules/ssize_t (License): Change to 'unlimited'.
118037         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
118039 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
118041         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
118042         Add comments for each pending glibc patch.
118044 2005-08-15  Bruno Haible  <bruno@clisp.org>
118046         * lib/regex.h (__restrict_arr): Don't define to __restrict if
118047         __cplusplus is defined.
118049 2005-08-14  Jim Meyering  <jim@meyering.net>
118051         Sync from coreutils.
118053         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
118054         Use the hash-table-based cycle-detection code not just when
118055         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
118056         Reported by James Youngman in
118057         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
118058         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
118059         FTS_TIGHT_CYCLE_CHECK.
118060         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
118061         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
118062         once again.
118063         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
118064         * lib/fts.c (fd_safer): Remove decl.
118065         Include fcntl--.h rather than unistd-safer.h
118066         (fts_safe_changedir): Don't call fd_safer; no longer needed
118067         now that we include fcntl--.h.
118069 2005-08-12  Simon Josefsson  <jas@extundo.com>
118071         * modules/getndelim2: Use ssize_t module.
118072         * modules/getnline: Likewise.
118073         * modules/safe-read: Likewise.
118074         * modules/xreadlink: Likewise.
118076         * modules/ssize_t: New file.
118078 2005-08-12  Simon Josefsson  <jas@extundo.com>
118080         * m4/readline.m4: Look for termcap, curses or ncurses if required.
118082 2005-08-12  Simon Josefsson  <jas@extundo.com>
118084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118085         ssize_t.
118087 2005-08-12  Simon Josefsson  <jas@extundo.com>
118089         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
118090         readline, getdelim and check_version.
118091         (Support for systems lacking ISO C 99: Sizes of integer types):
118092         Add size_max.
118094 2005-08-12  Bruno Haible  <bruno@clisp.org>
118096         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
118098 2005-08-11  Simon Josefsson  <jas@extundo.com>
118100         * modules/readline: New file.
118102         * modules/strnlen (Files): Add strnlen.h.
118104 2005-08-11  Simon Josefsson  <jas@extundo.com>
118106         * m4/readline.m4: New file.
118108 2005-08-11  Simon Josefsson  <jas@extundo.com>
118110         * lib/readline.h, readline.c: New file.
118112 2005-08-11  Simon Josefsson  <jas@extundo.com>
118114         * doc/gnulib.texi (Initial import, Finishing touches): Mention
118115         gl_AVOID.
118117 2005-08-11  Bruno Haible  <bruno@clisp.org>
118119         * lib/strnlen.h (strnlen): Change parameter name to match comment.
118121 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
118123         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
118125 2005-08-10  Simon Josefsson  <jas@extundo.com>
118127         * tests/test-iconvme.c: New file.
118129 2005-08-10  Simon Josefsson  <jas@extundo.com>
118131         * m4/strnlen.m4: New file.
118133         * m4/strndup.m4: Don't check for strnlen declaration, done in
118134         strnlen.m4.
118136 2005-08-10  Simon Josefsson  <jas@extundo.com>
118138         * lib/strndup.c: Use strnlen.h.
118140         * lib/strnlen.h: New file.
118142 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118144         * README: Typos.
118146 2005-08-02  Simon Josefsson  <jas@extundo.com>
118148         * modules/readline: New file.
118150 2005-08-02  Simon Josefsson  <jas@extundo.com>
118152         * modules/getdelim: New file.
118154         * modules/getline: Rewrite, don't use getndelim2.
118156 2005-08-02  Simon Josefsson  <jas@extundo.com>
118158         * m4/getline.m4: Separate out getdelim stuff into separate module.
118160         * m4/getdelim.m4: New file.
118162 2005-08-02  Simon Josefsson  <jas@extundo.com>
118164         * lib/getline.h, getline.c: Rewrite.
118166         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
118168 2005-07-31  Bruno Haible  <bruno@clisp.org>
118170         * lib/lock.h (gl_lock_initializer): New macro.
118171         (gl_lock_define_initialized): Use it.
118172         (gl_rwlock_initializer): New macro.
118173         (gl_rwlock_define_initialized): Use it.
118174         (gl_recursive_lock_initializer): New macro.
118175         (gl_recursive_lock_define_initialized): Use it.
118177 2005-07-30  Karl Berry  <karl@gnu.org>
118179         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
118180         Report from Ben Pfaff, regarding getopt.
118182 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
118184         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
118185         normal way.
118186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
118187         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
118188         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
118189         (gl_GETOPT): Use the new macros.  Most of the implementation
118190         is moved to the new macros.  This is for programs like Emacs
118191         that don't want all the functionality of gl_GETOPT.
118193 2005-07-26  Bruno Haible  <bruno@clisp.org>
118195         * m4/lock.m4: Update from GNU gettext.
118197 2005-07-26  Bruno Haible  <bruno@clisp.org>
118199         * lib/lock.h: Update from GNU gettext.
118200         * lib/lock.c: Update from GNU gettext.
118202 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
118204         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
118205         obsolescent AC_TRY_RUN.  Include the default includes files, for
118206         'exit'.
118208 2005-07-24  Bruno Haible  <bruno@clisp.org>
118210         * modules/visibility: New file.
118211         * MODULES.html.sh (Misc): Add visibility.
118213 2005-07-24  Bruno Haible  <bruno@clisp.org>
118215         * m4/visibility.m4: New file.
118217 2005-07-24  Bruno Haible  <bruno@clisp.org>
118219         * doc/visibility.texi: New file.
118221 2005-07-22  Bruno Haible  <bruno@clisp.org>
118223         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
118224         $(ALLOCA_H), redundant through BUILT_SOURCES.
118225         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
118226         redundant through BUILT_SOURCES.
118227         * modules/byteswap (Makefile.am): Remove explicit dependency on
118228         $(BYTESWAP_H), redundant through BUILT_SOURCES.
118229         * modules/fnmatch (Makefile.am): Remove explicit dependency on
118230         $(FNMATCH_H), redundant through BUILT_SOURCES.
118231         * modules/getopt (Makefile.am): Remove explicit dependency on
118232         $(GETOPT_H), redundant through BUILT_SOURCES.
118233         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
118234         redundant through BUILT_SOURCES.
118235         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
118236         redundant through BUILT_SOURCES.
118237         * modules/stdbool (Makefile.am): Remove explicit dependency on
118238         $(STDBOOL_H), redundant through BUILT_SOURCES.
118239         * modules/stdint (Makefile.am): Remove explicit dependency on
118240         $(STDINT_H), redundant through BUILT_SOURCES.
118241         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
118242         Remove explicit dependency on $(SYSEXITS_H).
118243         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
118245 2005-07-18  Simon Josefsson  <jas@extundo.com>
118247         * lib/check-version.c (check_version): Accept identical versions too.
118249 2005-07-18  Bruno Haible  <bruno@clisp.org>
118251         * modules/lock: New file.
118252         * MODULES.html.sh (Multithreading): New section.
118254 2005-07-18  Bruno Haible  <bruno@clisp.org>
118256         * m4/lock.m4: New file, from GNU gettext.
118258 2005-07-18  Bruno Haible  <bruno@clisp.org>
118260         * lib/lock.h: New file, from GNU gettext.
118261         * lib/lock.c: New file, from GNU gettext.
118263 2005-07-18  Bruno Haible  <bruno@clisp.org>
118265         * lib/lock.h (gl_once_t): New type.
118266         (gl_once_define, gl_once): New macros.
118267         * lib/lock.c (fresh_once): New variable.
118268         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
118269         functions.
118271 2005-07-16  Simon Josefsson  <jas@extundo.com>
118273         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
118274         workaround, suggested by Bruno.
118276 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118278         * modules/xalloc (Depends-on): Add xalloc-die.
118279         * modules/xvasprintf (Depends-on): Add xalloc-die.
118281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118283         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
118284         with a minor change.
118286 2005-07-15  Bruno Haible  <bruno@clisp.org>
118288         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
118289         When using lib/poll.c, define poll as rpl_poll.
118291 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
118293         * modules/argp (Depends-on): Remove unlocked-io.
118295 2005-07-14  Derek Price  <derek@ximbiot.com>
118297         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
118298         for glob symlink bug.
118300 2005-07-14  Bruno Haible  <bruno@clisp.org>
118302         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
118303         Instead, test for *_unlocked function declarations directly.
118305 2005-07-11  Simon Josefsson  <jas@extundo.com>
118307         * modules/size_max: New file.
118309         * modules/xsize: Depend on size_max module for size_max.m4.
118311 2005-07-11  Simon Josefsson  <jas@extundo.com>
118313         * lib/size_max.h: New file.
118315 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
118317         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
118318         copyright symbol and the year.
118319         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
118320         (version_etc_va): Use parameterized copyright notice.
118321         Reword to conform to the current GNU coding standards.
118323 2005-07-11  Karl Berry  <karl@gnu.org>
118325         * doc/gnulib.texi (Quoting): new node.
118326         (Initial import): more info, from Patrice.
118328 2005-07-11  Bruno Haible  <bruno@clisp.org>
118330         * gnulib-tool (func_usage): Document option --avoid.
118331         (Command line options): Handle --avoid.
118332         (func_acceptable): New function.
118333         (func_modules_transitive_closure): Use it.
118335 2005-07-11  Bruno Haible  <bruno@clisp.org>
118337         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
118338         Reported by Jim Meyering.
118340 2005-07-10  Bruno Haible  <bruno@clisp.org>
118342         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
118343         Needed when size_t is smaller than 'unsigned int'.
118344         Reported by Paul Eggert.
118346 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118348         * modules/argp (Depends-on): Add unlocked-io
118350 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118352         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
118353         block of defines.
118355 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
118357         * config/srclist.txt: Comment out regcomp.c, since we have a porting
118358         fix now.
118360 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
118361         and Paul Eggert  <eggert@cs.ucla.edu>
118363         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
118364         in wint_t, not wchar_t.  Remove now-unnecessary cast.
118366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118368         * modules/regex (Files): Add lib/regex_internal.c,
118369         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
118370         (Depends-on): Add extensions.
118371         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
118373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118375         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
118376         pathconf.
118377         * m4/same.m4 (gl_SAME): Likewise.
118378         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118380         * m4/regex.m4: Adjust to new libc regex implementation.
118381         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118382         all the .c and .h parts of (the new) regex.
118383         Quote the m4 stuff better.
118384         Check for RE_ICASE bug of old gnulib.
118385         Check for REG_STARTEND of recent libc.
118386         Rename local variables from jm_* to gl_*.
118387         Quote operand of "test -f".
118388         Say "recent enough" version of libc, not "version 2".
118389         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118390         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118391         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118392         Remove check for btowc, isascii.
118393         Require AM_LANGINFO_CODESET.
118395 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118397         * lib/regex.c, regex.h: Sync from libc.
118398         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118399         * lib/regexec.c:
118400         New files, synced from libc, except that regex_internal.h
118401         currently has a small porting fix.
118403 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118405         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118406         regex_internal.c, regexec.c.
118407         Add regex_internal.h too, but as a comment, since the libc version
118408         is currently broken in gnulib mode.
118410 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118412         Support programs like Emacs that use gnulib but not gettext.
118413         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118414         * modules/gettext-h: New file.
118415         * modules/gettext (Files): Remove lib/gettext.h.
118416         (Depends-on): Add gettext-h.
118417         (Makefile.am): Remove lib_SOURCES.
118418         * modules/argmatch, modules/c-stack, modules/closeout:
118419         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118420         * modules/execute, modules/file-type, modules/getaddrinfo:
118421         * modules/getopt, modules/human, modules/javacomp:
118422         * modules/javaexec, modules/mkdir-p, modules/obstack:
118423         * modules/openat, modules/pagealign_alloc, modules/pipe:
118424         * modules/quotearg, modules/regex, modules/rpmatch:
118425         * modules/unicodeio, modules/userspec, modules/version-etc:
118426         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118427         * modules/xsetenv:
118428         Depend on gettext-h, not gettext.
118430 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118432         * gnulib-tool (func_import): Add support for 'public domain' license.
118433         * modules/alloca, modules/atexit, modules/memmove:
118434         Now public domain, not GPL.
118435         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118436         * modules/realloc, modules/strerror, modules/strtod:
118437         Now LGPL, not GPL.
118439 2005-07-05  Bruno Haible  <bruno@clisp.org>
118441         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118442         autoconf CVS. Needed for mingw.
118444 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118446         Remove the dependency of the strftime module on the tzset module.
118447         * modules/strftime (Depends-on): Remove dependency on tzset.
118449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118451         Remove the dependency of the strftime module on the tzset module.
118452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118453         gl_FUNC_TZSET_CLOBBER.
118455 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118457         Remove the dependency of the strftime module on the tzset module.
118458         * lib/strftime.c (my_strftime)
118459         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118460         Copy the input structure, to work around some of the bug with
118461         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118462         Solaris releases, you should also use the tzset module, but we won't
118463         require it as a dependency any more since we don't want LGPLed code
118464         to depend on GPLed code.
118466 2005-07-02  Jim Meyering  <jim@meyering.net>
118468         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118469         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118470         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118471         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118473 2005-07-02  Jim Meyering  <jim@meyering.net>
118475         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118477 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118479         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118480         declares only 'struct timespec;' (!).
118482 2005-07-01  Jim Meyering  <jim@meyering.net>
118484         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118485         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118486         * lib/save-cwd.c, tempname.c:
118487         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118488         and don't include <sys/file.h>).
118490 2005-06-29  Jim Meyering  <jim@meyering.net>
118492         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118493         type name.  Use the variable name instead.
118494         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118495         Likewise.
118497 2005-06-28  Simon Josefsson  <jas@extundo.com>
118499         * modules/check-version (Files): Add check-version.m4.
118501 2005-06-28  Simon Josefsson  <jas@extundo.com>
118503         * m4/check-version.m4: New file, suggested by Jim Meyering
118504         <jim@meyering.net>.
118506 2005-06-28  Simon Josefsson  <jas@extundo.com>
118508         * lib/check-version.h, lib/check-version.c: New files.
118510 2005-06-28  Simon Josefsson  <jas@extundo.com>
118512         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118513         collision with global variable.  Better indentation.  Don't
118514         increment buffer pointer beyond buffer end.  Based on comments
118515         from Paul Eggert <eggert@cs.ucla.edu>.
118517         * lib/base64.h: Indent.
118519 2005-06-28  Simon Josefsson  <jas@extundo.com>
118521         * doc/gnulib.texi (Library version handling): New section.
118523 2005-06-28  Jim Meyering  <jim@meyering.net>
118525         * check-module (find_included_lib_files): Hard-code another
118526         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118527         but modules/fts-lgpl (correctly) does not list those files.
118529         * modules/canonicalize (Files): Add lib/pathmax.h.
118531 2005-06-25  Simon Josefsson  <jas@extundo.com>
118533         * modules/check-version: New file.
118535 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118537         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118538         initializer of struct addrinfo, as an indication that we don't
118539         care how many members the structure has.
118541 2005-06-24  Derek Price  <derek@ximbiot.com>
118542         and Bruno Haible  <bruno@clisp.org>
118544         Remove stat module & update lstat.
118545         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118546         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118547         * m4/stat.m4: Remove this file.
118549 2005-06-24  Derek Price  <derek@ximbiot.com>
118550         and Bruno Haible  <bruno@clisp.org>
118552         Remove stat module & update lstat.
118553         * lib/stat.c: Remove this file...
118554         (slash_aware_lstat): ...moving this content and its support...
118555         * lib/lstat.c (rpl_lstat): ...into here.
118556         * lib/lstat.h: New file.
118558 2005-06-24  Derek Price  <derek@ximbiot.com>
118559         and Bruno Haible  <bruno@clisp.org>
118561         Remove stat module & update lstat.
118562         * config/srclist.txt (libc sources): Remove stat.
118564 2005-06-24  Derek Price  <derek@ximbiot.com>
118565         and Bruno Haible  <bruno@clisp.org>
118567         Remove stat module & update lstat.
118568         * MODULES.html.sh (stat): Remove.
118569         * MODULES.html: Regenerated.
118570         * modules/lstat (Description): Correct function name.
118571         (Files): Add "lstat.h".
118572         (Depends-on): Remove stat, add xalloc, stat-macros.
118573         * modules/stat: Remove this file.
118574         (Include): Add "lstat.h", remove <sys/stat.h>.
118576 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118578         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118579         (ranged_convert): Don't save conversion in a temporary struct.
118580         This causes a warning with GCC 4.0.0, and anyway in the typical
118581         case it's not worth the extra 100 bytes or so of code.
118582         (ranged_convert, __mktime_internal): When calling a function via a
118583         pointer P, use P () rather than (*P) (), as we now assume C89 or
118584         better.
118586 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118588         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118589         "who -r" failed to give output.  Problem reported by Tim Waugh.
118591         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118592         (xcalloc): Use it to avoid needless tests.
118593         Problem reported by Jim Meyering.
118595 2005-06-20  Derek Price  <derek@ximbiot.com>
118597         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118598         unnecessary for Autoconfs > 2.59c.
118600 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118602         * lib/argp.h (__option_is_short): Check upper limit of
118603         __key. Isprint() requires its argument to have the value
118604         of an unsigned char or EOF.
118606 2005-06-16  Jim Meyering  <jim@meyering.net>
118608         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118609         when either N or S is zero.
118611 2005-06-16  Derek Price  <derek@ximbiot.com>
118613         * m4/bison.m4: Declare YACC & YFLAGS precious.
118615 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118617         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118618         multibyte string or pattern, fall back on unibyte matching.
118619         Problem reported by James Youngman.
118621 2005-06-08  Bruno Haible  <bruno@clisp.org>
118623         * modules/csharpcomp: New file.
118624         * MODULES.html.sh (C#): Add csharpcomp.
118626 2005-06-08  Bruno Haible  <bruno@clisp.org>
118628         * m4/csharpcomp.m4: New file, from GNU gettext.
118630 2005-06-08  Bruno Haible  <bruno@clisp.org>
118632         * lib/csharpcomp.h: New file, from GNU gettext.
118633         * lib/csharpcomp.c: New file, from GNU gettext.
118634         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118636 2005-06-08  Bruno Haible  <bruno@clisp.org>
118638         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118639         warning on mingw.
118641 2005-06-07  Derek Price  <derek@ximbiot.com>
118643         Sync from CVS.
118644         * lib/glob_.h: Indent nested #ifdef.
118646 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118648         Sync from coreutils.
118649         Use "file name" when talking about file names, instead of "filename"
118650         or "path", as per the GNU coding standards.
118651         * lib/mkdir-p.c: Renamed from makepath.c.
118652         (make_dir_parents): Renamed from make_path.  All callers changed.
118653         * lib/mkdir-p.h: Likewise.  All includers changed.
118654         * lib/filenamecat.c: Renamed from path-concat.c.
118655         (file_name_concat): Renamed from path_concat.  All callers changed.
118656         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118657         * lib/filenamecat.h: Likewise.  All includers changed.
118658         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118659         in comments or local variable names.
118660         * lib/basename.c: Likewise.
118661         * lib/canonicalize.c, canonicalize.h: Likewise.
118662         * lib/dirname.c, dirname.h: Likewise.
118663         * lib/euidaccess.c: Likewise.
118664         * lib/exclude.c: Likewise
118665         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118666         * lib/fsusage.c, fsuage.h: Likewise.
118667         * lib/fts.c, fts_.h: Likewise.
118668         * lib/getcwd.c: Likewise.
118669         * lib/getloadavg.c: Likewise.
118670         * lib/mkstemp.c: Likewise.
118671         * lib/mountlist.c, mountlist.h: Likewise.
118672         * lib/openat.c, openat.h: Likewise.
118673         * lib/readlink-stub.c: Likewise.
118674         * lib/readutmp.c, readutmp.h: Likewise.
118675         * lib/rename.c: Likewise.
118676         * lib/rmdir.c: Likewise.
118677         * lib/same.c: Likewise.
118678         * lib/savedir.c: Likewise.
118679         * lib/stripslash.c: Likewise.
118680         * lib/tempname.c: Likewise.
118681         * lib/xreadlink.c: Likewise.
118682         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118683         All uses changed.
118684         * lib/exclude.h: Likewise.
118686         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118687         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118688         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118689         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118690         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118691         files have been getting away with it for years (MORE/BSD 4.3
118692         is extinct now).
118693         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118696         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118697         Define to 256, not 255, as per modern POSIX.
118699 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118701         Sync from coreutils.
118702         Use "file name" when talking about file names, instead of "filename"
118703         or "path", as per the GNU coding standards.
118704         * MODULES.html.sh: mkdir-p renamed from makepath.
118705         filenamecat renamed from path-concat.
118706         * modules/filenamecat: Renamed from modules/path-concat.
118707         (Files): filenamecat.h and filenamecat.c renamed from
118708         path-concat.h and path-concat.c.
118709         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118710         (Include): filenamecat.h, not path-concat.h.
118711         * modules/mkdir-p: Renamed from modules/makepath.
118712         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118713         makepath.c.
118714         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118715         (Include): mkdir-p.h, not makepath.h.
118717 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118719         Sync from coreutils.
118720         * m4/mkdir-p.m4: Renamed from makepath.m4.
118721         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118722         Rename files from makepath.c to mkdir-p.c, and from
118723         makepath.h to mkdir-p.h.
118724         * m4/filenamecat.m4: Renamed from path-concat.m4.
118725         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118726         Rename files from path-concat.c to filenamecat.c,
118727         and from path-concat.h to filenamecat.h.
118728         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118729         "file name" in local variables or comments.
118730         * m4/rename.m4: Likewise.
118732 2005-06-01  Bruno Haible  <bruno@clisp.org>
118734         * modules/csharpexec: New file.
118735         * MODULES.html.sh (C#): New section.
118737 2005-06-01  Bruno Haible  <bruno@clisp.org>
118739         * m4/csharp.m4: New file, from GNU gettext.
118740         * m4/csharpexec.m4: New file, from GNU gettext.
118742 2005-06-01  Bruno Haible  <bruno@clisp.org>
118744         * lib/csharpexec.h: New file, from GNU gettext.
118745         * lib/csharpexec.c: New file, from GNU gettext.
118746         * lib/csharpexec.sh.in: New file, from GNU gettext.
118748 2005-05-31  Derek Price  <derek@ximbiot.com>
118749             Paul Eggert  <eggert@cs.ucla.edu>
118751         Sync from cvs.
118752         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118754 2005-05-31  Derek Price  <derek@ximbiot.com>
118755             Paul Eggert  <eggert@cs.ucla.edu>
118757         Sync from cvs.
118758         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118760 2005-05-29  Derek Price  <derek@ximbiot.com>
118762         * config/srclist.txt (glob_.h, glob.c): Add these files.
118764 2005-05-29  Derek Price  <derek@ximbiot.com>
118766         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118767         * modules/glob: New file.
118768         * modules/getlogin_r: Add link to POSIX spec in description.
118770 2005-05-29  Derek Price  <derek@ximbiot.com>
118771             Paul Eggert  <eggert@cs.ucla.edu>
118773         * m4/glob.m4: New file.
118775 2005-05-29  Derek Price  <derek@ximbiot.com>
118776             Paul Eggert  <eggert@cs.ucla.edu>
118778         * lib/glob_.h, lib/glob.c: New files.
118780 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118782         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118783         * modules/fts-lgpl (Depends-on): Remove gettext.
118785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118788         and don't require gt_INTTYPES_PRI.
118790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118792         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
118794         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
118795         the configuration hassle isn't worth it.
118796         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
118797         (LONGEST_MODIFIER, PRIuMAX): Remove.
118799 2005-05-27  Bruno Haible  <bruno@clisp.org>
118801         * lib/getlogin_r.h: Remove second include of <stddef.h>.
118803 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
118805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
118806         _POSIX_PTHREAD_SEMANTICS for Solaris.
118808 2005-05-25  Derek Price  <derek@ximbiot.com>
118810         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
118812 2005-05-25  Derek Price  <derek@ximbiot.com>
118813             Paul Eggert  <eggert@cs.ucla.edu>
118815         * modules/getlogin_r, m4/getlogin_r.m4: New files.
118816         * lib/getlogin_r.c, getlogin_r.h: New files.
118818 2005-05-25  Bruno Haible  <bruno@clisp.org>
118819             Derek Price  <derek@ximbiot.com>
118821         * lib/getlogin_r.h: Simplify API documentation.
118823 2005-05-23  Derek Price  <derek@ximbiot.com>
118825         * modules/minmax (Files): Add m4/minmax.m4.
118826         (configure.ac): Add gl_MINMAX.
118828 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118830         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118831         so that unistd-safer.h (GPL'ed code) need not be included.
118833 2005-05-22  Bruno Haible  <bruno@clisp.org>
118835         * m4/minmax.m4: New file.
118836         Based on a patch by Derek Price <derek@ximbiot.com>.
118838 2005-05-22  Bruno Haible  <bruno@clisp.org>
118840         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118841         (INT64_MIN): Fix definition.
118842         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118844         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118845         NEED_SIGNED_INT_TYPES.
118847         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118848         HAVE_SYSTEM_INTTYPES.
118850 2005-05-22  Bruno Haible  <bruno@clisp.org>
118852         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118853         Also include <sys/param.h> if it defines MIN, MAX.
118854         Based on a patch by Derek Price <derek@ximbiot.com>.
118856 2005-05-21  Jim Meyering  <jim@meyering.net>
118858         * modules/fts (Files): Add m4/inttypes-pri.m4.
118859         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118863         New fts module.
118864         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118865         (setup_dir, free_dir): New functions.
118866         (enter_dir, leave_dir): Define trivial
118867         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118868         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118869         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118870         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118871         Move to fts-cycle.c.
118872         (fts_open): Use setup_dir.
118873         (fts_close): Use free_dir.
118874         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118875         This adds a label and some gotos, but the alternatives were messier.
118876         Check for memory allocation failure when entering a dir.
118877         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118878         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118879         (FTS): New member fts_cycle, that is a union that contains the
118880         old active_dir_ht and cycle_state.  All uses changed to mention
118881         fts_cycle.ht and fts_cycle.state.
118882         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118883         fts.c, with the following changes:
118884         (setup_dir, free_dir): New functions.
118885         (enter_dir): Now returns bool.  Return true if successful, false
118886         if memory exhausted.  All callers changed.
118887         Do not bother partly cleaning up on
118888         memory allocation failure; that is free_dir's job.
118889         However, free ad if hash_insert fails, to avoid memory leak.
118890         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118891         fts->fts_options to see which union member to use.
118893 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118895         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118896         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118900         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118902 2005-05-20  Jim Meyering  <jim@meyering.net>
118904         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118905         Now a macro, to pacify GCC.
118907 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118909         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118910         of -1.
118912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118914         * lib/chown.c (rpl_chown): Return -1 on failure.
118916 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118918         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118919         Don't check for stddef.h.
118920         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118921         don't use its results.
118922         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118923         since we include them unconditionally.  Don't require
118924         AM_STDBOOL_H, since stdbool is a prerequisite.
118925         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118926         since we assume C89 or better.
118927         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118928         as we don't use their results.
118929         Don't check for fchdir, memmove, memset, strrchr, as we use
118930         them unconditionally.
118931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118932         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118934 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118936         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118937         Include <stddef.h> unconditionally, since we assume C89 now.
118938         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118939         * lib/fts.c: Include fts_.h first, to check interface.
118940         Do not include intprops.h; no longer needed.
118941         Include cycle-check.h and hash.h, since fts_.h no longer does.
118942         Remove unnecessary casts of closedir to void.
118943         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118944         decide whether to decrement nlinks.
118945         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118946         (FTS): Use struct hash_table * instead of Hash_table, so that
118947         we no longer need to include hash.h here.
118949 2005-05-18  Jim Meyering  <jim@meyering.net>
118951         * modules/dirfd (License): Change to LGPL.  Most of the code
118952         is already in the public domain.
118954 2005-05-18  Jim Meyering  <jim@meyering.net>
118956         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118957         Reported by Yoann Vandoorselaere.
118959 2005-05-17  Jim Meyering  <jim@meyering.net>
118961         * m4/fts.m4: New file, from coreutils.
118963 2005-05-17  Jim Meyering  <jim@meyering.net>
118965         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118967 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118969         Sync from coreutils.
118970         * m4/unlinkdir.m4: New file.
118972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118974         Sync from coreutils.
118975         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118976         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118977         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118978         White space changes only.
118979         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118980         special.
118981         * lib/yesno.c: Include getline.h, not ctype.h.
118982         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118983         Use getline to remove arbitrary restriction on response length.
118985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118987         * config/srclist-update: Spell out "Street" in FSF postal
118988         mail address; this is the style the FSF seems to prefer.
118990         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118991         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118992         this updates FSF postal mail address.
118994         Sync from coreutils.
118995         * modules/unlinkdir: New file.
118996         * modules/yesno (Depends-on): Add getline.
118997         * MODULES.html.sh (File system functions): Add unlinkdir.
118999 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119001         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
119002         lib/strsep.h:
119003         Change the initial comment to refer to GPL, not LGPL.
119004         gnulib-tool will change it to LGPL as needed.
119006         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
119007         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
119008         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
119009         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
119010         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
119011         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
119012         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
119013         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
119014         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
119015         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
119016         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
119017         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
119018         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
119019         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
119020         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
119021         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
119022         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
119023         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
119024         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
119025         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
119026         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
119027         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
119028         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
119029         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
119030         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
119031         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
119032         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
119033         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
119034         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
119035         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
119036         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
119037         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
119038         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
119039         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
119040         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
119041         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
119042         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
119043         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
119044         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
119045         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
119046         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
119047         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
119048         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
119049         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
119050         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
119051         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
119052         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
119053         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
119054         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
119055         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
119056         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
119057         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
119058         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
119059         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
119060         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
119061         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
119062         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
119063         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
119064         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
119065         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
119066         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
119067         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
119068         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
119069         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
119070         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
119071         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
119072         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
119073         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
119074         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
119075         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
119076         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
119077         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
119078         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
119079         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
119080         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
119081         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
119082         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
119083         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
119084         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
119085         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
119086         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
119087         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
119088         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
119089         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
119090         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
119091         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
119092         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
119093         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
119094         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
119095         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
119096         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
119097         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
119098         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
119099         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
119100         lib/yesno.c, lib/yesno.h:
119101         Update FSF postal mail address.
119103 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119105         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
119106         tests/test-memmem.c, tests/test-stpncpy.c:
119107         Update FSF postal mail address.
119109 2005-05-13  Bruno Haible  <bruno@clisp.org>
119111         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
119112         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
119113         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
119114         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
119115         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
119116         Add support for 64-bit integers in the MSVC compiler.
119118 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119120         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
119122 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
119124         * gnulib-tool (func_import): Sort and uniquify recommended includes.
119126 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
119128         * doc/getdate.texi (General date syntax): Don't say that date
119129         date --iso-8601=ns generates acceptable dates; it doesn't yet.
119130         Problem reported by Nic Ferrier.
119132 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119134         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
119135         specified in ai_socktype. Fix invalid ai_protocol
119136         check. ai_protocol is usually set to 0 or depending on
119137         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
119138         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
119139         ai_socktype / ai_protocol in the returned addrinfo structure.
119141 2005-05-10  Simon Josefsson  <jas@extundo.com>
119143         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
119144         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119146 2005-05-10  Karl Berry  <karl@gnu.org>
119148         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
119149         (from http://www.gnu.org/licenses).
119150         * doc/COPYING.LIB: also rename to COPYING.LESSER.
119151         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
119152         fdl.texi suffices.
119154 2005-05-10  Karl Berry  <karl@gnu.org>
119156         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
119157         (COPYING.DOC): remove.
119159         * config/srclist-update: new FSF address.
119161 2005-05-10  Derek Price  <derek@ximbiot.com>
119163         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
119164         possible.
119166 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119167             Bruno Haible  <bruno@clisp.org>
119169         * modules/inet_ntop: New file.
119170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119171         inet_ntop.
119173 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119174             Bruno Haible  <bruno@clisp.org>
119176         * m4/inet_ntop.m4: New file.
119178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119179             Bruno Haible  <bruno@clisp.org>
119181         * lib/inet_ntop.h: New file.
119182         * lib/inet_ntop.c: New file, from glibc with modifications.
119184 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
119186         * modules/time_r (License): Change to LGPL.
119187         * modules/extensions (License): Change to LGPL.  Actually,
119188         the license is more permissive than that, but currently gnulib-tool
119189         doesn't know how to handle more-permissive licenses.
119191         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
119192         Problem reported by Dave Love.
119194 2005-05-08  Jim Meyering  <jim@meyering.net>
119196         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
119197         blank.
119199 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119201         * modules/argmatch (Depends-on): Add stdbool.
119202         * modules/backupfile (Depends-on): Likewise.
119203         * modules/chdir-long (Depends-on): Likewise.
119204         * modules/closeout (Depends-on): Likewise.
119205         * modules/cycle-check (Depends-on): Likewise.
119206         * modules/dirname (Depends-on): Likewise.
119207         * modules/fnmatch (Depends-on): Likewise.
119208         * modules/fsusage (Depends-on): Likewise.
119209         * modules/fwriteerror (Depends-on): Likewise.
119210         * modules/getcwd (Depends-on): Likewise.
119211         * modules/getloadavg (Depends-on): Likewise.
119212         * modules/hard-locale (Depends-on): Likewise.
119213         * modules/makepath (Depends-on): Likewise.
119214         * modules/mountlist (Depends-on): Likewise.
119215         * modules/nanosleep (Depends-on): Likewise.
119216         * modules/posixtm (Depends-on): Likewise.
119217         * modules/quotearg (Depends-on): Likewise.
119218         * modules/readtokens (Depends-on): Likewise.
119219         * modules/readtokens0 (Depends-on): Likewise.
119220         * modules/readutmp (Depends-on): Likewise.
119221         * modules/save-cwd (Depends-on): Likewise.
119222         * modules/strftime (Depends-on): Likewise.
119223         * modules/userspec (Depends-on): Likewise.
119224         * modules/utimecmp (Depends-on): Likewise.
119225         * modules/xgetcwd (Depends-on): Likewise.
119226         * modules/xnanosleep (Depends-on): Likewise.
119227         * modules/xstrtod (Depends-on): Likewise.
119228         * modules/yesno (Depends-on): Likewise.
119230 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
119232         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
119233         needless checks.
119235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119237         Merge from coreutils.  Among other things,
119238         add bulletproofing for cases where stdin, stdout, or stderr are closed.
119239         * lib/fd-safer.c: New file.
119240         * lib/fcntl-safer.h, open-safer.c: Remove.
119241         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
119242         * lib/dup-safer.c: Include unistd-safer.h first.
119243         Don't include errno.h.
119244         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
119245         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
119246         * lib/file-type.c: Rely on file-type.h change.
119247         * lib/getloadavg.c: Include unistd-safer.h.
119248         (getloadavg): Use safer open.
119249         * lib/getusershell.c: Include "stdio-safer.h".
119250         (getusershell): Use safer fopen.
119251         * lib/long-options.c (long_options): Use NULL rather than 0.
119252         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
119253         'free'.
119254         * lib/modechange.c: Likewise.
119255         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
119256         (MODE_DONE): New constant.
119257         (struct mode_change): Remove 'next' member.
119258         (make_node_op_equals): New function; like the old one of the
119259         same name, except it allocates an array.
119260         (mode_compile, mode_create_from_ref): Use it.
119261         (mode_compile): Allocate result as an array, not a linked list.
119262         Parse octal string ourself, so that we catch mistakes like "+0".
119263         (mode_adjust): Arg is an array, not a linked list.
119264         * lib/modechange.c: Include stat-macros.h, xalloc.h.
119265         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
119266         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
119267         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
119268         Remove.  This is now stat-macros.h's job.
119269         (talloc): Remove.  All callers replaced by xalloc, so that
119270         our invokers don't have to worry about reporting memory failures.
119271         (make_node_op_equals): Remove.
119272         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119273         New constants.
119274         (struct mode_change): Moved here from modechange.h.
119275         (mode_append_entry): Remove.
119276         (mode_compile): Remove MASKED_OPS arg, since it encouraged
119277         apps to have incorrect behavior.  Use simpler algorithm for head
119278         and tail.  Don't futz with umask; that's now the job of mode_adjust.
119279         Detect more invalid usages rather than having somewhat-random behavior.
119280         Don't insert an "a=" action, as that leads to incorrect behavior.
119281         (mode_compile, mode_create_from_ref): Return NULL on error instead
119282         of an enum, since now there's only one way to have an error.  All
119283         callers changed.
119284         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
119285         at the correct time.  Simplify calculation of "+u" and its ilk.
119286         Don't mishandle "+X".
119287         (mode_free): Remove "register" and localize decls.
119288         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119289         (struct mode_change): Move to modechange.c; callers don't
119290         need to see this stuff.
119291         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
119292         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
119293         (mode_change, mode_adjust): Reflect the new signatures noted above.
119294         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
119295         that might redefine system include files.
119296         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
119297         (my_usleep): Use NULL rather than (void *) 0.
119298         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
119299         Use siginterrupt to specify that system calls should be interrupted.
119300         (rpl_nanosleep): Move initialization of suspended closer to call of
119301         my_usleep.
119302         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
119303         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
119304         (desirable_utmp_entry): New function.
119305         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
119306         using x2nrealloc, to simplify logic.
119307         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
119308         size calculation.  Do not assume utmp file is a regular file.
119309         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
119310         (READ_UTMP_CHECK_PIDS): New constant.
119311         * lib/save-cwd.c: Include unistd-safer.h.
119312         (save_cwd): Use fd_safer.
119313         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
119314         [!_LIBC] Include "stat-macros.h" instead.
119315         * lib/unistd-safer.h (fd_safer): New decl.
119317 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119319         * modules/getloadavg (Depends-on): Add unistd-safer.
119320         * modules/getusershell (Depends-on): Add stdio-safer.
119321         * modules/lstat (Depends-on): Remove xalloc.
119322         * modules/mkstemp (Depends-on): Add stat-macros.
119323         * modules/modechange (Depends-on): Remove xstrtol.
119324         Add stat-macros, xalloc.
119325         * modules/save-cwd (Depends-on): Add unistd-safer.
119326         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
119327         * modules/unistd-safer (Files): Add lib/fd-safer.c
119328         (Makefile.am): Remove lib_SOURCES.
119330         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
119331         Remove fcntl-safer; unistd-safer supersedes it.
119333 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119335         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
119336         AC_HEADER_STAT.
119337         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
119338         (gl_PREREQ_CHOWN): Remove.
119339         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
119340         it.  Don't require AC_HEADER_STAT.
119341         (gl_PREREQ_LSTAT): Remove.
119342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
119343         Don't require AC_HEADER_STAT.
119344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
119345         (gl_PREREQ_RMDIR): Remove.
119346         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
119347         mention stat-macros.h or AC_HEADER_STAT, since we'll make
119348         the stat-macros module a prerequisite.
119349         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
119350         * m4/filemode.m4 (gl_FILEMODE): Likewise.
119351         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
119352         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
119353         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
119354         variable names.
119355         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
119356         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
119357         variable prefixes.
119358         * m4/fcntl-safer.m4: Remove.
119359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
119360         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
119361         Invoke gl_PREREQ_FD_SAFER.
119362         (gl_PREREQ_FD_SAFER): New macro.
119363         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
119364         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
119365         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
119366         Remove duplicate call to AC_LIBOBJ(readutmp).
119367         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
119369         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
119370         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
119372 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119374         * MODULES.html.sh (Misc): Add byteswap.
119376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119378         * modules/getcwd (Depends-on): Add extensions.
119379         * modules/openat (Depends-on): Likewise.
119381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119383         * modules/byteswap: New file.
119385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119387         * m4/byteswap.m4: New file.
119389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119391         * lib/byteswap_.h: New file.
119393 2005-04-25  Karl Berry  <karl@gnu.org>
119395         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119397 2005-04-25  Albert Chin  <china@thewrittenword.com>
119399         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119400         Toolkit C bug.
119402 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119404         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119405         (func_ln_if_changed): Remove forcibly for no error message
119406         in case file does not exist.
119408 2005-04-19  Simon Josefsson  <jas@extundo.com>
119410         * gnulib-tool (Options): Make --symlink mean --symbolic.
119412 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119414         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119416 2005-04-16  Simon Josefsson  <jas@extundo.com>
119418         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119420 2005-04-15  Simon Josefsson  <jas@extundo.com>
119422         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119424 2005-04-15  Simon Josefsson  <jas@extundo.com>
119426         * gnulib-tool: Rename --symlink to --symbolic.
119428 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119430         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119431         symbolic links to files instead of copying/moving.  Add --aux-dir,
119432         specifying directory relative --dir where auxiliary build tools
119433         are placed.
119435 2005-04-14  Bruno Haible  <bruno@clisp.org>
119437         * modules/allocsa (License): Change to LGPL.
119438         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119440 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119442         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119443         that "UTC +1 second" continues to work.  Problem reported
119444         by Dmitry V. Levin.
119445         (relunit_snumber): New rule.
119446         (relunit): Use it.
119448 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119450         * lib/getdate.y (universal_time_zone_table): New constant.
119451         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119452         universal_time_zone_table.
119453         (lookup_zone): Prefer universal_time_zone_table to
119454         local_time_zone_table, so that "GMT" time stamps are allowed in
119455         London during the summer.  Problem reported by Ian Abbott.
119457 2005-04-12  Jim Meyering  <jim@meyering.net>
119459         * lib/human.c (humblock): Set *options even when returning due to
119460         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119461         warning from gcc-4.
119463 2005-04-09  Jim Meyering  <jim@meyering.net>
119465         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119466         -Wuninitialized: initialize tm0.tm_year.
119468 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119470         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119471         count, since there's no maximum.  All uses changed.
119472         Add member dsts_seen.
119473         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119474         not being INT_MAX.
119475         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119476         Use pc_rels_seen to decide whether a date is absolute.
119478         * lib/getdate.y (number): Don't overwrite year.
119479         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119480         check.
119482 2005-04-02  Simon Josefsson  <jas@extundo.com>
119484         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119485         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119487 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119489         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119490         where no absolute path name can be longer than PATH_MAX.
119492 2005-03-27  Jim Meyering  <jim@meyering.net>
119494         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119496 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119498         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119499         "one's complement" -> "ones' complement" in comment, as per Knuth.
119500         "value of type" -> "type or expression" in comment.
119501         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119503 2005-03-26  Jim Meyering  <jim@meyering.net>
119505         Comment nits.
119506         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119507         Correct typos: s/or/of/.
119509 2005-03-26  Jim Meyering  <jim@meyering.net>
119511         * modules/check-include-files: Move to ../ and rename to...
119512         * check-module: ...this.
119514 2005-03-25  Jim Meyering  <jim@meyering.net>
119516         * modules/xvasprintf (Files): Add xalloc.h.
119518 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119520         * modules/gettext (Files): config/config.rpath ->
119521         build-aux/config.rpath
119522         * modules/iconv (Files): Likewise.
119523         Problem reported by Oskar Liljeblad.
119525 2005-03-23  Jim Meyering  <jim@meyering.net>
119527         * modules/check-include-files: New script to check for
119528         missing dependencies, multiple includes, etc.
119530         * modules/c-strtold (Depends-on): Add xalloc.
119531         * modules/c-strtod (Depends-on): Add xalloc.
119532         * modules/hash (Depends-on): Add xalloc.
119533         (Files): Remove lib/xalloc.h.
119535         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119536         * modules/userspec (Files): Add lib/inttostr.h.
119538 2005-03-23  Jim Meyering  <jim@meyering.net>
119540         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119542 2005-03-22  Jim Meyering  <jim@meyering.net>
119544         * modules/stat-macros: New module.
119545         * modules/canonicalize, modules/euidaccess, modules/file-type,
119546         * modules/filemode, modules/lchown, modules/makepath,
119547         * modules/rmdir, modules/stat: Depend on new stat-macros module
119548         rather than listing lib/stat-macros.h manually.
119549         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119551 2005-03-22  Jim Meyering  <jim@meyering.net>
119553         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119555 2005-03-22  Bruno Haible  <bruno@clisp.org>
119557         * config/srclist.txt: Replace target directory 'config' with
119558         'build-aux'.
119559         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119560         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119561         ../build-aux/.
119563 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119565         * modules/chdir-long (Depends-on): Add mempcpy.
119567         * modules/acl, modules/backupfile, modules/c-strtod,
119568         modules/c-strtold, modules/canon-host, modules/canonicalize,
119569         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119570         modules/exclude, modules/exitfail, modules/file-type,
119571         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119572         modules/getdate, modules/getline, modules/getpagesize,
119573         modules/getpass, modules/getugroups, modules/group-member,
119574         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119575         modules/inttostr, modules/long-options, modules/makepath,
119576         modules/md5, modules/memcasecmp, modules/memcoll,
119577         modules/modechange, modules/mountlist, modules/path-concat,
119578         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119579         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119580         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119581         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119582         modules/strftime, modules/strndup, modules/strverscmp,
119583         modules/timespec, modules/unlocked-io, modules/userspec,
119584         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119585         modules/yesno:
119586         Remove lib_SOURCES line from Makefile.am section, as this is now
119587         done automatically by the corresponding Autoconf macro.
119589 2005-03-21  Jim Meyering  <jim@meyering.net>
119591         Changes imported from coreutils.
119593         * lib/cycle-check.c: Don't include xalloc.h.
119595         * lib/path-concat.c: Don't include assert.h.
119596         (path_concat): Remove assertion that would have triggered
119597         for ABASE starting with more than one slash.
119598         Reported by Andreas Schwab.
119600         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119601         properly when ABASE is an absolute file name.
119602         Correct the description of this function.
119603         Include <assert.h>.
119604         Add an assertion and a test driver.
119605         This fixes a bug introduced on 2004-07-02.
119606         Andreas Schwab reported the resulting failure of cp --parents:
119607         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119609 2005-03-21  Jim Meyering  <jim@meyering.net>
119611         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119612         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119614 2005-03-21  Jim Meyering  <jim@meyering.net>
119615         and  Paul Eggert  <eggert@cs.ucla.edu>
119617         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119618         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119619         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119620         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119621         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119622         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119623         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119624         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119625         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119626         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119627         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119628         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119629         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119630         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119631         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119632         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119633         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119634         for these modules.
119636 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119638         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119639         (which shouldn't happen), generate nothing instead of returning 0
119640         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119642 2005-03-16  Bruno Haible  <bruno@clisp.org>
119644         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119645         HAVE_LONGLONG_64BIT.
119647 2005-03-16  Bruno Haible  <bruno@clisp.org>
119649         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119650         HAVE_LONGLONG_64BIT.
119652 2005-03-16  Bruno Haible  <bruno@clisp.org>
119654         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119655         HAVE_LONGLONG_64BIT.
119657 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119659         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119660         reliably distinguish strftime failure from empty output on POSIX
119661         hosts.
119663 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119665         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119666         (iconv_string): Don't guess a size-zero buffer, as that might cause
119667         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119668         result would be 'too large', where 'too large' is (heuristically)
119669         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119670         overflow concerns.  This will prevent some unwanted malloc failures
119671         when the inputs are very large.
119673 2005-03-15  Karl Berry  <karl@gnu.org>
119675         * config/srclist.txt (config.rpath): from gettext.
119676         * config/config.rpath: update.
119678 2005-03-15  Bruno Haible  <bruno@clisp.org>
119680         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119681         to 'negate'.
119683         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119684         variable.
119686         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119687         results.
119689 2005-03-14  Simon Josefsson  <jas@extundo.com>
119691         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119692         <fx@gnu.org>.
119694 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119696         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119697         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119698         intprops.h.
119699         * lib/strtol.c: Likewise.
119701 2005-03-14  Jim Meyering  <jim@meyering.net>
119703         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119704         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119705         to be nonzero so that we (and caller) can detect the difference
119706         between a valid zero-length expansion and an error return, even
119707         when the underlying strftime fails before writing anything into
119708         that location.
119710 2005-03-14  Bruno Haible  <bruno@clisp.org>
119712         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119713         Update from GNU gettext 0.14.3.
119715 2005-03-10  Jim Meyering  <jim@meyering.net>
119717         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119719 2005-03-10  Jim Meyering  <jim@meyering.net>
119721         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119722         so that this module works on systems without fchdir.
119724 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119726         Factor int-properties macros into a single file, except for
119727         glibc-related files.
119728         * lib/intprops.h: New file.
119729         * lib/getloadavg.c: Include it instead of limits.h.
119730         (INT_STRLEN_BOUND): Remove.
119731         * lib/human.c: Include intprops.h.
119732         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119733         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119734         302/1000.
119735         * lib/inttostr.h: Include intprops.h instead of limits.h.
119736         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119737         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119738         for consistency with intprops.h.
119739         (time_t_is_integer, twos_complement_arithmetic): Use them.
119740         * lib/sig2str.h: Include <signal.h>, intprops.h.
119741         (INT_STRLEN_BOUND): Remove.
119742         * lib/strftime.c (TYPE_SIGNED): Remove.
119743         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119744         * lib/strtol.c: Adjust comments to match intprops.h.
119745         * lib/userspec.c: Include intprops.h.
119746         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119747         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119748         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119749         instead of rolling our own expressions.
119750         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119752         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119753         instead of int.
119754         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119755         the right thing even if adding 1900 would overflow.  Similarly
119756         for tm_mon + 1 and tm_yday + 1.
119757         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119758         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119759         (DO_SIGNED_NUMBER): New macro.
119760         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119762 2005-03-07  Bruno Haible  <bruno@clisp.org>
119764         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119766 2005-03-07  Bruno Haible  <bruno@clisp.org>
119768         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119770 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119772         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119773         (func_import): Only replace files via --import when they have actually
119774         changed.
119776 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119778         * m4/mmap-anon.m4: New file.
119779         * m4/pagealign_alloc.m4: New file.
119781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119782             Bruno Haible  <bruno@clisp.org>
119784         * modules/pagealign_alloc: New file.
119785         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119787 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119788             Bruno Haible  <bruno@clisp.org>
119790         * lib/pagealign_alloc.h: New file.
119791         * lib/pagealign_alloc.c: New file.
119793 2005-03-03  Bruno Haible  <bruno@clisp.org>
119795         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
119796         Use an all-permissive copyright notice, recommended by RMS.
119798 2005-03-02  Bruno Haible  <bruno@clisp.org>
119800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
119801         of AIX, the replacement has to be done only after <string.h> is
119802         included, therefore not in config.h. stpncpy.h does the replacement,
119803         and stpncpy.c uses it.
119805 2005-03-02  Bruno Haible  <bruno@clisp.org>
119807         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
119808         stpncpy.c uses it.
119810 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119812         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
119813         The workaround isn't strictly needed for POSIX conformance, and
119814         it's too much of a pain to configure and maintain.  We'll ask
119815         people to fix their kernels instead.
119816         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
119817         (NANOSLEEP_BUG_WORKAROUND): Remove.
119818         (xnanosleep): Remove the workaround.
119820 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119822         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119823         Reported by Derek Price.
119824         (Include): Add "timespec.h".
119826         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119828 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119830         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119831         to detect nanosleep bug.
119833 2005-03-01  Bruno Haible  <bruno@clisp.org>
119835         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119837 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119839         * modules/gethrxtime: New file.
119840         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119841         (Depends-on): Add gethrxtime.
119842         (configure.ac): Add gl_XNANOSLEEP.
119843         (Makefile.am): Remove lib_SOURCES line.
119845 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119847         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119848         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119852         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119853         * lib/timespec.h (gettime): Return void, since it always
119854         succeeds now.  All uses changed.
119855         * lib/gettime.c (gettime): Likewise.
119856         [HAVE_NANOTIME]: Prefer nanotime.
119857         Assume gettimeofday succeeds, as POSIX requires.
119858         Assime time () succeeds, since other code already does.
119859         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119860         (timespec_subtract): Remove.
119861         (NANOSLEEP_BUG_WORKAROUND): New constant.
119862         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119863         things considerably.  Use it only on GNU/Linux hosts, since the
119864         workaround shouldn't be needed elsewhere.
119866 2005-02-24  Bruno Haible  <bruno@clisp.org>
119868         * modules/gettext (Files): Add m4/glibc2.m4.
119870 2005-02-24  Bruno Haible  <bruno@clisp.org>
119872         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119873         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119874         * m4/progtest.m4:
119875         Update from GNU gettext 0.14.2.
119876         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119878 2005-02-24  Bruno Haible  <bruno@clisp.org>
119880         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119881         * lib/config.charset: Update from GNU gettext 0.14.2.
119883 2005-02-24  Bruno Haible  <bruno@clisp.org>
119885         * lib/gettext.h: Update from GNU gettext 0.14.2.
119887 2005-02-23  Simon Josefsson  <jas@extundo.com>
119889         * m4/iconvme.m4: New file.
119891 2005-02-23  Jim Meyering  <jim@meyering.net>
119893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119894         change.
119895         Thanks to Bruno Haible for catching it.
119897 2005-02-22  Simon Josefsson  <jas@extundo.com>
119899         * modules/iconvme: New file.
119901         * MODULES.html.sh: Add iconvme.
119903 2005-02-22  Simon Josefsson  <jas@extundo.com>
119905         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119907 2005-02-22  Simon Josefsson  <jas@extundo.com>
119909         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119911 2005-02-22  Jim Meyering  <jim@meyering.net>
119913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119914         s/ifndef/ifdef/.
119916 2005-02-20  Neil Conway  <neilc@samurai.com>
119918         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119919         returned by OSX/Darwin if the specified buffer is not large
119920         enough for the hostname.
119922 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119924         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119925         pass it to _help, otherwise the latter coredumps trying to
119926         dereference state.root_argp.
119928 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119930         * modules/chdir-long (Depends-on): Add memrchr.
119931         * modules/memrchr (Files): Add lib/memrchr.h.
119932         (Include): "memrchr.h".
119934 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119936         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119938 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119940         * lib/memrchr.h: New file.
119941         * lib/chdir-long.c: Include it.
119942         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119943         Don't bother including stddef.h.
119945 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119947         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119948         inclusion.
119949         Include <sys/types.h>, for dev_t.
119950         (ME_DUMMY, ME_REMOTE): Move from here....
119951         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119952         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119953         Dmitry V. Levin.
119954         Include mountlist.h first, to test the interface.
119956 2005-01-29  Bruno Haible  <bruno@clisp.org>
119958         * lib/progname.c (program_name): Initialize.
119959         Needed when linking statically on MacOS X.
119961 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119963         Sync from coreutils.
119964         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119965         (Depends-on): Add c-strtod.
119966         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119968 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119970         Sync from coreutils.
119971         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119973         Remove files that are specific to coreutils.
119974         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119976 2005-01-28  Bruno Haible  <bruno@clisp.org>
119978         * modules/javacomp: New file.
119979         * MODULES.html.sh (Java): Add javacomp.
119981 2005-01-28  Bruno Haible  <bruno@clisp.org>
119983         * m4/javacomp.m4: New file, from GNU gettext.
119985 2005-01-28  Bruno Haible  <bruno@clisp.org>
119987         * lib/javacomp.sh.in: New file, from GNU gettext.
119988         * lib/javacomp.h: New file, from GNU gettext.
119989         * lib/javacomp.c: New file, from GNU gettext.
119991 2005-01-26  Simon Josefsson  <jas@extundo.com>
119993         * lib/gai_strerror.c: Use GPL in header.
119995 2005-01-26  Bruno Haible  <bruno@clisp.org>
119997         * modules/javaexec: New file.
119998         * MODULES.html.sh (Java): Add javaexec.
120000 2005-01-26  Bruno Haible  <bruno@clisp.org>
120002         * m4/javaexec.m4: New file, from GNU gettext.
120004 2005-01-26  Bruno Haible  <bruno@clisp.org>
120006         * lib/javaexec.sh.in: New file, from GNU gettext.
120007         * lib/javaexec.h: New file, from GNU gettext.
120008         * lib/javaexec.c: New file, from GNU gettext.
120010 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120012         * modules/lchown (Depends-on): Remove lchown.h
120014 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120016         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
120017         must be defined if the header file was not found, in order
120018         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
120020 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120022         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
120023         initializers for struct pentry_state.
120024         (__argp_error): Check return value of __asprintf
120025         (__argp_failure): Translate error message
120027         * lib/argp-parse.c: Removed braces around the expansion of N_()
120029 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
120031         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
120032         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
120033         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
120034         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
120035         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
120036         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
120037         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
120038         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
120039         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
120040         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
120041         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
120042         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
120043         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
120044         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
120045         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
120046         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
120047         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
120048         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
120049         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
120050         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
120051         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
120052         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
120053         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
120054         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
120055         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
120056         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
120057         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
120058         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
120059         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
120060         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
120061         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
120062         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
120063         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
120064         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
120065         xstrtol.m4, xstrtoumax.m4, yesno.m4:
120066         Use an all-permissive copyright notice, recommended by RMS.
120068 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
120070         * modules/chdir-long (Depends-on): Remove mempcpy.
120072 2005-01-21  Jim Meyering  <jim@meyering.net>
120074         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
120075         same value as for Solaris 9.
120077         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
120078         component length.  This included changing the parameter to be
120079         of type `char *' rather than `char const *'.
120080         * lib/chdir-long.h (chdir_long): Update prototype.
120082         * lib/openat.c (fdopendir, fstatat): New functions.
120083         * lib/openat.h: Include headers required for use of DIR and struct
120084         stat.
120085         [AT_SYMLINK_NOFOLLOW]: Define.
120086         (fdopendir, fstatat): Add prototypes.
120088 2005-01-21  Bruno Haible  <bruno@clisp.org>
120090         * modules/classpath: New file.
120091         * MODULES.html.sh (Java): Add classpath.
120093 2005-01-21  Bruno Haible  <bruno@clisp.org>
120095         * lib/classpath.h: New file, from GNU gettext.
120096         * lib/classpath.c: New file, from GNU gettext.
120098 2005-01-20  Simon Josefsson  <jas@extundo.com>
120100         * modules/version-etc-fsf: New file.
120102 2005-01-20  Simon Josefsson  <jas@extundo.com>
120104         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
120105         * lib/version-etc.c: Remove version_etc_copyright.
120106         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
120107         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
120109 2005-01-20  Simon Josefsson  <jas@extundo.com>
120111         * lib/base64.h (isbase64): Add.
120113         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
120114         using a unsigned prototype, don't inline.
120115         (base64_decode): Use it.
120117 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120119         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
120120         it.
120122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120124         * lib/save-cwd.c (save_cwd): Remove code to support the case
120125         where fchdir is missing or flaky.
120127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120129         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
120131 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
120133         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
120134         AC_LIBSOURCES now does this.
120135         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
120136         with new ullong_max module.
120138 2005-01-19  Bruno Haible  <bruno@clisp.org>
120140         * modules/sh-quote: New file.
120141         * MODULES.html.sh (Executing programs): Add sh-quote.
120143 2005-01-19  Bruno Haible  <bruno@clisp.org>
120145         * lib/sh-quote.h: New file, from GNU gettext.
120146         * lib/sh-quote.c: New file, from GNU gettext.
120148 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120150         Merge from coreutils.
120151         * m4/ullong_max.m4: New file.
120152         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
120153         (gl_MACROS): Assume localeconv exists.
120155 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120157         Merge changes from coreutils, as described below in several
120158         changelogs dated today.
120160         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
120161         (O_DIRECTORY): Remove; not needed here, since "." must be
120162         a directory.  All uses removed.
120163         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
120164         universal on Suns, and we also need to test for IRIX.
120165         Revamp code to use 'if' rather than '#if'.
120166         Avoid unnecessary comparison of cwd->desc to 0.
120168         * lib/utimens.c (futimens): Robustify the previous patch, by checking
120169         for known valid error numbers rather than observed invalid ones.
120171 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120173         * modules/ullong_max: New file.
120175         * modules/chdir-long, modules/openat: New files.
120176         * modules/save-cwd (Depends-on): Depend on chdir-long.
120177         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
120179 2005-01-18  Jim Meyering  <jim@meyering.net>
120181         Merge from coreutils.
120182         * m4/chdir-long.m4, m4/openat.m4: New files.
120183         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
120184         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
120185         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
120186         is sane and DOES follow symlinks.  Besides, testing 20 different
120187         systems found no broken chown implementations.
120188         Prompted by a change in rsync's copy of this macro.
120189         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
120191         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
120193         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
120194         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
120195         NULL-means-set-to-current-time semantics.
120196         Remove temporary file immediately, rather than waiting
120197         for configure's at-exit trap code to do it.
120199 2005-01-18  Jim Meyering  <jim@meyering.net>
120201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
120203         * lib/utimens.c (futimens): Account for the fact that futimes
120204         can also fail with errno == ENOSYS or errno == ENOENT.
120205         Patch from Dmitry V. Levin.
120207         Change the name of the robust chdir function from chdir to chdir_long.
120208         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
120209         (restore_cwd): Use chdir_long, not chdir.
120210         * lib/chdir-long.c: Renamed from chdir.c.
120211         * lib/chdir-long.h: Renamed from chdir.h.
120212         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
120213         Hurd.
120215 2005-01-18  Bruno Haible  <bruno@clisp.org>
120217         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
120218         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
120219         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
120220         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
120221         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
120222         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
120223         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
120224         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
120225         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
120226         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
120227         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
120228         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
120229         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
120230         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
120231         Use an all-permissive copyright notice, recommended by RMS.
120233 2005-01-18  Bob Proulx  <bob@proulx.com>
120235         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
120236         simplify offsetof() macro construct to avoid compile failure with
120237         native HP-UX 11.0 ANSI C compiler.
120239 2005-01-17  Bruno Haible  <bruno@clisp.org>
120241         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
120242         redundant because stpncpy.m4 takes care of it.
120244 2005-01-17  Bruno Haible  <bruno@clisp.org>
120246         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
120248 2005-01-17  Bruno Haible  <bruno@clisp.org>
120250         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
120251         used.
120253 2005-01-17  Bruno Haible  <bruno@clisp.org>
120255         * lib/fwriteerror.h (fwriteerror): Change specification to include
120256         fclose.
120257         * lib/fwriteerror.c: Include <stdbool.h>.
120258         (fwriteerror): At the end, close the file stream. Record whether
120259         stdout was already closed.
120261 2005-01-17  Bruno Haible  <bruno@clisp.org>
120263         * lib/execute.c (environ): Declare if needed.
120264         * lib/pipe.c (environ): Likewise.
120265         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
120267 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120269         * modules/argp: Depend on vsnprintf
120271 2005-01-10  Jim Meyering  <jim@meyering.net>
120273         * modules/closeout (Depends-on): Add atexit.
120275 2005-01-06  Bruno Haible  <bruno@clisp.org>
120277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
120279 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
120281         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
120282         definitions to be after all include files, to avoid collisions.
120283         Problem reported by Bob Proulx.
120285 2005-01-04  Jim Meyering  <jim@meyering.net>
120287         Changes imported from coreutils.
120288         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
120289         as the mkstemp template, use a temporary directory and an
120290         8.3-friendly template to avoid trouble on systems like DJGPP.
120291         Reported by Juan M. Guerrero via Stepan Kasal.
120292         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
120293         close. Remove the temporary directory right away, rather than waiting
120294         for configure's at-exit trap code to do it.
120295         Suggestion from Stepan Kasal.
120297 2005-01-01  Simon Josefsson  <jas@extundo.com>
120299         * gnulib-tool: Print #include directives when --import'ing.
120301 2004-12-28  Simon Josefsson  <jas@extundo.com>
120303         * tests/test-base64.c: Include required header files.  Remove
120304         unused variables.
120306 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120308         * modules/error (Depends-on): Remove gettext.
120310 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120312         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
120313         not needed.  This removes a dependency on the gettext module.
120314         [defined _LIBC]: Do not include <libintl.h>; not needed.
120316 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120318         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
120319         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
120321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120323         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
120324         HAVE_DECL_STRTOLD.
120326 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120328         * modules/getdate (Depends-on): Remove alloca-opt.
120330 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120332         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
120334 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120336         * lib/argp-parse.c: Include <stddef.h>.
120337         (alignof, alignto): New macros.
120338         (parser_init): Don't assume that void * is aligned sufficiently
120339         for struct option.
120341         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
120342         need to extend the stack.
120343         (YYINITDEPTH): New macro, so that the initial stack isn't overly
120344         large.
120346 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120348         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
120350 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120352         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
120353         (2004-10-24) change.  Apparently this was a false alarm.
120355         * modules/getdate: Depend on alloca-opt, not alloca.
120357 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120359         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
120360         Remove now-obsolete comment about AIX.
120361         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
120362         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
120363         (YYMAXDEPTH): New macro.
120365 2004-12-18  Simon Josefsson  <jas@extundo.com>
120367         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
120369 2004-12-18  Bruno Haible  <bruno@clisp.org>
120371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
120373 2004-12-18  Bruno Haible  <bruno@clisp.org>
120375         * lib/fatal-signal.c (fatal_signals): Make non-const.
120376         (init_fatal_signals): New function.
120377         (uninstall_handlers, install_handlers): Ignore signals that were set to
120378         SIG_IGN.
120379         (at_fatal_signal): Call init_fatal_signals.
120380         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120381         SIG_IGN.
120382         Reported by Paul Eggert.
120384 2004-12-18  Bruno Haible  <bruno@clisp.org>
120386         * doc/alloca.texi: New file.
120387         * doc/alloca-opt.texi: New file.
120389 2004-12-17  Jim Meyering  <jim@meyering.net>
120391         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120392         Otherwise, install-sh could exit with improper exit status when
120393         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120395 2004-12-16  Simon Josefsson  <jas@extundo.com>
120397         * tests/test-base64.c: Add license.
120399 2004-12-15  Stepan Kasal  <address@hidden>
120401         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120403 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120405         * modules/getcwd (Files): Add m4/d-ino.m4.
120406         Suggested by Mark D. Baushke.
120408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120410         * lib/getdate.y (textint): New member "negative".
120411         (time_zone_hhmm): New function.
120412         Expect 14 shift-reduce conflicts, not 13.
120413         (o_colon_minutes): New rule.
120414         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120415         (yylex): Set the "negative" member of signed numbers.
120417 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120419         * doc/getdate.texi (Time of day items, Time zone items):
120420         Describe new formats +00:00, UTC+00:00.
120422 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120424         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120425         spurious "-l"s.  Problem reported by Stepan Kasal.
120427 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120430         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120432 2004-12-04  Simon Josefsson  <jas@extundo.com>
120434         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120435         Vandoorselaere <yoann@prelude-ids.org>.
120437 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120439         Changes imported from coreutils.
120440         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120441         exist.
120442         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120444 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120446         Changes imported from coreutils.
120447         * lib/hard-locale.c: Assume <locale.h> exists.
120448         Include "strdup.h".
120449         (GLIBC_VERSION): New macro.
120450         (hard_locale): Assume setlocale exists.
120451         Rewrite to avoid #ifdef.
120452         Use strdup rather than malloc + strcpy.
120453         * lib/human.c: Assume <locale.h> exists.
120454         (human_readable): Assume localeconv exists.
120456 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120458         * modules/hard-locale (Depends-on): Add strdup.
120460 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120462         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120463         convert T2, not T.  (Imported from libc.)
120465 2004-11-30  Simon Josefsson  <jas@extundo.com>
120467         * modules/restrict (License): Change to LGPL.
120469 2004-11-30  Simon Josefsson  <jas@extundo.com>
120471         * m4/restrict.m4: Add copyright and copying conditions.
120473 2004-11-30  Simon Josefsson  <jas@extundo.com>
120475         * m4/base64.m4: New file.
120477 2004-11-30  Simon Josefsson  <jas@extundo.com>
120479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120480         base64.
120482         * tests/test-base64.c: New file.
120484         * modules/base64: New file.
120486 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120489         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120491         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120493 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120495         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120496         (__getcwd.c): Don't restore errno; glibc doesn't.
120497         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120498         first, falling back to our code only if its results look suspicious.
120499         Ensure that the resulting buffer is only as large as necessary.
120501         * lib/readutmp.c: Include readutmp.h first.
120502         Include <errno.h>, since readutmp.h no longer does that.
120503         * lib/readutmp.h: Don't include <errno.h>,
120504         <sys/param.h>, <time.h>; not needed to establish interface.
120505         (errno): Remove decl.
120506         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120507         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120508         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120510 2004-11-28  Simon Josefsson  <jas@extundo.com>
120512         * lib/base64.h, base64.c: New file.
120514 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120516         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120518 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120520         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120521         (Depends-on): Remove pathmax, same.  Add mempcpy.
120522         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120523         (Makefile.am): Append getcwd.h to lib_SOURCES.
120524         (Include): Add getcwd.h.
120525         (Maintainer): Change from Jim Meyering to "all, glibc",
120526         since getdate now uses intended-for-glibc code.
120527         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120528         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120530 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120532         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120533         HP's ANSI C compiler.
120534         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120535         Declaring int functions causes warnings on some modern systems and
120536         shouldn't be needed to compile on ancient ones.
120537         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120538         defined.
120540         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120541         with the following changes.
120542         (__set_errno): Parenthesize properly.
120543         Include <stdbool.h>.
120544         (MIN, MAX, MATCHING_INO): New macros.
120545         (__getcwd): Define with prototype, not K&R form.
120546         Use heuristics to allocate default buffer on stack if possible.
120547         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120548         behavior, and to avoid the PATH_MAX limit when computing
120549         ../../../../...
120550         Use MATCHING_INO to compare inode number to file.
120551         Check for arithmetic overflow in size calculations.
120552         Fix bug in reallocation of dot array that caused getcwd to fail
120553         on directories nested deeper than 75.
120554         Be more careful about saving errno on error.
120555         Do not use realloc; use only free+malloc, as this is a bit
120556         more flexible and avoids a needless copy operation.
120557         Do not inspect st_dev and st_ino for symbolic links; POSIX
120558         doesn't specify the latter.
120559         Check for closedir errors.
120560         Avoid needless casts.
120561         Use "#ifdef weak_alias" around weak_alias, to be like other
120562         glibc code.
120563         The following changes to getcwd.c have effect only when used in
120564         gnulib; they have no effect inside glibc proper.
120565         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120566         as alloca isn't used.
120567         (alloca, __alloca): Likewise.
120568         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120569         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120570         unconditionally, as gnulib assumes C89 or better.
120571         Do not include <sys/param.h>.
120572         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120573         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120574         better.
120575         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120576         Include <dirent.h> in a way that is compatible with modern Autoconf.
120577         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120578         New macros, if not already defined.
120579         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120580         Use "_LIBC", not "defined _LIBC", for consistency.
120581         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120582         a mempcpy module.
120583         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120584         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120585         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120586         credit only to Jim Meyering and adjust the copyright dates.
120587         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120588         <stdlib.h>, <unistd.h>, "pathmax.h".
120589         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120590         (INITIAL_BUFFER_SIZE): Remove.
120591         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120593 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120596         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120597         Use the _ONCE methods, for efficiency.
120598         Check for fcntl.h.  In test program, include <errno.h>
120599         and <fcntl.h> if available.  Remove old K&R cruft from
120600         test program.  Check for common errors in GNU/Linux,
120601         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120602         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120603         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120604         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120605         name accordingly.
120606         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120607         accommodate new getcwd.c.
120608         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120609         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120610         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120611         that's all we need now.
120613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120615         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120616         argp-parse.c depends on getopt internals, that means we should
120617         always use our getopt, to be on the safe side.
120618         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120619         order not to spoil the result of an eventual previous invocation
120620         of gl_GETOPT_SUBSTITUTE.
120622 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120624         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120625         redefinition warnings. To avoid them, include the defines
120626         in `#if !defined __need_getopt ... #endif'. The only place
120627         where __getopt_argv_const is used is in definitions
120628         of getopt_long and getopt_long_only below, which are as well
120629         protected by `#ifndef __need_getopt'.
120630         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120631         __need_getopt after including <stdio.h> and <unistd.h> These
120632         headers might have defined it.
120634 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120636         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120638 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120640         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120641         (futimens): New function, which uses futimes if available.
120642         (futimens, utimens): Support timespec==NULL, with same semantics
120643         as utime and utimens.
120644         * lib/utimens.h (futimens): New decl.
120646 2004-11-23  Jim Meyering  <jim@meyering.net>
120648         * lib/getopt_.h: Remove trailing blanks.
120650 2004-11-23  Jim Meyering  <jim@meyering.net>
120652         * lib/__fpending.c: Add comment.
120654 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120656         * modules/canonicalize (Depends-on): Add xreadlink.
120657         Problem reported by James Youngman.
120659 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120661         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120662         New macros.
120663         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120664         optopt): Use them instead of invoking ## directly; otherwise, the
120665         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120667 2004-11-19  Bruno Haible  <bruno@clisp.org>
120669         * lib/strtok_r.c: Move comments from here...
120670         * lib/strtok_r.h: ... to here.
120672 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120674         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120675         implementations that mishandle size_t overflow.
120677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120679         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120680         might fail.  Problem reported by Yoann Vandoorselaere.
120681         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120682         implementations that mishandle size_t overflow.
120684 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120686         * modules/canon-host (Depends-on): Add strdup.
120688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120690         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120692 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120694         * lib/canon-host.c: Include "strdup.h".
120695         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120696         Use strdup instead of malloc/strcpy to duplicate strings.
120698         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120699         (human_space_before_unit): New constant.
120700         * lib/human.c (human_readable): Support it.
120702         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120703         (xgetcwd): Set errno correctly when failing.
120704         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120705         the failure is actually due to a PATH_MAX problem.
120707         Further getopt changes to make it more likely that glibc will
120708         buy the changes back.
120709         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120710         (getopt): Use it, so to preserve glibc semantic
120711         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120712         when compiling for libc.
120713         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120714         (getopt_long, getopt_long_only): Use it.
120716         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120717         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120718         (getopt): Argv is now char * const *, as per standard.
120719         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120720         not char *__getopt_argv_const *.
120721         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120722         _getopt_long_only_r): Likewise.
120723         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120724         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120725         _getopt_long_r, _getopt_long_only_r): Likewise.
120726         * lib/getopt_.h (__getopt_argv_const): Remove.
120727         (getopt): Argv is now char * const *, as per standard.
120729         * lib/getdate.y (tORDINAL): New token.
120730         (day, relunit): Allow it for relative times.
120731         (relative_time_table): Use tORDINAL for ordinals.
120733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120735         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120736         Document that "second" isn't allowed as an ordinal number.
120738 2004-11-16  Jim Meyering  <jim@meyering.net>
120740         * modules/closeout (Depends-on): Add fpending.
120742 2004-11-15  Jim Meyering  <jim@meyering.net>
120744         * lib/closeout.c: Include "__fpending.h" once again.
120745         Include <stdbool.h>.
120746         (close_stdout): Don't fail just because stdout was closed initially,
120747         since some programs don't write to stdout in the normal course of
120748         operation (other than --version and --help), and we don't want this
120749         function to make e.g. `touch file >&-' fail.
120750         But do fail if it was closed and someone has tried to write to it.
120751         E.g., `printf foo >&-' must fail.
120753 2004-11-13  Jim Meyering  <jim@meyering.net>
120755         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120757 2004-11-12  Simon Josefsson  <jas@extundo.com>
120759         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120760         small doc fix is still pending.
120762 2004-11-11  Simon Josefsson  <jas@extundo.com>
120764         * modules/strtok_r: New file.
120766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120767         strtok_r.
120769 2004-11-11  Simon Josefsson  <jas@extundo.com>
120771         * m4/strtok_r.m4: New file.
120773         * m4/getopt.m4: Replace opterr.
120775 2004-11-11  Simon Josefsson  <jas@extundo.com>
120777         * lib/strtok_r.h, strtok_r.c: New file.
120779 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120781         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120782         of replacing opterr, getopt, etc.  This should handle the
120783         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120785 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120787         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120788         we can stop lying to compilers about the constness of argv when we
120789         are compiled outside glibc.
120790         (getopt, getopt_long, getopt_long_only): Use it.
120791         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120792         _getopt_internal, getopt): Likewise.
120793         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120794         _getopt_long_only_r): Likewise.
120795         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120796         _getopt_long_r, _getopt_long_only_r): Likewise.
120798         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
120799         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
120800         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
120801         the other external symbols.
120802         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
120803         declaration, since the above renaming now works around collisions.
120805 2004-11-11  Jim Meyering  <jim@meyering.net>
120807         * lib/linebreak.c: Remove trailing blanks.
120808         * lib/alloca_.h: Likewise.
120809         * lib/acosl.c: Likewise.
120810         * lib/euidaccess.c: Likewise.
120811         * lib/allocsa.h: Likewise.
120813 2004-11-10  Simon Josefsson  <jas@extundo.com>
120815         * m4/getaddrinfo.m4: New file.
120817 2004-11-10  Simon Josefsson  <jas@extundo.com>
120819         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120821 2004-11-10  Simon Josefsson  <jas@extundo.com>
120823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120824         getaddrinfo.
120826         * modules/getaddrinfo: New file.
120828 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120830         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120832 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120834         * lib/mktime.c (SHR): New macro, which is a portable
120835         substitute for >> that should work even on Crays.
120836         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120837         Problem reported by Mark D. Baushke in
120838         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120839         * lib/getdate.y (SHR): Likewise.
120840         (tm_diff): Use it.
120841         * lib/strftime.c (SHR): Likewise.
120842         (tm_diff): Use it.
120843         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120844         quote_these_too, so that right shifts are well defined.  All uses
120845         changed.
120847 2004-11-10  Jim Meyering  <jim@meyering.net>
120849         Ensure that no close failure goes unreported.
120850         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120851         return early when it seems there's nothing to flush.
120852         Don't include __fpending.h.
120854 2004-11-10  Jim Meyering  <jim@meyering.net>
120856         * modules/closeout (Depends-on): Remove fpending.
120858 2004-11-10  Jim Meyering  <jim@meyering.net>
120860         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120862 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120864         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120865         gl_FUNC_STRFTIME.
120866         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120867         and AC_REQUIRE when possible, to avoid duplicate checks.
120868         Check for <wchar.h>.
120870 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120872         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120874 2004-11-09  Bruno Haible  <bruno@clisp.org>
120876         * m4/sockpfaf.m4: New file.
120878 2004-11-05  Bruno Haible  <bruno@clisp.org>
120880         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120881         Reported by Mark D. Baushke <mdb@cvshome.org>.
120883 2004-11-04  Bruno Haible  <bruno@clisp.org>
120885         2004-09-11  Bruno Haible  <bruno@clisp.org>
120886                 * allocsa.valgrind: New file.
120887         2004-02-06  Bruno Haible  <bruno@clisp.org>
120888                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120889                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120890                 Reported by Christopher Seip <chris.seip@hp.com>.
120892 2004-11-04  Bruno Haible  <bruno@clisp.org>
120894         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120895         (Makefile.am): Distribute it.
120897 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120899         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120900         with errno == ERANGE if the buffer is too small.
120901         Problem reported by Mark D. Baushke.
120903 2004-11-03  Albert Chin  <china@thewrittenword.com>
120904             Paul Eggert  <eggert@cs.ucla.edu>
120906         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120907         equivalent, substitute $ac_type for equivalent type rather than
120908         blindly using uint32_t *always* which won't work if uint32_t is not
120909         available.  Define _UINT32_T to work around typedef of uint32_t if
120910         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120911         2.5.1.
120913 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120915         * m4/jm-macros.m4: Sync from coreutils.
120916         (gl_MACROS): Check for mbrlen, for pathchk.
120917         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120919 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120921         * lib/xreadlink.c (MAXSIZE): New macro.
120922         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120923         size does not exceed MAXSIZE.  Avoid cast.
120924         As suggested by Mark D. Baushke in
120925         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120926         if readlink fails with buffer size just under MAXSIZE, try again
120927         with MAXSIZE.
120929 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120931         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120933 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120934         and  Paul Eggert  <eggert@cs.ucla.edu>
120936         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120937         (get_date): Overparenthesize to avoid GCC warning.
120939 2004-11-02  Bruno Haible  <bruno@clisp.org>
120941         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120942         returns void.
120944 2004-11-02  Bruno Haible  <bruno@clisp.org>
120946         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120947         function returns void.
120949 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120952         fflush_unlocked, flockfile, funlockfile, funlockfile,
120953         fputs_unlocked, putc_unlocked.
120955 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120957         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120958         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120959         already declared.
120961 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120963         * modules/getdate (Files): Add doc/getdate.texi.
120964         (Depends-on): Add setenv, xalloc.
120966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120968         * lib/getdate.y: Add support for TZ="foo" within a date string.
120969         Fix some bugs near time_t boundaries.  Reject dates with
120970         out-of-range components, e.g., "Sept 31".
120971         Include <stdlib.h>, "setenv.h", "xalloc.h".
120972         (ISDIGIT_LOCALE): Remove; unused.
120973         Note that the TZ and time functions used here are not reentrant.
120974         (mktime_ok, get_tz): New functions.
120975         (TZBUFSIZE): New constant.
120976         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120977         This requires that we sometimes generate our own TZ="XXX..." setting.
120979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120981         * doc/getdate.texi: New file, from coreutils with modifications for
120982         the new TZ parsing.
120984 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120986         * lib/mktime.c (not_equal_tm): Remove redundant check.
120988 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120990         * modules/regex (lib_SOURCES): Add regex.c.
120991         Reported by James Youngman in
120992         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120994 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120996         * lib/getdate.y: Use Bison 1.875 features, and some minor
120997         code cleanups.  This change does not affect semantics.
120998         Don't include <stdlib.h>; no longer needed.
120999         Don't include unlocked-io.h; only the "#if TEST" code uses
121000         stdio, and performance isn't crucial there.
121001         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
121002         Bison 1.875 features as described below.
121003         All uses of "PC." replaced by "pc->".
121004         (YYSTYPE): Add a forward declaration.
121005         (yylex, yyerror): Use full prototypes in forward decls.
121006         Use "%pure-parser" rather than obsolescent "%pure_parser".
121007         Use %parse-param and %lex-param instead of obsolescent
121008         YYPARSE_PARAM and YYLEX_PARAM.
121009         (meridian_table, month_and_day_table, time_units_table,
121010         relative_time_table, time_zone_table, military_table,
121011         lookup_zone, lookup_word, get_date):
121012         Use NULL instead of 0 where appropriate.
121013         (to_hour): Avoid abort (), to avoid a dependency on
121014         stdlib.h.
121015         (yyerror, yylex): Now accepts parser_control * arg.
121016         (main) [TEST]: Use '\0' rather than 0 for char.
121018 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121020         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
121022 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121024         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
121025         It's now the caller's responsibility to handle the case where
121026         !HAVE_GETPAGESIZE && !defined getpagesize.
121028         * lib/mktime.c (leapyear): Arg is long int, not int.
121030 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
121032         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
121034 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
121036         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
121037         missing.  Problem reported by James Youngman.
121039 2004-10-16  Simon Josefsson  <jas@extundo.com>
121041         * gnulib-tool: Fix comments.  Fix parse problem.
121042         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
121044 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
121046         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
121047         implementation of getopt_long.  Problem reported by Alexander Taler in:
121048         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
121050 2004-10-15  Bruno Haible  <bruno@clisp.org>
121052         * gnulib-tool: Untabify. Initialize supplied_libname.
121053         (func_usage): More homogenous output.
121054         (func_modules_transitive_closure, func_modules_to_filelist,
121055         func_emit_lib_Makefile_am): New functions.
121056         (func_import): New function, extracted from big case statement. Use
121057         func_get_license, func_modules_transitive_closure,
121058         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
121059         opt_lgpl. Don't use test -a, as it's not portable.
121060         (func_create_testdir): Use func_modules_transitive_closure,
121061         func_modules_to_filelist, func_emit_lib_Makefile_am.
121063 2004-10-15  Bruno Haible  <bruno@clisp.org>
121065         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
121067 2004-10-15  Bruno Haible  <bruno@clisp.org>
121069         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
121070         the portions belonging to each module.
121071         Suggested by Derek Robert Price <derek@ximbiot.com>.
121073 2004-10-12  Simon Josefsson  <jas@extundo.com>
121075         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121076         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
121077         to real functions.
121079 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121081         * modules/vsnprintf: New file.
121083 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121085         * m4/vsnprintf.m4: New file.
121087 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121089         * lib/vsnprintf.h: New file.
121090         * lib/vsnprintf.c: New file.
121092 2004-10-11  Bruno Haible  <bruno@clisp.org>
121094         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
121095         vsnprintf.
121097 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
121099         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
121101 2004-10-07  Bruno Haible  <bruno@clisp.org>
121103         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
121104         fits into the provided buffer.
121106 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
121108         * lib/diacrit.c, diacrit.h: Add GPL notice.
121110         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
121111         notice.
121112         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
121113         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
121114         This avoids a potential constant-folding bug.
121116 2004-10-05  Bruno Haible  <bruno@clisp.org>
121118         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
121119         for the declaration of strsep.
121121 2004-10-05  Bruno Haible  <bruno@clisp.org>
121123         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
121125 2004-10-04  Simon Josefsson  <jas@extundo.com>
121127         * modules/memmem: New file.
121128         * tests/test-memmem.c: New file.
121129         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
121131 2004-10-04  Simon Josefsson  <jas@extundo.com>
121133         * m4/memmem.m4: New file.
121135 2004-10-04  Simon Josefsson  <jas@extundo.com>
121137         * lib/memmem.h: New file.
121138         * lib/memmem.c: New file, taken from glibc.
121140 2004-10-04  Simon Josefsson  <jas@extundo.com>
121142         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
121143         '#ifdef USE_UNLOCKED_IO'.
121145 2004-10-04  Simon Josefsson  <jas@extundo.com>
121147         * config/srclist.txt: Add memmem from glibc.
121149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121151         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
121153         * modules/argmatch, modules/argp, modules/closeout, modules/error,
121154         modules/exclude, modules/getdate, modules/getline,
121155         modules/getndelim2, modules/getpass, modules/getpass-gnu,
121156         modules/getusershell, modules/linebuffer, modules/md5,
121157         modules/mountlist, modules/posixtm, modules/readtokens,
121158         modules/readutmp, modules/regex, modules/sha1,
121159         modules/version-etc, modules/yesno:
121160         Remove dependency on unlocked-io.
121162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121164         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
121166         * m4/unlocked-io.m4: Add copyright notice.
121167         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
121169 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121171         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
121172         * lib/xmalloc.c (xmemdup): Likewise.
121173         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
121174         XFREE): Remove these long-obsolescent macros.
121175         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
121176         * lib/xstrdup.c: Remove.
121178         * lib/regex.c (re_comp): Cast gettext return value to char *,
121179         Problem reported by Martin Neitzel via Mark D. Baushke.
121181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121183         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
121184         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
121185         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
121186         regex.c, sha1.c, version-etc.c, yesno.c:
121187         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
121188         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
121189         the includer's responsibility.
121191         Sync from coreutils.
121193         * lib/modechange.c (mode_compile): Don't decrement a pointer that
121194         points to the start of a string, as the C Standard says the
121195         resulting behavior is undefined.
121197         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
121198         simple -> simple_backups, numbered_existing ->
121199         numbered_existing_backups, numbered -> numbered_backups
121200         to avoid shadowing problems.  All uses changed.
121201         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
121202         * lib/backupfile.c (check_extension, numbered_backup):
121203         Rename locals to avoid shadowing 'basename'.
121204         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
121205         once.
121207         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
121208         * lib/.cvsignore: Add getopt.h.
121210 2004-10-04  Bruno Haible  <bruno@clisp.org>
121212         * modules/README: New file.
121213         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
121214         not a module.
121216 2004-10-02  Jim Meyering  <jim@meyering.net>
121218         * lib/dirfd.h, getpagesize.h: Add copyright notice.
121220 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121222         * modules/strsep: New file.
121224 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121226         * m4/strsep.m4: New file.
121228 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121230         * lib/strsep.h: New file.
121231         * lib/strsep.c: New file.
121233 2004-10-01  Simon Josefsson  <jas@extundo.com>
121235         * lib/snprintf.c (snprintf): Handle size==0.
121237 2004-10-01  Simon Josefsson  <jas@extundo.com>
121238             Bruno Haible  <bruno@clisp.org>
121240         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
121241         (snprintf): Declare 'args'.
121243 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
121245         * lib/snprintf.c: Remove comments as to why each header is needed.
121247 2004-10-01  Bruno Haible  <bruno@clisp.org>
121249         * MODULES.html.sh: Add strsep.
121251 2004-09-30  Simon Josefsson  <jas@extundo.com>
121253         * modules/snprintf: New file.
121255 2004-09-30  Simon Josefsson  <jas@extundo.com>
121257         * m4/snprintf.m4: New file.
121259 2004-09-30  Simon Josefsson  <jas@extundo.com>
121261         * lib/snprintf.h, lib/snprintf.c: New files.
121263 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121265         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
121266         (hol_entry_help): Never translate an empty string.
121267         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
121268         * lib/argp.h (OPTION_NO_TRANS): New option.
121270 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121272         * modules/argp (Maintainer): Replace Simon Josefsson
121273         by Sergey Poznyakoff.
121275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121277         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
121278         changes merged back into glibc.
121280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121282         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
121284 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121286         * lib/xvasprintf.c: Include xalloc.h.
121287         (xvasprintf): Use xalloc_die, not xmalloc_die.
121289 2004-09-29  Bruno Haible  <bruno@clisp.org>
121291         * modules/alloca-opt: New file, derived from modules/alloca.
121292         * modules/allocsa: Depend on alloca-opt instead of alloca.
121293         * modules/setenv: Likewise.
121294         * modules/vasnprintf: Likewise.
121295         * MODULES.html.sh: Add alloca-opt.
121297 2004-09-28  Simon Josefsson  <jas@extundo.com>
121299         * gnulib-tool: New parameter --lgpl, to asseert that modules are
121300         LGPL, and to replace license template from GPL to LGPL.
121302 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121304         * modules/dummy: Change license to LGPL.
121306 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121308         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
121310 2004-09-24  Simon Josefsson  <jas@extundo.com>
121312         * modules/minmax (License): Change from GPL to LGPL.
121314 2004-09-23  Simon Josefsson  <jas@extundo.com>
121316         * gnulib-tool (--import): Typo.
121318 2004-09-23  Simon Josefsson  <jas@extundo.com>
121320         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
121322 2004-09-22  Bruno Haible  <bruno@clisp.org>
121324         * modules/*: Add 'License' field.
121325         * gnulib-tool: Accept --extract-license option.
121326         (func_get_license): New function.
121328 2004-09-21  Bruno Haible  <bruno@clisp.org>
121330         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
121331         Reported by Simon Josefsson.
121333 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121335         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
121336         gl_AC_TYPE_LONG_LONG.
121338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121340         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
121342 2004-09-18  Simon Josefsson  <jas@extundo.com>
121343         and  Paul Eggert  <eggert@cs.ucla.edu>
121345         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
121346         calls with autoreconf.  Define GL_LIB.
121348 2004-09-14  Karl Berry  <karl@gnu.org>
121350         * config/srclist.txt: unsync setenv.c, sigh.
121352 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121354         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
121355         Problem reported by Bruno Haible in:
121356         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
121358 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121360         * config/srclist.txt: Comment out argp-pvh.c.
121362 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
121364         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
121365         in case some system header has #define'd it.  Problem reported by
121366         Soeren D. Schulze in
121367         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
121369 2004-09-09  Karl Berry  <karl@gnu.org>
121371         * regex.[ch]: delete from the root.  These were supposed to be
121372                 synced with emacs cvs, but this has not happened for about
121373                 a year, and anyway nothing else uses emacs regex.[ch].
121374                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
121375                 lib/regex[.ch] is untouched.
121377 2004-09-09  Bruno Haible  <bruno@clisp.org>
121379         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121381 2004-09-09  Bruno Haible  <bruno@clisp.org>
121383         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121384         modifications.
121385         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121387 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121389         * modules/xvasprintf: New file.
121390         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121394         * lib/xvasprintf.h: New file.
121395         * lib/xvasprintf.c: New file.
121396         * lib/xasprintf.c: New file.
121398 2004-09-08  Bruno Haible  <bruno@clisp.org>
121400         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121402 2004-09-08  Bruno Haible  <bruno@clisp.org>
121404         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121405         length is > INT_MAX.
121406         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121407         more.
121409 2004-09-08  Bruno Haible  <bruno@clisp.org>
121411         * lib/stdint_.h: New file, taken from GNU clisp.
121413 2004-09-08  Bruno Haible  <bruno@clisp.org>
121414             Oskar Liljeblad  <oskar@osk.mine.nu>
121416         * modules/stdint: New file.
121417         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121419 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121421         Import from coreutils.
121422         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121423         strings on unbounded length.  alloca's performance benefits aren't
121424         that important here.
121425         (V_STRDUP): Remove.
121426         (parse_with_separator): New function, with most of the internals
121427         of the old parse_user_spec.  Allow user to omit both user and group,
121428         for compatibility with FreeBSD.
121429         Clone only the user name, not the entire spec.
121430         Do not set *uid, *gid unless entirely successful.
121431         Avoid memory leak in some failing cases.
121432         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121433         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121434         (parse_user_spec): Rewrite to use parse_with_separator.
121436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121438         * modules/userspec: Don't depend on alloca.
121440 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121442         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121444 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121446         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121447         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121448         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121450 2004-08-16  Simon Josefsson  <jas@extundo.com>
121452         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121453         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121454         Add --dry-run for --import.
121455         Let user provided command line parameters override configure.ac
121456         settings.
121458 2004-08-12  Simon Josefsson  <jas@extundo.com>
121460         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121461         as discussed with Paul Eggert in threads rooted at
121462         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121463         and
121464         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121465         Before, the test was empty, and relied on ELIDE_CODE in source
121466         code.)
121467         (gl_PREREQ_GETOPT): New macro.
121468         (gl_GETOPT): Use them.
121470 2004-08-12  Simon Josefsson  <jas@extundo.com>
121472         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121473         * lib/getopt_.h: Renamed from getopt.h.
121475 2004-08-12  Simon Josefsson  <jas@extundo.com>
121477         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121478         Change default library name from libfoo to libgnu.
121479         Now, if you have a configure.ac that says:
121480                 gl_SOURCE_BASE(gl)
121481                 gl_M4_BASE(gl/m4)
121482                 gl_MODULES(error getopt etcetera)
121483                 gl_INIT
121484         you can import all you need by running:
121485                 ../gnulib/gnulib-tool --import
121487         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121488         (Makefile.am): Rewrite, use logic from argz.
121489         (Include): Use <getopt.h> instead of "getopt.h".
121491 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121493         * modules/argp (Files): Add m4/unlocked-io.m4.
121494         (Depends-on): Add extensions.
121496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121498         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121499         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121500         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121501         Check for program_invocation_name, program_invocation_short_name,
121502         flockfile, funlockfile, features.h, _getopt_long_only_r.
121504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121506         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121507         its complicated substitute.
121508         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121509         and program_invocation_name.
121510         (__argp_basename) [!_LIBC]: Remove; the only use was
121511         replaced by its body.
121512         (__argp_short_program_name): Change condition from
121513         !defined __argp_short_program_name to
121514         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121515         to match argp-namefrob.h.
121516         (__argp_failure): Don't assume strerror_r returns char *.
121517         * lib/argp-parse.c (N_): Define unconditionally.
121518         (argp_default_options): Fill out initializers with 0 to avoid
121519         gcc warnings.
121521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121523         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121524         getopt1.c.
121526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121528         Merge from coreutils.
121530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121532         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121533         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121535 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121537         Merge from coreutils.
121539         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121540         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121541         for Reliant Unix 5.43.
121543         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121544         (union fooround): Use uintmax_t, not long int.
121545         The rest is a merge from libc:
121546         [defined _LIBC]: Include <shlib-compat.h>.
121547         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121549         * lib/settime.c (settime): Recode to avoid warning with
121550         Sun Forte C 6U2.
121552         * lib/strverscmp.c: Convert to UTF-8.
121554 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121556         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121557         m4/uintmax_t.m4.
121559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121561         * modules/xalloc-die: New file.
121562         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121564         * modules/md5 (Files): Add m4/uint32_t.m4.
121565         * modules/sha1: Renamed from modules/sha.
121566         (Files):
121567         Rename lib/sha.h to lib/sha1.h.
121568         Rename lib/sha.c to lib/sha1.c.
121569         Rename m4/sha.m4 to m4/sha1.m4.
121570         (lib_SOURCES): Likewise.
121571         (configure.ac): Rename gl_SHA to gl_SHA1.
121572         (Include): sha.h -> sha1.h.
121574 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121576         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121577         * m4/sha1.m4: Renamed from sha.m4.
121578         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121580 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121582         * lib/obstack.h (obstack_empty_p):
121583         Don't assume that chunk->contents is suitably aligned.
121584         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121585         Likewise. Problem reported by Benno in
121586         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121588         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121589         readable.  This could be improved further but it'd take some work.
121591 2004-08-08  Simon Josefsson  <jas@extundo.com>
121593         * modules/xgethostname (Depends-on): Remove exit and error (not
121594         used).
121596         * modules/getpass-gnu: Add getpass.h.
121597         (Depends-on): Add stdbool.
121598         * modules/getpass: Add getpass.h.
121600 2004-08-08  Simon Josefsson  <jas@extundo.com>
121602         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121603         Check getpass declaration.
121605 2004-08-08  Simon Josefsson  <jas@extundo.com>
121607         * lib/xgethostname.c: Don't include error.h (not used).
121609         * lib/getpass.h: Add.
121610         * lib/getpass.c: Include getpass.h first.
121612 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121614         * lib/xalloc-die.c: New file.
121615         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121616         All uses removed.
121617         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121618         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121619         xalloc-die.c.
121620         (_, N_, xalloc_die): Move to xalloc-die.c.
121621         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121622         so that we needn't mess with xalloc_msg_memory_exhausted.
121624         * lib/sha1.h: Renamed from sha.h.
121625         (SHA1_H): Renamed from _SHA_H.
121626         (sha1_ctx): Renamed from sha_ctx.
121627         (sha1_init_ctx): Renamed from sha_init_ctx.
121628         (sha1_process_block): Renamed from sha_process_block.
121629         (sha1_process_bytes): Renamed from sha_process_bytes.
121630         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121631         (sha1_read_ctx): Renamed from sha_read_ctx.
121632         (sha1_stream): Renamed from sha_stream.
121633         (sha1_buffer): Renamed from sha_buffer.
121634         * lib/sha1.c: Likewise; renamed from sha.c.
121635         Do not include <sys/types.h>.
121636         Include <stddef.h> rather than <stdlib.h>.
121638 2004-08-08  Bruno Haible  <bruno@clisp.org>
121640         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121641         FILESYSTEM_PREFIX_LEN.
121642         * lib/progreloc.c: Likewise.
121643         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121645 2004-08-06  Simon Josefsson  <jas@extundo.com>
121647         * modules/progname (Depends-on): Don't depend on stdbool.
121649 2004-08-06  Simon Josefsson  <jas@extundo.com>
121651         * modules/getsubopt: New file.
121652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121653         getsubopt.
121655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121657         More merge from coreutils.
121659         * m4/utimens.m4, m4/utimecmp.m4: New files.
121660         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121661         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121662         prereq.m4, sha.m4: Import changes from coreutils.
121664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121666         More merge from coreutils.
121667         * modules/raise, modules/readtokens0, modules/utimens:
121668         * modules/utimecmp, module/xnanosleep: New files.
121669         * modules/strftime: Add lib/strftime.h.
121670         Change include from <time.h> to "strftime.h".
121671         * modules/yesno: Add lib/yesno.h.
121672         * modules/backupfile: Remove lib/addext.c.
121673         * modules/euidaccess: Add stat-macros.h.
121674         * modules/canonicalize, modules/euidaccess,
121675         modules/filemode, modules/lchown, modules/makepath,
121676         modules/rmdir, modules/stat: Likewise.
121678 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121680         Merge from tar.
121681         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121682         SIZE_MAX is a valid preprocessor constant.
121683         (__argp_basename): Change from "#ifndef _LIBC"
121684         to "#ifndef __argp_short_program_name", so that
121685         we don't compile these functions for tar.
121687         More merges from coreutils.
121688         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121689         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121690         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121691         * lib/addext.c: Remove; no longer needed.
121692         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121693         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121694         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121695         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121696         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121697         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121698         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121699         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121700         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121701         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121702         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121703         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121704         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121705         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121706         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121707         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121708         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121709         Import changes from coreutils.
121711 2004-08-05  Simon Josefsson  <jas@extundo.com>
121713         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121715 2004-08-05  Simon Josefsson  <jas@extundo.com>
121717         * m4/getsubopt.m4: New file.
121719 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121721         Merge from coreutils.
121723         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121724         * m4/getcwd-path-max.m4: New files.
121726         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121727         FILESYSTEM_PREFIX_LEN ->
121728         FILE_SYSTEM_PREFIX_LEN.
121729         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121730         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121731         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121732         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121734         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121735         prerequisite modules now handle the DOS stuff.
121736         Don't check for unistd.h.
121738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121740         Merge from coreutils.
121742         * lib/.gdb-history: Remove; this doesn't belong here.
121744         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121745         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121746         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121747         * lib/getcwd.c: New files.
121749         * lib/dirname.h: Include <stdbool.h>.
121750         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121751         for consistency with POSIX terminology.  All uses changed.
121752         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121753         (strip_trailing_slashes): Use bool for booleans.
121754         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121756         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121757         sometimes returns a positive errno value even when it succeeds.
121758         (print_errno_message) [!LIBC]: Fall back on strerror if
121759         __strerror_r fails.
121761         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121762         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121763         (longest_relative_suffix): New function.
121764         (path_concat): Use it.  Assume first argument is not NULL.
121765         Port to DOS.  Omit redundant separators.
121766         Report an error instead of returning NULL.
121767         Use mempcpy instead of memcpy.
121768         (xpath_concat): Remove: not declared or used.
121770         * lib/same.h: Include <stdbool.h>
121771         (same_name): Return bool, not int.
121772         * lib/same.c (same_name): Likewise.
121773         (errno): Don't declare; we assume C89 or better now.
121775         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121776         if not already defined.
121778         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121779         * lib/dup-safer.c (errno): Likewise.
121781 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121783         Merge from coreutils.
121784         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121785         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121786         * modules/path-concat: Don't depend on strdup.
121788 2004-08-03  Simon Josefsson  <jas@extundo.com>
121790         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121791         * lib/progname.h: Don't include stdbool.h.
121793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121795         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
121796         * MODULES.html.sh (func_all_modules): Remove fatal.
121798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121800         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
121802 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121804         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
121805         working.
121807 2004-08-02  Simon Josefsson  <jas@extundo.com>
121809         * lib/getsubopt.h: New file, with comments from Bruno Haible.
121810         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
121811         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
121813 2004-08-01  Simon Josefsson  <jas@extundo.com>
121815         * lib/xgetdomainname.c: Include stdlib.h, for free().
121817 2004-07-19  Bruno Haible  <bruno@clisp.org>
121819         * MODULES.html.sh (func_all_modules): Add dummy.
121821 2004-07-16  Simon Josefsson  <jas@extundo.com>
121823         * modules/dummy: New file.
121825 2004-07-16  Simon Josefsson  <jas@extundo.com>
121827         * lib/dummy.c: New file.
121829 2004-07-16  Bruno Haible  <bruno@clisp.org>
121831         * lib/backupfile.h: Add extern "C" for C++.
121832         * lib/closeout.h: Likewise.
121833         * lib/copy-file.h: Likewise.
121834         * lib/findprog.h: Likewise.
121835         * lib/full-write.h: Likewise.
121836         * lib/pathname.h: Likewise.
121837         * lib/progname.h: Likewise.
121838         * lib/stpcpy.h: Likewise.
121839         * lib/stpncpy.h: Likewise.
121840         * lib/strcase.h: Likewise.
121841         * lib/strstr.h: Likewise.
121842         * lib/xalloc.h: Likewise.
121844         * lib/mbswidth.h: Add extern "C" for C++.
121845         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121847 2004-07-13  Robert Millan  <robertmh@gnu.org>
121849         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121851 2004-07-09  Simon Josefsson  <jas@extundo.com>
121853         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121854         failed without this.)
121856 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121858         * modules/chown (Files): Add lib/fchown-stub.c, since
121859         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121863         * lib/fchown-stub.c: New file.
121865 2004-06-24  Jim Meyering  <jim@meyering.net>
121867         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121869 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121871         * modules/argz: Omit "#include".
121873         * MODULES.html.sh (func_all_modules): Add calloc, to match
121874         2004-06-01 addition of calloc module.
121876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121878         * m4/argz.m4: New file, which is autoupdated from libtool.
121880 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121882         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121883         libtool.
121885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121887         * config/srclist-update: Don't insist on "USA." before the
121888         close-comment, as libtool omits the period and puts the */ on a
121889         separate line.
121890         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121891         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121893 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121895         * modules/argz: New file.
121896         * MODULES.html.sh (func_all_modules): Add argz.
121898 2004-06-12  Jim Meyering  <jim@meyering.net>
121899         and  Paul Eggert  <eggert@cs.ucla.edu>
121901         * modules/hash (Files): Add lib/xalloc.h.
121902         * modules/pipe (Depends-on): Add wait-process.
121903         * modules/stat (Depends-on): Add xalloc.
121904         * modules/userspec (Files): Add lib/userspec.h.
121905         * modules/xstrto
121907         Upgrade from gettext-0.13.
121908         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121909         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121910         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121912 2004-06-10  Jim Meyering  <jim@meyering.net>
121914         * lib/calloc.c: New file.
121916 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121918         * lib/getdate.y (yylex): Allow space between sign and number.
121919         Problem reported by Dan Jacobson.
121921 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121923         Merge from coreutils CVS.
121925         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121926         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121927         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121928         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121929         xstrtol.m4: Fix copyright date and/or serial number.
121931         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121932         See if we need an fchown replacement.
121933         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121934         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121935         and use the replacement function if we detect either defect.
121937         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121938         gl_UTIMECMP.
121940 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121941         and  Jim Meyering  <jim@meyering.net>
121943         Merge from coreutils CVS.
121945         * lib/stat-macros.h: New file, with contents from file-type.h
121946         and coreutils' system.h.
121947         * lib/file-type.c: Include "stat-macros.h".
121948         * lib/file-type.h (file_type): Move all macro definitions to new file,
121949         stat-macros.h.
121951         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121952         Wrap old code with this conditional.
121953         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121954         function that does not dereference symlinks.
121955         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121957         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121958         dependency problems.
121959         (xreadlink): Accept new arg SIZE, for efficiency.
121960         All decls and uses changed.
121961         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121963         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121964         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121966         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121967         sysexits.h.
121969 2004-06-01  Jim Meyering  <jim@meyering.net>
121971         * m4/calloc.m4: New file.
121973 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121976         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121977         Also, fix a typo in a diagnostic.
121979 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121981         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121982         or AC_FUNC_REALLOC.
121984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121986         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121987         macros to be defined.
121988         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121989         the allocator returns NULL because the requested size is zero.
121991 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121993         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121994         var.  Add comment explaining why libc still defines it.  This
121995         merges the following patch from glibc:
121996         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121998 2004-05-20  Andreas Schwab  <schwab@suse.de>
122000         * m4/free.m4: Replace free if it not known to work, not the other
122001         way round.
122003 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
122005         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
122006         present in glibc since revision 1.1 of this file.
122007         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
122008         obstack_alignment_mask, obstack_alloc, obstack_base,
122009         obstack_blank, obstack_blank_fast, obstack_chunk_size,
122010         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
122011         obstack_grow0, obstack_init, obstack_int_grow,
122012         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
122013         obstack_next_free, obstack_object_size, obstack_ptr_grow,
122014         obstack_ptr_grow_fast, obstack_room): Remove declarations of
122015         nonexistent functions.
122017 2004-05-18  Karl Berry  <karl@gnu.org>
122019         * config/srclist.txt: break link for vasnprintf.c.
122021 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122023         Port obstack to the AS/400, where pointers are 16 bytes wide and
122024         you cannot cast an integer to a valid pointer.  This patch is
122025         currently waiting to be integrated into glibc; see
122026         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
122028         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
122029         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
122030         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
122031         (struct obstack): temp member is now a union of a pointer and
122032         an integer, instead of an integer.  All integer uses changed.
122033         This does not affect the physical layout of struct obstack,
122034         except on hosts (like the AS/400) where the size or alignment of
122035         void * is greater than that of ptrdiff_t.
122036         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
122037         __STDC__)]: Store temporary in pointer member of union, not
122038         integer member.
122039         * lib/obstack.c: Include <stddef.h>, for offsetof.
122040         (struct fooalign): Remove; it doesn't need a name.
122041         (union fooround): Change double to long double, and add void *.
122042         (DEFAULT_ALIGNMENT): Use offsetof to compute.
122043         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
122044         not a macro.  Hence the values are always int; so remove all
122045         casts-to-int in uses.
122047 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122049         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
122050         we can get this patch merged into glibc.
122052 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122053             Paul Eggert  <eggert@cs.ucla.edu>
122055         * m4/argp: Depend on alloca.
122057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122058             Paul Eggert  <eggert@cs.ucla.edu>
122060         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
122061         freecoding.
122063 2004-05-17  Bruno Haible  <bruno@clisp.org>
122065         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
122066         precision that consists of a '.' followed by an empty digit string.
122067         Patch by Tor Lillqvist <tml@iki.fi>.
122069 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122071         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
122072         for backward compatibility with older code.  We need our own
122073         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
122074         it under some other name, and our alloca.h will define it.
122076 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122077             Derek Price  <derek@ximbiot.com>
122079         * lib/alloca.c: Include <alloca.h>, to get our interface.
122080         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
122081         include <alloca.h> first.  Use C89 prototype for alloca; this
122082         requires including <stddef.h> for size_t.  Use extern "C" if C++.
122083         Use #elif for simplicity, since we can assume C89 now.
122084         Don't try to source the system alloca.h since it will not be found
122085         and to prevent recursively including its replacement.
122086         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
122087         * lib/regex.c: Likewise.
122089 2004-05-16  Derek Price  <derek@ximbiot.com>
122090             Paul Eggert  <eggert@cs.ucla.edu>
122092         getline cleanup.  This changes the getndelim2 API: both order of
122093         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
122094         no delimiter).
122096         * lib/getline.c: Don't include stddef.h or stdio.h, since our
122097         interface does that.
122098         (getline): Always use getdelim, so that we don't have two
122099         copies of this code.
122100         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
122101         if available.
122102         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
122103         (GETNDELIM2_MAXIMUM): New macro.
122104         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
122105         instead of the old practice of delim2==0.  All callers changed.
122106         Return -1 on overflow, instead of returning junk.
122107         Do not set *linesize unless allocation succeeds.
122108         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
122109         that we include sys/types.h.
122110         * lib/getnline.h: Likewise.
122111         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
122112         (getndelim2): Reorder arguments.
122113         * lib/getnline.c (getnline, getndelim):
122114         Don't discard the NMAX argument.
122115         (getnline): Invoke getndelim, to avoid code duplication.
122116         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
122117         of (size_t) -1 by callers of the getnline family.
122119 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122121         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
122122         Check for gettimeofday.
122123         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
122124         Check for settimeofday, stime.
122126 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122128         * lib/nanosleep.c (suspended): Change its type from int to
122129         sig_atomic_t volatile.
122130         (first_call): Make it private to rpl_nanosleep, and have it
122131         be zero initially as that's a bit faster.
122132         (my_usleep): Round up fractional times instead of truncating them,
122133         as this is the usual meaning for 'sleep'.
122135         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
122136         doesn't work.
122137         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
122138         (ENOSYS): Define if not defined.
122139         (settime): Fall back on stime if it exists and settimeofday fails.
122140         But don't bother with fallbacks if a method fails with errno == EPERM.
122142 2004-05-11  Jim Meyering  <jim@meyering.net>
122144         Prior to this change, the save_cwd caller required read access to the
122145         current directory on most systems (ones with the fchdir function).
122147         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
122148         fails, try write-only, and finally, resort to using xgetcwd.
122150 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122152         * lib/obstack.c, obstack.h: Import changes from libc.
122154 2004-04-28  Bruno Haible  <bruno@clisp.org>
122156         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
122157         also implicitly appends .exe to executables.
122158         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
122159         accepts Windows pathnames.
122160         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122161         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122162         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122163         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122164         Reported by Derek Robert Price <derek@ximbiot.com>.
122166 2004-04-21  Karl Berry  <karl@gnu.org>
122168         * config/srclist.txt (localcharset.c): break sync.
122170 2004-04-20  Paul Eggert  <eggert@twinsun.com>
122172         * m4/host-os.m4: Add a copyright notice.
122174 2004-04-20  Jim Meyering  <jim@meyering.net>
122176         Change UTILS_ to gl_ in AC_DEFINE'd names.
122177         Change utils_- and jm_-prefixed variables, too.
122178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
122179         UTILS_FUNC_MKDIR_TRAILING_SLASH.
122180         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
122182         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
122183         Don't emit trailing blanks.
122184         Also rename jm_-prefixed variables to have gl_ prefix.
122186         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
122187         Also rename jm_-prefixed variables to have gl_ prefix.
122189         * m4/jm-macros.m4: Reflect the renamings.
122190         * m4/prereq.m4: Likewise.
122192 2004-04-20  Jim Meyering  <jim@meyering.net>
122194         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
122195         memory.
122197 2004-04-20  Jim Meyering  <jim@meyering.net>
122198             Bruno Haible  <bruno@clisp.org>
122200         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
122201         memory when realloc fails.
122203 2004-04-19  Jim Meyering  <jim@meyering.net>
122205         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
122206         now that readutmp.c may call `free (0)'.
122208 2004-04-19  Bruno Haible  <bruno@clisp.org>
122210         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
122211         * m4/inttypes_h.m4: Likewise.
122212         * m4/stdint_h.m4: Likewise.
122213         * m4/intmax_t.m4: Likewise.
122214         * m4/uintmax_t.m4: Likewise.
122216 2004-04-18  Jim Meyering  <jim@meyering.net>
122218         * m4/prereq.m4: Don't forbid jm_ prefix.
122220         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
122221         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
122222         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
122223         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
122224         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
122225         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
122226         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
122227         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
122228         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
122229         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
122230         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
122231         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
122232         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
122233         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
122234         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
122235         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
122236         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
122237         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
122238         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
122240 2004-04-18  Jim Meyering  <jim@meyering.net>
122242         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
122243         failure, don't leak memory and do call END_UTMP_ENT.
122245 2004-04-16  Jim Meyering  <jim@meyering.net>
122247         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
122248         coreutils' stat program.
122249         (gl_PREREQ): Don't require jm_PREREQ_STAT.
122251 2004-04-11  Paul Eggert  <eggert@twinsun.com>
122253         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
122254         C89.
122255         (CHAR_BIT): Remove, since we assume C89.
122256         Include <stdint.h> if available, as per current Autoconf CVS advice.
122258 2004-03-31  Jim Meyering  <jim@meyering.net>
122260         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
122261         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
122262         * m4/xalloc.m4: Likewise.
122264 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122266         Merge from coreutils.
122268         * m4/inttostr.m4: New file.
122269         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
122270         Require AM_STDBOOL_H and gl_TIMESPEC instead.
122271         Require gl_CLOCK_TIME.
122272         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
122274 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122276         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
122277         not bool, to be more consistent with Unix conventions.
122278         Suggested by Bruno Haible.
122280         Merge from coreutils.
122282         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
122283         * lib/umaxtostr.c: New files.
122285         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
122286         the usual <time.h> dance.
122287         (get_date): Change signature to support fractional time stamps.
122288         All callers changed.
122289         * lib/getdate.y: Include "getdate.h" first, as we can now
122290         assume C89 and don't need to worry about 'const'.
122291         Similarly, include "unlocked-io.h" near start, not in middle.
122292         Include <limits.h>.
122293         (textint.value): Use long int rather than int.
122294         (textint.digits): Use size_t rather than int.
122295         (BILLION, LOG10_BILLION): New constants.
122296         (parser_control): New member rel_ns.  Members day_ordinal,
122297         time_zone, month, day, hour, minutes, rel_year, rel_month,
122298         rel_day, rel_hour, rel_minutes, rel_seconds
122299         are now long int, not int.  Member seconds is now struct timespec,
122300         not int.  New member timespec_seen.  Members dates_seen, days_seen,
122301         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
122302         not int.
122303         (%union.intval): Now long int, not int.
122304         New member timespec.
122305         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
122306         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
122307         (spec): Now is a timespec or an item list.
122308         (timespec, items): New nonterminals.
122309         (time, rel, relunit, number, get_date):
122310         Add support for fractional seconds.
122311         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
122312         (gmtime, localtime, mktime): Remove decls; not needed with C89.
122313         (to_hour): First arg is now long int, not int.
122314         (to_year): Returns long int, not int.
122315         Don't treat year -70 like 70.
122316         (tm_diff): Returns long int, not int.
122317         (lookup_word): Use bool instead of int when appropriate.
122318         (yylex): Use size_t for count, not int.
122319         Detect overflow when parsing large integer constants.
122320         Add support for fractions.
122321         (get_date): Make pointers 'const' if possible.
122322         Use more-portable code to detect integer overflow.
122323         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
122324         Don't use ctime; it's not reliable if the year has >4 digits.
122326         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
122327         This is for compatibility with BSD.
122329         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
122330         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
122331         From coreutils' system.h.
122333         * lib/userspec.c: Don't include "posixver.h".
122334         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
122335         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
122336         compatible extension.  Simplify code by removing a boolean int
122337         that was always nonzero if a string was nonnull.
122339 2004-03-30  Jim Meyering  <jim@meyering.net>
122341         Merge from coreutils.
122343         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
122344         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
122345         on some systems one must include <grp.h> before it.
122346         Reported by Christian Krackowizer.
122348 2004-03-30  Jim Meyering  <jim@meyering.net>
122350         Merge from coreutils.
122352         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
122354         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
122355         an empty input stream.
122357         * lib/readtokens.c: Include <stdbool.h>.
122358         (readtoken): Use `size_t' rather than int/long.
122359         All callers adjusted.
122360         Use `bool' rather than `int' where appropriate.
122361         Use memset rather than an explicit loop.
122362         Use x2nrealloc rather than xrealloc.
122363         Allow the use of `\0' as a delimiter.
122364         (readtokens): Likewise.
122365         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
122367 2004-03-30  Jim Meyering  <jim@meyering.net>
122369         * m4/realloc.m4: Remove file, since now it does no more than
122370         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
122371         the `configure.ac' section of module/realloc.
122372         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
122374 2004-03-30  Bruno Haible  <bruno@clisp.org>
122376         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
122377         nonnull.
122379 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122381         Merge changes to getloadavg.c from coreutils and Emacs.
122383         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122384         Define to an expression, not to the empty string.
122385         Include cloexec.h and xalloc.h.
122386         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122387         Use set_cloexec_flag rather than rolling our own.
122388         * lib/cloexec.c, lib/cloexec.h: New files.
122390 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122392         * m4/cloexec.m4: New file.
122394 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122396         * lib/getopt.h: Sync with libc CVS.
122398 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122399             Bruno Haible  <bruno@clisp.org>
122401         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122402         mbswidth.
122404 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122405             Bruno Haible  <bruno@clisp.org>
122407         * lib/mbswidth.h: Include <wchar.h> only if
122408         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122409         <wchar.h>.
122410         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122412 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122414         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122415         Sync with libc CVS.
122416         * lib/getopt_int.h: New file, also synced from libc.
122418 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122420         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122421         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122422         Bring back getopt.c, getopt.h, getopt1.c.
122424 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122426         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122427         All uses changed.  Check for sa_sigaction member; this fixes
122428         a bug first reported by Jason Andrade in
122429         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122431 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122433         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122434         '#if' expressions.  Unlike the code it replaces, it does not
122435         depend on (defined _SC_PAGESIZE).  However, it does depend on
122436         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122437         first reported by Jason Andrade in
122438         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122440 2004-02-25  Simon Josefsson  <jas@extundo.com>
122442         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122444 2004-02-25  Simon Josefsson  <jas@extundo.com>
122446         * lib/strdup.h: New file.
122447         * lib/strdup.c: Include it.
122448         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122449         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122451 2004-02-23  Karl Berry  <karl@gnu.org>
122453         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122454         (from fencepost.gnu.org:/gd/gnuorg).
122456 2004-02-23  Karl Berry  <karl@gnu.org>
122458         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122459         * config/srclist.txt: add maintain/standards documents.
122461 2004-02-18  Bruno Haible  <bruno@clisp.org>
122463         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122464         Reported by Derek Robert Price <derek@ximbiot.com>.
122466 2004-02-16  Karl Berry  <karl@gnu.org>
122468         * config/mkinstalldirs, install-sh: update from automake.
122470 2004-02-06  Karl Berry  <karl@gnu.org>
122472         * m4/po.m4: update from gettext 0.14.1.
122474 2004-02-06  Karl Berry  <karl@gnu.org>
122476         * lib/config.charset: update from gettext 0.14.1.
122478 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122480         Add comments and code, prompted by suggestions from Bruno Haible
122481         for sh-quote.
122482         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122483         describing the enum quoting_style values.
122484         * lib/quotearg.c (quotearg_alloc): New function.
122485         (quotearg_buffer_restyled): Treat lone { and } as special.
122486         Treat = as special.  Work around bug with older shells
122487         that "see" a '\' that is really the 2nd byte of a multibyte char.
122488         Quote empty string with shell_quoting_style.
122490 2004-02-03  Bruno Haible  <bruno@clisp.org>
122492         * m4/pipe.m4: New file, from GNU gettext.
122494 2004-02-03  Bruno Haible  <bruno@clisp.org>
122496         * lib/pipe.h: New file, from GNU gettext.
122497         * lib/pipe.c: New file, from GNU gettext.
122499 2004-01-27  Bruno Haible  <bruno@clisp.org>
122501         * m4/execute.m4: New file, from GNU gettext.
122503 2004-01-27  Bruno Haible  <bruno@clisp.org>
122505         * lib/execute.h: New file, from GNU gettext.
122506         * lib/execute.c: New file, from GNU gettext.
122507         * lib/w32spawn.h: New file, from GNU gettext.
122509 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122511         Merge from diffutils.
122513         * lib/file-type.c (file_type): Add typed memory objects.
122514         * lib/file-type.h (S_TYPEISTMO): New macro.
122516         * lib/c-stack.h (c_stack_action): Remove argv argument.
122517         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122518         (die): Don't calculate message unless segv_action returns.
122519         (get_stack_location, min_address_from_argv, max_address_from_argv,
122520         volatile stack_base, volatile_stack_size): Remove.
122521         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122522         that every segmentation violation is a stack overflow.  (Ouch!)
122523         See Debian bug 136249 (still outstanding) for more info about why
122524         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122526 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122528         Exit-status fix from coreutils.
122530         Use exit_failure consistently in place of EXIT_FAILURE,
122531         so that program exit statuses are consistent on failure.
122533         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122534         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122535         * lib/argmatch.h: Comment fix to match the above.
122536         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122537         Now a macro referring to exit_failure, instead of a separate
122538         variable.  Include "exitfail.h" to get it.
122539         * lib/xstrtol.h: Include "exitfail.h".
122540         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122542         * lib/long-options.c (parse_long_options): Use prototype
122543         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122544         for clarity.
122546 2004-01-21  Jim Meyering  <jim@meyering.net>
122548         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122549         so as not to conflict with a different-sized __mktime_internal
122550         function in GNU libc.
122551         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122552         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122554 2004-01-20  Karl Berry  <karl@gnu.org>
122556         * config/config.guess: update from config.
122558         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122560 2004-01-20  Bruno Haible  <bruno@clisp.org>
122562         Safer stack allocation.
122563         * lib/setenv.c: Include allocsa.h.
122564         (alloca): Remove fallback definition.
122565         (freea): Remove macro.
122566         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122567         instead of freea.
122569 2004-01-20  Bruno Haible  <bruno@clisp.org>
122571         * m4/eealloc.m4: New file, from GNU gettext.
122573 2004-01-20  Bruno Haible  <bruno@clisp.org>
122575         * m4/allocsa.m4: New file, from GNU gettext.
122577 2004-01-20  Bruno Haible  <bruno@clisp.org>
122579         * lib/xallocsa.h: New file, from GNU gettext.
122580         * lib/xallocsa.c: New file, from GNU gettext.
122582 2004-01-20  Bruno Haible  <bruno@clisp.org>
122584         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122586 2004-01-20  Bruno Haible  <bruno@clisp.org>
122588         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122589         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122590         specially.
122592 2004-01-20  Bruno Haible  <bruno@clisp.org>
122594         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122595         patch.
122597 2004-01-20  Bruno Haible  <bruno@clisp.org>
122599         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122601 2004-01-20  Bruno Haible  <bruno@clisp.org>
122603         * lib/eealloc.h: New file.
122605 2004-01-20  Bruno Haible  <bruno@clisp.org>
122607         * lib/binary-io.h: Avoid warnings on Cygwin.
122609 2004-01-20  Bruno Haible  <bruno@clisp.org>
122611         * lib/allocsa.h: New file, from GNU gettext.
122612         * lib/allocsa.c: New file, from GNU gettext.
122614 2004-01-18  Karl Berry  <karl@gnu.org>
122616         * doc/gpl.texi, doc/lgpl.texi: new files.
122618 2004-01-18  Karl Berry  <karl@gnu.org>
122620         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122621         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122623 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122625         Merge from coreutils.
122627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122628         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122629         (gl_DEFAULT_POSIX2_VERSION): Move
122630         the documentation from 'configure' into 'config.hin',
122631         so that 'configure --help' isn't burdened by it and
122632         we don't have to worry about its formatting there.
122633         Reword the documentation so that it's more succinct
122634         and can be run together into a single paragraph.
122635         * m4/same.m4 (gl_SAME): Check for pathconf.
122637 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122639         Merge from coreutils.
122641         * lib/posixver.c: Include posixver.h.
122643         * lib/same.c: Include <stdbool.h>, <limits.h>.
122644         (_POSIX_NAME_MAX): Define if not defined.
122645         (MIN): New macro.
122646         (same_name): If file names are silently truncated, report
122647         that the file names are the same if they are the same after
122648         the silent truncation.
122650         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122651         conversion function.
122652         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122653         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122654         longer needed.
122656 2004-01-15  Jim Meyering  <jim@meyering.net>
122658         Merge from coreutils.
122660         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122661         if no library is required.
122662         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122663         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122664         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122665         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122666         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122667         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122668         value, $ac_cv_search_crypt, if it's "none required".
122669         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122670         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122671         not gl_FUNC_GETLOADAVG.
122672         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122673         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122675 2004-01-15  Jim Meyering  <jim@meyering.net>
122677         Merge from coreutils.
122679         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122680         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122681         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122683         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122684         optional configure-time default.
122686         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122688         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122690 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122692         Merge from coreutils.
122694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122695         value, $ac_cv_search_nanosleep, if it's "none required".
122697 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122699         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122700         with like-named macro in fnmatch.c.
122701         (EXT): Use an internal constant instead.
122703         Merge fnmatch patches from glibc.
122704         * lib/fnmatch.c (mbsinit): Remove define.
122705         Add libc_hidden_ver (__fnmatch, fnmatch).
122706         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122707         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122709 2004-01-14  Karl Berry  <karl@gnu.org>
122711         * config/install-sh: update from automake.
122713 2004-01-13  Karl Berry  <karl@gnu.org>
122715         * config/install-sh: update from automake.
122717 2004-01-09  Karl Berry  <karl@gnu.org>
122719         * config/install-sh: update from automake.
122721 2004-01-05  Karl Berry  <karl@gnu.org>
122723         * config/config.{sub,guess}: update from config.
122725 2003-12-31  Karl Berry  <karl@gnu.org>
122727         * config/depcomp: update from automake.
122729 2003-12-14  Karl Berry  <karl@gnu.org>
122731         * lib/config.charset: update from gettext-runtime.
122733 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122735         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122736         Bug reported by Alfred M. Szmidt.
122738 2003-12-03  Bruno Haible  <bruno@clisp.org>
122740         * m4/gettext.m4: Upgrade from gettext-0.13.
122741         * m4/po.m4: Upgrade from gettext-0.13.
122742         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122743         * m4/intmax.m4: New file, from gettext-0.13.
122744         * m4/printf-posix.m4: New file, from gettext-0.13.
122746 2003-11-29  Karl Berry  <karl@gnu.org>
122748         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122750 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122751             Bruno Haible  <bruno@clisp.org>
122753         * lib/printf-parse.h: Don't include sys/types.h.
122754         (ARG_NONE): New macro.
122755         (char_directive): Change type of *arg_index fields to size_t.
122756         * lib/printf-parse.c: Don't include sys/types.h.
122757         (SSIZE_MAX): Remove macro.
122758         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122759         Remove unnecessary overflow check.
122760         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122761         fields.
122763 2003-11-25  Bruno Haible  <bruno@clisp.org>
122765         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122767 2003-11-25  Bruno Haible  <bruno@clisp.org>
122769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122770         gt_TYPE_SSIZE_T.
122772 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122774         * modules/alloca: Remove dependency on xalloc.
122776 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122778         * lib/alloca.c: Remove dependency on xalloc module.
122779         (xalloc_die): Remove.
122780         (memory_full) [!defined emacs]: New macro.
122781         [!defined emacs]: Don't include xalloc.h.
122782         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122783         address arithmetic overflows.  Change datatypes a bit to avoid
122784         unnecessary casts.
122786 2003-11-22  Jim Meyering  <jim@meyering.net>
122788         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122789         s/size/size_t/.
122791 2003-11-21  Karl Berry  <karl@gnu.org>
122793         * config/config.{sub,guess}: update from config.
122795 2003-11-18  Karl Berry  <karl@gnu.org>
122797         * config/config.{sub,guess}: update from config.
122799         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
122801 2003-11-17  Paul Eggert  <eggert@twinsun.com>
122803         * README: Mention that S+T cannot overflow if S is the size of
122804         an existing object and T is sufficiently small.
122806 2003-11-17  Jim Meyering  <jim@meyering.net>
122808         On systems without utime and without a utimes function capable of
122809         dealing with a NULL struct utimbuf* argument, this utime replacement
122810         could -- in unusual circumstances -- leak a file descriptor.
122811         * lib/utime.c: Include <unistd.h> and <errno.h>.
122812         (utime_null): Be sure to close `fd' and to preserve errno.
122813         Reported by Geoff Collyer via Arnold Robbins.
122815 2003-11-17  Bruno Haible  <bruno@clisp.org>
122817         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122818         (Depends-on): Add xsize.
122820 2003-11-17  Bruno Haible  <bruno@clisp.org>
122822         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122824 2003-11-17  Bruno Haible  <bruno@clisp.org>
122826         * lib/vasnprintf.c (alloca): Remove fallback definition.
122827         (freea): Remove definition.
122828         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122829         Reported by Paul Eggert.
122831 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122832             Bruno Haible  <bruno@clisp.org>
122834         Protect against address arithmetic overflow.
122835         * lib/printf-args.h: Include stddef.h.
122836         (arguments): Change type of field 'count' to size_t.
122837         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122838         'unsigned int' where appropriate.
122839         * lib/printf-parse.h: Include sys/types.h.
122840         (char_directive): Change type of *arg_index fields to ssize_t.
122841         (char_directives): Change type of fields 'count', max_*_length to
122842         size_t.
122843         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122844         (SSIZE_MAX): Define fallback value.
122845         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122846         instead of 'int' where appropriate. Check a_allocated, d_allocated
122847         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122848         * lib/vasnprintf.c: Include xsize.h.
122849         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122850         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122851         overflow. Avoid wraparound when converting a width or precision from
122852         decimal to binary.
122854 2003-11-16  Bruno Haible  <bruno@clisp.org>
122856         Update from GNU gettext.
122857         * lib/printf-parse.c: Generalize to it can be compiled for wide
122858         strings.
122859         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122860         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122861         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122862         SNPRINTF): New macros.
122863         Don't include <alloca.h> if the file is used inside libintl.
122864         (local_wcslen): New function, for Solaris 2.5.1.
122865         (VASNPRINTF): Use it instead of wcslen.
122867 2003-11-16  Bruno Haible  <bruno@clisp.org>
122869         * lib/xsize.h (xmax): New function.
122870         (xsum, xsum3, xsum4): Declare as "pure" functions.
122872 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122874         * modules/xalloc (Files): Undo latest change, since xalloc.h
122875         no longer needs SIZE_MAX or PTRDIFF_MAX.
122877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122879         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122880         gl_PTRDIFF_MAX.
122882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122884         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122885         "return", to pacify some unknown compiler.  Problem reported
122886         by Joerg Schilling.
122888 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122890         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122891         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122892         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122893         heuristic is just as accurate as far as we know, and it removes a
122894         dependency on size_max.m4 and ptrdiff_max.m4.
122896 2003-11-11  Bruno Haible  <bruno@clisp.org>
122898         * modules/xsize (Files): Add m4/size_max.m4.
122899         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122901 2003-11-11  Bruno Haible  <bruno@clisp.org>
122903         * m4/size_max.m4: New file.
122904         * m4/ptrdiff_max.m4: New file.
122905         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122906         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122907         (gl_XALLOC): Invoke it.
122909 2003-11-11  Bruno Haible  <bruno@clisp.org>
122911         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122912         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122913         defined.
122915 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122917         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122918         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122919         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122920         From Bruno Haible.
122921         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122922         not (size_t) -1, since it's defined here.
122924 2003-11-09  Karl Berry  <karl@gnu.org>
122926         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122928 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122930         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122931         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122932         Reject sizes of exactly SIZE_MAX bytes.
122933         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122934         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122936 2003-11-05  Bruno Haible  <bruno@clisp.org>
122938         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122939         SIZE_MAX defined in <limits.h> on Solaris.
122941 2003-11-04  Jim Meyering  <jim@meyering.net>
122943         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122944         variable names, rather than @VAR@.
122945         * modules/poll: Likewise.
122947 2003-11-04  Bruno Haible  <bruno@clisp.org>
122949         * modules/xsize: New file.
122950         * modules/linebreak: Depend on xsize.
122951         * MODULES.html.sh (func_all_modules): Add xsize.
122953 2003-11-04  Bruno Haible  <bruno@clisp.org>
122955         * m4/xsize.m4: New file.
122957 2003-11-04  Bruno Haible  <bruno@clisp.org>
122959         * lib/xsize.h: New file.
122960         * lib/linebreak.c: Include xsize.h.
122961         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122962         argument for overflow.
122963         Suggested by Paul Eggert.
122965 2003-11-03  Karl Berry  <karl@gnu.org>
122967         * config/config.{guess,sub}: update from config.
122969 2003-11-03  Jim Meyering  <jim@meyering.net>
122971         * modules/userspec (lib_SOURCES): Add userspec.h.
122972         (Include): Add "userspec.h".
122973         Improve description.
122975 2003-11-03  Jim Meyering  <jim@meyering.net>
122977         * lib/userspec.c: Include "userspec.h".
122978         * lib/userspec.h: New file.
122980 2003-11-03  Bruno Haible  <bruno@clisp.org>
122982         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122984 2003-11-03  Bruno Haible  <bruno@clisp.org>
122986         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122987         available, to avoid (extremely rare) race condition.
122988         Suggested by Paul Eggert.
122990 2003-11-02  Karl Berry  <karl@gnu.org>
122992         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122994 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122996         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122997         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122998         (read_filesystem_list): Set and use me_type_malloced.
122999         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
123000         whatever the type happens to be), for brevity and consistency.
123001         Check for size calculation overflow on Alphas running OSF/1.
123003 2003-10-31  Jim Meyering  <jim@meyering.net>
123005         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
123007         * lib/linebuffer.c: Include <string.h> for declaration of memset.
123009 2003-10-30  Paul Eggert  <eggert@twinsun.com>
123010             Bruno Haible  <bruno@clisp.org>
123012         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
123013         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
123015 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
123017         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
123018         netbsd*-gnu*.  Suggested by Robert Millan.
123020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123022         * modules/group-member: Depend on stdbool.
123024 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123026         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
123028 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123030         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
123031         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
123032         after the 'gnu' in these cases.  This fixes some bugs in the
123033         previous change, and is based on suggestions by Robert Millan.
123035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123037         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
123038         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
123039         no longer needed.
123040         * lib/quotearg.c (quotearg_n_options): Use it.
123041         * lib/group-member.c: Include <stdbool.h>.
123042         (free_group_info): Arg is now const *; don't free arg.
123043         (get_group_info): Now returns bool and accepts struct group_info *,
123044         rather than returning a malloc'ed struct group_info *.
123045         All uses changed.  Check for overflow in internal size calculation.
123047         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
123048         rather than xmalloc/xrealloc.
123049         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
123050         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
123051         conformance bug: the old code used a pointer after freeing the
123052         storage that it addressed.
123053         * lib/hash.c (hash_initialize): Simplify the code by using
123054         xalloc_oversized rather than doing it by hand.
123055         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
123056         the buffer preserved.  Use free and xmalloc instead.
123057         * lib/quotearg.c (quotearg_n_options): Likewise.
123058         Use a simpler test for size overflow.  Don't use xalloc_oversized
123059         because unsigned int might be wider than size_t (!); this suggests
123060         that we should switch from unsigned int to size_t for slot numbers.
123062 2003-10-28  Paul Eggert  <eggert@twinsun.com>
123064         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
123065         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
123066         NetBSD kernels.  Requested by Richard Stallman.
123068 2003-10-27  Paul Eggert  <eggert@twinsun.com>
123070         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
123071         to allocate the returned structure.  Do not allocate a subarray,
123072         as x2nrealloc will do that.
123073         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
123074         instead of xnrealloc.
123075         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
123077 2003-10-27  Bruno Haible  <bruno@clisp.org>
123079         * lib/stdbool_.h: Better support for BeOS.
123081 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123083         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
123084         now uses inline.
123086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123088         * lib/xalloc.h (xalloc_oversized): New static inline function, for
123089         callers that want to do their own size-overflow checking.  Include
123090         <stdbool.h>, since xalloc_oversized returns bool.
123091         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
123092         to use xalloc_oversized.
123094         Add two functions x2realloc, x2nrealloc, for programs that grow
123095         arrays dynamically by doubling their sizes.
123096         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
123097         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
123098         New functions.
123100         Port to C99 semantics for 'inline' of external functions.
123101         Bug reported by Bruno Haible.
123102         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
123103         with the old contents of xnmalloc.
123104         (xnmalloc, xmalloc): Use it.
123105         (xnrealloc_inline): New static inline function,
123106         with the old contents of xnrealloc.
123107         (xnrealloc, xrealloc): Use it.
123109         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
123110         that.
123112 2003-10-26  Karl Berry  <karl@gnu.org>
123114         * config/srclist.txt (COPYING.DOC): no longer available from
123115         /gd/gnuorg; don't know where the ultimate source is.
123117 2003-10-25  Paul Eggert  <eggert@twinsun.com>
123119         Fix several address-calculation bugs in the hash modules,
123120         plus some minor code cleanup.
123122         * lib/hash.h: Include <stdbool.h>, for bool.
123123         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
123124         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
123125         hash_get_n_entries, hash_get_max_bucket_length,
123126         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
123127         hash_rehash): Use size_t rather than unsigned.
123128         * lib/hash.c (struct hash_table, hash_get_n_buckets,
123129         hash_get_n_buckets_used, hash_get_n_entries,
123130         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
123131         hash_get_entries, hash_do_for_each, hash_string, is_prime,
123132         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
123133         Likewise.
123134         (SIZE_MAX): Define if not defined.
123135         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
123136         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
123137         hash_print):
123138         Use const * when possible.
123139         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
123140         (check_tuning): Fix bug: if tuning parameters were very close to
123141         0 or 1, rounding errors could have caused subscript violations.
123142         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
123143         (hash_initialize): Add 'fail:' label
123144         to free table and return NULL, and use it to simplify code.
123145         Use calloc rather than clearing the storage ourself.
123146         (hash_initialize, hash_rehash): Check for arithmetic overflow in
123147         buffer size calculations.
123148         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
123149         Include <stddef.h>, for size_t.
123150         * lib/hash-pjw.c (hash_pjw): Likewise.
123151         Switch to method described by Bruno Haible.
123152         Include <limits.h>, for CHAR_BIT.
123153         (SIZE_BITS): New macro.
123155 2003-10-23  Paul Eggert  <eggert@twinsun.com>
123157         * m4/getline.m4 (AM_FUNC_GETLINE):
123158         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
123159         hosts.  Problem reported by Derek Robert Price in
123160         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
123161         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
123162         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
123164 2003-10-21  Paul Eggert  <eggert@twinsun.com>
123166         * lib/getndelim2.c (getndelim2): When size calculation overflows,
123167         ceiling the allocation at NMAX bytes rather than silently
123168         discarding input bytes before NMAX is reached.  This makes
123169         a difference only if NMAX exceeds SIZE_MAX / 2.
123171         * lib/obstack.c: Merge from glibc.
123172         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
123173         Add libc_hidden_def (_obstack_newchunk).
123174         (_obstack_free) [! defined _LIBC]: Remove.
123175         [defined _LIBC]: Make a strong alias from obstack_free, rather than
123176         a clone of the function body.
123177         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
123178         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
123180         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
123181         glibc.
123182         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
123183         arg to memcpy.
123185         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
123186         (obstack_ptr_grow_fast, obstack_int_grow_fast):
123187         Don't use lvalue casts, as GCC plans to remove support for them
123188         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
123189         was also present in the non-GCC version, indicating that this
123190         code had always been buggy and had never been widely used.
123191         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
123192         Use the fast variant of each macro, rather than copying the
123193         definiens of the fast variant; that way, we'll be more likely to
123194         catch future bugs in the fast variants.
123196 2003-10-20  Bruno Haible  <bruno@clisp.org>
123198         * modules/wait-process: New file.
123199         * MODULES.html.sh (func_all_modules): Add wait-process.
123201 2003-10-20  Bruno Haible  <bruno@clisp.org>
123203         * m4/wait-process.m4: New file.
123205 2003-10-20  Bruno Haible  <bruno@clisp.org>
123207         * lib/wait-process.h: New file, from GNU gettext.
123208         * lib/wait-process.c: New file, from GNU gettext.
123210 2003-10-19  Jim Meyering  <jim@meyering.net>
123212         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
123213         HPUX 10.20.
123215 2003-10-18  Karl Berry  <karl@gnu.org>
123217         * config/config.guess: update from config.
123219 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123221         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
123222         (getgroups): First arg is int, not size_t.
123223         Don't let 'free' mangle errno.
123225 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123227         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
123229 2003-10-16  Karl Berry  <karl@gnu.org>
123231         * config/config.{guess,sub}: update from config.
123233 2003-10-16  Jim Meyering  <jim@meyering.net>
123235         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
123236         memcpy.
123238 2003-10-15  Paul Eggert  <eggert@twinsun.com>
123240         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
123241         (SIZE_MAX): Remove.
123242         (new_exclude, add_exclude_file): Initial size no longer needs to
123243         be a power of 2.
123244         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
123245         our own address arithmetic overflow checking.
123247         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
123248         (fnmatch): Do not alloca more than 2000 wide characters;
123249         instead, use malloc for large buffers.
123250         Check for address arithmetic overflow, and return -1
123251         with errno set to ENOMEM in that case.
123252         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
123253         (NEW_PATTERN): Do not alloca more than 8000 bytes;
123254         instead, return -1.  Check for address arithmetic overflow.
123256 2003-10-14  Paul Eggert  <eggert@twinsun.com>
123258         Handle invalid suffixes and overflow independently, so that
123259         callers can treat them independently as needed.  Fix some bugs in
123260         suffix handling, e.g., "100k@" was not diagnosed as an invalid
123261         suffix for a human-readable blocksize.  The major caller-visible
123262         change is the addition of a new
123263         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
123264         that both overflow and suffix chars were found.
123266         * lib/human.c (humblock): Don't check separately for invalid suffix
123267         char; that is xstrtoumax's job (now that its bug is fixed).
123268         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
123269         INTMAX_MAX]: New macros.
123270         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
123271         TYPE_MAXIMUM): New macros.
123272         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
123273         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
123274         if overflow occurs, as it's what __strtol does and it's more useful
123275         in practice.
123276         (__xstrtol): If __strtol reports some error other than ERANGE,
123277         reflect it to the caller as LONGINT_INVALID.  If it reports
123278         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
123279         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
123280         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
123281         value.
123282         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
123283         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
123284         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
123285         [defined UINTMAX_MAX]: New macros.
123287 2003-10-14  Bruno Haible  <bruno@clisp.org>
123289         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
123291 2003-10-14  Bruno Haible  <bruno@clisp.org>
123293         * m4/sig_atomic_t: New file, from GNU gettext.
123294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
123296 2003-10-14  Bruno Haible  <bruno@clisp.org>
123298         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
123299         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
123300         Also use volatile where needed.
123302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123304         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
123305         Change maintainer from Bruno Haible to 'all'.
123307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
123311 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123313         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
123314         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
123315         and define in terms of the other primitives.
123316         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
123317         (SIZE_MAX): Define if not already defined.
123318         (array_size_overflow): New function.
123319         (xalloc_die): Abort instead of exiting if 'error' returns.
123320         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
123321         (xmalloc, xrealloc): Use them.
123322         (xcalloc): Check for address arithmetic overflow.
123323         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
123324         a bit faster than strcpy.
123326 2003-10-10  Simon Josefsson  <jas@extundo.com>
123328         * modules/argp (Depends-on): Add restrict and strcase.
123330 2003-10-10  Simon Josefsson  <jas@extundo.com>
123332         * m4/argp.m4: Add AC_C_INLINE.
123334 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123336         Merge getpass from libc, plus a few fixes.
123338         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
123339         Include <stdbool.h>.
123340         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
123341         __fsetlocking to empty.
123342         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
123343         do include <bits/libc-lock.h>.
123344         Do not include <fcntl.h>; not needed.
123345         [_LIBC]: Include <wchar.h>.
123346         (NOTCANCEL_MODE): New macro.
123347         (flockfile, funlockfile) [_LIBC]: New macros.
123348         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
123349         [!_LIBC]: New macros.
123350         (call_fclose): New function.
123351         (getpass): Use it.  Save tty stream separately; this simplifies the
123352         code and makes it more reliable if stdin happens to equal stdout.
123353         Invoke __fsetlocking on tty.
123354         Handle thread cancellation if needed.
123355         Namespace cleanup (use __tcgetattr, __getline).
123356         Use bool for Booleans.
123357         [USE_IN_LIBIO]: Handle wide streams.
123358         [!_LIBC]: Unconditionally do the fseek, since we don't know what
123359         stream might go where.
123361         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
123362         doesn't have to include <stdio.h> before us.
123363         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
123364         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
123365         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
123366         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
123367         if not declared, so that we can use getpass.c code from libc without
123368         rewriting it.
123369         (flockfile, ftrylockfile, funlockfile): New macros.
123371 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123373         * modules/getpass: Depend on stdbool.
123375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
123379 2003-10-07  Karl Berry  <karl@gnu.org>
123381         * config/config.{guess,sub}: update from config.
123383 2003-10-06  Jim Meyering  <jim@meyering.net>
123384             Bruno Haible  <bruno@clisp.org>
123386         This lets translators provide better translations for the
123387         "Written by ..." part of --version output.
123388         * lib/version-etc.h: Include stdarg.h.
123389         (version_etc_copyright): Declare as readonly.
123390         (version_etc): Make this function variadic with a NULL-terminated list
123391         of author name strings.
123392         (version_etc_va): New declaration.
123393         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123394         (version_etc_copyright): Declare as readonly.
123395         (version_etc_va): New function. Provide a different translatable string
123396         for each possible number of authors < 10. Abbreviate when there are 10
123397         authors or more.
123398         (version_etc): Make this function variadic. Call version_etc_va.
123399         Suggestion from Gary V. Vaughan.
123401         * lib/long-options.h (parse_long_options): Change prototype: the
123402         authors string is moved to the end and becomes variadic.
123403         * lib/long-options.c: Include stdarg.h.
123404         (parse_long_options): Make this function variadic, too.
123405         Call version_etc_va, not version_etc.
123407 2003-10-06  Bruno Haible  <bruno@clisp.org>
123409         * modules/version-etc-2: Remove file.
123410         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123412 2003-10-06  Bruno Haible  <bruno@clisp.org>
123414         * modules/fatal-signal: New file.
123415         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123417 2003-10-06  Bruno Haible  <bruno@clisp.org>
123419         * m4/fatal-signal.m4: New file.
123420         * m4/signalblocking.m4: New file, from GNU gettext.
123422 2003-10-06  Bruno Haible  <bruno@clisp.org>
123424         * lib/version-etc-2.h: Remove file.
123425         * lib/version-etc-2.c: Remove file.
123427 2003-10-06  Bruno Haible  <bruno@clisp.org>
123429         * lib/fatal-signal.h: New file, from GNU gettext.
123430         * lib/fatal-signal.c: New file, from GNU gettext.
123432 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123434         * README: Rework advice for preventing empty .o files.
123435         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123436         not <sys/types.h>.
123438 2003-10-04  Karl Berry  <karl@gnu.org>
123440         * lib/argp*: update from libc.
123442 2003-10-04  Karl Berry  <karl@gnu.org>
123444         * config/config.{guess,sub}: update from config.
123446 2003-10-02  Bruno Haible  <bruno@clisp.org>
123448         * modules/lchown (Include): Add lchown.h.
123449         * modules/time_r (Include): Use "..." syntax.
123450         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123452 2003-10-01  Simon Josefsson  <jas@extundo.com>
123454         * MODULES.html.sh (func_all_modules): Move gethostname from section
123455         'based on' to section 'lacking' POSIX:2001.
123457 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123459         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123460         to output mode on the same stream.
123462 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123464         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123465         Fix arg typo in previous patch.
123467 2003-09-28  Jim Meyering  <jim@meyering.net>
123469         * lib/error.c: Correct cpp indentation.
123471 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123473         * modules/free: New file.
123475 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123477         * m4/free.m4: New file.
123479 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123481         * lib/minmax.h (MIN, MAX)
123482         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123483         Omit the special code that used __typeof__, since we worry that
123484         it could be more trouble than it's worth.  See:
123485         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123486         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123488         * lib/free.c: New file.
123490 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123492         Trivial fixes to Makefile.am parts of module listings.
123493         * modules/strstr: Append strstr.h to lib_SOURCES.
123494         * modules/strcase: Likewise, for strcase.h.
123496 2003-09-27  Karl Berry  <karl@gnu.org>
123498         * config/mkinstalldirs: update from automake.
123500 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123502         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123503         (error_tail): Do not loop, reallocating temporary buffer, since
123504         the output cannot contain more wide characters than the input
123505         contains bytes, the size must be big enough already.  This avoids
123506         one potential size overflow calculation.  Check for size overflow
123507         when calculating temporary buffer size.  Free temporary buffer
123508         when done, if it was allocated with malloc; this plugs a memory
123509         leak.  Remove casts from void * to pointers, that are no longer
123510         needed now that we're assuming C89 or better.
123512         Merge error changes from glibc.
123514         * lib/error.c, error.h: Update copyright notice header to match glibc.
123515         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123516         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123517         Disable cancellation while printing error.
123518         * lib/error.h: Prepend __ to parameter names.
123520 2003-09-26  Jim Meyering  <jim@meyering.net>
123522         * lib/error.c (error_tail): Move some declarations
123523         into inner scope where the local variables are used.
123525 2003-09-26  Bruno Haible  <bruno@clisp.org>
123527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123528         stpncpy().
123529         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123531 2003-09-26  Bruno Haible  <bruno@clisp.org>
123533         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123534         (stpncpy): Define as alias for gnu_stpncpy.
123535         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123537 2003-09-25  Simon Josefsson  <jas@extundo.com>
123539         * lib/xgetdomainname.h: New file.
123540         * lib/xgetdomainname.c: New file.
123542 2003-09-25  Simon Josefsson  <jas@extundo.com>
123543             Bruno Haible  <bruno@clisp.org>
123545         * modules/getdomainname: New file.
123546         * modules/xgetdomainname: New file.
123547         * MODULES.html.sh (func_all_modules): Add getdomainname,
123548         xgetdomainname.
123550 2003-09-25  Simon Josefsson  <jas@extundo.com>
123551             Bruno Haible  <bruno@clisp.org>
123553         * m4/getdomainname.m4: New file.
123555 2003-09-25  Simon Josefsson  <jas@extundo.com>
123556             Bruno Haible  <bruno@clisp.org>
123558         * lib/getdomainname.h: New file.
123559         * lib/getdomainname.c: New file.
123561 2003-09-25  Karl Berry  <karl@gnu.org>
123563         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123565 2003-09-25  Karl Berry  <karl@gnu.org>
123567         * config/install-sh: update from automake.
123569 2003-09-25  Bruno Haible  <bruno@clisp.org>
123571         * modules/version-etc-2: New file, from modules/version-etc with
123572         modifications.
123573         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123575 2003-09-25  Bruno Haible  <bruno@clisp.org>
123577         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123578         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123580 2003-09-24  Simon Josefsson  <jas@extundo.com>
123582         * modules/xgethostname: Add xgethostname.h.
123584 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123586         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123587         the buffer associated with the argument.  Bug reported by
123588         Simon Josefsson.
123590 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123592         * README: Document assumptions that 'int' is at least 32 bits
123593         wide, that integer arithmetic is 2's complement without overflow,
123594         that there are no holes in integer values, that adding sizes of
123595         two nonoverlapping objects can't overflow, and that all-bits-zero
123596         yields scalar zero.  Fix spelling and capitalization typos.
123598 2003-09-19  Karl Berry  <karl@gnu.org>
123600         * lib/argp.h: update from libc.
123602 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123605         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123606         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123608 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123610         * gnulib-tool: Use "test -h", not "test -L", for portability
123611         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123612         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123613         (sed_extract_prog): Issue s commands one-by-one, rather than
123614         using \| in one s command.
123616 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123618         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123619         input error, instead of returning NULL the next time we are called
123620         (and therefore losing track of errno).
123622 2003-09-16  Bruno Haible  <bruno@clisp.org>
123624         * gnulib-tool (func_create_testdir): Warn about duplicated
123625         dependencies.
123627 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123629         * modules/argmatch, modules/fatal, modules/obstack,
123630         modules/xalloc, modules/xgethostname: Sort dependencies by
123631         importance, not alphabetically.
123633 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123635         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123636         fails, so that the caller gets the proper errno.
123638         * lib/readutmp.c (read_utmp): Likewise.
123639         Check for fstat error.  Close stream and free storage
123640         when failing.
123642 2003-09-14  Karl Berry  <karl@gnu.org>
123644         * config/srclist.txt (strdup.c): disable for c89 changes.
123646 2003-09-14  Jim Meyering  <jim@meyering.net>
123648         * lib/getloadavg.c: Correct cpp indentation.
123649         * lib/strdup.c: Likewise.
123650         * lib/vasnprintf.c: Likewise.
123652 2003-09-14  Bruno Haible  <bruno@clisp.org>
123654         * modules/fwriteerror: New file.
123655         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123657 2003-09-14  Bruno Haible  <bruno@clisp.org>
123659         * lib/fwriteerror.h: New file.
123660         * lib/fwriteerror.c: New file.
123662 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123664         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123665         modules/xgethostname, modules/xalloc: Depend on exit.
123667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123669         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123672         and AC_MINIX, too, so that their extensions are available.
123674         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123675         This macro has been superseded by gl_BACKUPFILE.
123677         More patches to assume C89 or better.
123679         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123681         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123682         unconditionally.
123683         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123684         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123685         Include <string.h>, <stdlib.h> unconditionally.
123686         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123687         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123688         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123689         headers or for string.h.
123690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123691         or strtoul.
123693         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123694         headers.
123695         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123696         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123697         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123698         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123700         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123701         memcpy, memset.
123702         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123703         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123704         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123705         strtol.
123706         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123707         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123709         strtoul.
123711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123713         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123714         * lib/obstack.c [!defined _LIBC]: Likewise.
123715         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123716         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123717         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123719         More changes to assume C89 or better.
123721         * lib/error.c (error_tail): Assume vprintf.
123723         * lib/argmatch.c (getenv): Remove decl.
123724         * lib/progreloc.c (get_full_program_name): Define via prototype.
123725         * lib/setenv.c (clearenv): Likewise.
123726         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123727         needed.
123728         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123729         (malloc, memcpy): Remove decls.
123730         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123731         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123732         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123733         (memcpy): Remove macro.
123734         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123735         (__P): Remove.  All uses removed.
123736         (PTR): Remove.  All uses changed to void *.
123737         (CHAR_BIT, NULL): Remove.
123738         (spaces, zeros, memset_space, memset_zero)
123739         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123740         Remove.
123741         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123742         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123743         Define with prototype.
123744         Remove now-unnecessary prototype decl.
123745         (extra_args_spec): Assume ANSI C.  All uses changed.
123746         (extra_args_spec_iso): Remove.
123747         (my_strftime, emacs_strftimeu): Define via prototype.
123748         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123749         unconditionally.
123750         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123751         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123752         (strtoul, strtol): Remove decls.
123753         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123754         LONG_MAX): Remove.
123755         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123756         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123757         (LOCALE_PARAM_PROTO): New macro.
123758         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123759         (INTERNAL (strtol), strtol): Define with a prototype.
123760         (PARAMS): Remove.  All uses removed.
123761         * lib/tempname.c: Include <string.h> unconditionally.
123762         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123763         * lib/xgethostname.c (main): Define with a prototype.
123764         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123765         Include <stdlib.h> unconditionally.
123766         (calloc, malloc, realloc, free): Remove decls.
123767         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123768         Include <stdlib.h> unconditionally.  Sort include file names.
123769         (strtod): Remove.
123770         (xstrtod): Define with a prototype.
123771         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123772         (strtol, strtoul): Remove decls.
123774 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123776         More patches to assume C89 or better.
123777         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123778         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123779         string.h, memchr, STDC_HEADERS.
123781 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123783         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123784         Include <stdlib.h>, <string.h> unconditionally.
123785         Remove now-unnecessary cast to char *.
123786         * lib/strnlen.c: Include <string.h> unconditionally.
123787         * lib/yesno.c (yesno): Define with a prototype.
123789 2003-09-11  Bruno Haible  <bruno@clisp.org>
123791         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
123793 2003-09-10  Jim Meyering  <jim@meyering.net>
123795         * lib/error.c: Correct indentation of cpp directives.
123797 2003-09-10  Bruno Haible  <bruno@clisp.org>
123799         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
123800         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
123801         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
123802         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
123803         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
123804         <stdlib.h> and <string.h> checks.
123805         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
123806         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
123808 2003-09-10  Bruno Haible  <bruno@clisp.org>
123810         * lib/strcspn.c: Include <string.h> unconditionally.
123811         * lib/strpbrk.c: Include <string.h> unconditionally.
123812         * lib/strstr.c: Include <string.h> unconditionally.
123813         * lib/unicodeio.c: Include <string.h> unconditionally.
123814         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
123815         * lib/unsetenv.c: Likewise.
123816         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
123817         * lib/yesno.c: Include <stdlib.h> unconditionally.
123818         (rpmatch): Add prototype.
123820 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123822         More patches to assume C89 or better.
123823         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123824         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123825         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123826         or for string.h.
123827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123828         stdlib.h.
123829         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123830         C headers.
123831         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123832         string.h.
123833         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123834         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123835         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123836         or for string.h.
123837         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123838         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123839         C headers.
123840         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123841         memcpy.
123842         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123843         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123844         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123845         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123846         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123847         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123848         string.h, free.
123849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123850         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123851         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123852         C headers, or for string.h.
123853         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123854         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123855         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123856         headers, memory.h, stdlib.h, string.h, strings.h.
123857         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123858         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123859         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123860         strchr.
123861         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123862         headers, memory.h, string.h.
123863         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123864         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123865         free.
123866         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123867         headers.
123868         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123869         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123870         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123871         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123872         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123874 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123876         More K&R removal.
123878         * lib/acosl.c (main): Use a prototype.
123879         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123880         tanl.c: Likewise.
123882         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123884         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123885         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123886         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123887         with a prototype.
123888         * lib/getopt.c (const): Remove macro.
123889         Include <string.h> unconditionally.
123890         (my_index): Remove; all uses changed to strchr.
123891         (strlen): Remove decl.
123892         (exchange): Remove forward decl; no longer needed.
123893         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123894         Define with prototype.
123895         * lib/getopt1.c (const): Remove macro.
123896         (getopt_long, getopt_long_only, main): Define with prototype.
123898         * lib/getugroups.c: Include <string.h> unconditionally.
123900         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123901         (getusershell, setusershell, endusershell, readname, main):
123902         Define with prototypes.
123904         * lib/group-member.c: Include group-member.h first.
123905         Include <stdlib.h> unconditionally.
123907         * lib/hard-locale.c: Include hard-locale.h first.
123908         Include <stdlib.h>, <string.h> unconditionally.
123910         * lib/hash.c (free, malloc): Remove decls.
123911         Include <stdlib.h> unconditionally.
123913         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123914         (getenv): Do not declare.
123916         * lib/idcache.c: Include <string.h> unconditionally.
123918         * lib/long-options.c: Include long-options.h first, to test interface.
123919         Include <stdlib.h> unconditionally.
123921         * lib/makepath.c: Include makepath.h first, to test interface.
123922         Include <stdlib.h> and <string.h> unconditionally.
123924         * lib/linebuffer.c: Include <stdlib.h>.
123925         (free): Remove decl.
123927         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123928         stddef.h. rpl_malloc returns void *, not char *.
123929         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123930         prototype.
123932         * lib/md5.h: Include <limits.h> unconditionally.
123933         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123934         (__P): Remove; all uses removed.
123935         * lib/md5.c: Include "md5.h" first.
123936         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123937         md5_buffer, md5_process_bytes, md5_process_block):
123938         Define with prototypes.
123939         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123940         * lib/sha.c: Include "sha.h" first.
123941         Include <stdlib.h>, <string.h> unconditionally.
123943         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123944         * lib/memcmp.c (__ptr_t): Likewise.
123945         * lib/memrchr.c (__ptr_t): Likewise.
123946         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123947         Include <string.h> unconditionally.
123948         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123949         * lib/memchr.c: Include <stdlib.h> unconditionally.
123950         * lib/memchr.c (LONG_MAX): Remove.
123951         * lib/memrchr.c (LONG_MAX): Likewise.
123952         * lib/memchr.c (__memchr): Define via a prototype.
123953         * lib/memrchr.c (__memrchr): Likewise.
123954         * lib/memcmp.c (__P): Remove, and remove all uses.
123955         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123956         Remove forward decls; no longer needed.
123957         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123958         Use types required by C89 in prototype.
123960         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123961         * lib/savedir.c: Likewise.
123962         * lib/mkdir.c (free): Remove decl.
123963         * lib/rmdir.c (rmdir): Define with a prototype.
123964         * lib/savedir.c: Include savedir.h first, to test interface.
123966         * lib/mktime.c (STDC_HEADERS): Remove.
123967         Include <stdlib.h>, <string.h> unconditionally.
123969         * lib/modechange.c: Include <stdlib.h> unconditionally.
123970         (malloc): Remove decl.
123972         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123973         (free): Remove decl.
123975         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123976         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123977         (This type really should be intptr_t, but that's a C99ism.)
123978         (_obstack_memcpy): Remove: all uses changed to memcpy.
123979         Include <string.h> unconditionally.
123980         (struct obstack): Assume __STDC__ for types of members
123981         chunkfun, freefun, extra_arg.
123982         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123983         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123984         obstack_begin, obstack_specify_allocation,
123985         obstack_specify_allocation_with_arg, obstack_chunkfun,
123986         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123987         Remove unprototyped decls and the macros that use them.
123988         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123989         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123990         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123991         (defined __STDC__ && __STDC__)]:
123992         Remove nonprototyped code.
123993         Include <stdlib.h> unconditionally.
123994         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123995         _obstack_allocated_p, _obstack_free, obstack_free,
123996         _obstack_memory_used, print_and_abort):
123997         Define using prototypes.
123998         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123999         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
124000         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
124001         obstack_next_free, obstack_object_size, obstack_room) [0]:
124002         Remove unused, unprototyped code.
124004         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
124006         * lib/physmem.c (physmem_total, physmem_available, main): Define
124007         with prototypes.
124009         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
124010         (main): Define with a prototype.
124012         * lib/posixver.c (getenv): Remove decl.
124014         * lib/putenv.c (malloc): Returns void *, not char *.
124015         Include <string.h> unconditionally.
124016         (strchr, memcpy, NULL): Do not define.
124018         * lib/readtokens.c: Include readtokens.h first, to test interface.
124019         Include <stdlib.h>, <string.h> unconditionally.
124020         (init_tokenbuffer): Define with a prototype.
124022         * lib/regex.c (PARAMS): Remove.  All uses removed.
124023         All uses of _RE_ARGS removed, too.
124024         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124025         unconditionally.
124026         (bzero): Assume memset exists.
124027         (memcmp, memcpy, NULL): Remove.
124028         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
124029         char, or assignments to local vars of type signed char.
124030         (init_syntax_once, PREFIX(extract_number_and_incr),
124031         PREFIX(print_partial_compiled_pattern),
124032         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
124033         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
124034         PREFIX(regex_grow_registers), PREFIX(regex_compile),
124035         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
124036         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
124037         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
124038         wcs_compile_range, byte_compile_range, truncate_wchar,
124039         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
124040         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
124041         count_mbs_length, wcs_re_match_2_internal,
124042         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
124043         PREFIX(alt_match_null_string_p),
124044         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
124045         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
124046         regfree, PREFIX(extract_number)): Define with prototype.  Remove
124047         now-unnecessary declaration, if any.
124048         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
124049         regcomp, regexec):
124050         Remove now-unnecessary casts among pointer types.
124051         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
124053         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
124054         (free): Remove decl.
124056         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
124058         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
124059         (free): Remove decl.
124061         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
124062         * lib/xgetcwd.c: Likewise.
124064         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
124065         (free): Remove decl.
124067         * lib/strchrnul.c (strchrnul): Define with a prototype.
124068         Fix bug: c_in was not converted to char before searching.
124070         The following changes are not K&R related:
124072         * lib/group-member.h: Include <sys/types.h>, so that this file is
124073         self-contained.
124074         * lib/makepath.h: Likewise.
124076         * lib/getusershell.c (readname, default_index, line_size, readname):
124077         Use size_t, not int, for sizes.
124078         (readname): If the size overflows, report an error instead of
124079         looping forever.
124081 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124083         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
124084         libc.
124086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124088         * README: New section: portability guidelines.
124090 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124092         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
124093         C89 spec.
124095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124097         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
124099 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124101         Assume C89 or better; remove K&R cruft.
124102         A few of these changes were first proposed by Derek Robert Price
124103         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
124105         * lib/addext.c: Include <string.h> unconditionally.
124106         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
124107         Don't declare getenv or malloc.
124109         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
124110         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
124111         (NULL): Remove.
124112         (find_stack_direction, alloca): Use prototypes.
124114         * lib/atexit.c (atexit): Define using a prototype.
124116         * lib/basename.c, dirname.c, stripslash.c:
124117         Include <string.h> unconditionally.
124119         * lib/bcopy.c: Include <stddef.h>.
124120         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
124122         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
124124         * lib/error.h (error, error_at_line, error_print_progname)
124125         [! (defined (__STDC__) && __STDC__)]: Remove decls.
124126         * lib/error.c: Include error.h first, to check interface.
124127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124128         (VA_START): Remove; all uses changeed to va_start.
124129         (exit, strerror): Remove decls.
124130         (error_print_progname): Prototype uncondionally.
124131         Don't include <errno.h>; no longer needed.
124132         (private_strerror): Remove.
124133         (error_tail): Always define.
124134         (error, error_at_line): Assume C89 or better; always use prototypes.
124135         * lib/fatal.c: Include "fatal.h" first, to test interface.
124136         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124137         (VA_START): Remove; all uses changed to va_start.
124138         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
124139         this case.
124140         (exit): Remove decl.
124141         (fatal): Prototype unconditionally.  Assume va_start works.
124142         Abort at end, to pacify gcc.
124144         * lib/euidaccess.c (main): Define with a prototype.
124146         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
124148         * lib/exitfail.c: Include <stdlib.h> unconditionally.
124150         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
124151         prototypes.
124152         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
124153         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
124154         (getenv): Remove decl.
124155         (fnmatch): Define using a prototype.
124156         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
124157         (FCT): Define using a prototype.
124159         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
124161         * lib/gethostname.c: Include <stddef.h>.
124162         (gethostname): Define with prototype.  Length is size_t, not int.
124164 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124166         Assume C89 or better; remove K&R cruft.
124167         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
124168         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
124169         string.h, getenv, malloc.
124170         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
124171         headers.
124172         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
124173         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
124174         do not check for strerror.
124175         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
124176         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
124177         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
124178         do not check for doprnt or vprintf.
124179         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
124180         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
124182 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124184         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
124185         getversion.c should have been removed then, but was accidentally
124186         preserved.
124188         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
124189         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
124191 2003-09-08  Karl Berry  <karl@gnu.org>
124193         * config/config.sub, config.guess, srclistvars.sh: update from savannah
124194                 config, forget about prep.
124196         * config/depcomp, missing: update from automake.
124198 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124200         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
124201         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124205         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
124206         copy_tm_result.  Bug reported by Simon Josefsson in
124207         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124209 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124211         * m4/time_r.m4: New file.
124212         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
124213         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
124214         is. Check for timegm declaration.
124215         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
124216         Do not check for gmtime_r.
124217         Replace mktime if __mktime_internal does not exist and if mktime
124218         hasn't been replaced already.
124220 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124222         * lib/time_r.c, lib/time_r.h: New files.
124224         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
124225         __localtime_r.
124226         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
124227         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
124229         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
124230         __gmtime_r.
124231         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
124232         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
124233         Include <time_r.h>.
124235         * lib/timegm.c: Switch to glibc implementation, with the following
124236         changes:
124237         [defined HAVE_CONFIG_H]: Include <config.h>.
124238         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
124239         (__mktime_internal) [!defined _LIBC]: New decl.
124240         (__gmtime_r) [!defined _LIBC]: New macro and function.
124241         (timegm): Use a prototype, since gnulib assumes C89.
124242         Do not bother declaring tmp to be const, as it's not really usefu.
124243         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
124244         (timegm): Declare only if HAVE_DECL_TIMEGM.
124246 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124248         * MODULES.html.sh (func_all_modules): Add time_r.
124249         * modules/time_r: New file.
124250         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
124251         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
124253 2003-09-03  Paul Eggert  <eggert@twinsun.com>
124255         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
124256         Bug reported by Lute Kamstra in
124257         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
124259         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
124260         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
124261         course with correspondingly smaller numbers for tomorrow and
124262         yesterday.  From Tadayoshi Funaba.  Originally installed into
124263         sh-utils on 1999-08-07, but the patch got lost (I guess during the
124264         coreutils merge?).
124266 2003-08-31  Simon Josefsson  <jas@extundo.com>
124268         * modules/timegm: New file.
124269         * MODULES.html.sh (func_all_modules): Add timegm.
124271 2003-08-31  Simon Josefsson  <jas@extundo.com>
124273         * m4/timegm.m4: New file.
124275 2003-08-31  Simon Josefsson  <jas@extundo.com>
124277         * lib/timegm.h: New file.
124278         * lib/timegm.c: New file.  Based on
124279         wget-1.8.2/src/http.c:mktime_from_utc.
124281 2003-08-31  Karl Berry  <karl@gnu.org>
124283         * lib/argp.h: update from libc.
124285 2003-08-28  Bruno Haible  <bruno@clisp.org>
124287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
124288         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
124289         followed by '#define fnmatch fnmatch_posix' gives an error.
124291 2003-08-28  Bruno Haible  <bruno@clisp.org>
124293         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
124294         warning on QNX, which defines O_BINARY to 000000.
124296 2003-08-27  Jim Meyering  <jim@meyering.net>
124298         * m4/mkstemp.m4: Require that the system mkstemp be able to create
124299         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
124300         would fail after 32.  Reported by Danny Levinson.  Details here:
124301         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
124303 2003-08-24  Bruno Haible  <bruno@clisp.org>
124305         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
124306         MSVC7 <stdio.h> is included later.
124308 2003-08-22  Simon Josefsson  <jas@extundo.com>
124310         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
124312 2003-08-20  Karl Berry  <karl@gnu.org>
124314         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
124316 2003-08-20  Bruno Haible  <bruno@clisp.org>
124318         * modules/progname: New file.
124319         * MODULES.html.sh (func_all_modules): Add progname.
124321 2003-08-20  Bruno Haible  <bruno@clisp.org>
124323         * lib/progname.h: New file, from GNU gettext.
124324         * lib/progname.c: New file, from GNU gettext.
124325         * lib/progreloc.c: New file, from GNU gettext.
124327 2003-08-19  Jim Meyering  <jim@meyering.net>
124329         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
124330         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
124332 2003-08-19  Bruno Haible  <bruno@clisp.org>
124334         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
124335         more.
124337 2003-08-19  Bruno Haible  <bruno@clisp.org>
124339         * lib/xstrdup.c: Assume <string.h> exists.
124341 2003-08-18  Paul Eggert  <eggert@twinsun.com>
124343         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
124344         in makefile rules.
124346 2003-08-18  Jim Meyering  <jim@meyering.net>
124348         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
124349         * m4/lib-ld.m4: Likewise.
124351 2003-08-18  Jim Meyering  <jim@meyering.net>
124353         * lib/setenv.h: Indent nested cpp directive.
124354         * lib/vasnprintf.c: Remove trailing blanks.
124356 2003-08-17  Simon Josefsson  <jas@extundo.com>
124358         * modules/xstrndup: New file.
124359         * MODULES.html.sh (func_all_modules): Add xstrndup.
124361 2003-08-17  Simon Josefsson  <jas@extundo.com>
124363         * modules/argp: Fix autoconf macro name. Add more dependencies.
124365 2003-08-17  Simon Josefsson  <jas@extundo.com>
124367         * m4/xstrndup.m4: New file.
124369 2003-08-17  Simon Josefsson  <jas@extundo.com>
124371         * m4/argp.m4: New file.
124373 2003-08-17  Simon Josefsson  <jas@extundo.com>
124374             Bruno Haible  <bruno@clisp.org>
124376         * lib/xstrndup.h: New file.
124377         * lib/xstrndup.c: New file.
124379 2003-08-17  Bruno Haible  <bruno@clisp.org>
124381         * modules/strndup (Files, Include): Add lib/strndup.h.
124383 2003-08-17  Bruno Haible  <bruno@clisp.org>
124385         * modules/euidaccess (Files): Add lib/euidaccess.h.
124387 2003-08-17  Bruno Haible  <bruno@clisp.org>
124389         * lib/strndup.h: New file.
124391 2003-08-17  Bruno Haible  <bruno@clisp.org>
124393         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124394         like AC_GNU_SOURCE.
124395         * modules/extensions (configure.ac): Comment out the invocation of
124396         gl_USE_SYSTEM_EXTENSIONS.
124398 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124400         Merges from coreutils, etc.
124401         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124402         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124403         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124404         fixing a typo.
124405         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124406         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124408 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124410         Document merge from coreutils.
124411         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124412         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124413         * modules/utime: Add m4/utimes-null.m4.
124415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124417         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124418         space, undoing this 2003-08-12 change:
124419         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124423         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124424         strtoul.c from libc, undoing this 2003-08-12 change:
124425         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124427 2003-08-16  Jim Meyering  <jim@meyering.net>
124429         Merges from coreutils.
124430         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124431         prefix.  Adjust cache variables similarly.  Create 500 rather than
124432         just 300 files, to exercise bug on Darwin6.5, too.
124433         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124434         $missing_dir.
124435         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124436         AM_SYS_POSIX_TERMIOS.
124437         Reported by mkc@mathdogs.com.
124438         Also change use of $am_cv_sys_posix_termios
124439         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124440         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124441         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124442         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124443         in /proc/mounts until it finds one with matching device number.  This
124444         is unnecessary when the FILE argument *is* a mount point.  No stat call
124445         is necessary in that case.  So, disable the statvfs-testing code on
124446         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124447         as RedHat bug# 84846.
124448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124449         to 1MB, so as not to render systems with no stack size limit (e.g.,
124450         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124451         Include <unistd.h>.  On some systems,
124452         it is required for the definition of _SC_PAGESIZE.
124454 2003-08-16  Jim Meyering  <jim@meyering.net>
124456         Merge from coreutils.
124457         * lib/xstrtoimax.c: #else #if -> #elif.
124458         * lib/xstrtoumax.c: Likewise.
124460 2003-08-16  Jim Meyering  <jim@meyering.net>
124462         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124463         * m4/utimes.m4: Removed.
124464         * m4/utimes-null.m4: Renamed from utimes.m4.
124466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124467         to 1MB, so as not to render systems with no stack size limit (e.g.,
124468         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124469         Include <unistd.h>.  On some systems,
124470         it is required for the definition of _SC_PAGESIZE.
124472 2003-08-16  Jim Meyering  <jim@meyering.net>
124473         and Paul Eggert  <eggert@cs.ucla.edu>
124475         Merges from coreutils, etc.
124477         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124478         using the latest version from cvs.  This avoids problems with #line
124479         directives using a vendor (Sun) compiler.
124480         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124481         Don't set GETGROUPS_LIB here; now it's
124482         done via getgroups.m4's wrapper function.
124483         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124484         rather than just in sh-util/configure.in, so that the
124485         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124486         same.
124487         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124488         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124489         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124490         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124491         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124492         Remove code that is now done by the newly-required macros.
124493         Append $(EXEEXT) to DF_PROG.
124494         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124495         Do not invoke or require the following here,
124496         since prereq.m4 or some gnulib .m4 now does this for us:
124497         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124498         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124499         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124500         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124501         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124502         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124503         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124504         AC_FUNC_OBSTACK.
124505         Do not replace the following functions, as this is now the job
124506         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124507         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124508         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124509         atexit getpass, strdup, getpagesize.
124510         Replace 'raise'.
124511         Do not check for the following functions, as this is now the job
124512         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124513         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124514         setregid.
124515         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124516         Check for sys/sysctl.h.
124517         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124518         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124519         of checking for ssize_t ourselves.
124521         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124522         Require every macro that gnulib/modules/* suggests for us.
124523         (jm_PREREQ_ADDEXT): New macro.
124524         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124525         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124528         (gl_PHYSMEM): Use it.
124529         Also check for `table' function.
124530         Check for new headers and functions.
124531         Add check for sys/sysmp.h.
124532         With suggestions from Kaveh Ghazi.
124533         Ignore headers that are present but cannot be compiled.  This
124534         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124535         C 5.4.
124537 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124539         Document merge from coreutils.
124540         * modules/userspec: Depend on posixver.
124541         * modules/strftime: Depend on tzset.
124543 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124545         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124546         rather than tab, after '#' in shell-script copyright notices.
124547         Suggested by Bruno Haible.
124549 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124551         * config/srclist-update: Use three spaces, rather than tab, after '#'
124552         in shell-script copyright notices.  Suggested by Bruno Haible.
124553         Remove unnecessary parenthesization in regular expression.
124555 2003-08-15  Jim Meyering  <jim@meyering.net>
124557         Merge from coreutils.
124558         * lib/xgethostname.c: Include <stdlib.h>.
124559         (xghostname): Don't exit for anything other than memory-related
124560         failure; just return NULL.
124561         * lib/userspec.c: Include "posixver.h".
124562         (parse_user_spec): Accept `.' as a separator only
124563         in pre-POSIX-200112 mode.
124564         * lib/strtoimax.c: Use #elif rather than #else #if.
124565         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124566         Remove function, now that we can rely on a working tzset function.
124567         [!_LIBC]: Ensure that the required autoconf test has been run.
124568         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124569         Use underlying_strftime for %r.
124570         * lib/sha.c: Merge in some clean-up and optimization changes from
124571         glibc.
124572         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124573         Ensure that it is a multiple of 64.
124574         Rearrange loop exit tests so as to avoid performing an
124575         additional fread after encountering an error or EOF.
124576         * lib/realloc.c: Update copyright date.
124578 2003-08-15  Jim Meyering  <jim@meyering.net>
124579         and Paul Eggert  <eggert@twinsun.com>
124581         Merge from coreutils.
124582         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124583         member but strut utmpx does not.  Needed for AIX 4.3.3.
124584         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124586 2003-08-15  Jim Meyering  <jim@meyering.net>
124587         and Paul Eggert  <eggert@cs.ucla.edu>
124589         Merges from coreutils, etc.
124590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124591         Require gl_FUNC_TZSET_CLOBBER.
124592         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124593         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124594         members.
124596 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124598         Help the merge from coreutils.
124599         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124600         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124601         * m4/tzset.m4: Use it too.
124603 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124605         * modules/tzset: New file.
124607 2003-08-14  Jim Meyering  <jim@meyering.net>
124609         Merges from coreutils.
124610         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124611         variable names, rather than @FNMATCH_H@.
124612         * modules/alloca: Likewise for $(ALLOCA_H).
124614         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124615         the three copies of the literal target, `fnmatch.h'.
124616         * modules/alloca (alloca.h): Likewise.
124618 2003-08-14  Jim Meyering  <jim@meyering.net>
124620         Merge from coreutils.
124621         * m4/tzset.m4: New file.
124622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124623         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124624         otherwise, AIX 5.1 systems would end up using the latter.
124625         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124626         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124627         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124628         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124630 2003-08-14  Jim Meyering  <jim@meyering.net>
124632         Merge from coreutils.
124633         * lib/obstack.h: Whitespace changes.
124634         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124635         and xcalloc return values.
124636         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124637         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124638         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124639         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124640         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124641         error from mntctl.
124642         Use mntctl's return value to drive the entry-processing loop, since
124643         we can't rely on the value of the vmt_length member in the last
124644         entry.  On some systems doing so could result in exhausting
124645         virtual memory.  Based in part on a patch from Mike Jetzer.
124647 2003-08-14  Jim Meyering  <jim@meyering.net>
124648         and Paul Eggert  <eggert@twinsun.com>
124650         Merges from coreutils, plus other fixes.
124651         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124652         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124653         for credits and details.  Thanks to Kaveh Ghazi for helping
124654         to keep these files in sync.
124655         (ARRAY_SIZE): Define it.
124656         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124657         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124658         (memcasecmp): Don't assume size_t fits in unsigned int.
124659         Remove casts and duplicate code.
124660         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124661         (memcpy): Remove definition.
124662         Merge in some clean-up and optimization changes from glibc.
124663         [BLOCKSIZE]: Move definition to top of file.
124664         Ensure that it is a multiple of 64.
124665         Rearrange loop exit tests so as to avoid performing an
124666         additional fread after encountering an error or EOF.
124667         * lib/md5.h (md5_uintptr): Define.
124668         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124669         return to the initial working directory.  Preserve errno
124670         for caller.
124671         * lib/idcache.c: Include "xalloc.h".
124672         (xmalloc, xrealloc): Remove decls.
124673         (getuser): Remove casts no longer required in C89.
124674         * lib/human.c: Include stdio.h, for sprintf.
124675         * lib/group-member.c: Include "xalloc.h".
124676         (xmalloc, xrealloc): Remove decls.
124677         (get_group_info): Remove casts no longer required in C89.
124678         * lib/getusershell.c (readname): Remove casts no longer required in
124679         C89.
124680         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124681         * lib/getline.c: Whitespace fix, from coreutils.
124683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124685         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124686         Check for isascii.
124688         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124689         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124690         Undo previous (whitespace-only) change.
124692 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124694         * lib/exclude.c: Include <ctype.h>
124695         (IN_CTYPE_DOMAIN): New macro.
124696         (is_space): New fn.
124697         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124698         and empty lines.
124700         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124701         Undo previous (whitespace-only) change.
124703 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124705         * config/srclist-update: Change update back to the old behavior,
124706         leaving whitespace alone.  Use one 'sed' command rather than a
124707         pipeline.
124708         (fixlicense): Now a variable, not a function.
124709         (remove_trailing_blanks): Remove.
124710         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124711         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124712         Undo previous (whitespace-only) change.
124714 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124716         Merge from coreutils.
124717         * modules/euidaccess: Add lib_SOURCES, include for new
124718         file euidaccess.h
124720 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124722         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124723         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124724         Normalize leading white space and remove trailing white space.
124726         Merge from coreutils
124727         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124729         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124730         0.12.1.  These files are now being upgraded automatically by
124731         ../config/srclist-update.
124733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124735         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124736         Normalize leading white space and remove trailing white space.
124737         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124738         notice, as per ../config/srclist-update.
124740         Merge from coreutils.
124741         * lib/euidaccess.h: New file.
124742         * lib/euidaccess.c: Include it.
124743         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124744         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124745         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124747 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124749         * config/srclist-update: Add copyright notice.
124750         (remove_id_lines, remove_trailing_blanks): New constants.
124751         (fixfile): Use them to normalize spacing a bit in copied files.
124752         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124753         Normalize leading white space and remove trailing white space.
124755         * config/texinfo.tex: Sync with texinfo.
124757         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124758         strtoul.c from libc, to merge coreutils whitespace changes.
124760         * config/srclist.txt: Get the following m4 files from gettext:
124761         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124762         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124763         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124764         wint_t.m4.
124766 2003-08-12  Karl Berry  <karl@gnu.org>
124768         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124769         been made.
124771 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124773         * modules/gnu-source, m4/gnu-source.m4:
124774         Remove; we're assuming Autoconf 2.54 or later now.
124775         Suggested by Bruno Haible.
124776         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124778 2003-08-11  Bruno Haible  <bruno@clisp.org>
124780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124782 2003-08-11  Bruno Haible  <bruno@clisp.org>
124784         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124785         (vasnprintf): Use it instead of wcslen.
124787 2003-08-11  Bruno Haible  <bruno@clisp.org>
124789         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124790         value to ensure that _Bool promotes to int. Use #define for _Bool when
124791         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
124793 2003-08-10  Karl Berry  <karl@gnu.org>
124795         * lib/regex.h: update from libc (whitespace fix).
124797 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124799         Merge some files from coreutils.  These changes were
124800         originally made by Jim Meyering.
124801         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
124802         many older Unixes require this.
124803         * lib/alloca.c (alloca): Remove cast to argument of free;
124804         no longer needed in C89.
124805         * lib/alloca_.h, regex.h: Fix white space to match
124806         what GNU indent does.
124808 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124810         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
124811         apparently Emacs's Unicode mode got confused before my 2003-08-05
124812         checkin.
124814 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124816         * m4/extensions.m4: New file.
124817         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124818         Require gl_USE_SYSTEM_EXTENSIONS.
124819         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124820         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124822 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124824         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124825         * modules/extensions, modules/gnu-source: New files.
124826         * modules/timespec, modules/unlocked-io: Depend on extensions.
124828 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124830         * modules/restrict: New file.
124831         * MODULES.html.sh (func_all_modules): Add restrict.
124832         * modules/regex: Depend on restrict.
124834 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124836         * m4/restrict.m4: New file.
124837         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124839 2003-08-07  Bruno Haible  <bruno@clisp.org>
124841         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124842         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124844 2003-08-07  Bruno Haible  <bruno@clisp.org>
124846         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124847         makes the module 'getndelim2' compatible with the module 'getline'.
124849 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124851         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124852         byte with "\201" to avoid glitches when editing that source file
124853         with multi-gnome-terminal.
124855 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124857         * lib/bumpalloc.h: Remove.
124859 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124861         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124862         * modules/bumpalloc: Remove.
124864 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124866         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124867         GNU coding style.
124869         Merge from coreutils.
124870         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124871         1. From glibc.
124872         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124873         from Karl Berry, implemented by Jim Meyering.
124874         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124875         from Dmitry V. Levin.
124876         Remove anachronistic cast of xrealloc.
124877         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124878         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124879         type. Otherwise, it wouldn't compile with at least /bin/cc on
124880         ymp-cray-unicos9.0.2.X.
124881         Combine two mostly-identical uses of alloca into one.
124882         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124884 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124886         [From Emacs.]
124888         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124889         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124890         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124891         obsolete NLIST_NAME_UNION.
124892         [__GNU__]: Undef BSD and FSCALE.
124893         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124895 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124897         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124898         an enum type, so that it's guaranteed to promote to int.  See:
124899         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124901 2003-08-03  Karl Berry  <karl@gnu.org>
124903         * config/depcomp: update from automake.
124905 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124907         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124908         (strerror): Don't assume that a printable int fits in 14 bytes.
124910 2003-07-31  Bruno Haible  <bruno@clisp.org>
124912         * modules/getpass-gnu: New file.
124913         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124915 2003-07-31  Bruno Haible  <bruno@clisp.org>
124917         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124919 2003-07-24  Karl Berry  <karl@gnu.org>
124921         * config/missing: update from automake.
124923 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124924             Bruno Haible  <bruno@clisp.org>
124926         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124927         * lib/getline.c (getline, getdelim): Likewise.
124928         Remove _GNU_SOURCE define; now it's defined in config.h through
124929         m4/getline.m4.
124931 2003-07-23  Karl Berry  <karl@gnu.org>
124933         * config/config.sub: update from prep.
124935 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124937         * modules/xalloc (Depends-on): Add exitfail.
124938         * modules/xmemcoll: Likewise.
124940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124942         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124943         over-parenthesization in macros.
124945         Sync with coreutils.
124947         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124948         required by C99.
124950         Use `exit_failure' for xalloc and xmemcoll instead of their own
124951         private exit-failure variables.
124952         * lib/xalloc.h (xalloc_exit_failure): Remove.
124953         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124954         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124955         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124956         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124957         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124959 2003-07-20  Jim Meyering  <jim@meyering.net>
124961         * modules/closeout (Depends-on): Add exitfail.
124962         Suggestion from Bruno Haible.
124964 2003-07-19  Karl Berry  <karl@gnu.org>
124966         * config/config.sub: update from prep.
124968 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124970         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124971         Remove.
124972         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124973         to test that it can stand by itself.  Include "exitfail.h".
124974         Clients should set exit_failure instead.
124975         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124977 2003-07-18  Bruno Haible  <bruno@clisp.org>
124979         * modules/getndelim2: New file.
124980         * modules/getline: Share files with module getndelim2.
124981         * modules/getnline: Depend on getndelim2 instead of sharing files with
124982         it. Add getnline.c to lib_SOURCES.
124983         * MODULES.html.sh (func_all_modules): Add getndelim2.
124985 2003-07-18  Bruno Haible  <bruno@clisp.org>
124987         * m4/getndelim2.m4: New file.
124988         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124989         invoke gl_PREREQ_GETNDELIM2.
124990         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124991         gl_PREREQ_GETNDELIM2.
124992         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124993         gl_GETNDELIM2.
124995 2003-07-18  Bruno Haible  <bruno@clisp.org>
124997         * lib/getndelim2.h: New file.
124998         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124999         getndelim2.h.
125000         (getndelim2): Make non-static. Change return type to ssize_t.
125001         * lib/getline.h: Change argument names.
125002         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
125003         * lib/getnline.c: Include getndelim2.h.
125005 2003-07-18  Andreas Schwab  <schwab@suse.de>
125007         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
125009 2003-07-17  Karl Berry  <karl@gnu.org>
125011         * config/config.sub: update from prep.
125013 2003-07-17  Bruno Haible  <bruno@clisp.org>
125015         * modules/getnline: New file.
125016         * modules/getline: Add lib/getndelim2.c to source file list.
125017         * MODULES.html.sh (func_all_modules): Add getnline.
125019 2003-07-17  Bruno Haible  <bruno@clisp.org>
125021         * m4/getnline.m4: New file.
125023 2003-07-17  Bruno Haible  <bruno@clisp.org>
125025         * m4/Makefile.am.in: Remove file.
125026         * m4/Makefile.am: Remove file.
125027         * m4/Makefile.in: Remove file.
125029 2003-07-17  Bruno Haible  <bruno@clisp.org>
125031         * lib/getnline.h: New file.
125032         * lib/getnline.c: New file.
125033         * lib/getndelim2.c: New file, extracted from getline.c.
125034         (getndelim2): Renamed from getdelim2, with added nmax argument.
125035         * lib/getline.c: Include getndelim2.c.
125036         (getdelim2): Moved out to getndelim2.c.
125037         (getline, getdelim): Update.
125039 2003-07-17  Bruno Haible  <bruno@clisp.org>
125041         * lib/Makefile.am: Remove file.
125042         * lib/Makefile.in: Remove file.
125044 2003-07-17  Bruno Haible  <bruno@clisp.org>
125046         * configure.in: Remove file.
125047         * Makefile.in: Remove file.
125049 2003-07-17  Bruno Haible  <bruno@clisp.org>
125051         * MODULES.html.sh: Put the </BODY> right before </HTML>.
125053 2003-07-16  Karl Berry  <karl@gnu.org>
125055         * config/srclist-update: was running fixlicense twice, which caused
125056                 texinfo.tex to be nullified for some reason.  Simplify,
125057                 $gplsrc is no longer needed as far as I can see?
125059 2003-07-16  Jim Meyering  <jim@meyering.net>
125061         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
125063 2003-07-15  Paul Eggert  <eggert@twinsun.com>
125065         * config/srclist.txt: Get the following files from gettext-runtime/intl
125066         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
125067         ref-del.sin.  From Bruno Haible.
125068         * config/srclist-update (fixfile): Change grep pattern again, since the
125069         previous fix didn't work (there was another trailing $).  Use
125070         '[$]' to escape the $s.
125072 2003-07-15  Karl Berry  <karl@gnu.org>
125074         * lib/vasnprintf.c: update from gettext.
125076 2003-07-15  Karl Berry  <karl@gnu.org>
125078         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
125079         gets expanded when surrounded by '$'.
125081 2003-07-15  Jim Meyering  <jim@meyering.net>
125083         * modules/save-cwd: Don't depend on error.  From Derek Price.
125085 2003-07-15  Jim Meyering  <jim@meyering.net>
125087         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
125089 2003-07-14  Simon Josefsson  <jas@extundo.com>
125091         * modules/mempcpy: New file.
125092         * MODULES.html.sh (func_all_modules): Add mempcpy.
125094 2003-07-14  Simon Josefsson  <jas@extundo.com>
125096         * m4/mempcpy.m4: New file.
125098 2003-07-14  Simon Josefsson  <jas@extundo.com>
125100         * lib/mempcpy.h: New file.
125101         * lib/mempcpy.c: New file.
125103 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125105         * modules/getdate, modules/posixtm: Depend on mktime.
125107 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125109         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
125110         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
125111         unicodeio.c, unicodeio.h, unlocked-io.h:
125112         Switch from LGPL to GPL.
125114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125116         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
125117         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
125118         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
125119         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
125120         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
125121         updated automatically by ../config/srclist-update.  This changes
125122         their license from LPGL to GPL.
125124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125126         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
125127         assumed to refer to the root of the most recent stable gettext version.
125128         * config/srclistvars.sh: Add defaults for eggert.
125129         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
125130         Match "This program" as well as "The program".  This is needed
125131         for gettext.
125133 2003-07-14  Jim Meyering  <jim@meyering.net>
125135         Don't emit diagnostics.  Let callers do that.
125136         * lib/save-cwd.c: Don't include "error.h".
125137         (save_cwd): Don't call error.  Ensure that errno is valid
125138         when returning nonzero.
125140         * lib/save-cwd.h (restore_cwd): Update prototype.
125141         * lib/save-cwd.c (restore_cwd): Remove two parameters.
125142         Simplify.  Don't call error upon failure.  Let callers do that.
125143         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
125144         when auditing is enabled.  But don't bother updating the #if.
125146 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
125148         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
125149         it breaks C++ compilation.
125150         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
125152 2003-07-10  Simon Josefsson  <jas@extundo.com>
125154         * modules/strchrnul (Makefile.am): Add strchrnul.h.
125156 2003-07-10  Jim Meyering  <jim@meyering.net>
125158         * m4/clock_time.m4: Remove trailing blank.
125159         * m4/intmax_t.m4: Likewise.
125161 2003-07-10  Jim Meyering  <jim@meyering.net>
125163         * lib/vasnprintf.c: Remove trailing blanks.
125164         Make cpp indentation consistent.
125166 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125168         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
125169         posixver.c, strftime.c, strnlen.c, strverscmp.c:
125170         Switch from LGPL to GPL.
125172 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125174         * config/srclist.txt: Sort sublists.  Add
125175         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
125176         that differ from gnulib for one reason or another; we'd like this list
125177         to be smaller but for now let's document what we have.
125179 2003-07-08  Paul Eggert  <eggert@twinsun.com>
125181         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
125182         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
125183         and sweeter "eval x=$x".
125184         * config/srclist.txt: Get lib/argp* from glibc.
125186 2003-07-07  Paul Eggert  <eggert@twinsun.com>
125188         * lib/mktime.c: Fix some boundary cases and remove need for floating
125189         point.
125191         Issue a compile-time diagnostic if time_t is floating point, or if
125192         two's complement arithmetic is not in effect, or if arithmetic
125193         right shift does not propagate the sign.  These assumptions were
125194         all in the original code but they weren't checked.
125196         (TIME_T_MIDPOINT, verify): New macros.
125197         (__isleap): Remove; it has integer overflow problems.
125198         (leapyear): New function, without those problems.
125199         (ydhms_tm_diff): Remove; splitting into two parts.
125200         (ydhms_diff): New function, containing the arithmetic part of
125201         the old ydhms_tm_diff function.  Issue a compile-time
125202         diagnostic if we are not using C99 integer division.
125203         Avoid casts when possible.
125204         (guess_time_tm): New function, containing the checking part of
125205         the old ydhms_tm_diff function.  Return the new value, rather than
125206         the difference between it and the old.  Accept a new argument T
125207         so that *T specifies the old value.  Check for overflow in the result.
125209         (__mktime_internal): Use a time_t offset, not a long int offset.
125210         This undoes the 2003-06-04 change, which is no longer needed now
125211         that we have better overflow checking.
125212         (localtime_offset): Likewise.
125214         (__mktime_internal): Avoid harmful overflow on hosts where time_t
125215         and long are 64-bit but int is only 32-bit.
125216         (ydhms_diff): Use long int to store year1 and yday1.
125217         Issue a compile-time diagnostic if long int is not wide enough.
125219         (__mktime_internal): Use long int to store adjusted year and yday.
125220         Use plain C rather than preprocessor commands, if that doesn't
125221         affect efficiency.
125222         Check for overflow (and try to repair) after each probe
125223         rather than checking only at the very end.  This avoids some bugs
125224         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
125225         does not equal GMT offset at maximum time).
125226         Use integer to check for overflow rather than floating point; this
125227         is more portable to non-IEEE hosts, and is a tad faster.
125228         When we detect that we are oscillating between two values,
125229         don't check whether tm_isdst has the requested value, since
125230         we already know the answer.  When tm_isdst has the wrong value,
125231         use a different heuristic to find the right one, based on the
125232         extreme values actually observed in practice in tz2003a,
125233         rather than the (overly optimistic) "previous 3 calendar quarters".
125235         (not_equal_tm, print_tm, check_result): Use "const T" rather than
125236         "T const" to accommodate glibc style.
125237         (check_result): Use less-confusing report format.  "long" -> "long int.
125238         (main): Likewise.
125239         Don't loop if the iteration overflows time_t.
125240         Allow a negative step in the iteration.
125242 2003-07-06  Karl Berry  <karl@gnu.org>
125244         * config/depcomp: update from automake.
125245         * config/config.sub: update from prep.
125247 2003-07-03  Karl Berry  <karl@gnu.org>
125249         * config/config.guess: update from prep.
125251 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125253         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
125254         xreadlink.c now includes it unconditionally.
125256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125258         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
125259         having it depend on HAVE_SYS_TYPES_H.
125261 2003-07-01  Bruno Haible  <bruno@clisp.org>
125263         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
125264         <sys/types.h> should be sufficient.
125265         Reported by Paul Eggert.
125267 2003-06-26  Karl Berry  <karl@gnu.org>
125269         * config/depcomp: update from automake.
125271 2003-06-26  Bruno Haible  <bruno@clisp.org>
125273         * modules/human: Depend on module stdbool.
125275 2003-06-25  Bruno Haible  <bruno@clisp.org>
125277         * modules/readlink: New file.
125278         * modules/xreadlink: Depend on it.
125279         * MODULES.html.sh (func_all_modules): Add readlink.
125281 2003-06-25  Bruno Haible  <bruno@clisp.org>
125283         * m4/readlink.m4: New file.
125285 2003-06-25  Bruno Haible  <bruno@clisp.org>
125287         * lib/readlink.c: New file.
125289 2003-06-22  Karl Berry  <karl@gnu.org>
125291         * config/srclist.txt: update mkinstalldirs from automake.
125292         * config/mkinstalldirs: update.
125294 2003-06-22  Bruno Haible  <bruno@clisp.org>
125296         Portability to mingw32.
125297         * m4/ssize_t.m4: New file, from GNU gettext.
125298         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
125299         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
125301 2003-06-22  Bruno Haible  <bruno@clisp.org>
125303         * modules/safe-read: Add m4/ssize_t.m4.
125304         * modules/xreadlink: Add m4/ssize_t.m4.
125306 2003-06-20  Bruno Haible  <bruno@clisp.org>
125308         Assume C89, so PARAMS isn't needed.
125309         * lib/unicodeio.h (PARAMS): Remove.
125310         * lib/unicodeio.c: Don't use PARAMS.
125312 2003-06-18  Karl Berry  <karl@gnu.org>
125314         * config/config.{guess,sub}: update from prep.
125316 2003-06-18  Jim Meyering  <jim@meyering.net>
125318         Merge changes from coreutils.
125319         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
125320         Remove explicit declarations of xmalloc and realloc.
125321         Include xalloc.h.
125322         (read_utmp): Remove anachronistic cast of xmalloc.
125324 2003-06-17  Paul Eggert  <eggert@twinsun.com>
125326         Assume C89, so PARAMS isn't needed.
125327         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
125328         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
125329         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
125330         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
125331         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
125332         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
125333         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
125334         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
125335         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
125336         lib/xstrtod.h, lib/xstrtol.h: Likewise.
125337         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
125338         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
125339         no longer needed. Anyway, config.h should always be included before any
125340         other file.
125342 2003-06-11  Simon Josefsson  <jas@extundo.com>
125344         * modules/sysexits: New file.
125345         * MODULES.html.sh (func_all_modules): Add sysexits.
125347 2003-06-11  Simon Josefsson  <jas@extundo.com>
125349         * lib/sysexit_.h: New file.
125351 2003-06-11  Derek Price  <derek@ximbiot.com>
125353         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
125354         necessary.
125356 2003-06-11  Bruno Haible  <bruno@clisp.org>
125358         * m4/sysexits.m4: New file.
125360 2003-06-10  Simon Josefsson  <jas@extundo.com>
125362         * lib/argp.h: New file, from glibc.
125363         * lib/argp-ba.c: New file, from glibc.
125364         * lib/argp-eexst.c: New file, from glibc.
125365         * lib/argp-fmtstream.c: New file, from glibc.
125366         * lib/argp-fmtstream.h: New file, from glibc.
125367         * lib/argp-fs-xinl.c: New file, from glibc.
125368         * lib/argp-help.c: New file, from glibc.
125369         * lib/argp-namefrob.h: New file, from glibc.
125370         * lib/argp-parse.c: New file, from glibc.
125371         * lib/argp-pv.c: New file, from glibc.
125372         * lib/argp-pvh.c: New file, from glibc.
125373         * lib/argp-xinl.c: New file, from glibc.
125375 2003-06-10  Simon Josefsson  <jas@extundo.com>
125377         * modules/strchrnul: New file.
125379 2003-06-10  Simon Josefsson  <jas@extundo.com>
125381         * modules/argp: New file.
125383 2003-06-10  Simon Josefsson  <jas@extundo.com>
125385         * m4/strchrnul.m4: New file.
125387 2003-06-10  Simon Josefsson  <jas@extundo.com>
125389         * lib/strchrnul.h: New file.
125390         * lib/strchrnul.c: New file.
125392 2003-06-10  Bruno Haible  <bruno@clisp.org>
125394         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125396 2003-06-07  Karl Berry  <karl@gnu.org>
125398         * config/config.{guess,sub}: update from prep.
125400 2003-06-07  Jim Meyering  <jim@meyering.net>
125402         * modules/strtod: Use $(...) notation, not @...@ for
125403         AC_REPLACE'd variables.
125404         * modules/localcharset: Likewise.
125406 2003-06-07  Jim Meyering  <jim@meyering.net>
125408         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125409         in place of my name in the copyright comment.
125410         Remove definition and uses of __P.
125412         From coreutils.
125413         * lib/stat.c: Don't declare xmalloc explicitly.
125414         Instead, include "xalloc.h".
125415         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125416         xrealloc, and xcalloc return values.
125417         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125418         Improve comment.
125419         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125421 2003-06-07  Bruno Haible  <bruno@clisp.org>
125423         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125424         avoid AC_CONFIG_LINKS.
125425         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125426         fnmatch.h, to avoid AC_CONFIG_LINKS.
125427         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125429 2003-06-07  Bruno Haible  <bruno@clisp.org>
125431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125432         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125434         directory.
125435         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125436         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125437         directory.
125439 2003-06-06  Jim Meyering  <jim@meyering.net>
125441         Merge from coreutils.
125442         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125443         Consolidate declarations and initializations of *_base* locals.
125445         Merge from coreutils.
125446         This avoids a core dump on systems without GNU putenv,
125447         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125448         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125449         (unsetenv): New static function, from GNU libc.
125450         (rpl_putenv): Use it.
125452         * lib/modechange.c: Remove trailing blanks.
125454         Merge from coreutils.
125455         * lib/fsusage.c: Remove declaration of statfs.
125456         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125458         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125460 2003-06-06  Jim Meyering  <jim@meyering.net>
125462         * lib/stdbool_.h: Renamed from stdbool.h.in.
125464 2003-06-06  Jim Meyering  <jim@meyering.net>
125465             Bruno Haible  <bruno@clisp.org>
125467         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125468         Adjust Makefile.am snippet not to redirect directly to target.
125469         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125471 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125473         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125474         mismatch, look in future quarters as well as past.  This fixes a
125475         bug when processing fall-backwards gaps immediately after a long
125476         period of daylight-saving time.
125478         * lib/mktime.c: Assume freestanding C89 or better.
125479         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125480         (__P): Remove; not used.
125481         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125482         (mktime, not_equal_tm, print_tm, check_result,
125483         main): Use prototypes.  Use const * where appropriate.
125484         (main): Fix typo in testing code that uncovered by above changes.
125485         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125487 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125489         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125490         locale.h, localeconv.  This merges changes from coreutils.
125492         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125493         It can be removed after the next Autoconf is released.
125494         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125495         needed.
125497 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125499         * lib/mktime.c: Fix Debian bug 177940
125500         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125501         (localtime_offset): Now long int, not time_t, because we want it
125502         to be guaranteed to be signed.  All uses changed.
125503         (__mktime_internal): If overflow would occur when adding offset,
125504         don't add it.
125506         Merge 'human' changes from coreutils.  Rewrite to support
125507         locale-specific notations like thousands separators.
125508         * lib/human.c: Simplify authorship notice.
125509         Include human.h immediately after config.h.
125510         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125511         <limits.h>: Do not include, since human.h does.
125512         (SIZE_MAX, UINTMAX_MAX): New macros.
125513         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125514         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125515         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125516         (power_letter): Renamed from suffixes.
125517         (generate_suffix_backwards): Remove.
125518         (adjust_value): Now takes int style (because of human.h changes)
125519         and long double value (for greater precision on some platforms).
125520         (group_number): New function.
125521         (human_readable): Use it.  Use integer options, not enum.
125522         Put the options before the sizes in the arg list.
125523         Support all the new options.
125524         The old human_readable function has been removed;
125525         use inttostr.h instead.
125526         (human_readable, default_block_size, humblock):
125527         Use uintmax_t, not int, for block sizes.
125528         (human_readable_inexact, block_size_types): Remove.
125529         (block_size_opts): New constant.
125530         (human_options): Renamed from human_block_size, with new signature
125531         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125532         * lib/human.h: Add copyright and authorship notice.
125533         Include <limits.h> and <stdbool.h> unconditionally.
125534         (PARAMS): Remove.  All uses removed.
125535         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125536         (enum human_inexact_style): Remove tag; now a nameless enum.
125537         (human_floor, human_ceiling, human_round_to_even): Now have
125538         values 2, 0, 1 rather than -1, 1, 0.
125539         (human_group_digits, human_suppress_point_zero, human_autoscale,
125540         human_base_1024, human_SI, human_B): New constants.
125541         (human_readable_inexact, human_block_size): Remove.
125542         (human_readable): Size args are now uintmax_t, not int.
125543         (human_options): New decl.
125545         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125546         unnecessary now that we assume C89 or better.  This change
125547         imported from coreutils.
125549         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125550         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125551         in the 2003-05-30 sync from glibc.
125553         .h files should stand alone, but we shouldn't include <sys/types.h>
125554         if we can get away with just <stddef.h>.
125556         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125557         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125558         rather than <sys/types.h>, as we merely need size_t.
125559         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125560         to get size_t.
125561         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125562         Include <stdio.h>, to get FILE.
125563         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125564         memcasecmp.h has included <stddef.h> and all we need is size_t.
125565         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125566         our interface, instead of including <sys/types.h>
125568 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125570         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125571         now, as glibc mktime is buggy on non-glibc systems.
125573 2003-06-03  Karl Berry  <karl@gnu.org>
125575         * config/config.sub: update from prep.
125577 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125579         [from coreutils]
125580         Fix some minor time-related bugs with POSIX time arguments.
125581         Some valid time stamps were being rejected (notably -1, and
125582         time stamps before 1900 on 64-bit hosts).  And some invalid
125583         time stamps were being accepted, e.g. September 31.
125585         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125586         that we can return (time_t) -1 successfully.
125587         * lib/posixtm.c: Likewise.
125588         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125589         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125590         (t): Remove static var.
125591         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125592         of static var.  All uses changed.
125593         (year): Do not reject years before 1900; they can occur with
125594         64-bit time_t.
125595         (posix_time_parse): Do not check for out-of-range components;
125596         that is now the caller's responsibility, since our checks were
125597         only approximations.
125598         (posixtime): Use mktime to check for out-of-range components,
125599         since it knows them exactly.
125600         If mktime returns (time_t) -1, check whether an error actually occurred
125601         by invoking localtime on -1.
125602         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125603         posixtime failures better.
125604         Improve the test data (in comments only).
125606 2003-06-02  Karl Berry  <karl@gnu.org>
125608         * config/mkinstalldirs (version): new variable.
125609         (--version): new option.
125610         (usage): improve message.
125612 2003-05-30  Karl Berry  <karl@gnu.org>
125614         * lib/mktime.c: update from libc.
125616 2003-05-30  Bruno Haible  <bruno@clisp.org>
125618         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125619         * config/config.rpath: Upgrade to gettext-0.12.1.
125621 2003-05-30  Bruno Haible  <bruno@clisp.org>
125623         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125624         * m4/nls.m4: New file, from gettext-0.12.1.
125625         * m4/po.m4: New file, from gettext-0.12.1.
125626         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125628 2003-05-30  Bruno Haible  <bruno@clisp.org>
125630         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125631         * lib/localcharset.h: Likewise.
125632         * lib/localcharset.c: Likewise.
125634 2003-05-29  Karl Berry  <karl@gnu.org>
125636         * config/config.rpath: update from gettext.
125638 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125640         Assume the headers required for C89 freestanding compilers.
125641         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125642         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125643         * m4/human.m4 (gl_HUMAN): Likewise.
125644         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125645         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125646         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125647         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125649         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125653         Assume the headers required for C89 freestanding compilers.
125654         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125655         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125656         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125657         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125658         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125659         define, since <limits.h> is guaranteed to do that.
125660         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125661         * lib/exclude.c: Include <stdbool.h> unconditionally.
125662         * lib/tempname.c: Include <stddef.h> unconditionally.
125663         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125664         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125665         <stddef.h> does that.
125666         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125667         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125668         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125669         needed.
125670         * lib/xstrtol.c: Likewise.
125671         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125672         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125674         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125675         warnings on some platforms.
125677         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125678         arbitrarily.
125680 2003-05-26  Jim Meyering  <jim@meyering.net>
125682         Merge in a change from coreutils:
125683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125684         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125685         that condition, rather than `-1' which is slightly misleading.
125686         Change the name of the cache variable to have the gl_ prefix.
125687         Prompted by a patch from Richard Dawe for DJGPP.
125689 2003-05-24  Karl Berry  <karl@gnu.org>
125691         * config/config.guess: update from prep.
125693 2003-05-22  Karl Berry  <karl@gnu.org>
125695         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125697 2003-05-20  Karl Berry  <karl@gnu.org>
125699         * config/config.guess: update from prep.
125701 2003-05-18  Karl Berry  <karl@gnu.org>
125703         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125704         might actually be set by the user.
125706         * config/depcomp, install-sh, mdate-sh: update from automake.
125708 2003-05-17  Bruno Haible  <bruno@clisp.org>
125710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125711         invalid expansion for AC_EGREP_CPP.
125712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125714         Suggested by Akim Demaille <akim@epita.fr> in
125715         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125717 2003-05-12  Jim Meyering  <jim@meyering.net>
125719         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125720         the space-padded-by-default conversion specifiers, %e, %k, %l.
125722 2003-05-12  Bruno Haible  <bruno@clisp.org>
125724         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125725         the string is longer than 4 KB.
125727 2003-05-11  Karl Berry  <karl@gnu.org>
125729         * config/config.{guess,sub}: update from prep.
125731 2003-05-09  Bruno Haible  <bruno@clisp.org>
125733         * modules/error: Add m4/strerror_r.m4 to file list.
125735 2003-05-03  Bruno Haible  <bruno@clisp.org>
125737         Upgrade to Unicode-4.0.
125738         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125739         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125740         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125741         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125742         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125743         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125744         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125745         Change width of U+E0100..U+E01EF from 1 to 0.
125747 2003-04-25  Jim Meyering  <jim@meyering.net>
125749         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125750         of type size_t, not int.
125752 2003-04-25  Bruno Haible  <bruno@clisp.org>
125754         * lib/copy-file.c: Include <stddef.h>, for size_t.
125756 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125758         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125759         code which expansion is under static control.  Patch imported from
125760         Akim Demaille's patch to Bison; see
125761         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125763 2003-04-14  Bruno Haible  <bruno@clisp.org>
125765         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125767 2003-04-11  Jim Meyering  <jim@meyering.net>
125769         Merge changes from Coreutils.
125771         2003-03-22  Jim Meyering  <jim@meyering.net>
125773         * lib/strftime.c (widen): Cast alloca return value to proper type.
125775         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125777         From GNU libc.
125778         * lib/strftime.c (my_strftime): Handle very large width
125779         specifications for numeric values correctly.  Improve checks for
125780         overflow.
125782         2003-01-19  Jim Meyering  <jim@meyering.net>
125784         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125785         definitions.
125786         (nl_get_alt_digit) [! defined my_strftime]: Define.
125787         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125788         _nl_get_alt_digit and _nl_get_walt_digit.
125790         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125791         libc. These changes have no effect outside of _LIBC.
125793 2003-04-10  Bruno Haible  <bruno@clisp.org>
125795         * modules/findprog: New file.
125796         * MODULES.html.sh (func_all_modules): Add it.
125798 2003-04-10  Bruno Haible  <bruno@clisp.org>
125800         * m4/findprog.m4: New file.
125801         * m4/eaccess.m4: New file.
125803 2003-04-10  Bruno Haible  <bruno@clisp.org>
125805         * lib/findprog.h: New file, from GNU gettext.
125806         * lib/findprog.c: New file, from GNU gettext.
125808 2003-04-05  Jim Meyering  <jim@meyering.net>
125810         Merge changes from Coreutils.
125812         * lib/exclude.h (PARAMS): Remove definition and uses.
125813         * lib/exclude.c: Remove uses of `PARAMS'.
125815         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
125816         Add test-cases for DOS filenames. Declare program_name.
125817         (main): Set up program_name.  Patch by Rich Dawe.
125819         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125820         error from mntctl.
125821         Use mntctl's return value to drive the entry-processing loop, since
125822         we can't rely on the value of the vmt_length member in the last
125823         entry.  On some systems doing so could result in exhausting
125824         virtual memory.  Based in part on a patch from Mike Jetzer.
125826 2003-04-04  Bruno Haible  <bruno@clisp.org>
125828         * modules/linebreak: New file.
125829         * MODULES.html.sh (func_all_modules): Add it.
125831 2003-04-04  Bruno Haible  <bruno@clisp.org>
125833         * m4/linebreak.m4: New file.
125835 2003-04-04  Bruno Haible  <bruno@clisp.org>
125837         * lib/linebreak.h: New file, from GNU gettext.
125838         * lib/linebreak.c: New file, from GNU gettext with slight
125839         modifications.
125840         * lib/lbrkprop.h: New file, from GNU gettext.
125842 2003-04-03  Bruno Haible  <bruno@clisp.org>
125844         * modules/utf8-ucs4: New file.
125845         * modules/utf16-ucs4: New file.
125846         * modules/ucs4-utf8: New file.
125847         * modules/ucs4-utf16: New file.
125848         * MODULES.html.sh (func_all_modules): Add them.
125850 2003-04-03  Bruno Haible  <bruno@clisp.org>
125852         * m4/utf-ucs4.m4: New file.
125853         * m4/ucs4-utf.m4: New file.
125855 2003-04-03  Bruno Haible  <bruno@clisp.org>
125857         * lib/utf8-ucs4.h: New file, from GNU gettext.
125858         * lib/utf16-ucs4.h: New file, from GNU gettext.
125859         * lib/ucs4-utf8.h: New file, from GNU gettext.
125860         * lib/ucs4-utf16.h: New file, from GNU gettext.
125862 2003-04-02  Bruno Haible  <bruno@clisp.org>
125864         * modules/binary-io: New file.
125865         * MODULES.html.sh (func_all_modules): Add it.
125867 2003-04-02  Bruno Haible  <bruno@clisp.org>
125869         * lib/binary-io.h: New file, from GNU gettext.
125871 2003-04-01  Bruno Haible  <bruno@clisp.org>
125873         * modules/pathname: New file.
125874         * MODULES.html.sh (func_all_modules): Add it.
125876 2003-04-01  Bruno Haible  <bruno@clisp.org>
125878         * lib/pathname.h: New file, from GNU gettext.
125879         * lib/concatpath.c: New file, from GNU gettext.
125881 2003-03-30  Bruno Haible  <bruno@clisp.org>
125883         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125885 2003-03-30  Bruno Haible  <bruno@clisp.org>
125887         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125888         function chown() doesn't exist.
125890 2003-03-28  Bruno Haible  <bruno@clisp.org>
125892         * modules/copy-file: New file.
125893         * MODULES.html.sh (func_all_modules): Add it.
125895 2003-03-28  Bruno Haible  <bruno@clisp.org>
125897         * m4/copy-file.m4: New file.
125899 2003-03-28  Bruno Haible  <bruno@clisp.org>
125901         * lib/copy-file.h: New file, from GNU gettext.
125902         * lib/copy-file.c: New file, from GNU gettext.
125904 2003-03-18  Jim Meyering  <jim@meyering.net>
125906         * lib/quote.c (quote_n): Fix typo in comment.
125908 2003-03-18  Bruno Haible  <bruno@clisp.org>
125910         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125911         checking.
125912         * m4/onceonly_2_57.m4: Likewise.
125914 2003-03-17  Bruno Haible  <bruno@clisp.org>
125916         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125917         (m4_quote): Remove macro.
125918         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125920 2003-03-14  Jim Meyering  <jim@meyering.net>
125922         Merge changes from Coreutils.
125923         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125924         to be const, in order to avoid warnings.
125925         (obstack_room): Likewise.
125926         (obstack_empty_p): Likewise.
125928 2003-03-14  Bruno Haible  <bruno@clisp.org>
125930         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125931         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125935         Merge changes from Bison.
125936         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125937         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125938         when compiling Bison 1.875's `bitset bset = obstack_alloc
125939         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125940         * lib/hash.c: Include <stdbool.h> unconditionally.
125942 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125944         * m4/onceonly.m4 (m4_quote): New macro.
125945         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125946         Quote AC_FOREACH variable-expansions properly.
125948 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125950         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125952 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125954         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125955         Reported by Bruce Becker; see:
125956         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125958 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125959             Bruno Haible  <bruno@clisp.org>
125961         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125962         Reported by John Hughes, see
125963         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125965 2003-02-20  Bruno Haible  <bruno@clisp.org>
125967         * MODULES.html.sh (func_all_modules): Add poll.
125969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125971         * modules/poll: New file.
125973 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125975         * lib/poll_.h: New file.
125976         * lib/poll.c: New file.
125978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125980         * m4/poll.m4: New file.
125982 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125984         * modules/mathl: New file.
125986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125988         * lib/mathl.h: New file.
125989         * lib/acosl.c: New file.
125990         * lib/asinl.c: New file.
125991         * lib/atanl.c: New file.
125992         * lib/ceill.c: New file.
125993         * lib/cosl.c: New file.
125994         * lib/expl.c: New file.
125995         * lib/floorl.c: New file.
125996         * lib/frexpl.c: New file.
125997         * lib/ldexpl.c: New file.
125998         * lib/logl.c: New file.
125999         * lib/sincosl.c: New file.
126000         * lib/sinl.c: New file.
126001         * lib/sqrtl.c: New file.
126002         * lib/tanl.c: New file.
126003         * lib/trigl.c: New file.
126004         * lib/trigl.h: New file.
126006 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126008         * m4/mathl.m4: New file.
126010 2003-02-18  Bruno Haible  <bruno@clisp.org>
126012         * MODULES.html.sh (func_all_modules): Add mathl.
126014 2003-02-17  Bruno Haible  <bruno@clisp.org>
126016         * modules/mkdtemp: New module.
126017         * MODULES.html.sh (func_all_modules): Add it.
126019 2003-02-17  Bruno Haible  <bruno@clisp.org>
126021         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
126023 2003-02-17  Bruno Haible  <bruno@clisp.org>
126025         * lib/mkdtemp.h: New file, from GNU gettext.
126026         * lib/mkdtemp.c: New file, from GNU gettext.
126028 2003-02-02  Jim Meyering  <jim@meyering.net>
126030         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
126031         e.g. glibc-2.2.93.
126033 2003-01-31  Bruno Haible  <bruno@clisp.org>
126035         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
126036         'rpl_rename'.
126037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
126038         'rpl_strnlen'.
126039         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
126040         'rpl_strtod'.
126041         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
126042         'rpl_utime'.
126044 2003-01-31  Bruno Haible  <bruno@clisp.org>
126046         * lib/rename.c: #undef rename before defining rpl_rename.
126047         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
126049 2003-01-30  Bruno Haible  <bruno@clisp.org>
126051         * modules/vasnprintf, modules/vasprintf: New modules.
126052         * MODULES.html.sh (func_all_modules): Add them.
126054 2003-01-30  Bruno Haible  <bruno@clisp.org>
126056         * m4/signed.m4: New file, from GNU gettext.
126057         * m4/longdouble.m4: New file, from GNU gettext.
126058         * m4/wchar_t.m4: New file, from GNU gettext.
126059         * m4/wint_t.m4: New file, from GNU gettext.
126060         * m4/vasnprintf.m4: New file.
126061         * m4/vasprintf.m4: New file.
126063 2003-01-30  Bruno Haible  <bruno@clisp.org>
126065         * lib/printf-args.h: New file, from GNU gettext.
126066         * lib/printf-args.c: New file, from GNU gettext.
126067         * lib/printf-parse.h: New file, from GNU gettext.
126068         * lib/printf-parse.c: New file, from GNU gettext.
126069         * lib/vasnprintf.h: New file, from GNU gettext.
126070         * lib/vasnprintf.c: New file, from GNU gettext.
126071         * lib/asnprintf.c: New file, from GNU gettext.
126072         * lib/vasprintf.h: New file, from GNU gettext with modifications.
126073         * lib/vasprintf.c: New file, from GNU gettext.
126074         * lib/asprintf.c: New file, from GNU gettext.
126076 2003-01-29  Bruno Haible  <bruno@clisp.org>
126078         * modules/stpncpy: New module.
126079         * MODULES.html.sh (func_all_modules): Add it.
126081 2003-01-29  Bruno Haible  <bruno@clisp.org>
126083         * m4/stpncpy.m4: New file.
126085 2003-01-29  Bruno Haible  <bruno@clisp.org>
126087         * lib/stpncpy.h: New file, from GNU gettext with modifications.
126088         * lib/stpncpy.c: New file, from GNU gettext with modifications.
126090 2003-01-28  Bruno Haible  <bruno@clisp.org>
126092         * modules/c-ctype: New module.
126093         * MODULES.html.sh (func_all_modules): Add it.
126095 2003-01-28  Bruno Haible  <bruno@clisp.org>
126097         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
126098         Paul Eggert.
126099         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
126100         Paul Eggert.
126102 2003-01-27  Bruno Haible  <bruno@clisp.org>
126104         * modules/xsetenv: New module.
126105         * MODULES.html.sh (func_all_modules): Add it.
126107 2003-01-27  Bruno Haible  <bruno@clisp.org>
126109         * lib/xsetenv.h: New file, from GNU gettext.
126110         * lib/xsetenv.c: New file, from GNU gettext.
126112 2003-01-23  Jim Meyering  <jim@meyering.net>
126114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
126115         from working on systems without dirfd (at least Irix and OSF1/Tru64).
126117 2003-01-23  Bruno Haible  <bruno@clisp.org>
126119         * modules/minmax: New module.
126120         * MODULES.html.sh (func_all_modules): Add it.
126122 2003-01-23  Bruno Haible  <bruno@clisp.org>
126124         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
126125         Eggert.
126127 2003-01-22  Bruno Haible  <bruno@clisp.org>
126129         * modules/exit: New module.
126130         * MODULES.html.sh (func_all_modules): Add it.
126132 2003-01-22  Bruno Haible  <bruno@clisp.org>
126134         * lib/exit.h: New file, from GNU gettext.
126136 2003-01-19  Bruno Haible  <bruno@clisp.org>
126138         * gnulib-tool: Recognize option --extract-maintainer.
126139         (func_get_maintainer): New function.
126140         * modules/*: Add Maintainer entry.
126142 2003-01-16  Jim Meyering  <jim@meyering.net>
126144         * m4/regex.m4: The `regex' struct is both input and output.
126145         Initialize it before each use.  Patch by Tim Waugh.
126147 2003-01-16  Bruno Haible  <bruno@clisp.org>
126149         * MODULES.html.sh: Add a table of contents. Add the module name as
126150         leftmost column. Add hyperlinks.
126152 2003-01-15  Bruno Haible  <bruno@clisp.org>
126154         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
126156 2003-01-15  Bruno Haible  <bruno@clisp.org>
126158         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
126159         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
126160         suffix.
126162 2003-01-15  Bruno Haible  <bruno@clisp.org>
126164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
126166 2003-01-15  Bruno Haible  <bruno@clisp.org>
126168         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
126169         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
126171 2003-01-14  Jim Meyering  <jim@meyering.net>
126173         * lib/same.c (same_name): Tweak a comment.
126175 2003-01-14  Bruno Haible  <bruno@clisp.org>
126177         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
126178         when a string comparison is sufficient.
126180 2003-01-14  Bruno Haible  <bruno@clisp.org>
126182         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
126183         'unsigned int'.
126185 2003-01-14  Bruno Haible  <bruno@clisp.org>
126187         * lib/hash-pjw.c: Add comment about low quality of this function.
126189 2003-01-13  Bruno Haible  <bruno@clisp.org>
126191         * modules/stpcpy: Distribute lib/stpcpy.h.
126192         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
126194 2003-01-13  Bruno Haible  <bruno@clisp.org>
126196         * modules/*: Add a description.
126197         * modules/strpbrk: Fix Makefile.am snippet.
126198         * modules/strtoimax: Fix dependencies.
126199         * modules/strtoumax: Likewise.
126201 2003-01-13  Bruno Haible  <bruno@clisp.org>
126203         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
126204         * modules/alloca (Makefile.am): All object files depend on alloca.h.
126205         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
126207 2003-01-13  Bruno Haible  <bruno@clisp.org>
126209         * gnulib-tool (func_create_testdir): Store config/* files in the main
126210         directory.
126211         * config.rpath: Move to ...
126212         * config/config.rpath: ... here.
126213         * modules/gettext: Contains config/config.rpath, not config.rpath.
126214         * modules/iconv: Likewise.
126216 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126218         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126219         to avoid collisions with libcurses and libreadline.
126221         * m4/getstr.m4: Remove.
126222         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
126224 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126226         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126227         to avoid collisions with libcurses and libreadline.
126229         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
126230         * lib/getstr.h, getstr.c: Remove.
126231         * lib/getline.c: Include "getline.h", to check interface.
126232         Move body of old getstr.c here: this defines MIN_CHUNK and
126233         declares getdelim2, which is renamed from getstr.
126234         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
126236         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
126237         All uses changed.
126238         * lib/linebuffer.h: Likewise.
126239         (readline): Remove backward-compatibility macro.
126241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126244         to avoid collisions with libcurses and libreadline.
126245         * getstr: Remove.
126246         * MODULES.html.sh: Remove getstr.
126247         * modules/getline: Depend on unlocked-io, not getstr.
126249 2003-01-12  Jim Meyering  <jim@meyering.net>
126251         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
126253 2003-01-10  Bruno Haible  <bruno@clisp.org>
126255         * modules/alloca: Change Makefile.am requirements. Simplify Include
126256         requirements. Add lib/alloca_.h to file list.
126258 2003-01-10  Bruno Haible  <bruno@clisp.org>
126260         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
126262 2003-01-10  Bruno Haible  <bruno@clisp.org>
126264         * lib/alloca_.h: New file.
126265         * lib/getdate.y: Unconditionally include alloca.h.
126266         * lib/makepath.c: Likewise.
126267         * lib/setenv.c: Likewise.
126268         * lib/userspec.c: Likewise.
126270 2003-01-09  Karl Berry  <karl@gnu.org>
126272         * MODULES.html.sh: include `dirname $0` in PATH, to find
126273         gnulib-tool.
126275 2003-01-09  Bruno Haible  <bruno@clisp.org>
126277         * modules/stdbool: Change configure.ac, Makefile.am requirements.
126278         Simplify Include requirements. Add lib/stdbool.h.in to file list.
126280 2003-01-09  Bruno Haible  <bruno@clisp.org>
126282         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
126284 2003-01-09  Bruno Haible  <bruno@clisp.org>
126286         * lib/stdbool.h.in: New file.
126288 2003-01-09  Bruno Haible  <bruno@clisp.org>
126290         * gnulib-tool (func_all_modules): Ignore files ending in ~.
126291         * MODULES.html.sh: Likewise.
126293 2003-01-08  Jim Meyering  <jim@meyering.net>
126295         * lib/full-write.c: Undefine and define-away `const' after inclusion
126296         of errno.h, not before.  Suggestion from Bruno Haible.
126298 2003-01-08  Bruno Haible  <bruno@clisp.org>
126300         * modules/full-read: Depend on full-write.
126302 2003-01-08  Bruno Haible  <bruno@clisp.org>
126304         * lib/safe-read.c: Include specification header first, to ensure its
126305         selfcontainedness.
126306         * lib/full-write.c: Likewise.
126308 2003-01-07  Jim Meyering  <jim@meyering.net>
126310         * lib/full-write.c: Rework so that it may serve to define full_read,
126311         too.
126312         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
126314 2003-01-07  Bruno Haible  <bruno@clisp.org>
126316         * lib/strtoimax.c: Include <stdint.h> as an alternative to
126317         <inttypes.h>.
126318         * lib/xstrtol.h: Likewise.
126319         * lib/xstrtoimax.c: Likewise.
126320         * lib/xstrtoumax.c: Likewise.
126321         * lib/human.h: Likewise.
126323         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
126324         on systems that have <inttypes.h> but not <stdint.h>.
126326 2003-01-07  Bruno Haible  <bruno@clisp.org>
126328         * MODULES.html.sh: Add copyright notice.
126329         (missed_files): Omit CVS directory entries.
126330         (func_module): Make it work with sed-3.02.
126331         * MODULES.txt: Remove file.
126333 2003-01-06  Jim Meyering  <jim@meyering.net>
126335         * lib/version-etc.c: Update year in translatable copyright string.
126337 2003-01-03  Karl Berry  <karl@gnu.org>
126339         * config/config.{guess,sub}: update from prep.
126341 2003-01-02  Karl Berry  <karl@gnu.org>
126343         * doc/COPYING.DOC: belatedly updated to 1.2.
126345 2003-01-01  Karl Berry  <karl@gnu.org>
126347         * gnulib-tool (func_verify_module): report module name $module in
126348         error message, not $1.
126349         * gnulib-tool (create-testdir): don't complain if destdir couldn't
126350         be created, only if it doesn't exist.
126351         * gnulib-tool (last_checkin_date): don't expand the $Date here.
126353 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126355         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
126357 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126359         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
126360         memcmp if strcoll doesn't work.
126362 2002-12-31  Bruno Haible  <bruno@clisp.org>
126364         * lib/utime.c (utime_null): No need to call ftruncate if the file was
126365         nonempty.
126367 2002-12-31  Bruno Haible  <bruno@clisp.org>
126369         * lib/memcoll.c (STRCOLL): New macro.
126370         (memcoll): Use it.
126372 2002-12-31  Bruno Haible  <bruno@clisp.org>
126374         * lib/localcharset.h: New file.
126375         * lib/localcharset.c: Include it.
126376         * lib/unicodeio.c: Likewise.
126378 2002-12-31  Bruno Haible  <bruno@clisp.org>
126380         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126381         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126383 2002-12-31  Bruno Haible  <bruno@clisp.org>
126385         * lib/getline.h: Include <stddef.h>, for size_t.
126387         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126388         * lib/unicodeio.c: Don't include <stddef.h>.
126390 2002-12-31  Bruno Haible  <bruno@clisp.org>
126392         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126393         HAVE_TM_ZONE.
126395 2002-12-24  Karl Berry  <karl@gnu.org>
126397         * config/config.guess: update from prep.
126399 2002-12-24  Bruno Haible  <bruno@clisp.org>
126401         General infrasructure.
126402         * m4/README: Rewritten.
126403         * m4/onceonly.m4: New file.
126404         * m4/onceonly_2_57.m4: New file.
126406         Module atexit.
126407         * m4/atexit.m4: New file.
126409         Module strtod.
126410         * m4/strtod.m4: New file.
126412         Module strtol.
126413         * m4/strtol.m4: New file.
126415         Module strtoul.
126416         * m4/strtoul.m4: New file.
126418         Module memchr.
126419         * m4/memchr.m4: New file.
126421         Module memcmp.
126422         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126423         (jm_FUNC_MEMCMP): Invoke it.
126425         Module memcpy.
126426         * m4/memcpy.m4: New file.
126428         Module memmove.
126429         * m4/memmove.m4: New file.
126431         Module memset.
126432         * m4/memset.m4: New file.
126434         Module strcspn.
126435         * m4/strcspn.m4: New file.
126437         Module strpbrk.
126438         * m4/strpbrk.m4: New file.
126440         Module strstr.
126441         * m4/strstr.m4: New file.
126443         Module strerror.
126444         * m4/strerror.m4: New file.
126446         Module mktime.
126447         * m4/mktime.m4: Renamed from jm-mktime.m4.
126448         (gl_PREREQ_MKTIME): New macro.
126449         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126451         Module malloc.
126452         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126453         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126454         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126456         Module realloc.
126457         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126458         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126459         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126461         Module strftime.
126462         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126463         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126464         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126465         gl_TM_GMTOFF.
126466         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126468         Module xalloc.
126469         * m4/xalloc.m4: New file.
126471         Module alloca.
126472         * m4/alloca.m4: New file.
126474         Module putenv.
126475         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126476         (jm_FUNC_PUTENV): Invoke it.
126478         Module setenv.
126479         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126480         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126481         when invoked twice.
126482         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126483         gt_FUNC_SETENV.
126485         Module memrchr.
126486         * m4/memrchr.m4: New file.
126488         Module stpcpy.
126489         * m4/stpcpy.m4: New file.
126491         Module strcase.
126492         * m4/strcase.m4: New file.
126494         Module strdup.
126495         * m4/strdup.m4: New file.
126497         Module strnlen.
126498         * m4/strnlen.m4: New file.
126500         Module strndup.
126501         * m4/strndup.m4: New file.
126503         Module xstrtod.
126504         * m4/xstrtod.m4: New file.
126506         Module xstrtol.
126507         * m4/xstrtol.m4: New file.
126509         Module getdate.
126510         * m4/getdate.m4: New file.
126512         Module unlocked-io.
126513         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126514         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126515         * m4/jm-glibc-io.m4n: Remove file.
126517         Module long-options.
126518         * m4/long-options.m4: New file.
126520         Module md5.
126521         * m4/md5.m4: New file.
126523         Module sha.
126524         * m4/sha.m4: New file.
126526         Module getstr.
126527         * m4/getstr.m4: New file.
126529         Module getline.
126530         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126531         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126532         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126533         simply getline. Infoke gl_PREREQ_GETLINE.
126535         Module obstack.
126536         * m4/obstack.m4: New file.
126538         Module hash.
126539         * m4/hash.m4: New file.
126541         Module readtokens.
126542         * m4/readtokens.m4: New file.
126544         Module strverscmp.
126545         * m4/strverscmp.m4: New file.
126547         Module stdbool.
126548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126549         OSF/1.
126551         Module strtoll.
126552         * m4/strtoll.m4: New file.
126554         Module strtoull.
126555         * m4/strtoull.m4: New file.
126557         Module strtoimax.
126558         * m4/strtoimax.m4: New file.
126560         Module strtoumax.
126561         * m4/strtoumax.m4: New file.
126563         Module xstrtoimax.
126564         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126565         jm_AC_PREREQ_XSTRTOIMAX.
126566         Moved the strtol prerequisites to strtol.m4.
126567         Moved the strtoll prerequisites to strtoll.m4.
126568         Moved the strtoimax prerequisites to strtoimax.m4.
126570         Module xstrtoumax.
126571         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126572         jm_AC_PREREQ_XSTRTOUMAX.
126573         Moved the strtoul prerequisites to strtoul.m4.
126574         Moved the strtoull prerequisites to strtoull.m4.
126575         Moved the strtoumax prerequisites to strtoumax.m4.
126577         Module chown.
126578         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126579         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126581         Module dup2.
126582         * m4/dup2.m4: New file.
126584         Module ftruncate.
126585         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126586         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126588         Module getgroups.
126589         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126590         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126592         Module gettimeofday.
126593         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126594         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126595         gl_PREREQ_GETTIMEOFDAY.
126597         Module mkdir.
126598         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126599         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126601         Module mkstemp.
126602         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126603         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126604         jm_AC_TYPE_UINTMAX_T.
126605         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126607         Module stat.
126608         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126609         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126611         Module lstat.
126612         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126613         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126615         Module timespec.
126616         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126617         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126618         * m4/st_mtim.m4: Indentation.
126620         Module nanosleep.
126621         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126622         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126623         gl_PREREQ_NANOSLEEP.
126625         Module regex.
126626         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126627         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126628         (gl_REGEX): New macro.
126630         Module rename.
126631         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126632         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126634         Module rmdir.
126635         * m4/rmdir.m4: New file.
126637         Module utime.
126638         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126639         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126640         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126642         Module dirname.
126643         * m4/dirname.m4: New file.
126645         Module getopt.
126646         * m4/getopt.m4: New file.
126648         Module unistd-safer.
126649         * m4/unistd-safer.m4: New file.
126651         Module fnmatch.
126652         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126653         declaration.
126654         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126655         (gl_FUNC_FNMATCH_POSIX): New macro.
126656         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126657         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126658         simply fnmatch.
126660         Module exclude.
126661         * m4/exclude.m4: New file.
126663         Module human.
126664         * m4/human.m4: New file.
126666         Module acl.
126667         * m4/acl.m4: Nop.
126669         Module backupfile.
126670         * m4/backupfile.m4: New file.
126671         * m4/d-ino.m4: Indentation.
126673         Module fsusage.
126674         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126675         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126676         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126678         Module dirfd.
126679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126680         requirements.
126682         Module euidaccess.
126683         * m4/euidaccess.m4: New file.
126685         Module file-type.
126686         * m4/file-type.m4: New file.
126688         Module fileblocks.
126689         * m4/fileblocks.m4: New file.
126691         Module filemode.
126692         * m4/filemode.m4: New file.
126694         Module isdir.
126695         * m4/isdir.m4: New file.
126697         Module lchown.
126698         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126699         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126701         Module makepath.
126702         * m4/makepath.m4: New file.
126704         Module modechange.
126705         * m4/modechange.m4: New file.
126707         Module mountlist.
126708         * m4/mountlist.m4: New file.
126709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126710         Indentation.
126712         Module path-concat.
126713         * m4/path-concat.m4: New file.
126715         Module pathmax.
126716         * m4/pathmax.m4: New file.
126718         Module same.
126719         * m4/same.m4: New file.
126721         Module save-cwd.
126722         * m4/save-cwd.m4: New file.
126724         Module savedir.
126725         * m4/savedir.m4: New file.
126727         Module xgetcwd.
126728         * m4/xgetcwd.m4: New file.
126729         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126731         Module xreadlink.
126732         * m4/xreadlink.m4: New file.
126734         Module safe-read.
126735         * m4/safe-read.m4: New file.
126737         Module safe-write.
126738         * m4/safe-write.m4: New file.
126740         Module closeout.
126741         * m4/closeout.m4: New file.
126743         Module stdio-safer.
126744         * m4/stdio-safer.m4: New file.
126746         Module getpass.
126747         * m4/getpass.m4: New file.
126749         Module getugroups.
126750         * m4/getugroups.m4: New file.
126752         Module group-member.
126753         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126754         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126756         Module idcache.
126757         * m4/idcache.m4: New file.
126759         Module userspec.
126760         * m4/userspec.m4: New file.
126762         Module gettime.
126763         * m4/clock_time.m4: New file.
126764         * m4/gettime.m4: New file.
126766         Module settime.
126767         * m4/settime.m4: New file.
126769         Module posixtm.
126770         * m4/posixtm.m4: New file.
126772         Module gethostname.
126773         * m4/gethostname.m4: New file.
126775         Module canon-host.
126776         * m4/canon-host.m4: New file.
126778         Module gettext.
126779         * m4/codeset.m4: New file, from gettext-0.11.5.
126780         * m4/gettext.m4: New file, from gettext-0.11.5.
126781         * m4/glibc21.m4: New file, from gettext-0.11.5.
126782         * m4/iconv.m4: New file, from gettext-0.11.5.
126783         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126784         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126785         * m4/inttypes.m4: New file, from gettext-0.11.5.
126786         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126787         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126788         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126789         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126790         * m4/lib-link.m4: New file, from gettext-0.11.5.
126791         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126792         * m4/progtest.m4: New file, from gettext-0.11.5.
126793         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
126794         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
126795         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
126797         Module localcharset.
126798         * m4/localcharset.m4: New file.
126800         Module hard-locale.
126801         * m4/hard-locale.m4: New file.
126803         Module mbswidth.
126804         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
126805         onceonly macros.
126806         * m4/mbrtowc.m4: Add comment.
126808         Module memcasecmp.
126809         * m4/memcasecmp.m4: New file.
126811         Module memcoll.
126812         * m4/memcoll.m4: New file.
126814         Module unicodeio.
126815         * m4/unicodeio.m4: New file.
126817         Module rpmatch.
126818         * m4/rpmatch.m4: New file.
126820         Module yesno.
126821         * m4/yesno.m4: New file.
126823         Module exitfail.
126824         * m4/exitfail.m4: New file.
126826         Module c-stack.
126827         * m4/c-stack.m4 (gl_C_STACK): New macro.
126828         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126830         Module error.
126831         * m4/error.m4 (gl_ERROR): New macro.
126832         (jm_PREREQ_ERROR): Use onceonly macros.
126834         Module fatal.
126835         * m4/fatal.m4: New file.
126837         Module getloadavg.
126838         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126839         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126841         Module getpagesize.
126842         * m4/getpagesize.m4: New file.
126844         Module getusershell.
126845         * m4/getusershell.m4: New file.
126847         Module physmem.
126848         * m4/physmem.m4: New file.
126850         Module posixver.
126851         * m4/posixver.m4: New file.
126853         Module quotearg.
126854         * m4/quotearg.m4: New file.
126856         Module quote.
126857         * m4/quote.m4: New file.
126859         Module readutmp.
126860         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126862         Module sig2str.
126863         * m4/sig2str.m4: New file.
126865         Other.
126866         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126867         ulonglong.m4.
126868         * m4/intmax_t.m4: New file.
126869         * m4/d-type.m4: Indentation.
126870         * m4/jm-macros.m4: Update.
126871         * m4/prereq.m4 (jm_PREREQ): Update.
126872         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126873         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126874         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126875         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126876         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126877         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126878         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126879         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126880         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126881         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126882         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126883         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126884         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126885         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126886         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126887         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126888         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126889         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126890         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126892 2002-12-24  Bruno Haible  <bruno@clisp.org>
126894         * MODULES.txt: Update according to m4/ changes.
126896         Module gettext.
126897         * config.rpath: New file, from gettext-0.11.5.
126899         * modules/*: New module descriptions.
126900         * gnulib-tool: New file.
126901         * MODULES.html.sh: New file.
126903 2002-12-21  Karl Berry  <karl@gnu.org>
126905         * doc/fdl.texi: update to version 1.2.
126907 2002-12-19  Karl Berry  <karl@gnu.org>
126909         * config/config.guess: update from prep.
126911 2002-12-18  Bruno Haible  <bruno@clisp.org>
126913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126914         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126916 2002-12-17  Bruno Haible  <bruno@clisp.org>
126918         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126919         stdlib.h, string.h.
126921 2002-12-17  Bruno Haible  <bruno@clisp.org>
126923         * lib/canon-host.c (strdup): Remove unused declaration.
126925         * lib/fsusage.c: Include full_read.h.
126926         (get_fs_usage): Use full_read instead of safe_read.
126928         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126930 2002-12-12  Karl Berry  <karl@gnu.org>
126932         * config/config.guess: update from prep.
126934 2002-12-11  Bruno Haible  <bruno@clisp.org>
126936         * m4/setenv.m4: New file, from gettext-0.11.5.
126938 2002-12-11  Bruno Haible  <bruno@clisp.org>
126940         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126941         not unsetenv().
126942         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126943         modifications:
126945         2002-12-11  Bruno Haible  <bruno@clisp.org>
126947                 * setenv.c (alloca): Fall back to malloc.
126948                 (freea): New macro.
126949                 (setenv): Use freea() to free memory allocated with alloca().
126951         2002-11-13  Bruno Haible  <bruno@clisp.org>
126953                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126954                 function declarations.
126955                 * unsetenv.c (unsetenv): Likewise.
126957         2002-03-04  Bruno Haible  <bruno@clisp.org>
126959                 Portability to AIX 4.3.3.
126960                 * unsetenv.c: New file, extracted from setenv.c.
126961                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126963         2001-12-20  Bruno Haible  <bruno@clisp.org>
126965                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126966                 use malloc instead. For SunOS 4.
126968         2001-12-11  Bruno Haible  <bruno@clisp.org>
126970                 * setenv.c: Declare alloca.
126971                 (compar_fn_t): New typedef.
126972                 (KNOWN_VALUE, STORE_VALUE): Use it.
126974         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126975         setenv.h.
126977 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126979         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126980         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126981         Choose values that are less likely to collide with system fnmatch
126982         options.
126983         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126984         defined (e.g., a pure POSIX system).
126985         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126986         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126988 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126990         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126991         a pain in practice to deal with generated m4 files.  This change
126992         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126994         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126995         and jm-glibc-io.m4, as they are no longer a special case.
126996         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126997         kludge and the auto-generation stuff.  Check only whether the
126998         functions are declared, not whether they exist, since older hosts
126999         that don't declare the functions can't use the optimization anyway.
127001 2002-12-06  Jim Meyering  <jim@meyering.net>
127003         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
127005         Merge in changes from libc's misc/error.c, in preparation
127006         for the merge of gnulib's changes back into libc.
127008         * lib/error.c (_): Define only if not already defined.
127009         Move definition to follow all #include directives.
127010         Include unlocked-io.h only if !_LIBC.
127011         [_LIBC]: Include <libio/libioP.h>.
127012         [USE_IN_LIBIO]: Include <libio/iolibio.h>
127013         (fflush): Tweak definition to use INTUSE.
127014         (putc): Define.
127016 2002-12-05  Paul Eggert  <eggert@twinsun.com>
127018         * lib/alloca.c [defined emacs]: Include "lisp.h".
127019         (xalloc_die) [defined emacs]: New macro.
127020         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
127021         [! defined emacs]: Include <xalloc.h>.
127022         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
127023         (pointer): Typedef to POINTER_TYPE *.
127024         (malloc): Remove decl; we now always use xmalloc.
127025         (alloca): Use old-style definition, since Emacs needs this.
127026         Check for arithmetic overflow when computing combined size.
127028 2002-12-04  Paul Eggert  <eggert@twinsun.com>
127030         Do not generate unlocked-io.h automatically, since it's easier to
127031         maintain it by hand.
127033         * lib/unlocked-io.h: New file, from GNU diffutils,
127034         but with proper copyright notice and attribution.
127035         * lib/gen-uio: Remove.
127036         * lib/Makefile.am: Add copyright notice.
127037         (libfetish_a_SOURCES): Add unlocked-io.h.
127038         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
127039         (DISTCLEANFILES, io_functions): Remove macros.
127040         (EXTRA_DIST): Remove gen_uio.
127041         (unlocked-io.h): Remove rule.
127043 2002-12-04  Jim Meyering  <jim@meyering.net>
127045         Reflect the fact that stat.c and lstat.c are no longer generated.
127046         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
127047         (DISTCLEANFILES): Likewise.
127048         (EXTRA_DIST): Likewise.
127049         (all_local): Don't depend on stat.c or lstat.c.
127050         (stat.c, lstat.c): Remove rules.
127051         (EXTRA_DIST): Remove xstat.in.
127053         * lib/xstat.in: Remove file.  Contents moved into stat.c.
127054         * lib/stat.c: New file.  Contents mostly from xstat.in.
127055         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
127056         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
127058         * lib/safe-read.c: Rework so that it may serve to define safe_write,
127059         too.
127060         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
127062 2002-12-03  Jim Meyering  <jim@meyering.net>
127064         * lib/safe-read.c, safe-write.c: Change variable names and comments,
127065         but not semantics, to minimize the differences between these two files.
127066         (safe_read): Change comment to mention SAFE_READ_ERROR.
127068         * lib/safe-read.c (IS_EINTR): Define.
127069         (safe_read): Use IS_EINTR in place of in-function cpp directives.
127071 2002-12-02  Jim Meyering  <jim@meyering.net>
127073         * lib/safe-read.c (EINTR): Define.
127074         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
127075         (INT_MAX): Provide fallback.
127076         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
127078         * lib/safe-read.h (SAFE_READ_ERROR): Define.
127080 2002-12-02  Bruno Haible  <bruno@clisp.org>
127082         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
127083         Define, taken from safe-read.c.
127084         (INT_MAX): Provide fallback.
127085         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
127086         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
127088         * lib/safe-read.c (EINTR): Remove definition.
127089         (safe_read): Don't use EINTR if it is absent.
127091 2002-12-01  Jim Meyering  <jim@meyering.net>
127093         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
127094         zero.
127095         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
127097 2002-11-27  Paul Eggert  <eggert@twinsun.com>
127099         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
127100         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
127101         with `if (! (value < limit)) abort ();', for readability.
127103 2002-11-26  Karl Berry  <karl@gnu.org>
127105         * lib/strdup.c: copy from libc again, with jim's ok.
127106         * lib/.cppi-disable: re-add strdup.c
127108 2002-11-25  Karl Berry  <karl@gnu.org>
127110         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
127111         instead of "strtol.c".
127113 2002-11-25  Karl Berry  <karl@gnu.org>
127115         * config/install-sh: update from automake for variable quoting, $0 in
127116         error msgs, etc.
127118         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
127119         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
127120         entry.
127122 2002-11-25  Jim Meyering  <jim@meyering.net>
127124         * lib/mktime.c: Sync from libc, now that it has the latest fix.
127126 2002-11-24  Karl Berry  <karl@gnu.org>
127128         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
127129         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
127131 2002-11-24  Jim Meyering  <jim@meyering.net>
127133         Update from coreutils:
127135         * lib/mktime.c: Merge in changes from libc.
127137         Avoid a link-time failure on some Linux systems.
127138         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
127139         (otherwise).
127140         (__mon_yday): Declare with the STATIC attribute.
127141         (__mktime_internal): Likewise.
127142         Based on a report from Greg Schafer.
127144 2002-11-23  Jim Meyering  <jim@meyering.net>
127146         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
127147         Use `unsigned', not `int', as type of index.
127149         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
127151         * lib/fsusage.c: Remove unneeded parentheses around operands of
127152         `defined'.
127154 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127156         * lib/quotearg.h: Allow multiple inclusion by surrounding with
127157         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
127158         so that we can be included first.
127159         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
127160         * lib/quotearg.c: Include quotearg.h immediately after config.h.
127161         No need to include stddef.h or sys/types.h any more.
127162         Surround local include files with "", not "<>".
127163         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
127164         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
127165         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
127166         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
127167         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
127168         (ISPRINT): Remove; no longer needed now that we assume C89.
127170         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
127171         Preserve errno.
127173         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
127174         quotearg_char): Use SIZE_MAX rather than
127175         (size_t) -1 when we are talking about "infinity".
127177         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
127179 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127181         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
127182         hint that one should use `if (! x) abort ();' rather than `assert
127183         (x);', and anyway it's one less thing to worry about configuring.
127184         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
127185         hash_rehash, hash_insert): Use abort rather than assert.
127187 2002-11-22  Bruno Haible  <bruno@clisp.org>
127189         * lib/safe-read.h: Assume C89. Add comments.
127190         (safe_read): Change return type to size_t.
127191         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
127192         byte counts > SSIZE_MAX correctly.
127193         * lib/safe-write.h: New file.
127194         * lib/safe-write.c: New file.
127195         * lib/full-read.h: New file.
127196         * lib/full-read.c: New file.
127197         * lib/full-write.h: Assume C89. Add comments.
127198         * lib/full-write.c: Include safe-write.h.
127199         (full_write): Rewritten to use safe_write.
127200         Suggested by Jim Meyering and Paul Eggert.
127202 2002-11-21  Jim Meyering  <jim@meyering.net>
127204         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
127206         Merge in changes from the coreutils.
127208         2002-09-25  Paul Eggert  <eggert@twinsun.com>
127209         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
127210         <stdint.h>.
127211         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
127212         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
127213         int.  Work more efficiently if X is the same width as uintmax_t.
127214         Do not compare X to -1, to avoid bogus compiler warning.
127215         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
127216         Don't assume that f_frsize and f_bsize are the same type.
127218         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
127219         warning on FreeBSD.
127221         * lib/makepath.c (make_path): Restore umask *before* creating the final
127222         component.
127223         (make_path): Minor reformatting.
127225         * lib/xmalloc.c: Adjust to work with new autoconf macros,
127226         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
127227         HAVE_MALLOC/HAVE_REALLOC.
127229         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
127230         dummy ones.  At least on GNU/Linux systems, `auto' means something
127231         else.
127232         From Michael Stone.
127234 2002-11-21  Bruno Haible  <bruno@clisp.org>
127236         Remove case insensitive option matching.
127237         * lib/argmatch.h (argcasematch): Remove declaration.
127238         (ARGCASEMATCH): Remove macro.
127239         (__xargmatch_internal): Remove case_sensitive argument.
127240         (XARGMATCH): Update.
127241         (XARGCASEMATCH): Remove macro.
127242         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
127243         case_sensitive argument.
127244         (argcasematch): Remove function.
127245         (__xargmatch_internal): Remove case_sensitive argument.
127246         (main): Use XARGMATCH instead of XARGCASEMATCH.
127248         * lib/xmalloc.c: Change compile-time error message. Add comment about
127249         required autoconf version.
127251 2002-11-20  Paul Eggert  <eggert@twinsun.com>
127253         Merge argmatch cleanups from Bison.  Assume C89.
127255         * lib/argmatch.c: Include config.h here, not in argmatch.h.
127256         Include stdlib.h, for EXIT_FAILURE.
127257         Always include <string.h>, since we assume C89.
127258         (EXIT_FAILURE): Remove pre-C89 bug workaround.
127259         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
127260         Include <stddef.h> instead, since it's all we need for size_t.
127261         (PARAMS): Remove.  All uses removed.
127262         (ARRAY_CARDINALITY): Do not bother to #undef.
127263         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
127264         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127265         Remove unnecessary parentheses.
127266         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127267         Insert necessary parentheses.
127268         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
127269         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
127271 2002-11-19  Bruno Haible  <bruno@clisp.org>
127273         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
127274         * lib/mbswidth.h: Include <stddef.h>, for size_t.
127276         * lib/mbswidth.h (PARAMS): Remove macro.
127277         (mbswidth, mbsnwidth): Use ANSI C function declarations.
127278         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
127280         * lib/gcd.h (PARAMS): Remove macro.
127281         (gcd): Use ANSI C function declarations.
127282         * lib/gcd.c (gcd): Likewise.
127284 2002-11-15  Bruno Haible  <bruno@clisp.org>
127286         * lib/strcspn.c: Include <stddef.h>.
127287         (strcspn): Use ANSI C function declaration. Change return type to
127288         size_t. Use NULL.
127289         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
127290         (strpbrk): Use NULL.
127291         * lib/strpbrk.h (PARAMS): Remove macro.
127292         (strpbrk): Use ANSI C function declaration.
127293         * lib/strstr.c: Don't include <sys/types.h>.
127294         * lib/strstr.h (PARAMS): Remove macro.
127295         (strstr): Use ANSI C function declarations.
127297 2002-11-14  Karl Berry  <karl@gnu.org>
127299         * config/mkinstalldirs: `do' on separate line, instead of
127300         `for var; do'.
127302 2002-11-06  Bruno Haible  <bruno@clisp.org>
127304         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
127305         * lib/gcd.c (gcd): Likewise.
127307 2002-11-05  Bruno Haible  <bruno@clisp.org>
127309         * lib/gcd.h: New file, from gettext-0.11.5.
127310         * lib/gcd.c: New file, from gettext-0.11.5.
127312 2002-11-05  Bruno Haible  <bruno@clisp.org>
127314         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127315         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127316         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127317         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127319         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
127320         <libintl.h>.
127321         * lib/makepath.c: Include gettext.h instead of <locale.h> and
127322         <libintl.h>.
127324         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
127325         * lib/human.c: Include gettext.h instead of <libintl.h>.
127326         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
127327         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
127328         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
127329         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
127330         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
127331         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
127332         (textdomain): Remove definition.
127333         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
127335         * lib/long-options.c: Remove include of <libintl.h> and definition of
127336         _.
127337         * lib/same.c: Remove include of <libintl.h> and definition of _.
127339 2002-11-04  Owen Taylor  <otaylor@redhat.com>
127341         * lib/config.charset: A few additions for Solaris.
127343 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127345         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
127346         * lib/localcharset.c (locale_charset): Declare as extern "C".
127348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127350         * lib/config.charset: msdos in uk_UA uses CP1125.
127352 2002-11-04  Bruno Haible  <bruno@clisp.org>
127354         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
127355         * lib/strcase.h: New file, from GNU gettext-0.11.5.
127356         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
127357         * lib/strstr.h: New file, from GNU gettext-0.11.5.
127358         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
127360 2002-11-04  Bruno Haible  <bruno@clisp.org>
127362         * lib/localcharset.c (locale_charset): Don't return an empty string.
127364 2002-11-04  Bruno Haible  <bruno@clisp.org>
127366         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
127367         aliases.
127369 2002-11-04  Bruno Haible  <bruno@clisp.org>
127371         * lib/config.charset: Update for newest glibc. Add canonical names
127372         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
127374 2002-11-04  Bruno Haible  <bruno@clisp.org>
127376         * lib/config.charset: Add support for NetBSD.
127378 2002-11-04  Bruno Haible  <bruno@clisp.org>
127380         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127382 2002-11-01  Bruno Haible  <bruno@clisp.org>
127384         * configure.in: Add AC_CONFIG_AUX_DIR call.
127385         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127386         test/Makefile.
127387         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127389 2002-09-28  Karl Berry  <karl@gnu.org>
127391         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127392         installed automake until the next release, since changes have been
127393         made.
127395 2002-09-25  Karl Berry  <karl@gnu.org>
127397         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127398         * lib/getopt*: copy from libc/posix.
127399         * lib/gettext.h: copy from gettext.
127400         * lib/.cppi-disable: add strdup.c, gettext.h.
127402 2002-09-25  Karl Berry  <karl@gnu.org>
127404         * config/srclist.txt: enable gettext.h check.
127405         * config/config.{guess,sub}: update from prep.
127406         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127407                 from automake 1.6.3.
127408         See srclist*.
127410 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127412         * regex.c (PATFETCH): Remove the translating fetch.
127413         (PATFETCH_RAW): Rename to PATFETCH.
127414         (set_image_of_range): New fun.
127415         (SET_RANGE_TABLE_WORK_AREA): Use it.
127416         (regex_compile): Don't translate the pattern chars so eagerly.
127417         Only do it when inserting an `exactn' bytecode or when handling
127418         a char-range.
127419         (mutually_exclusive_p): Avoid empty statement.
127421 2002-07-06  Jim Meyering  <meyering@lucent.com>
127423         * m4/README: Don't mention Makefile.am.in.
127424         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127426 2002-07-01  Jim Meyering  <meyering@lucent.com>
127428         * lib/c-stack.c: Include sys/time.h.
127429         From Volker Borchert.
127431 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127435 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127437         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127438         New macro.  Use it uniformly instead of
127439         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127440         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127441         reported by Vin Shelton.
127443 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127445         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127446         Do not assume SA_SIGINFO behavior.
127447         Bug reported by Jim Meyering on NetBSD 1.5.2.
127449 2002-06-22  Jim Meyering  <meyering@lucent.com>
127451         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127452         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127455         now that configure.ac uses AC_GNU_SOURCE.
127456         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127457         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127459         Update to latest tools.  Suggestions from Paul Eggert.
127460         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127461         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127462         * m4/fnmatch.m4: Likewise.
127463         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127464         to AC_HEADER_STDBOOL
127466 2002-06-22  Jim Meyering  <meyering@lucent.com>
127468         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127469         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127471 2002-06-22  Jim Meyering  <meyering@lucent.com>
127473         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127475         * lib/exitfail.c, exitfail.h: Likewise.
127476         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127478         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127479         of fnmatch.h.
127480         (EXTRA_DIST): Add fnmatch_loop.c.
127481         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127483         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127484         * lib/fnmatch.c: Update from diffutils-2.8.2.
127485         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127486         * lib/fnmatch.h: Remove file.
127488 2002-06-21  Jim Meyering  <meyering@lucent.com>
127490         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127491         * m4/mbrtowc.m4: Likewise.
127493         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127494         * m4/mbswidth.m4: Reflect name change:
127495         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127498         * m4/lib-link.m4: Update from gettext-0.11.2.
127499         * m4/gettext.m4: Likewise.
127501         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127502         From Alfred M. Szmidt.
127504 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127506         * lib/file-type.h: Report an error if neither S_ISREG nor
127507         S_IFREG is defined, instead of using a test specific to glibc
127508         2.2.  This should be safe, since POSIX requires S_ISREG and
127509         Unix Version 7 had S_IFREG.  We don't need to check for
127510         <sys/types.h> since we don't use any symbols that it defines.
127512 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127514         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127515         $@-t, so that each temporary file name is unique and valid in the first
127516         8 characters, for operation under DOS.
127518 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127522 2002-06-15  Jim Meyering  <meyering@lucent.com>
127524         Work even with DJGPP 2.03, which lacks support for symlinks.
127525         From Richard Dawe.
127526         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127527         is defined.
127528         * lib/lchown.c (S_ISLNK): Likewise.
127530 2002-06-15  Jim Meyering  <meyering@lucent.com>
127532         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127533         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127534         have been included before this file.
127536 2002-06-14  Jim Meyering  <meyering@lucent.com>
127538         * lib/file-type.h: Use the version from diffutils-2.8.2.
127539         * lib/file-type.c: Likewise.
127541 2002-06-07  Jim Meyering  <meyering@lucent.com>
127543         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127544         They're needed at least for NetBSD 1.5.2.
127545         ($statxfs_includes): Include those same headers.
127546         ($statxfs_includes): Include sys/vfs.h if available.
127547         ($statxfs_includes): Likewise for sys/statvfs.h.
127548         Check for the following members in both structs statfs and statvfs:
127549         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127551 2002-06-01  Jim Meyering  <meyering@lucent.com>
127553         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127554         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127556 2002-05-28  Jim Meyering  <meyering@lucent.com>
127558         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127559         Reported by Volker Borchert.
127561 2002-05-27  Jim Meyering  <meyering@lucent.com>
127563         Fix a problem seen only on nonconforming systems whereby ls.c's
127564         use of localtime, and then of gettimeofday would cause trouble:
127565         the localtime call used to initialize rpl_gettimeofday's save
127566         mechanism would clobber ls's current local time information so
127567         that in any long listing the first file would always be listed
127568         with date 1970-01-01.  Analysis by Volker Borchert.
127570         * lib/gettimeofday.c (localtime): Undefine.
127571         (rpl_localtime): New function.
127573 2002-05-27  Jim Meyering  <meyering@lucent.com>
127575         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127576         localtime.
127578         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127579         use the replacement function; it wouldn't resolve at link time.
127580         Reported by Volker Borchert.
127582 2002-05-22  Jim Meyering  <meyering@lucent.com>
127584         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127585         file-type.h.
127586         * lib/file-type.h: New file.
127587         * lib/file-type.c (file_type): New file/function.  Extracted from
127588         diffutils.
127590 2002-04-30  Jim Meyering  <meyering@lucent.com>
127592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127594 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127596         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127598 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127600         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127601         Do not check for alloca.h (no longer used) or stdbool.h (was never
127602         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127604 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127606         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127608 2002-04-29  Jim Meyering  <meyering@lucent.com>
127610         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127611         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127612         Use AC_FUNC_STRNLEN here instead.
127614         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127615         With autoconf-2.53a, it's part of AC_PROG_CC.
127617 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127619         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127624         * lib/sig2str.h, lib/sig2str.c: New files.
127625         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127629         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127630         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127631         of 127, since 64 is the largest conceivable number for ancient
127632         nonstandard hosts.
127633         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127635 2002-04-28  Jim Meyering  <meyering@lucent.com>
127637         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127639 2002-04-24  Jim Meyering  <meyering@lucent.com>
127641         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127642         (jm_PREREQ): Use it.
127644         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127645         mach/mach.h fcntl.h.
127646         Check for this function: setlocale.
127648 2002-04-24  Jim Meyering  <meyering@lucent.com>
127650         * lib/gettext.h: New file, from Gettext.
127651         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127652         (libfetish_a_SOURCES): Add gettext.h.
127654 2002-04-16  Jim Meyering  <meyering@lucent.com>
127656         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127657         ut_pid, ut_id, ut_exit.
127659 2002-04-16  Jim Meyering  <meyering@lucent.com>
127661         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127662         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127663         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127665 2002-04-12  Jim Meyering  <meyering@lucent.com>
127667         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127668         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127669         existence of the getmntinfo function.  Needed for Darwin 5.3.
127671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127672         This is necessary at least on Darwin 5.3.
127674         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127675         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127676         strnlen.o in the library, and that makes some versions of ranlib
127677         object.
127679 2002-04-12  Jim Meyering  <meyering@lucent.com>
127681         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127683 2002-04-09  Jim Meyering  <meyering@lucent.com>
127685         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127686         to be more precise.  Rather than saying we're checking whether the
127687         function `works', say what we're testing.
127688         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127689         Reported by Bruno Haible.
127691 2002-03-10  Jim Meyering  <meyering@lucent.com>
127693         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127694         Suggestion from Santiago Vila.
127696 2002-03-08  Jim Meyering  <meyering@lucent.com>
127698         * lib/rename.c: Mention that this wrapper is needed also on
127699         mips-dec-ultrix4.4 systems.
127701 2002-03-02  Jim Meyering  <meyering@lucent.com>
127703         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127704         not HAVE_CLOCK_SETTIME.
127706 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127708         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127709         Check for clock_settime.
127711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127713         * lib/nanosleep.h: Rename to....
127714         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127716         * lib/gettime.c: New file.
127717         * lib/settime.c: New file.
127718         * lib/stime.c: Remove.
127720         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127721         timespec.h.  Remove nanosleep.h.
127723 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127725         * m4/acl.m4: New file.
127726         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127727         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127729 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127731         * lib/acl.c, lib/acl.h: New files.
127732         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127734 2002-02-24  Jim Meyering  <meyering@lucent.com>
127736         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127737         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127738         cause trouble.  Reported by Nelson Beebe.
127740 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127742         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127743         compilers that don't know that xalloc_die never returns.
127745 2002-02-20  Jim Meyering  <meyering@lucent.com>
127747         * lib/getdate.c: Regenerate using bison-1.33.
127749 2002-02-17  Jim Meyering  <meyering@lucent.com>
127751         * config/config.guess (main): Don't use `head -1'; it's no longer
127752         portable. Use `sed 1q' instead.
127754 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127756         * m4/codeset.m4: Upgrade to gettext-0.11.
127757         * m4/gettext.m4: Upgrade to gettext-0.11.
127758         * m4/glibc21.m4: Upgrade to gettext-0.11.
127759         * m4/iconv.m4: Upgrade to gettext-0.11.
127760         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127761         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127762         * m4/lib-ld.m4: New file, from gettext-0.11.
127763         * m4/lib-link.m4: New file, from gettext-0.11.
127764         * m4/lib-prefix.m4: New file, from gettext-0.11.
127765         * m4/progtest.m4: Upgrade to gettext-0.11.
127767 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127769         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127770         (jm_PREREQ): Use it.
127772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127774         * lib/posixver.c, lib/posixver.h: New files.
127775         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127777 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127778             Bruno Haible  <bruno@clisp.org>
127780         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127781         (fwrite_success_callback): New declaration.
127782         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127783         print_unicode_char. Call failure callback instead of error.
127784         (fwrite_success_callback): New function.
127785         (exit_failure_callback): New function.
127786         (fallback_failure_callback): New function.
127787         (print_unicode_char): Call unicode_to_mb.
127789 2002-01-26  Jim Meyering  <meyering@lucent.com>
127791         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127792         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
127794 2002-01-26  Jim Meyering  <meyering@lucent.com>
127796         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
127798 2002-01-22  Paul Eggert  <eggert@twinsun.com>
127800         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
127802 2002-01-22  Jim Meyering  <meyering@lucent.com>
127804         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
127805         Otherwise, some versions of automake would omit the rule that makes
127806         Makefile from Makefile.in.
127808 2002-01-21  Paul Eggert  <eggert@twinsun.com>
127810         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
127811         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127812         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
127813         (memcoll): Set errno to zero if there is no error.
127815         * lib/quotearg.c (quotearg_buffer_restyled):
127816         Fix bug with quoting buffers containing NUL when backslashing escapes.
127817         This bug was exposed by the other changes in this patch.
127818         (quotearg_n_options): New arg ARGSIZE.
127819         All callers changed.
127820         (quoting_options_from_style): New function.
127821         (quotearg_n_style): Use it.
127822         (quotearg_n_style_mem): New function.
127824         * lib/quotearg.h (quotearg_n_style_mem): New function.
127826 2002-01-19  Jim Meyering  <meyering@lucent.com>
127828         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127829         Remove useless quotes: DF_PROG="df".
127830         * m4/strnlen.m4: New file.
127832 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127834         * lib/backupfile.c (ISDIGIT): Comment fix.
127835         * lib/getdate.y (ISDIGIT): Likewise.
127836         * lib/posixtm.c (ISDIGIT, year): Likewise.
127837         * lib/strverscmp.c (ISDIGIT): Likewise.
127838         * lib/userspec.c (ISDIGIT): Likewise.
127840 2002-01-16  Jim Meyering  <meyering@lucent.com>
127842         * lib/getdate.y: Add three semicolons, each just before a closing
127843         brace. Bison (as of version 1.31) no longer papers over that mistake.
127845 2002-01-05  Jim Meyering  <meyering@lucent.com>
127847         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127849 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127851         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127852         not silently exit merely because the output buffer happens to
127853         have nothing pending.
127855 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127857         See the big note in ../ChangeLog.
127858         * lib/human.c (suffixes): Prefer K to k for 1024.
127859         (generate_suffix_backwards): New function.
127860         (human_readable_inexact): Use it.
127861         * lib/xstrtol.c (__xstrtol): If there is no number but there
127862         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127863         Accept 'K' as well as 'k'.
127865 2001-12-15  Jim Meyering  <meyering@lucent.com>
127867         * lib/regex.h (__restrict_arr): Update from libc.
127869         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127870         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127871         (STREQ): Define.
127873 2001-12-14  Jim Meyering  <meyering@lucent.com>
127875         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127876         Suggestion from Bruno Haible.
127878 2001-12-10  Jim Meyering  <meyering@lucent.com>
127880         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127881         xrealloc, Instead, include "xalloc.h".
127882         (initbuffer): Don't cast xmalloc return value to char*.
127883         (readline): Reword comment.
127884         Don't cast xrealloc return value to char*
127885         Return NULL, not 0.
127887 2001-12-09  Jim Meyering  <meyering@lucent.com>
127889         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127890         about `signed and unsigned type in conditional expression'.
127891         * lib/posixtm.c (posix_time_parse): Likewise.
127893         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127895         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127896         to avoid a pedantic warning.
127898         * lib/getstr.c: Don't include assert.h.
127899         (getstr): Remove warning-evoking assertions.
127900         Return -1 if offset parameter is out of bounds.
127901         Change the type of a local from int to size_t.
127903         * lib/strftime.c (my_strftime_localtime_r): Include this function
127904         definition in the `#if ! HAVE_TM_GMTOFF' block.
127906         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127907         Include xalloc.h instead.
127909 2001-12-02  Jim Meyering  <meyering@lucent.com>
127911         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127912         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127913         included.
127915         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127916         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127918 2001-11-30  Akim Demaille  <akim@epita.fr>
127920         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127921         before being defined.
127923 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127925         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127926         First arg is int, not unsigned.
127927         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127928         (SIZE_MAX, UINT_MAX): New macros.
127929         (quotearg_n_options): Abort if N is negative.
127930         Avoid overflow check on hosts where size_t is 64 bits and int
127931         is 32 bits, as overflow is impossible there.
127932         Fix off-by-one typo that caused unnecessary reallocation.
127934 2001-11-27  Jim Meyering  <meyering@lucent.com>
127936         * lib/tempname.c: Merge with version from libc.
127937         * lib/regex.c: Likewise.
127939         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127940         systems for which STDC_HEADERS is 0, it was not included, resulting in
127941         a warning about an integer-to-pointer conversion problem with getenv.
127942         Reported by Volker Borchert.
127944 2001-11-26  Jim Meyering  <meyering@lucent.com>
127946         * lib/gtod.h: Remove file.
127947         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127948         * lib/gettimeofday.c: Don't include gtod.h.
127949         (GTOD_init): Remove function.
127950         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127951         Suggestion from Volker Borchert.
127953 2001-11-23  Jim Meyering  <meyering@lucent.com>
127955         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127956         it.
127957         * lib/hash.c (struct hash_table): Define it here instead.
127959 2001-11-22  Jim Meyering  <meyering@lucent.com>
127961         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127963 2001-11-20  Jim Meyering  <meyering@lucent.com>
127965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127966         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127968 2001-11-19  Jim Meyering  <meyering@lucent.com>
127970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127971         directory.  Use "conftestXXXXXX" as the template.
127972         Suggestion from Paul Eggert.
127974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127975         immediately, so the test doesn't mistakenly hit the max-open-files
127976         limit.
127978 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127980         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127981         (TEMPORARIES): New macro.
127982         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127983         removes an artificial limitation (e.g. HP-UX 10.20, where
127984         TMP_MAX is 17576).
127986 2001-11-18  Jim Meyering  <meyering@lucent.com>
127988         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127990 2001-11-18  Jim Meyering  <meyering@lucent.com>
127992         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127993         on SunOS 4.
127995         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127996         files will be created before anything else.
127998 2001-11-17  Paul Eggert  <eggert@twinsun.com>
128000         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
128001         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
128003 2001-11-17  Jim Meyering  <meyering@lucent.com>
128005         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
128006         Prompted by a report from Bob Proulx.
128008         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
128009         Instead, require UTILS_FUNC_MKSTEMP.
128011 2001-11-17  Jim Meyering  <meyering@lucent.com>
128013         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
128014         Now, that's done as part of AC_FUNC_STRTOD.
128016 2001-11-17  Jim Meyering  <meyering@lucent.com>
128018         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
128019         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
128020         rather than group writable.  Patch by Juan F. Codagnone.
128022         * lib/readtokens.c: Remove explicit declarations of xmalloc and
128023         xrealloc, Instead, include "xalloc.h".
128025         * lib/mountlist.c: Include unlocked-io.h after all system headers.
128026         Remove explicit declarations of xmalloc, xrealloc,
128027         and xstrdup.  Instead, include "xalloc.h".
128029         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
128030         unlocked-io.h.
128031         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
128032         Likewise.
128033         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
128035         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
128036         Reported by Padraig Brady.
128038         * lib/mkstemp.c: #undef mkstemp.
128039         Include config.h.
128040         (rpl_mkstemp): Rename from mkstemp.
128041         Protoize.
128043 2001-11-16  Jim Meyering  <meyering@lucent.com>
128045         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
128046         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
128047         determine the amount of total physical memory, use pstat_getstatic.
128048         HPUX-11 doesn't define _SC_PHYS_PAGES.
128049         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
128050         If sysconf couldn't be used to determine the amount of available
128051         physical memory, use both pstat_getstatic and pstat_getdynamic.
128052         Based on a patch from Bob Proulx.
128054 2001-11-10  Jim Meyering  <meyering@lucent.com>
128056         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
128057         (jm_PREREQ): Use it.
128059 2001-11-09  Jim Meyering  <meyering@lucent.com>
128061         * m4/jm-macros.m4: Require autoconf-2.52f.
128062         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
128063         Use these AC_-prefixed names, not the AM_-prefixed ones.
128065         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
128067 2001-11-05  Jim Meyering  <meyering@lucent.com>
128069         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
128071 2001-11-04  Jim Meyering  <meyering@lucent.com>
128073         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
128074         $DEFS.
128076 2001-11-03  Jim Meyering  <meyering@lucent.com>
128078         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
128079         of AC_DEFUN.
128081         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
128082         know the name of the variable in the macro definition.
128084 2001-11-03  Jim Meyering  <meyering@lucent.com>
128086         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
128087         in argmatch_to_argument call.
128089         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
128090         argument.
128092         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
128093         e.g., a fault due to an attempt to free a NULL pointer.
128095 2001-11-01  Jim Meyering  <meyering@lucent.com>
128097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
128098         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
128100 2001-11-01  Jim Meyering  <meyering@lucent.com>
128102         * lib/dirfd.c, lib/dirfd.h: New files.
128103         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
128105         * lib/hash.c (hash_print) [TESTING]: Clean up.
128107 2001-10-22  Paul Eggert  <eggert@twinsun.com>
128109         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
128110         to avoid a warning if -Wall.
128112 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
128114         * README: New file
128115         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
128116         (per RMS's instructions, this is now the canonical source)
128117         * lgpl/, gpl/: New directories.
128119 2001-10-21  Paul Eggert  <eggert@twinsun.com>
128121         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
128123 2001-10-21  Jim Meyering  <meyering@lucent.com>
128125         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
128126         this code would end up calling gettext even in packages built
128127         with --disable-nls.
128128         * lib/getopt.c (_): Likewise.
128129         * lib/regex.c (_): Likewise.
128131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128133         * m4/error.m4 (jm_PREREQ_ERROR):
128134         Do not invoke AC_CHECK_FUNCS with strerror_r, as
128135         AC_FUNC_STRERROR_R does that.
128136         Check for strerror declaration.
128138         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
128139         are supposed to have them these days.
128140         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
128141         Merge changes from latest Autoconf CVS.
128142         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
128143         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
128144         POSIX decided to standardize on the int flavor of strerror_r.
128146 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128148         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
128149         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
128150         Use strerror_r that is only a macro, even if it is not a function.
128151         (strerror): Check for HAVE_DECL_STRERROR before declaring.
128152         (private_strerror): Use prototypes, not old-style function definition.
128153         (print_errno_message): New function.
128154         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
128155         char*-flavored one.
128156         (error_tail, error, error_at_line): Use it.
128158 2001-10-11  Jim Meyering  <meyering@lucent.com>
128160         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
128161         and quote_n (1, ... to avoid clobbering a buffer.
128163 2001-10-05  Jim Meyering  <meyering@lucent.com>
128165         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
128166         hash-pjw.h.
128167         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
128168         * lib/hash-pjw.h: New file.
128170 2001-09-30  Jim Meyering  <meyering@lucent.com>
128172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
128173         `struct fsstat' has the `f_fstypename' member.
128174         Use that to define FS_TYPE, which is now used to make
128175         the getfsstat link test tighter.
128177 2001-09-30  Jim Meyering  <meyering@lucent.com>
128179         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
128180         Include <sys/ucred.h>, for Apple Darwin.
128181         Include sys/mount.h and sys/fs_types.h only if available.
128182         (FS_TYPE): Define.
128183         (read_filesystem_list): Use FS_TYPE.
128185 2001-09-29  Paul Eggert  <eggert@twinsun.com>
128187         * lib/exclude.c (excluded_filename): 0 -> false, since it's
128188         a boolean context.
128190 2001-09-29  Jim Meyering  <meyering@lucent.com>
128192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128193         [one-argument getmntent function]): Include stdio.h before mntent.h.
128194         SunOS 4.1.x needs it for the declaration of `FILE'.
128195         Patch by Volker Borchert.
128197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128198         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
128199         sys/fs_types.h, and make the link-test for getfsstat guard #include
128200         directives with appropriate #if HAVE_*_H tests so that we can
128201         detect getfsstat on Apple Darwin1.3.7 systems.
128202         Reported by Nelson Beebe.
128203         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
128205 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128207         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128208         #defines strtoimax.  Also treat the other strto* functions
128209         like strtoimax.
128211         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128212         Check for strtoul and strtoumax,
128213         as those declarations are made even in the signed case.
128214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
128215         Likewise, for strtol and strtoimax.
128217 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128219         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128220         #defines strtoimax.  Also treat the other strto* functions
128221         like strtoimax.
128223         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
128224         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
128225         (strtoimax, strtoumax): Do not declare if already defined as a macro.
128227 2001-09-26  Jim Meyering  <meyering@lucent.com>
128229         Most macros in unlocked-io.h had the wrong number of arguments.
128230         * lib/gen-uio: New script.
128231         (USE_UNLOCKED_IO): Define to 1 if not already defined.
128232         * lib/unlocked-io.hin: Remove file.
128233         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
128234         rather than trying to embed it here.
128235         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
128236         Reported by Padraig Brady.
128238 2001-09-25  Volker Borchert  <bt@teknon.de>
128240         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
128241         `result'.
128243 2001-09-24  Jim Meyering  <meyering@lucent.com>
128245         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
128247 2001-09-23  Jim Meyering  <meyering@lucent.com>
128249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
128250         instead of the mere test for existence of mntent.h.  The latter
128251         would get a false-positive on AIX 3.4 systems.
128252         In the outer getmntent if-block, don't die if neither of the getmntent
128253         tests succeeds.  Instead, just fall through and continue with the
128254         remaining tests.
128256 2001-09-23  Jim Meyering  <meyering@lucent.com>
128258         * lib/mountlist.c: Remove useless parentheses in #if directives.
128259         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
128260         the deprecated MOUNTED symbol is no longer defined in mntent.h.
128262 2001-09-22  Jim Meyering  <meyering@lucent.com>
128264         * m4/gettext.m4: New file.  From gettext.
128265         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
128266         * m4/progtest.m4: Likewise
128267         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
128268         * m4/glibc21.m4: Likewise.
128270         * m4/libintl.m4: Remove.  No longer used.
128272 2001-09-22  Jim Meyering  <meyering@lucent.com>
128274         * lib/localcharset.c: Update from latest gettext.
128275         * lib/config.charset: Likewise.
128277 2001-09-20  Jim Meyering  <meyering@lucent.com>
128279         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
128280         strtoimax.
128281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
128282         strtoumax.
128284 2001-09-20  Jim Meyering  <meyering@lucent.com>
128286         * lib/xstrtol.c (strtoimax): Guard declaration with
128287         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
128288         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
128289         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
128290         (strtoumax): Likewise, for completeness (it wasn't necessary).
128292 2001-09-17  Paul Eggert  <eggert@twinsun.com>
128294         * lib/strtoimax.c (HAVE_LONG_LONG):
128295         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
128296         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
128297         to work around bug in IBM C compiler.
128299 2001-09-17  Jim Meyering  <meyering@lucent.com>
128301         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
128302         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
128303         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
128304         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
128305         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
128306         whenever the right hand side need not be expanded by the shell.
128308 2001-09-16  Paul Eggert  <eggert@twinsun.com>
128310         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
128311         library.  It's not correct, as some older glibcs are buggy.
128312         fnmatch wasn't fixed until glibc 2.2.
128314         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
128315         special shell magic here.
128317 2001-09-16  Jim Meyering  <meyering@lucent.com>
128319         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
128320         * m4/jm-macros.m4: Require it.
128322 2001-09-16  Jim Meyering  <meyering@lucent.com>
128324         * lib/mkdir.c: New file.
128326 2001-09-15  Jim Meyering  <meyering@lucent.com>
128328         * m4/jm-macros.m4: Check for help2man.
128330 2001-09-11  Jim Meyering  <meyering@lucent.com>
128332         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
128333         The body, by Paul Eggert, was moved here from configure.in.
128334         * m4/jm-macros.m4: Require UTILS_HOST_OS.
128336 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128338         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
128339         (jm_PREREQ): Use it.
128341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128343         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
128344         Use ssize_t, not int, to store result of readlink.
128345         Check for ssize_t overflow as well as size_t overflow,
128346         as POSIX says the result of readlink is implementation-defined
128347         when ssize_t overflows.
128348         Remove unnecessary cast to char*.
128349         Use free+malloc instead of realloc, as the storage doesn't need
128350         to be preserved and it's clearer and can be more efficient that way.
128351         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
128352         * lib/xreadlink.h (xreadlink): Update prototype.
128354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128356         * lib/xgetcwd.c: Revert some of the previous change; intead,
128357         fix the HAVE_GETCWD_NULL code to behave more like the
128358         !HAVE_GETCWD_NULL code used to.
128360         Include "xalloc.h".
128361         (xgetcwd): Do not return NULL when memory is exhausted; instead,
128362         invoke xalloc_die.
128364 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128366         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
128367         sys/param.h, as pathmax.h includes them.
128369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128371         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
128372         (jm_PREREQ_XGETCWD): New macro.
128374         * m4/getcwd.m4: New file.
128376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128378         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
128379         like the HAVE_GETCWD_NULL code.
128380         Include pathmax.h if not HAVE_GETCWD.
128381         Do not include xalloc.h.
128382         (INITIAL_BUFFER_SIZE): New symbol.
128383         Do not use xmalloc / xrealloc, since the caller is responsible for
128384         handling errors.  Preserve errno around `free' during failure.
128385         Do not overrun buffer when using getwd.
128387 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128389         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128390         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128391         getcwd (NULL, 0).
128393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128395         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128396         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128397         spotted by Jim Meyering.
128399 2001-09-03  Jim Meyering  <meyering@lucent.com>
128401         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128402         failure.
128404 2001-09-02  Jim Meyering  <meyering@lucent.com>
128406         * lib/error.c: Update from GNU libc.
128408 2001-09-01  Jim Meyering  <meyering@lucent.com>
128410         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128411         Used by df.
128413 2001-09-01  Jim Meyering  <meyering@lucent.com>
128415         * lib/xreadlink.c: New file.
128416         * lib/xreadlink.h: New file.
128417         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128418         xreadlink.h.
128420         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128421         doesn't conflict with sparc Solaris 7's definition in
128422         /usr/include/sys/int_types.h.
128424         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128425         files.
128426         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128427         and strncasecmp as r-values.  Unixware didn't have declarations.
128429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128431         * lib/xstrtol.h: Add copyright notice.
128432         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128433         LONGINT_INVALID_SUFFIX_CHAR.
128435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128437         * lib/xstrtol.c (strtoimax): New decl.
128439 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128441         * lib/xgetcwd.c: Don't include pathmax.h.
128442         Include stdlib.h and unistd.h if available.
128443         Include xalloc.h.
128444         (xmalloc, xstrdup, free): Remove decls.
128445         (xgetcwd): Don't assume sizes fit in unsigned.
128446         Check for overflow when computing sizes.
128447         Simplify reallocation code.
128449 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128451         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128452         a directory's st_size can have an arbitrary value, so the old
128453         usage could waste an arbitrary amount of memory.  All uses
128454         changed.
128455         * lib/savedir.h: Update prototype.
128457 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128459         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128461         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128462         old strtoimax.c.
128464         Also, make the following further changes to make this file's
128465         configuration more similar to that of strtol.c:
128466         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128467         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128468         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128469         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128470         changed to signed values.
128472         And make the following changes as well:
128473         Fix copyright notice, as 1999 was missing.
128474         (verify): New macro.
128475         (strtoimax): Check sizes at compile-time, not run-time.
128476         Prefer strtol to strtoll if both work.
128477         (main): Remove; it was not that useful and was a pain to maintain.
128479         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128481 2001-08-31  Jim Meyering  <meyering@lucent.com>
128483         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128484         Use an initial, malloc'd, buffer of length 128 rather than
128485         a statically allocated one of length 1024.
128487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128489         Simplify code, partly by assuming autoconf 2.52 semantics.
128491         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128493         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128494         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128495         All uses removed.
128496         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128497         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128498         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128499         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128500         jm_AC_HEADER_INTTYPES_H.
128501         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128503         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128505         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128506         Quote first arg of AC_DEFUN.
128507         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128508         since they are needed to parse the include file even if we need
128509         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128510         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128511         but with opposite signedness.
128513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128515         Merge 'exclude' changes from tar 1.13.22.
128516         This fixes one or two unlikely storage allocation overflow bugs,
128517         but doesn't change user-visible behavior otherwise.
128519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128522         (jm_PREREQ_EXCLUDE): New macro.
128524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128526         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128527         tm to be declared.
128529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128531         * lib/hash.c: Remove '2001' from copyright notice.
128533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128535         * lib/full-write.h: New file.
128536         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128537         * lib/full-write.c: Correct credits, as cccp.c no longer
128538         exists and anyway it was so heavily changed from the old cccp
128539         code as to be unrecognizable.  Include full-write.h.
128540         (full_write): Return size_t, with short writes meaning failure.
128541         All callers changed.  This fixes a bug with large buffers
128542         on 64-bit hosts.
128543         * lib/utime.c: Include full-write.h.
128545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128547         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128548         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128549         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128550         Include if available.
128551         (<xalloc.h>): Include
128552         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128553         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128554         collide with FNM macros.
128555         (struct patopts): New struct.
128556         (struct exclude): Use it, as exclude patterns now come with options.
128557         (new_exclude): Support above changes.
128558         (new_exclude, add_exclude_file):
128559         Initial size must now be a power of two to simplify overflow checking.
128560         (free_exclude, fnmatch_no_wildcards): New function.
128561         (excluded_filename): No longer requires options arg, as the options
128562         are determined by add_exclude.  Now returns bool, not int.
128563         (excluded_filename, add_exclude):
128564         Add support for the fancy new exclusion options.
128565         (add_exclude, add_exclude_file): Now takes int options arg.
128566         Check for arithmetic overflow when computing sizes.
128567         (add_exclude_file): xrealloc might modify errno, so don't
128568         realloc until after errno might be used.
128570         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128571         New macros.
128572         (free_exclude): New decl.
128573         (add_exclude, add_exclude_file): Now takes int options arg.
128574         (excluded_filename): No longer requires options arg, as the options
128575         are determined by add_exclude.  Now returns bool, not int.
128577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128579         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128581 2001-08-27  Jim Meyering  <meyering@lucent.com>
128583         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128585         * lib/version-etc.c (N_): Remove definition.
128586         Revert most of last change.
128587         Instead, simply don't mark the `Copyright...' string for translation.
128588         Based on advice from Paul Eggert.
128590         * lib/strtoxmax.c: Tweak comment.
128592 2001-08-26  Jim Meyering  <meyering@lucent.com>
128594         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128596         * m4/xstrtoimax.m4: New file.
128597         * m4/xstrtoumax.m4: Add comments explaining why we
128598         AC_REPLACE_FUNCS(strtol).
128600 2001-08-26  Jim Meyering  <meyering@lucent.com>
128602         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128603         of copyright with `%s' so translators don't get an untranslated
128604         message in 2002.
128605         (COPYRIGHT_YEAR): Define.
128606         (version_etc): Use fprintf rather than fputs.
128607         Suggestion from Ulrich Drepper.
128609         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128611         * lib/strtoll.c: New file, from GNU libc.
128612         * lib/xstrtoimax.c: New file.
128614         * lib/xstrtol.h: Add xstrtoimax.
128615         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128616         * lib/strtoimax.c: New file.  Likewise, but first define
128617         STRTOUXMAX_SIGNED.
128619         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128620         ...
128621         * lib/strtoxmax.c: ... then renamed to this.
128623 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128625         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128626         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128627         (jm_AC_TYPE_INTMAX_T): New macro.
128628         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128630         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128632         * m4/longlong.m4: Renamed from ulonglong.m4.
128633         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128634         * m4/uintmax_t.m4: Removed.
128636 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128638         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128639         Port to Solaris 8, where 'sed' requires a space after the 'r'
128640         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128641         Redirect output to $tmp just once.
128643 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128645         * lib/addext.c (<errno.h>): Include.
128646         (errno): Declare if not defined.
128647         (addext): Work correctly when pathconf returns -1 and leaves
128648         errno alone because there is no limit.  Also, work even if
128649         pathconf returns a value greater than SIZE_MAX.
128651 2001-08-12  Jim Meyering  <meyering@lucent.com>
128653         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128654         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128655         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128656         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128657         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128658         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128659         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128660         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128661         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128662         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128663         utime.m4, utimes.m4, xstrtoumax.m4:
128664         Quote the first argument in each use of AC_DEFUN.
128666 2001-08-12  Jim Meyering  <meyering@lucent.com>
128668         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128669         Simply `return getcwd (NULL, 0);'.
128670         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128671         Use 1300 as initial value for length, not PATH_MAX.
128673         * lib/pathmax.h: Clean up cpp syntax.
128675 2001-08-12  Jim Meyering  <meyering@lucent.com>
128677         * lib/gettimeofday.c: New file.
128678         * lib/gtod.h: New file.
128679         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128681 2001-08-05  Jim Meyering  <meyering@lucent.com>
128683         * m4/jm-macros.m4: Require autoconf-2.52.
128685 2001-08-04  Jim Meyering  <meyering@lucent.com>
128687         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128688         stmt, to get in sync with glibc.
128690 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128692         The following changes are from gettext 0.10.39 as maintained by
128693         Bruno Haible.
128695         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128696         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128697         with inverted sense.  All uses changed.
128699         * lib/mbswidth.c: Don't include <limits.h>.
128700         Include <stdlib.h> and <string.h> unconditionally.
128701         (iswcntrl, mbsinit, ISCNTRL): New macros.
128702         (mbsnwidth): Use K&R style function declarations.
128703         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128704         can optimize it when MB_CUR_MAX == 1.
128705         The width of control characters is zero, not 1.
128707 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128709         The following changes are from gettext 0.10.39 as maintained by
128710         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128712         * m4/codeset.m4: Upgrade to serial AM1.
128713         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128714         all uses changed.  Quote first arg of AC_DEFUN.
128715         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128717         * m4/iconv.m4: Upgrade to serial AM2.
128718         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128719         Add --with-libconv-prefix.
128720         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128721         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128722         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128723         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128724         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128726         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128727         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128728         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128729         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128730         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128731         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128732         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128733         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128734         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128736         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128737         string.h any more.
128739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128740         not the default value.
128742         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128744         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128745         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128746         Also check for iswcntrl, used for wcwidth fallback.
128747         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128748         to Autoconf 2.13.
128750 2001-08-03  Jim Meyering  <meyering@lucent.com>
128752         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128753         as it was in the original.  Reported by Paul Eggert.
128755 2001-07-16  Jim Meyering  <meyering@lucent.com>
128757         * m4/gettimeofday.m4: New file.
128758         Prompted by a report from Bernhard Baehr.
128760 2001-07-15  Jim Meyering  <meyering@lucent.com>
128762         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128763         stuff. Now it's in ../Makefile.cfg.
128765 2001-07-15  Jim Meyering  <meyering@lucent.com>
128767         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128768         (BUILT_SOURCES): Add unlocked-io.h.
128769         (io_functions): Define.
128770         (unlocked-io.h): New rule.
128771         (DISTCLEANFILES): Add unlocked-io.h.
128772         (all-local): Depend on unlocked-io.h, to ensure it is created.
128774         * lib/unlocked-io.hin: New file
128776         * lib/regex.c: Update from glibc.
128778 2001-07-05  Jim Meyering  <meyering@lucent.com>
128780         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128781         recommendation.
128782         (libfetish_a_SOURCES): Put all .h files here instead.
128783         Remove a thus-exposed (better checks in automake) duplicate and
128784         two unnecessary .h files.
128786 2001-07-04  Jim Meyering  <meyering@lucent.com>
128788         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128789         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128790         distcheck failure.
128792 2001-07-02  Jim Meyering  <meyering@lucent.com>
128794         The following changes were prompted by suggestions from Bruno Haible.
128796         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
128797         is now generated.
128798         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
128799         definition of EXTRA_DIST.
128800         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
128801         ensure that the generated file is created/updated whenever the list
128802         of $(unlocked_functions) is changed.
128803         (jm-glibc-io.m4): New rule.
128804         (unlocked-io.h): New rule -- currently unused.
128806 2001-06-24  Jim Meyering  <meyering@lucent.com>
128808         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
128809         unmatched right bracket, rather than kludging it with an extra,
128810         falsely-matching quote in a comment.  Patch by Akim Demaille.
128812 2001-06-11  Jim Meyering  <meyering@lucent.com>
128814         * lib/regex.c: Update from GNU libc.
128816 2001-05-27  Jim Meyering  <meyering@lucent.com>
128818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128819         Check for ut_type in struct utmp.
128821 2001-05-27  Jim Meyering  <meyering@lucent.com>
128823         * lib/readutmp.h (UT_TYPE): Define.
128825 2001-05-24  Jim Meyering  <meyering@lucent.com>
128827         * lib/argmatch.c: Include "quote.h".
128828         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128829         quote function.  Reported by Göran Uddeborg.
128831 2001-05-22  Jim Meyering  <meyering@lucent.com>
128833         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128834         now that we use the package-supplied version unconditionally.
128835         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128837 2001-05-21  Jim Meyering  <meyering@lucent.com>
128839         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128840         shell syntax errors.
128842 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128844         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128846 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128848         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128849         Don't bother to check library strftime, since
128850         we'll be using our own my_strftime function anyway.
128851         Define my_strftime instead of strftime.
128853 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128855         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128856         which is not yet declared.
128858 2001-05-15  Jim Meyering  <meyering@lucent.com>
128860         * m4/regex.m4: Use proper quoting so brackets appear in the test
128861         program.
128862         Reported by, and with help from, Bruno Haible.
128864 2001-05-13  Jim Meyering  <meyering@lucent.com>
128866         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128867         undefined.
128869 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128871         dirname code cleanup.  base_name now behaves more compatibly
128872         with POSIX basename when given file names that have trailing
128873         slashes, and similarly for dir_name.  Add new primitives
128874         base_len and dir_len.  Put the directory-name-related decls
128875         into dirname.h.
128877         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128878         * lib/backupfile.c (base_name): Likewise.
128879         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128881         * lib/makepath.c (strip_trailing_slashes): Likewise.
128882         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128883         ISSLASH): Likewise.
128884         * lib/rename.c (strip_trailing_slashes): Likewise.
128885         * lib/same.c (base_name): Likewise.
128886         * lib/stripslash.c (ISSLASH): Likewise.
128888         * lib/addext.c: Include <dirname.h> after size_t is defined.
128889         * lib/backupfile.c: Likewise.
128891         * lib/addext.c (addext): Use base_len to trim redundant
128892         trailing slashes instead of doing it ourselves.
128893         But do not trim the last slash if it is not redundant.
128895         * lib/backupfile.c (find_backup_file_name,
128896         max_backup_version): Use base_len instead of rolling it ourselves.
128897         Handle the case of "" and (on DOS) "C:" correctly.
128899         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128900         needed. Include <string.h>, <dirname.h>.
128901         (base_name): Allow file names ending in slashes, other than names
128902         that are all slashes.  In this case, return the basename followed
128903         by the slashes.  This is more general, and can be used in places
128904         where the original base_name purposely had an assertion failure.
128905         (base_len): New function.
128907         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128908         Do not include <assert.h>; no longer needed.
128909         Include xalloc.h.
128910         (memrchr): Remove decl.
128911         (dir_name_r): Remove.
128912         (dir_len): Renamed from dirlen.  All callers changed.
128913         Rewrite in terms of base_name, for simplicity and consistency.
128914         (dir_name): Never return NULL.  All callers changed.
128915         Do not include <stdlib.h> in test program; no longer needed.
128916         return 0; is fine for test program.
128918         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128919         New macros.
128920         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128922         * lib/path-concat.c (path_concat): Use base_len to compute
128923         base length, not strlen; this means we cannot rely on memcpy
128924         to null-terminate.
128926         * lib/same.c (STREQ): Remove.
128927         (same_name): Handle the case where the basename ends in trailing '/'.
128929         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128930         a slash was stripped.  Do not strip the last slash after a
128931         file system prefix.
128933 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128935         * lib/Makefile.am (libfetish_a_SOURCES):
128936         Add strftime.c, since we now compile it on all hosts.
128938         * lib/strftime.c (my_strftime):
128939         Define to nstrftime if emacs, but only if my_strftime is not defined.
128940         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128941         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128942         Add one more extra argument: a nanoseconds value.
128943         All uses changed.
128944         (ns): New macro.
128945         (my_strftime function): Add %N format.
128946         (emacs_strftimeu): Renamed from emacs_strftime,
128947         with extra ut argument.
128949 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128951         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128953 2001-04-21  Jim Meyering  <meyering@lucent.com>
128955         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128956         doesn't interfere.
128958 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128960         * m4/ftruncate.m4: Check for chsize.
128961         Link with ftruncate.o unconditionally if ftruncate is missing.
128962         This was required when cross-compiling to i586-mingw32msvc.
128964 2001-04-08  Jim Meyering  <meyering@lucent.com>
128966         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128967         recomputed; that's necessary when the offset spans a DST transition.
128968         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128970 2001-04-02  Jim Meyering  <meyering@lucent.com>
128972         * lib/regex.h, regex.c: Update from GNU libc.
128974 2001-03-24  Jim Meyering  <meyering@lucent.com>
128976         * m4/jm-macros.m4: Require autoconf-2.49d.
128978 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128980         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128982 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128984         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128986 2001-03-17  Jim Meyering  <meyering@lucent.com>
128988         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128989         now that the version in autoconf is equivalent.
128990         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128992         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128993         Suggestion from Akim Demaille.
128995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128996         (jm_PREREQ_TEMPNAME): New function.
128998 2001-03-16  Paul Eggert  <eggert@twinsun.com>
129000         * lib/tempname.c (uint64_t): Define to uintmax_t if
129001         not defined, and if UINT64_MAX is not defined.
129002         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
129003         Reported by John David Anglin.
129005 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
129007         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
129008         resolve alias if codeset is empty.
129009         * lib/config.charset (BeOS): Use wildcard syntax.
129011 2001-03-13  Jim Meyering  <meyering@lucent.com>
129013         * lib/path-concat.c (path_concat)
129014         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
129015         concatenating e.g., `C:' and `foo'.
129016         From Bruno Haible.
129018 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129020         * lib/localcharset.c (locale_charset): Don't use
129021         setlocale(LC_CTYPE,NULL). Don't return NULL.
129022         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
129024 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129026         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
129027         support for DOS/DJGPP.
129029 2001-03-01  Paul Eggert  <eggert@twinsun.com>
129031         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
129032         lacks mkstemp.  Compile our own tempname.c if we compile our own
129033         mkstemp.c, as mkstemp relies on tempname.
129035 2001-03-01  Jim Meyering  <meyering@lucent.com>
129037         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
129038         AH_VERBATIM really does output its argument verbatim.
129040 2001-02-28  Paul Eggert  <eggert@twinsun.com>
129042         * lib/Makefile.am (libfetish_a_SOURCES):
129043         Add dup-safer.c, fopen-safer.c.
129044         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
129046         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
129047         * lib/unistd-safer.h: New files.
129049 2001-02-25  Paul Eggert  <eggert@twinsun.com>
129051         The mkstemp replacement is taken from glibc 2.2.2, with some
129052         portability fixes for use outside glibc, as follows:
129054         * lib/tempname.c (struct_stat64): New macro.
129055         (direxists, __gen_tempname): Use it.
129056         This avoids a portability problem with Solaris 8.
129058         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
129059         (<stddef.h>, <stdint.h>, <string.h>):
129060         Include only if STDC_HEADERS || _LIBC.
129061         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
129062         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
129063         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
129064         (__set_errno): Define this macro if <errno.h> doesn't.
129065         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
129066         Define these macros if <stdio.h> doesn't.
129067         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
129068         Define these macros if <sys/stat.h>
129069         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
129070         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
129071         __xstat64): Define if not _LIBC.
129072         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
129073         (__gen_tempname): Invoke gettimeofday only if
129074         HAVE_GETTIMEOFDAY || _LIBC;
129075         otherwise, fall back on plain "time".
129076         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
129078         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
129080         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
129082 2001-02-18  Paul Eggert  <eggert@twinsun.com>
129084         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
129086 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129088         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
129089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
129090         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
129091         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129093 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129095         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
129096         Remove workaround macros for hosts that have mbrtowc but not
129097         mbstate_t, as we now insist on proper declarations for both
129098         before using mbrtowc.
129100 2001-02-17  Jim Meyering  <meyering@lucent.com>
129102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
129103         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
129104         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
129105         UnixWare 7.1.1.
129107         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
129108         rather than AC_CACHE_VAL.
129110 2001-02-17  Jim Meyering  <meyering@lucent.com>
129112         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
129113         around included file name.
129115         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
129117         * lib/strftime.c: Update from GNU libc (the only changes were to
129118         comments).
129120 2001-02-17  Jim Meyering  <meyering@lucent.com>
129122         * lib/regex.c: Update from libc.
129124 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
129126         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
129127         clash.
129129 2001-02-16  Paul Eggert  <eggert@twinsun.com>
129131         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
129132         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
129133         Reported by Mark Hounschell via Paul Eggert.
129135 2001-02-07  Jim Meyering  <meyering@lucent.com>
129137         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
129139 2001-02-05  Jim Meyering  <meyering@lucent.com>
129141         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
129142         it includes the patch required for `large file' support with at least
129143         HP-UX's 10.20 /bin/cc.
129145 2001-02-03  Jim Meyering  <meyering@lucent.com>
129147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
129148         AS_IF, now that it works once again (mysteriously).
129149         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129151 2001-01-30  Jim Meyering  <meyering@lucent.com>
129153         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
129154         * m4/chown.m4: Rename conftestchown to conftest.chown.
129155         * m4/rename.m4: s/conftestdir/conftest.d1/ and
129156         s/conftestdir2/conftest.d2/.
129157         * m4/utimes.m4: s/conftestdata/conftest.data/
129158         Inspired by Pavel Roskin's change in autoconf.
129160 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
129162         * lib/config.charset: Update for FreeBSD 4.2.
129164 2001-01-27  Jim Meyering  <meyering@lucent.com>
129166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
129167         a use of AS_IF.
129168         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129170 2001-01-26  Jim Meyering  <meyering@lucent.com>
129172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
129173         quotearg.c includes it.
129175 2001-01-26  Jim Meyering  <meyering@lucent.com>
129177         * lib/quotearg.c: Include stddef.h.
129178         * lib/quote.c: Include stddef.h.
129179         Reported by Axel Kittenberger.
129181         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
129182         line in double quotes so that it evokes a better diagnostic.
129183         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
129184         Reported by Axel Kittenberger.
129186 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
129188         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
129189         as if it was a `charset'.
129191 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129193         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
129194         has const.
129196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129198         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
129199         to avoid a warning.  Add back 'const' to inptr.
129201 2001-01-20  Jim Meyering  <meyering@lucent.com>
129203         Be sure that headers are checked before used in code compiled
129204         for the type checks.
129205         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
129206         In place of that, invoke jm_CHECK_ALL_TYPES.
129207         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
129208         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
129209         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
129210         The check for ssize_t was mistakenly run before the test for unistd.h.
129212         The configure-time check for stdbool.h was missing.
129213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
129214         (jm_PREREQ_HASH): New function.
129216 2001-01-17  Jim Meyering  <meyering@lucent.com>
129218         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
129219         for autoconf-2.49c.
129220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
129222 2001-01-16  Jim Meyering  <meyering@lucent.com>
129224         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
129225         From Bruno Haible.
129227 2001-01-14  Jim Meyering  <meyering@lucent.com>
129229         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
129230         foo and bar.  Create conftestdir/ in the script, not in the C code.
129231         Remove directories in the script, not in the C code.
129232         Remove conftestdir{,2} before trying to create the directory.
129233         Make the entire configure script fail if the mkdir fails.
129235 2001-01-14  Jim Meyering  <meyering@lucent.com>
129237         * lib/rename.c: New file.  From Volker Borchert.
129238         Include stdlib.h, string.h or strings.h, and xalloc.h.
129239         Use strip_trailing_slashes rather than open-coding it.
129241 2001-01-03  Paul Eggert  <eggert@twinsun.com>
129243         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
129245 2001-01-03  Jim Meyering  <meyering@lucent.com>
129247         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
129248         of local `inptr' to avoid warning with some system declarations of
129249         iconv.
129251 2001-01-02  Volker Borchert  <bt@teknon.de>
129253         * m4/rename.m4: New file.
129254         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
129256 2001-01-01  Jim Meyering  <meyering@lucent.com>
129258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
129259         even on systems with utmpx.h.  It's necessary for the declaration of
129260         utmp's ut_user member.  Reported by Andreas Jaeger.
129262         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
129263         available. They are required for the declarations of getgrgid and
129264         getpwuid resp.
129265         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
129266         Reported by Andreas Jaeger.
129268 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
129270         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
129271         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
129272         so `make install' also works in VPATH builds.
129274 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
129276         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
129277         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
129278         can be used in subdirectories.
129280 2000-12-29  Paul Eggert  <eggert@twinsun.com>
129282         * lib/modechange.c: Do not assume that mode_t uses the
129283         traditional octal encoding.  E.g. "chmod 1 FOO" should set
129284         the other-execute bit of FOO even if S_IXOTH != 1.
129286         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
129287         WOTH, XOTH, ALLM): New macros.
129288         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
129289          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
129290         Use them.
129291         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
129292         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
129293         (mode_compile):
129294         No need to use uintmax_t; unsigned long is long enough.
129295         Don't bother to get suffix since we don't use it.
129297 2000-12-26  Jim Meyering  <meyering@lucent.com>
129299         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
129300         better with autoheader.
129302 2000-12-24  Jim Meyering  <meyering@lucent.com>
129304         * lib/hash.c (is_prime): Return explicit boolean values.
129305         (hash_get_first): Return NULL to appease Irix5.6's 89.
129306         Reported by Nelson Beebe.
129308 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
129310         * lib/localcharset.c (locale_charset): Add support for Win32.
129312 2000-12-18  Paul Eggert  <eggert@twinsun.com>
129314         * lib/physmem.h, lib/physmem.c: New files.
129316         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
129317         (noinst_HEADERS): Add physmem.h.
129319         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
129320         't' for compatibility with Solaris 8 sort.
129322 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
129324         * lib/config.charset: Add support for BeOS.
129326 2000-12-17  Jim Meyering  <meyering@lucent.com>
129328         * m4/dos.m4 (jm_AC_DOS): New file and macro.
129329         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
129331 2000-12-16  Jim Meyering  <meyering@lucent.com>
129333         This bug had a serious impact on chown: `chown N:M FILE' (for integer
129334         N and M) would have treated it like `chown N:N FILE'.
129336         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
129338 2000-12-16  Jim Meyering  <meyering@lucent.com>
129340         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
129341         SHELLS_FILE to a file name that's useful on djgpp systems.
129342         Include stdlib.h.
129343         (ADDITIONAL_DEFAULT_SHELLS): Define.
129344         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
129345         Based mostly on a patch from Prashant TR.
129347 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
129349         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
129350         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
129351         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
129353 2000-12-08  Andreas Schwab  <schwab@suse.de>
129355         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
129356         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
129358 2000-12-07  Jim Meyering  <meyering@lucent.com>
129360         * lib/stripslash.c (ISSLASH): Define.
129361         (strip_trailing_slashes): Use ISSLASH rather than comparing against
129362         `/'.
129363         From Prashant TR.
129365         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
129366         (dir_name_r): Declare this function as static.
129367         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
129368         manifest itself on a name containing a mix of slashes and
129369         backslashes.
129370         Make this function work with names starting with a DOS-style
129371         drive letter and colon prefix.
129372         (dir_name): Append `.' if necessary.
129373         Based mostly on patches from Prashant TR and Eli Zaretskii.
129375         * lib/dirname.h (dir_name_r): Remove prototype.
129377 2000-12-06  Paul Eggert  <eggert@twinsun.com>
129379         * m4/off_t-format.m4: Remove this file.
129380         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129382 2000-12-06  Jim Meyering  <meyering@lucent.com>
129384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129385         replacement strtoull, we may well need the replacement strtoul, too.
129386         Check for declarations of strtoul and strtoull.
129387         Check for strtol.  Mainly as a cue to cause automake to include
129388         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129389         Check for limits.h -- strtol.c needs it.
129391 2000-12-05  Jim Meyering  <meyering@lucent.com>
129393         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129395 2000-12-04  Jim Meyering  <meyering@lucent.com>
129397         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129398         Also include memory.h, stdlib.h, unistd.h if appropriate.
129399         Reported by Andreas Jaeger (conflicting declaration of malloc).
129401 2000-12-02  Jim Meyering  <meyering@lucent.com>
129403         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129404         * m4/jm-macros.m4 (jm_MACROS): require it.
129406 2000-12-02  Jim Meyering  <meyering@lucent.com>
129408         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129410 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129412         * lib/memrchr.c: Include <config.h> before any system include file.
129414 2000-11-30  Jim Meyering  <meyering@lucent.com>
129416         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129418 2000-11-30  Jim Meyering  <meyering@lucent.com>
129420         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129422 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129424         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129426 2000-11-26  Jim Meyering  <meyering@lucent.com>
129428         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129430 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129432         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129433         size of (size_t) -1; it's not portable.
129435 2000-11-17  Jim Meyering  <meyering@lucent.com>
129437         * lib/strstr.c: Update from GNU libc.
129439 2000-11-17  Akim Demaille  <akim@epita.fr>
129441         * lib/obstack.h: Formatting changes.
129442         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129443         prevent type checking.
129444         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129445         cast the value to (void *): assigning a `foo *' to a `void *'
129446         variable is valid.
129447         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129449 2000-11-16  Jim Meyering  <meyering@lucent.com>
129451         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129453 2000-11-11  Jim Meyering  <meyering@lucent.com>
129455         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129457 2000-11-10  Jim Meyering  <meyering@lucent.com>
129459         * lib/obstack.h: Update from GNU libc.
129460         * lib/obstack.c: Likewise.
129462 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129464         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129466 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129468         * lib/getusershell.c (setusershell): Use rewind rather than
129469         fseek/fseeko, to avoid configuration hassles with fseeko.
129470         Don't bother opening SHELLS_FILE if shellstream is NULL;
129471         it's not necessary.
129473 2000-11-05  Jim Meyering  <meyering@lucent.com>
129475         * lib/makepath.h (make_dir): Declare.
129476         * lib/makepath.c (make_dir): Remove `static' attribute.
129477         Tweak a comment.
129479 2000-11-04  Jim Meyering  <meyering@lucent.com>
129481         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129483 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129485         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129486         last one in a bucket, advance to the next bucket.
129488 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129490         * lib/fnmatch.c: Do not comment out all the code if we are using
129491         the GNU C library, because in some cases we are replacing buggy
129492         code in the GNU C library itself.
129494 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129496         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129497         (regex_compile): Catch bogus \(\1\).
129499 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129501         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129502         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129503         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129505 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129507         * lib/error.h, getline.h, modechange.h:
129508         Remove "2000" from Copyright line, as the file hasn't been
129509         changed this year other than in the copyright notice.
129511         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129512         was changed this year.
129514 2000-10-29  Jim Meyering  <meyering@lucent.com>
129516         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129517         renaming.
129518         * m4/ls-mntd-fs.m4: Likewise
129520 2000-10-29  Jim Meyering  <meyering@lucent.com>
129522         * lib/xstat.in: Fix grammar in comment.
129524 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129526         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129527         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129528         doesn't define __restrict_arr.
129530 2000-10-28  Jim Meyering  <meyering@lucent.com>
129532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129533         (jm_PREREQ_MEMCHR): New function.
129535 2000-10-28  Jim Meyering  <meyering@lucent.com>
129537         * lib/memchr.c: Update from libc.
129538         Adjust for portability:
129539         [HAVE_STDLIB_H]: Include stdlib.h.
129540         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129541         Undef __memchr, too.
129542         [!weak_alias]: Define __memchr to memchr.
129544         * lib/regex.c: Update from libc.
129545         * lib/regex.h: Likewise.
129546         * lib/getopt1.c: Likewise.
129547         * lib/memcmp.c: Likewise.
129549         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129550         Avoid using fseek, when possible -- it's broken by design.
129551         Patch by Ulrich Drepper.
129553 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129555         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129556         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129557         Giving in to popular pressure to shut up the compiler with casts.
129559 2000-10-26  Jim Meyering  <meyering@lucent.com>
129561         * lib/strftime.c: Update from libc.
129563 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129565         * regex.c: More `unsigned char' -> `re_char' changes.
129566         Also change several `int' into `re_wchar_t'.
129567         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129568         (PUSH_FAILURE_POINTER): Don't cast any more.
129569         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129570         We want GCC to complain, since this piece of code makes
129571         re_match non-reentrant, which *should* be fixed.
129572         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129573         (EXTEND_BUFFER): Use RETALLOC.
129574         (SET_LIST_BIT): Don't cast.
129575         (re_wchar_t): New type.
129576         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129577         that those two functions will always properly return.
129578         (IMMEDIATE_QUIT_CHECK): Cast to void.
129579         (analyse_first): Use recursion rather than an explicit stack.
129580         (re_compile_fastmap): Can't fail anymore.
129581         (re_search_2): Don't check re_compile_fastmap for failure.
129582         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129583         Now also sets the new value (passed in a new argument).
129584         (re_match_2_internal): Use it.
129585         Also, use a new var `reg' of type size_t when looping through regs
129586         rather than reuse the inappropriate `mcnt'.
129588 2000-10-25  Jim Meyering  <meyering@lucent.com>
129590         * lib/obstack.c: Update from libc.
129592 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129594         * regex.c (regex_compile): Change the way of handling a range from
129595         a char less than 256 to a char not less than 256.
129597 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129599         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129600         NT-Emacs only.
129601         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129602         so that re_search functions only quit when callers expect them to.
129604 2000-10-23  Jim Meyering  <meyering@lucent.com>
129606         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129607         wrong.  That set_locale call must not have any side effects.
129608         From Paul Eggert.
129610 2000-10-22  Jim Meyering  <meyering@lucent.com>
129612         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129613         [CYCLIC]: Remove now-unused definition.
129615         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129616         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129617         Suggestion from Ulrich Drepper.
129619 2000-10-21  Jim Meyering  <meyering@lucent.com>
129621         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129622         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129623         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129625 2000-10-21  Jim Meyering  <meyering@lucent.com>
129627         * lib/dirname.c (memrchr): Declare if necessary.
129628         (dir_name): Remove the restriction that there be no
129629         trailing slashes.  Now, this code skips past them, effectively
129630         ignoring them.
129631         [TEST_DIRNAME] (main): New unit tests.
129633         * lib/memrchr.c: New file from GNU libc.
129634         Undef __memrchr, too.
129635         [!weak_alias]: Define __memrchr to memrchr.
129636         Guard weak_alias use with `#ifdef weak_alias'.
129638 2000-10-21  Jim Meyering  <meyering@lucent.com>
129640         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129641         (dir_name): Use dir_name_r.
129642         * lib/dirname.h (dir_name_r): Declare it.
129644 2000-10-17  Jim Meyering  <meyering@lucent.com>
129646         * lib/quote.h (PARAMS): Define and use.
129647         Reported by Akim Demaille.
129649         * lib/getopt.c: Update from libc.
129651 2000-10-16  Jim Meyering  <meyering@lucent.com>
129653         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129654         setlocale.
129655         From Jan Fedak.
129657 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129659         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129661 2000-09-25  Jim Meyering  <meyering@lucent.com>
129663         * lib/md5.h (rol): Define (from GnuPG).
129665         * lib/sha.c: Give credit (GnuPG) where due.
129666         (M): Use rol rather than open-coding it.
129667         Add a FIXME comment.
129669 2000-09-21  Jim Meyering  <meyering@lucent.com>
129671         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129672         Reported by Michael Stone.
129674 2000-09-20  Jim Meyering  <meyering@lucent.com>
129676         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129677         (noinst_HEADERS): Add sha.h.
129678         Based on code from Scott G. Miller and from GnuPG.
129680 2000-09-18  Jim Meyering  <meyering@lucent.com>
129682         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129683         LIBS. Otherwise, everyone ends up linking with -lelf for some
129684         configurations.
129685         Reported by Mike Stone.
129687 2000-09-15  Jim Meyering  <meyering@lucent.com>
129689         * lib/regex.c: Update from libc.
129691 2000-09-10  Jim Meyering  <meyering@lucent.com>
129693         * lib/getopt.c (_getopt_internal): Update from glibc.
129695 2000-09-09  Jim Meyering  <meyering@lucent.com>
129697         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129698         think it should be used as a general replacement for isascii.
129699         * lib/fnmatch.c: Likewise.
129700         * lib/mbswidth.c: Likewise
129701         * lib/regex.c: Likewise.
129703         Don't use atoi.
129704         * lib/userspec.c: Include sys/param.h and limits.h.
129705         Include xstrtol.h.
129706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129707         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129708         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129709         UID, GID.  Check range.
129711 2000-09-06  Jim Meyering  <meyering@lucent.com>
129713         * lib/getopt.c (_getopt_internal): Update from glibc.
129715 2000-08-30  Jim Meyering  <meyering@lucent.com>
129717         * lib/strftime.c: Merge in changes from GNU libc.
129719 2000-08-26  Jim Meyering  <meyering@lucent.com>
129721         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129722         * m4/fpending.m4: New file.
129724 2000-08-26  Jim Meyering  <meyering@lucent.com>
129726         * lib/closeout.c: Include "__fpending.h".
129727         (close_stdout_status): Return right away if there's nothing to flush.
129729         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129730         * lib/__fpending.c: New file.
129731         * lib/__fpending.h: New file.
129733 2000-08-20  Jim Meyering  <meyering@lucent.com>
129735         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129736         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129737         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129739 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129741         Improve fileutils installation on systems where running
129742         programs (like install) can't be unlinked.
129743         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129744         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129746 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129748         Standardize on "memory exhausted" instead of "Memory exhausted"
129749         or "virtual memory exhausted".
129750         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129751         "virtual memory exhausted".
129752         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129753         our own message.
129754         * lib/userspec.c (parse_user_spec): Likewise.
129755         * lib/bumpalloc.h: comment fix
129756         * lib/same.c, userspec.c: Include xalloc.h.
129758         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129759         not char *const and pointing to a constant array.
129760         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129761         (xrealloc): Comment fix.
129763         * lib/userspec.c (parse_user_spec):
129764         Don't translate a message until just before returning,
129765         to avoid unnecessary translation.
129767 2000-08-07  Jim Meyering  <meyering@lucent.com>
129769         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129770         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129771         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129772         getgroups.c, gethostname.c, getopt.h, group-member.c,
129773         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129774         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129775         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129776         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129777         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129778         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129779         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129780         yesno.c: Back out Copyright date changes for each file with no change
129781         this year.  This eases coordination with other programs using the same
129782         source code modules.  From Paul Eggert.
129784 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129786         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129787         not char, for compatibility with glibc 2.1.3 strftime.c.
129789 2000-08-03  Greg McGary  <greg@mcgary.org>
129791         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129792         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
129793         (EXTEND_BUFFER): Use them.
129795 2000-08-01  Jim Meyering  <meyering@lucent.com>
129797         * lib/dirname.c (ISSLASH): Define.
129798         (BACKSLASH_IS_PATH_SEPARATOR): Define.
129799         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
129800         both `\' and `/' may be use as path separators.
129801         Based on a patch from Prashant TR.
129803 2000-07-31  Paul Eggert  <eggert@twinsun.com>
129805         * lib/quotearg.c (quotearg_n_options): Don't make the initial
129806         slot vector a constant, since it might get modified.
129808 2000-07-31  Jim Meyering  <meyering@lucent.com>
129810         * lib/xmalloc.c: Use `virtual memory exhausted', not
129811         `Memory exhausted'.
129812         * lib/obstack.c (print_and_abort): Likewise.
129814 2000-07-30  Paul Eggert  <eggert@twinsun.com>
129816         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
129817         buffer, so that the caller can always quote one small
129818         component of a "memory exhausted" message in slot 0.
129819         From a suggestion by Jim Meyering.
129821 2000-07-30  Jim Meyering  <meyering@lucent.com>
129823         * lib/makepath.c (make_path): Quote the other instance, too.
129825         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129826         (STATIC_BUF_SIZE): Define.
129827         (quotearg_n_options): Use only statically allocated storage when
129828         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129829         than STATIC_BUF_SIZE.
129831 2000-07-29  Jim Meyering  <meyering@lucent.com>
129833         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129834         * lib/dirname.c (dir_name): Likewise.
129836         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129837         `/'.
129839         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129840         (dir_name): Assert that there are no trailing slashes.
129842 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129844         * lib/mbswidth.h (mbswidth): Add a flags argument.
129845         (mbswidth): New declaration.
129846         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129847         * lib/mbswidth.c (mbswidth): Add a flags argument.
129848         (mbsnwidth): New function.
129850 2000-07-24  Jim Meyering  <meyering@lucent.com>
129852         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129854 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129856         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129860         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129861         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129862         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129863         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129864         invoke multibyte primitives.
129866 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129868         * lib/quotearg.c:
129869         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129870         so that mbstate_t is always defined.
129872         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129873         be 1 in at least one GCC installation, and this configuration
129874         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129875         performance on hosts that have mbrtowc but have only unibyte
129876         locales, but I assume these hosts are rare.
129878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129880         * lib/mbswidth.c (_XOPEN_SOURCE):
129881         Don't define; this causes problems on Solaris 7.
129882         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129884 2000-07-23  Jim Meyering  <meyering@lucent.com>
129886         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129887         too: getgrgid, getpwuid, getuid.
129889 2000-07-23  Jim Meyering  <meyering@lucent.com>
129891         * lib/basename.c (base_name): Add an assertion.
129893 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129895         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129896         shadow its mbsinit function.
129898 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129900         * lib/mbswidth.h: New file.
129901         * lib/mbswidth.c: New file.
129902         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129903         (noinst_HEADERS): Add mbswidth.h.
129905 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129907         * lib/config.charset: Add support for FreeBSD. Improve support for
129908         HP-UX and IRIX 6.
129910 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129912         * m4/mbswidth.m4: New file.
129913         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129915 2000-07-15  Jim Meyering  <meyering@lucent.com>
129917         * lib/makepath.c: Include quote.h.
129918         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129919         corresponding argument in a `quote (...)' call.
129920         Give better diagnostics.
129922         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129923         (noinst_HEADERS): Add quote.h.
129925         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129926         from tar's src/misc.c.
129927         * lib/quote.h: New file.  Prototypes for same.
129929 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129931         From a suggestion by Bruno Haible.
129932         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129933         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129934         to decide whether to define the BeOS workaround macro;
129935         this adjusts to the change to AC_MBSTATE_T.
129937 2000-07-14  Jim Meyering  <meyering@lucent.com>
129939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129940         jm_AC_TYPE_UINTMAX_T.
129942 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129944         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129946         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129947         quotearg_buffer_restyled): Add support for
129948         clocale_quoting_style.  Undo previous change to
129949         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129950         and "{RIGHT QUOTATION MARK}" msgids.
129952 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129954         From a suggestion by Bruno Haible.
129955         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129956         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129957         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129958         and mbstate_t, to a single-part test that simply defines mbstate_t.
129959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129960         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129962 2000-07-10  Jim Meyering  <meyering@lucent.com>
129964         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129966         * m4/gnu-source.m4: Output to confdefs.h directly.
129967         Suggestion from Akim Demaille.
129969 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129971         The old behavior of quoting `like this' doesn't look good with
129972         newer, ISO-style fonts.  See:
129973         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129975         Instead, quote "like this" by default.  Let the translator
129976         tailor the locale-specific quoting behavior by providing
129977         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129979         * lib/quotearg.c (N_): New macro.
129980         (gettext_default): New function.
129981         (quotearg_buffer_restyled): Use
129982         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129983         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129985 2000-07-09  Jim Meyering  <meyering@lucent.com>
129987         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129988         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129990         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129993 2000-07-09  Jim Meyering  <meyering@lucent.com>
129995         * lib/Most files: Update copyright dates to include 2000.
129997 2000-07-08  Jim Meyering  <meyering@lucent.com>
129999         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
130000         if not defined.
130001         (xgethostname): Remove now-unnecessary #ifdef.
130002         Move declaration of `err' into loop where it's used.
130004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130005         and Bruno Haible  <haible@clisp.cons.org>
130007         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
130008         only if the test for an object-type mbstate_t fails.  This
130009         prevents us from mistakenly reporting that mbstate_t is a
130010         system object type after we "#define mbstate_t int" to work
130011         around its lack.
130013 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130014         and Bruno Haible  <haible@clisp.cons.org>
130016         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
130018 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130020         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
130021         to strerror_r.
130022         Include <ctype.h> for use of isalpha.
130024 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130026         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
130027         by allocating a larger buffer. Test the gethostname return value for
130028         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
130029         returns an error and ENAMETOOLONG isn't defined.
130031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130033         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
130034         dimension.
130036 2000-07-04  Jim Meyering  <meyering@lucent.com>
130038         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
130039         of the deprecated AC_CHECKING.
130041 2000-07-04  Jim Meyering  <meyering@lucent.com>
130043         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
130044         Reported by Bruno Haible.
130046 2000-07-04  Jim Meyering  <meyering@lucent.com>
130048         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
130049         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
130050         lacks mbrtowc.
130052 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130054         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
130055         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
130057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130058         and Bruno Haible  <haible@clisp.cons.org>
130060         * lib/quotearg.c (mbrtowc):
130061         Assign to *pwc, and return 1 only if result is nonzero.
130062         (iswprint): Use ISPRINT when substituting our own mbrtowc.
130064 2000-07-03  Jim Meyering  <meyering@lucent.com>
130066         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
130068 2000-07-03  Jim Meyering  <meyering@lucent.com>
130070         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
130071         This is necessary to get a definition of e.g., UTMP_FILE on
130072         HP-UX 10.20.
130073         From Bob Proulx.
130075 2000-07-02  Jim Meyering  <meyering@lucent.com>
130077         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
130079         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
130080         AC_LIBOBJ(function_name).
130081         * m4/chown.m4: Likewise.
130082         * m4/fnmatch.m4: Likewise.
130083         * m4/ftruncate.m4: Likewise.
130084         * m4/getgroups.m4: Likewise.
130085         * m4/getline.m4: Likewise.
130086         * m4/group-member.m4: Likewise.
130087         * m4/jm-macros.m4: Likewise.
130088         * m4/lstat.m4: Likewise.
130089         * m4/malloc.m4: Likewise.
130090         * m4/memcmp.m4: Likewise.
130091         * m4/nanosleep.m4: Likewise.
130092         * m4/putenv.m4: Likewise.
130093         * m4/realloc.m4: Likewise.
130094         * m4/regex.m4: Likewise.
130095         * m4/stat.m4: Likewise.
130096         * m4/strftime.m4: Likewise.
130098 2000-07-02  Jim Meyering  <meyering@lucent.com>
130100         * lib/quotearg.c (mbstate_t): Don't define here.
130102 2000-07-02  Jim Meyering  <meyering@lucent.com>
130104         * lib/nanosleep.c (SIGCONT): Define if not already defined.
130106 2000-07-01  Jim Meyering  <meyering@lucent.com>
130108         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
130110 2000-07-01  Jim Meyering  <meyering@lucent.com>
130112         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
130113         problem.
130115 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
130118         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
130120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130122         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
130123         per change in ../m4/ls-mntd-fs.m4.
130124         (read_filesystem_list): Ignore symbolic links.
130126 2000-06-29  Jim Meyering  <meyering@lucent.com>
130128         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
130129         for declaration of strcmp.
130131         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
130133         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
130134         Avoid warning by casting result to `char *' to remove `const'.
130136 2000-06-28  Jim Meyering  <meyering@lucent.com>
130138         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
130139         included by quotearg.c, for which we perform this test.  From
130140         Bruno Haible.
130142 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130144         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
130145         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
130146         <utmpx.h> exists, put readutmp.o into LIBOBJS.
130148 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130150         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
130152 2000-06-26  Paul Eggert  <eggert@twinsun.com>
130154         savedir now sets errno on failure and invokes xmalloc to get memory.
130155         Fix a couple of other minor bugs while we're at it.
130157         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
130158         (NAMLEN): Remove macro.
130159         (malloc, realloc): Remove decls.
130160         (stpcpy): Likewise.
130161         ("xalloc.h"): Include.
130162         (NAME_SIZE_DEFAULT): New macro.
130163         (savedir): Use xmalloc / xrealloc to allocate memory.
130164         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
130165         Skip "" directory entries.
130166         Use strlen to calculate directory entry length, since the old method
130167         is rarely used these days and isn't worth supporting.
130168         Don't use a pointer after freeing it.
130169         Check for integer overflow when calculating allocation size.
130170         Use memcpy to copy entries, instead of stpcpy.
130171         Set errno properly when returning NULL.
130172         Check for readdir error.
130174 2000-06-26  Jim Meyering  <meyering@lucent.com>
130176         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
130178 2000-06-25  Jim Meyering  <meyering@lucent.com>
130180         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
130181         Linux header bug when _XOPEN_SOURCE is defined to 500.
130183 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130185         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
130186         deficiency.
130188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130190         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
130191         Include xalloc.h.
130192         Don't include <stdlib.h>.  Don't declare malloc, realloc.
130194 2000-06-24  Jim Meyering  <meyering@lucent.com>
130196         * m4/strerror_r.m4: Revive this file -- to try out an experimental
130197         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
130198         for which strerror does return char*, but which lacks a conveniently
130199         accessible declaration of the function.  If the compile-test says
130200         strerror_r doesn't work, then resort to a `run'-test that works on
130201         BeOS and segfaults on DEC Unix.
130203 2000-06-24  Jim Meyering  <meyering@lucent.com>
130205         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
130207 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130209         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
130210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
130212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130214         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
130215         (mbrtowc, mbstate_t): Define substitutes if
130216         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
130217         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
130218         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
130220 2000-06-23  Jim Meyering  <meyering@lucent.com>
130222         * m4/afs.m4: Add missing AC_MSG_RESULT.
130223         Reported by Bruno Haible.
130225         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
130226         Suggestion from Bruno Haible.
130228 2000-06-23  Jim Meyering  <meyering@lucent.com>
130230         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
130232 2000-06-21  Jim Meyering  <meyering@lucent.com>
130234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
130236 2000-06-21  Jim Meyering  <meyering@lucent.com>
130238         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
130239         (noinst_HEADERS): Add getstr.h.
130241         * lib/getline.c (getstr): Move into a separate file.
130242         * lib/getstr.c (getstr): New file, extracted from getline.c, with
130243         the following changes: new parameter, delim2; both delim[12]
130244         parameters have type `int', not `char'.  The latter would lose
130245         with 8-bit delimiters.
130246         * lib/getstr.h: New file.
130248 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130250         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
130251         than 1024, return a memory chunk of least possible size, instead
130252         of size PATH_MAX + 2. In the loop, increment the size proportionally.
130253         Use free/xmalloc instead of xrealloc to avoid copying for very long
130254         paths.
130256 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130258         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
130259         the empty string.
130261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130263         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
130264         address, not strdup.  Include <stdlib.h> and don't declare free().
130266 2000-06-19  Jim Meyering  <meyering@lucent.com>
130268         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
130270 2000-06-18  Jim Meyering  <meyering@lucent.com>
130272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
130274         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
130275         `checking whether...' message to be consistent with that of the
130276         lstat test.
130278 2000-06-18  Jim Meyering  <meyering@lucent.com>
130280         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
130281         Besides, these days every porting target provides a mkdir function.
130283         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
130284         needed. (this snippet comes from src/system.h).
130286 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
130288         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
130290 2000-06-15  Paul Eggert  <eggert@twinsun.com>
130292         * lib/human.c (adjust_value): New function.
130293         (human_readable_inexact): Apply rounding style even when
130294         printing approximate values.
130296 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130298         * lib/human.c (human_readable_inexact): Allow an input block
130299         size that is not a multiple of the output block size, and vice versa.
130300         Reported by Piergiorgio Sartor.
130302 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130304         * lib/getdate.y (get_date): Apply relative times after time
130305         zone indicator, not before.  Reported by Todd A. Jacobs.
130307 2000-06-13  Jim Meyering  <meyering@lucent.com>
130309         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
130311         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
130313 2000-06-12  Paul Eggert  <eggert@twinsun.com>
130315         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
130317 2000-06-12  Jim Meyering  <meyering@lucent.com>
130319         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
130320         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
130321         optional argument.
130322         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
130323         the optional argument, `lib'.
130325 2000-06-08  Jim Meyering  <meyering@lucent.com>
130327         * m4/largefile.m4: Remove file (now that it's part of autoconf).
130329 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130331         Rewrite largefile configuration so that we don't need to run
130332         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
130333         AC_CANONICAL_HOST in configure.in -- jmm]
130335         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
130336         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
130337         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
130338         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
130339         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
130340         All uses changed.
130341         Instead of inspecting the output of getconf, try to compile the
130342         test program without and with the macro definition.
130343         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
130344         for getconf.  Instead, check for the needed flags by compiling
130345         test programs.
130347 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130349         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
130351 2000-06-04  Jim Meyering  <meyering@lucent.com>
130353         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
130354         SunOS 4.1.4 for which gid_t is an unsigned type.
130356 2000-06-03  Jim Meyering  <meyering@lucent.com>
130358         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
130359         now that autoconf requires that.
130361         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
130362         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
130363         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
130365 2000-06-03  Jim Meyering  <meyering@lucent.com>
130367         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
130369 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130371         * m4/glibc21.m4: New file.
130372         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
130374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130376         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
130377         newer, don't install charset.alias.
130378         * lib/config.charset: Change the Linux/glibc rules so they become empty
130379         on glibc-2.1 or newer.
130381 2000-06-02  Jim Meyering  <meyering@lucent.com>
130383         * lib/mountlist.c: Back out last change.  Instead, do this...
130384         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130385         me_dummy member using the same `ignore'-testing code.
130386         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130387         fs_type strings.
130388         From Mark D. Roth.
130390 2000-05-29  Jim Meyering  <meyering@lucent.com>
130392         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130393         mounts with the `ignore' attribute.  Based on a patch from
130394         Mark D. Roth.
130396 2000-05-28  Jim Meyering  <meyering@lucent.com>
130398         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130399         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130400         * m4/stat.m4: Likewise.
130401         * m4/lstat.m4: Likewise.
130402         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130404         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130405         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130407 2000-05-26  Jim Meyering  <meyering@lucent.com>
130409         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130411 2000-05-24  Jim Meyering  <meyering@lucent.com>
130413         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130414         autoconf requires that.
130415         * m4/lib-check.m4: Likewise.
130416         * m4/jm-macros.m4: Likewise.
130417         * m4/strftime.m4: Likewise.
130419         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130420         AC_CHECK_DECLS, now that autoconf requires that.
130422 2000-05-22  Jim Meyering  <meyering@lucent.com>
130424         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130425         * m4/lstat.m4: Likewise.
130427 2000-05-22  Jim Meyering  <meyering@lucent.com>
130429         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130431 2000-05-20  Jim Meyering  <meyering@lucent.com>
130433         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130434         (jm_PREREQ): Use it.
130436 2000-05-18  Jim Meyering  <meyering@lucent.com>
130438         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130439         back, too, since it may have been modified by allocate_entry.
130440         (hash_delete): Rewrite to use neither the assignment operator
130441         nor the comma operator in an if-expression.
130443 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130445         * lib/closeout.c:
130446         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130447         Remove; no longer needed.
130448         "quotearg.h": Add include.
130449         (file_name): Do not bother to explicitly initialize to NULL; it's less
130450         efficient on some hosts.
130451         (close_stdout_status): Remove test as to whether stdout was already
130452         closed; it breaks for the case "echo x | sort >&-".
130453         Quote file name colons.
130454         Do not assume that _("write error") lacks format strings.
130456 2000-05-15  Jim Meyering  <meyering@lucent.com>
130458         * lib/version-etc.c (version_etc_copyright): Update the copyright
130459         string used in all --version output.
130461 2000-05-14  Jim Meyering  <meyering@lucent.com>
130463         * lib/closeout.c (close_stdout_set_file_name): New function.
130464         (close_stdout_status): Use new file-scoped global.
130465         Return right away if fstat says the stdout file descriptor is invalid.
130466         * lib/closeout.h (close_stdout_set_file_name): Declare.
130468 2000-05-10  Jim Meyering  <meyering@lucent.com>
130470         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130471         (close_stdout_set_status): New function.
130472         * lib/closeout.h (close_stdout_set_status): Declare.
130474 2000-05-09  Jim Meyering  <meyering@lucent.com>
130476         * m4/gettext.m4: Rename this...
130477         * m4/libintl.m4: ...to this.
130479 2000-05-08  Jim Meyering  <meyering@lucent.com>
130481         * lib/long-options.c: Don't include closeout.h.
130482         (parse_long_options): Don't call close_stdout for --version.
130484 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130487         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130488         2.1.3 bug.  This avoids a clash when files like regex.c define
130489         _GNU_SOURCE.
130491 2000-05-06  Jim Meyering  <meyering@lucent.com>
130493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130494         (AC_REPLACE_FUNCS): Add strnlen.
130496         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130497         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130500         AC_SEARCH_LIBS call for nanosleep.
130501         (LIB_NANOSLEEP): Set and AC_SUBST.
130503 2000-05-06  Jim Meyering  <meyering@lucent.com>
130505         * lib/strnlen.c: Undefine __strnlen and strnlen.
130506         [!weak_alias]: Define __strnlen to strnlen.
130508         * lib/atexit.c: New file, from libiberty.
130510 2000-05-06  Jim Meyering  <meyering@lucent.com>
130512         * lib/closeout.c (close_stdout_status): Also check for errors on the
130513         stderr stream.
130515 2000-05-05  Jim Meyering  <meyering@lucent.com>
130517         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130518         AC_SEARCH_LIBS call for clock_gettime.
130519         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130521         * m4/search-libs.m4: Update from autoconf.
130523         su doesn't work on Solaris 2.6.
130524         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130525         <shadow.h>.  Reported by Dragos Harabor.
130527 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130529         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130530         memcpy instead of xmalloc, xrealloc, path_concat.
130531         (locale_charset): Treat empty environment variables as absent.
130532         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130534 2000-05-04  Jim Meyering  <meyering@lucent.com>
130536         * lib/getopt.c: Update from glibc.
130537         * lib/obstack.c: Likewise.
130538         * lib/obstack.h: Likewise.
130539         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130540         file
130542         * lib/regex.h: Likewise.
130543         * lib/strndup.c: Likewise.
130544         * lib/strnlen.c: New file, from glibc.
130546 2000-05-03  Jim Meyering  <meyering@lucent.com>
130548         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130550 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130552         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130553         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130554         compile-time test, rather than inspecting host and OS, to
130555         decide whether to define _LARGEFILE_SOURCE.
130557 2000-05-01  Jim Meyering  <meyering@lucent.com>
130559         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130562         Based on a patch from Bruno Haible.
130564 2000-05-01  Jim Meyering  <meyering@lucent.com>
130566         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130568 2000-04-29  Jim Meyering  <meyering@lucent.com>
130570         * lib/path-concat.c: Declare strdup only if it's not defined.
130571         * lib/canon-host.c: Likewise.
130573 2000-04-28  Jim Meyering  <meyering@lucent.com>
130575         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130576         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130577         is included first, then limits.h is included by locale.h by libintl.h.
130578         From John David Anglin.
130580 2000-04-25  Jim Meyering  <meyering@lucent.com>
130582         * lib/makepath.c (S_IRWXUGO): Define.
130583         (make_path): Always perform explicit chmod if MODE specifies any
130584         of the `special' permission bits.  Prompted by a bug report against
130585         install from Mate Wierdl and Joost van Baal.
130587 2000-04-18  Jim Meyering  <meyering@lucent.com>
130589         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130590         (jm_PREREQ): Use it.
130592 2000-04-18  Jim Meyering  <meyering@lucent.com>
130594         * lib/README: New file.
130596         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130597         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130599 2000-04-17  Jim Meyering  <meyering@lucent.com>
130601         Get it right :-)
130602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130603         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130604         Suggestion from Akim Demaille.
130606 2000-04-17  Jim Meyering  <meyering@lucent.com>
130608         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130609         the definition of it to rpl_strftime also defined-away the system's
130610         declaration.
130612 2000-04-15  Jim Meyering  <meyering@lucent.com>
130614         Use `C' to denote so-called `contiguous' files, the same way
130615         that tar does.
130616         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130617         (ftypelet): Use S_ISCTG.
130618         From Michael Deutschmann.
130620 2000-04-14  Jim Meyering  <meyering@lucent.com>
130622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130623         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130624         clobbered.
130626 2000-04-14  Jim Meyering  <meyering@lucent.com>
130628         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130630 2000-04-13  Jim Meyering  <meyering@lucent.com>
130632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130633         AH_VERBATIM to insert required #ifndef into config.h.in.
130634         Suggestion from Akim Demaille.
130636 2000-04-12  Jim Meyering  <meyering@lucent.com>
130638         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130639         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130640         Christian Krackowizer.
130642         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130643         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130644         (AC_SYS_LARGEFILE): Require.
130645         (AM_C_PROTOTYPES): Require.
130647 2000-04-08  Jim Meyering  <meyering@lucent.com>
130649         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130650         names don't conflict.  Reported by Eli Zaretskii.
130652 2000-04-07  Jim Meyering  <meyering@lucent.com>
130654         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130655         sys/types.h, to work around system header problems on AIX 3.2.5.
130656         From Bruno Haible.
130658 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130660         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130661         bug.  Deal with the different error behavior of Irix iconv.
130663 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130666         IRIX if the installer said otherwise.
130668 2000-04-05  Jim Meyering  <meyering@lucent.com>
130670         Portability tweaks required for ultrix4.3.
130671         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130672         (jm_CHECK_DECLS): Add getutent to the list of functions.
130673         (_jm_DECL_HEADERS): Add utmpx.h.
130674         From John David Anglin.
130676         * m4/strftime.m4: Back out the 2000-04-02 change.
130677         Instead of that change, simply undefine putenv in the test program.
130679 2000-04-05  Jim Meyering  <meyering@lucent.com>
130681         Portability tweaks required for ultrix4.3.
130682         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130683         getutent.
130684         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130685         * lib/canon-host.c: Declare strdup.
130686         * lib/path-concat.c: Likewise.
130687         From John David Anglin.
130689 2000-04-04  Jim Meyering  <meyering@lucent.com>
130691         Be more DOS 8.3-friendly.
130692         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130693         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130694         * lib/Makefile.am: Reflect renaming.
130695         Reported by Eli Zaretskii.
130697         Use a temporary file name that won't clash with `charset.alias'
130698         in the DOS 8.3 name space.
130699         * lib/Makefile.am (charset_tmp): Define.
130700         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130701         (uninstall-local): Likewise.
130702         Reported by Eli Zaretskii.
130704 2000-04-03  Jim Meyering  <meyering@lucent.com>
130706         * m4/gettext.m4: Fix typo in comment.
130708         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130709         textutils/configure.in).  Suggestion from Paul Eggert.
130710         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130712 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130714         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130715         variable in the shell rather than using putenv, which isn't
130716         portable.  This avoids the configure-time inter-test dependency
130717         on the potentially-renamed putenv function.
130719 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130722         before checking struct stat.st_blksize, so that
130723         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130725 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130727         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130728         since strftime.c uses HAVE_STRFTIME to decide whether to use
130729         the underlying strftime.
130731 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130733         * lib/time/strftime.c (my_strftime): Make sure we call the system
130734         strftime, not ourselves, when invoking the underlying strftime.
130736 2000-03-24  Jim Meyering  <meyering@lucent.com>
130738         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130739         (charset_alias): Define.
130740         (install-exec-local): Factor out common code.
130741         (uninstall-local): Split lines longer than 80.
130742         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130743         (SUFFIXES): Define.
130744         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130745         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130747 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130749         * lib/config.charset: Output a line containing "Packages using this
130750         file".
130751         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130752         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130753         ref-del.sed): New rules.
130755 2000-03-17  Jim Meyering  <meyering@lucent.com>
130757         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130758         Otherwise, include <strings.h>
130760 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130762         * lib/unicodeio.c (utf8_wctomb): New function.
130763         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130764         format instead of in UCS-4 with platform dependent endianness.
130766 2000-03-10  Jim Meyering  <meyering@lucent.com>
130768         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130769         From Marco Franzen.
130771 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130773         * lib/savedir.c (savedir): Work even if directory size is
130774         negative; this can happen with some screwy NFS configurations.
130776 2000-03-06  Jim Meyering  <meyering@lucent.com>
130778         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130779         if it's NULL (because we ran out of memory).  From Bruno Haible.
130781 2000-03-05  Jim Meyering  <meyering@lucent.com>
130783         * lib/localcharset.c ("path-concat.h"): Include.
130784         (get_charset_aliases): Use path_concat instead of ANSI string
130785         concatenation.
130787         * lib/unicodeio.h (PARAMS): Define.
130788         Use it to guard prototype.
130790 2000-03-04  Jim Meyering  <meyering@lucent.com>
130792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
130793         for lib/localcharset.c.
130795 2000-03-04  Jim Meyering  <meyering@lucent.com>
130797         * lib/Makefile.am (install-exec-local): Create $(libdir) before
130798         installing into it.
130799         (uninstall-local): Uncomment this rule so `make distcheck' works
130800         once again.
130802         * lib/unicodeio.c (<errno.h>): Include it.
130803         (errno): Declare if not defined.
130805         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
130807         * lib/config.charset: New version, incorporating remarks from a linux
130808         i18n mailing list.  From Bruno Haible.
130810 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
130812         * m4/codeset.m4: New file.
130813         * m4/iconv.m4: New file.
130814         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
130816 2000-03-03  Jim Meyering  <meyering@lucent.com>
130818         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130820 2000-03-02  Jim Meyering  <meyering@lucent.com>
130822         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130823         the messages come out on separate lines.
130825         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130826         rather than jm_CHECK_DECLARATIONS.
130827         * m4/decl.m4: Remove now-unused file.
130829         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130830         geteuid.
130832 2000-03-02  Jim Meyering  <meyering@lucent.com>
130834         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130836 2000-03-01  Jim Meyering  <meyering@lucent.com>
130838         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130839         * lib/unicodeio.c: Likewise.
130841 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130843         * lib/config.charset: New file.
130844         * lib/localcharset.c: New file.
130845         * lib/unicodeio.h, lib/unicodeio.c: New files.
130846         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130847         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130848         (noinst_HEADERS): Add unicodeio.h.
130849         (all-local, install-exec-local, charset.alias): New targets.
130851 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130853         * lib/quotearg.c (ALERT_CHAR): New macro.
130854         (quotearg_buffer_restyled): Use it.
130856 2000-02-27  Jim Meyering  <meyering@lucent.com>
130858         * m4/check-decl.m4: Add getenv to the list.
130860 2000-02-27  Jim Meyering  <meyering@lucent.com>
130862         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130863         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130865         * lib/backupfile.c: Guard inclusion of stdlib.h with
130866         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130867         Declare malloc if needed.
130869         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130870         `#ifndef HAVE_DECL..'
130871         now that autoconf always defines the HAVE_DECL_ symbols.
130872         * lib/human.c: Likewise.
130873         * lib/same.c: Likewise.
130874         * lib/strtoumax.c: Likewise.
130876         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130877         declaration check was not run.
130878         * lib/hash.c: Likewise.
130879         * lib/human.c: Likewise.
130880         * lib/same.c: Likewise.
130881         * lib/strtoumax.c: Likewise.
130883         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130884         `.', then first look up the entire `.'-containing string as a login
130885         name.
130887 2000-02-23  Jim Meyering  <meyering@lucent.com>
130889         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130890         in place of my hack.
130892 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130894         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130895         (textint): New typedef.
130896         (parser_control): Member year changed from int to textint.
130897         All uses changed.
130898         (YYSTYPE): Removed; replaced by %union with int and textint members.
130899         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130900         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130901         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130902         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130903         (date, number, to_year): Use width of number in digits, not its value,
130904         to determine whether it's a 2-digit year, or a 2-digit time.
130905         (yylex): Store number of digits of numeric tokens.
130906         Reported by John Kendall.
130908         (parser_control): Changed from struct parser_control to typedef (for
130909         consistency).  All uses changed.
130911         (tID): Removed; not used.
130912         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130914 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130916         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130917         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130919 2000-02-12  Jim Meyering  <meyering@lucent.com>
130921         * lib/userspec.c (ISDIGIT): Define it.
130922         (isdigit): Remove definition.
130923         (is_number): Use ISDIGIT, not isdigit.
130924         <libintl.h>: Include.
130925         (_ and N_): Define.
130926         (parse_user_spec): Mark translatable strings.
130928 2000-02-10  Jim Meyering  <meyering@lucent.com>
130930         With these changes, nanosleep.[ch] are finally enough like the other
130931         lib/* replacement files to compile on a few more losing systems.
130933         * lib/nanosleep.h: Don't include config.h.
130934         Remove prototype from declaration of nanosleep.
130935         (PARAMS): Remove now-unneeded definition.
130936         * lib/nanosleep.c: #undef nanosleep.
130937         (rpl_nanosleep): Rename from nanosleep.
130939 2000-02-10  Jim Meyering  <meyering@lucent.com>
130941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130942         gnu_nanosleep to rpl_nanosleep.
130944 2000-02-09  Jim Meyering  <meyering@lucent.com>
130946         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130947         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130949 2000-02-08  Akim Demaille  <akim@epita.fr>
130951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130952         `[' and `]' and remove uses of `changequote'.
130953         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130954         (AC_SYS_LARGEFILE): Likewise.
130955         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130956         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130957         of changequote.
130958         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130959         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130960         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130961         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130963 2000-02-05  Jim Meyering  <meyering@lucent.com>
130965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130966         Remove explicit use of AC_HEADER_TIME.  It is required by
130967         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130968         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130969         in autoconf whereby the expansion of the latter ended up preceding
130970         the expansion of its prerequisite, AC_HEADER_TIME.
130971         Reported by Volker Borchert.
130973 2000-02-03  Jim Meyering  <meyering@lucent.com>
130975         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130977 2000-02-03  Jim Meyering  <meyering@lucent.com>
130979         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130980         rather than with `#if HAVE_UTMPNAME'.
130982 2000-02-02  Jim Meyering  <meyering@lucent.com>
130984         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130985         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130986         Reported by Eli Zaretskii.
130988 2000-02-01  Jim Meyering  <meyering@lucent.com>
130990         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130992 2000-01-31  Jim Meyering  <meyering@lucent.com>
130994         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130995         functions.  Add the time.h and sys/time.h headers along with the
130996         AC_REQUIRE'ment of AC_HEADER_TIME.
130998 2000-01-31  Jim Meyering  <meyering@lucent.com>
131000         * lib/nanosleep.h (nanosleep): Guard declaration with
131001         `#if ! HAVE_DECL_NANOSLEEP'.
131002         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
131003         the declaration in that vendor's sys/timers.h.
131004         Reported by Christian Krackowizer.
131006         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
131007         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
131008         (ISPRINT): Likewise.
131009         Reported by Tom Tromey.
131011 2000-01-30  Jim Meyering  <meyering@lucent.com>
131013         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
131015         * m4/prereq.m4 (utmp_includes): Define.
131016         Check for ut_user and ut_name members in both struct utmpx
131017         and struct utmp.
131019 2000-01-30  Jim Meyering  <meyering@lucent.com>
131021         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
131022         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
131023         header files where only utmpx.ut_user is declared.
131025         * lib/readutmp.h (UT_USER): Define.
131027 2000-01-29  Jim Meyering  <meyering@lucent.com>
131029         * m4/lib-check.m4: New file containing library-related checks from
131030         fileutils and sh-utils (textutils had none).
131032 2000-01-28  Jim Meyering  <meyering@lucent.com>
131034         * m4/perl.m4: Change format of warning message to look more like that
131035         from the missing script.  Suggestion from François Pinard.
131037 2000-01-25  Jim Meyering  <meyering@lucent.com>
131039         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
131040         well as time.h in the compile check.
131041         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
131042         Fix typo in cross-compiling case: s/yes/no/.
131044 2000-01-23  Jim Meyering  <meyering@lucent.com>
131046         * m4/jm-macros.m4: Move df-related tests here from
131047         fileutils/configure.in
131049         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
131050         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
131052         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
131053         s/space/ac_fsusage_space/.
131054         (jm_FILE_SYSTEM_USAGE): Take two parameters.
131056         * m4/ftruncate.m4: New file (derived from part of
131057         fileutils/configure.in).
131058         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
131059         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
131061         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
131062         AC_SUBST these here, rather than just in sh-util/configure.in, so
131063         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
131064         all the same.
131065         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
131066         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
131067         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
131068         (AC_SUBST(POW_LIBM)): Likewise.
131069         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
131071 2000-01-23  Jim Meyering  <meyering@lucent.com>
131073         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
131074         obstack.c.
131076 2000-01-22  Jim Meyering  <meyering@lucent.com>
131078         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
131080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
131082         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
131083         configure.in
131084         (AC_CHECK_HEADERS): Likewise for sh-utils.
131085         (AC_CHECK_HEADERS): Likewise for textutils.
131086         Merge the three lists of headers.
131088         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
131089         from fileutils' configure.in.
131091         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
131092         code. Moved tests into their own function (_jm_DECL_HEADERS) in
131093         check-decl.m4.
131095         * m4/check-decl.m4: Use #if rather than #ifdef.
131096         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
131097         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
131098         (_jm_DECL_HEADERS): Define new function.
131099         (jm_CHECK_DECLARATIONS): Require it.
131101 2000-01-22  Jim Meyering  <meyering@lucent.com>
131103         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
131104         [! HAVE_DECL_STRTOULL]: Declare strtoull.
131105         Required for some AIX systems.  Reported by Christian Krackowizer.
131106         [TESTING] (main): New function.
131108         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
131109         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
131110         letters.
131112         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
131113         iswprint.
131115         * lib/strverscmp.c (ISDIGIT): Define.
131116         (strverscmp): Use ISDIGIT, not isdigit.
131118 2000-01-19  Jim Meyering  <meyering@lucent.com>
131120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
131121         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
131122         defines `struct timespec' in <sys/time.h>
131124         * m4/c-bs-a.m4: Remove uses of changequote altogether.
131125         Thanks to Akim for explaining.
131127 2000-01-17  Paul Eggert  <eggert@twinsun.com>
131129         * lib/nanosleep.c (nanosleep):
131130         Don't use SA_INTERRUPT to decide whether to call sigaction, as
131131         POSIX.1 doesn't require SA_INTERRUPT and some systems
131132         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
131133         it's been part of POSIX.1 since day 1 (in 1988).
131135 2000-01-17  Jim Meyering  <meyering@lucent.com>
131137         * lib/interlock: Remove unused file.  Reported by François Pinard.
131139 2000-01-16  Paul Eggert  <eggert@twinsun.com>
131141         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
131142         alert, backslash, formfeed, and vertical tab unnecessarily in
131143         shell quoting style.
131145 2000-01-16  Jim Meyering  <meyering@lucent.com>
131147         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
131148         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
131149         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
131150         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
131152 2000-01-16  Jim Meyering  <meyering@lucent.com>
131154         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
131155         because the latter didn't work.
131157 2000-01-15  Jim Meyering  <meyering@lucent.com>
131159         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
131160         (AC_REPLACE_FUNCS): Add memcpy and memset.
131161         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
131162         Add strpbrk.
131163         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
131165 2000-01-12  Jim Meyering  <meyering@lucent.com>
131167         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
131168         (jm_PREREQ): Use it.
131169         (jm_PREREQ_READUTMP): New macro.
131170         (jm_PREREQ): Use it.
131172 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131174         Quote multibyte characters correctly.
131175         * m4/c-bs-a.m4: New file.
131176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
131177         (jm_PREREQ): Use it.
131179 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131181         * m4/uintmax_t.m4: Port to autoconf 2.13.
131183 2000-01-08  Jim Meyering  <meyering@ascend.com>
131185         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
131186         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
131188 2000-01-04  Jim Meyering  <meyering@ascend.com>
131190         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
131191         jm_STRUCT_DIRENT_D_TYPE.
131192         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
131193         jm_STRUCT_DIRENT_D_INO.
131194         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
131195         jm_STRUCT_UTIMBUF.
131196         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
131197         renamings.
131198         * m4/utime.m4: Likewise.
131200         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
131201         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
131203 2000-01-03  Paul Eggert  <eggert@twinsun.com>
131205         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
131206         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
131208 2000-01-02  Jim Meyering  <meyering@ascend.com>
131210         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
131211         remember if this is necessary.
131213 1999-12-26  Jim Meyering  <meyering@ascend.com>
131215         * m4/jm-macros.m4: Use it here.
131216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
131218 1999-12-23  Jim Meyering  <meyering@ascend.com>
131220         * m4/jm-macros.m4: Check for clock_gettime (moved from
131221         fileutils/configure.in)
131222         Check for gettimeofday.
131224 1999-12-20  Jim Meyering  <meyering@ascend.com>
131226         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
131227         autoconf-2.14a-1999-12-20.
131229 1999-12-19  Jim Meyering  <meyering@ascend.com>
131231         * m4/lstat-slash.m4: New file.
131232         * m4/jm-macros.m4: Use the new macro:
131233         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131235 1999-12-07  Jim Meyering  <meyering@ascend.com>
131237         * m4/perl.m4: Require that File::Compare be available, too.
131238         Too many systems seem to lack it.
131240         * m4/strftime.m4: Add checks for most of the cpp macros tested in
131241         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
131243 1999-11-18  Paul Eggert  <eggert@twinsun.com>
131245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
131246         problem with the QNX 4.25 shell, which doesn't propagate exit
131247         status of failed commands inside shell assignments.
131249 1999-11-17  Jim Meyering  <meyering@ascend.com>
131251         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
131253 1999-11-07  Jim Meyering  <meyering@ascend.com>
131255         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
131257 1999-11-06  Jim Meyering  <meyering@ascend.com>
131259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
131260         * m4/jm-macros.m4 (jm_MACROS): Use it here.
131262 1999-11-05  Jim Meyering  <meyering@ascend.com>
131264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
131265         configure.in of textutils, fileutils, and sh-utils into this one
131266         (shared between those packages) file.
131267         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
131268         AC_STRUCT_ST_BLKSIZE.
131270 1999-11-03  Jim Meyering  <meyering@ascend.com>
131272         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
131273         of AC_CHECK_TYPE checks includes unistd.h.
131274         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
131275         Suggestion from Akim Demaille.
131277 1999-10-30  Jim Meyering  <meyering@ascend.com>
131279         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
131280         m4-quoted string.
131281         * m4/ls-mntd-fs.m4: Likewise.
131282         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
131283         * m4/jm-winsz1.m4: Likewise.
131285         * m4/const.m4: Remove file, since the fix made it into the experimental
131286         version of autoconf.
131287         * m4/mktime.m4: Likewise.
131289         * m4/check-type.m4: Remove file, now that the latest version of
131290         AC_CHECK_TYPE takes a third arg to specify additional #includes.
131292         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
131293         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
131294         AC_CHECK_TYPE.
131296 1999-10-04  Jim Meyering  <meyering@ascend.com>
131298         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
131300 1999-09-22  Paul Eggert  <eggert@twinsun.com>
131302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
131303         2.95.1 bug with HP-UX 10.20.
131305 1999-09-17  Jim Meyering  <meyering@ascend.com>
131307         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
131308         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
131309         due to missing strdup (against sh-utils-2.0).
131311 1999-08-29  Jim Meyering  <meyering@ascend.com>
131313         * m4/jm-macros.m4: Require jm_BISON.
131314         * m4/bison.m4: New file.
131316 1999-08-17  Paul Eggert  <eggert@twinsun.com>
131318         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
131319         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
131321 1999-08-05  Jim Meyering  <meyering@ascend.com>
131323         * m4/getline.m4: Rename test file from conftestdata to conftest.data
131324         to avoid conflicts with `conftest' on 8+3 filesystems.
131325         Suggestion from Eli Zaretskii.
131327 1999-08-04  Jim Meyering  <meyering@ascend.com>
131329         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
131330         fileutils and sh-utils (textutils's getline test was inadequate).
131331         (AM_FUNC_GETLINE): Run this test.
131332         (AC_CHECK_FUNCS): Check for getdelim.
131333         Reported by Bob Proulx.
131335 1999-08-02  Jim Meyering  <meyering@ascend.com>
131337         * m4/jm-macros.m4: Add a comment.
131339 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
131342         <inttypes.h> defines strtoumax as a macro (and not as a
131343         function).
131345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
131348         that we can shift, multiply and divide unsigned long long
131349         values; Ultrix cc can't do it.
131351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131353         * m4/mktime.m4: New file, which is a preview of what should appear
131354         in the next public autoconf release.
131356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131358         * m4/lfs.m4: Remove this file.
131359         * m4/largefile.m4: New file.  It contains the old contents of
131360         lfs.m4, except that all names with prefix AC_LFS have been
131361         changed to use the prefix AC_SYS_LARGEFILE instead, to be
131362         compatible with future autoconf versions.  Also, some minor m4
131363         quoting problems have been fixed.
131365 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131367         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
131368         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
131369         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
131370         and simplify the shell code.
131372 1999-08-01  Jim Meyering  <meyering@ascend.com>
131374         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
131375         m4.
131377 1999-07-20  Jim Meyering  <meyering@ascend.com>
131379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131381 1999-07-15  Jim Meyering  <meyering@ascend.com>
131383         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131385 1999-05-22  Jim Meyering  <meyering@ascend.com>
131387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131389 1999-05-20  Jim Meyering  <meyering@ascend.com>
131391         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131392         Add a colon after each `then' in case $4 is empty.
131394 1999-05-16  Jim Meyering  <meyering@ascend.com>
131396         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131398 1999-05-10  Jim Meyering  <meyering@ascend.com>
131400         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131402         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131403         AC_FUNC_MKTIME.
131405 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131407         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131409 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131411         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131412         not CPPFLAGS, so that linking works correctly in IRIX.
131414 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131416         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131418 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131420         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131421         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131423         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131426         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131428 1999-04-20  Jim Meyering  <meyering@ascend.com>
131430         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131431         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131432         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131434 1999-04-18  Jim Meyering  <meyering@ascend.com>
131436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131437         * m4/jm-macros.m4: Use it.
131439 1999-04-06  Jim Meyering  <meyering@ascend.com>
131441         * m4/strftime.m4: Remove test for %f.
131443 1999-03-29  Jim Meyering  <meyering@ascend.com>
131445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131446         superset of the AC_TYPE_* checks in the textutils, fileutils,
131447         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131448         AC_TYPE_PID_T.
131450 1999-03-28  Jim Meyering  <meyering@ascend.com>
131452         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131453         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131454         replaced e.g., in the *.sh files of the sh-utils.
131456 1999-03-20  Jim Meyering  <meyering@ascend.com>
131458         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131459         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131460         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131462 1999-03-19  Jim Meyering  <meyering@ascend.com>
131464         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131466 1999-03-12  Jim Meyering  <meyering@ascend.com>
131468         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131470 1999-03-07  Jim Meyering  <meyering@ascend.com>
131472         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131473         declared.
131475 1999-02-17  Jim Meyering  <meyering@ascend.com>
131477         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131478         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131480 1999-02-07  Jim Meyering  <meyering@ascend.com>
131482         * m4/group-member.m4: New file -- extracted from sh-utils'
131483         configure.in.
131485         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131486         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131488 1999-02-06  Jim Meyering  <meyering@ascend.com>
131490         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131491         * m4/fnmatch.m4: Likewise.
131492         * m4/getgroups.m4: Likewise.
131493         * m4/lstat.m4: Likewise.
131494         * m4/malloc.m4: Likewise.
131495         * m4/putenv.m4: Likewise.
131496         * m4/realloc.m4: Likewise.
131497         * m4/regex.m4: Likewise.
131498         * m4/stat.m4: Likewise.
131499         * m4/strftime.m4: Likewise.
131500         Suggestion from Alain Magloire.
131502         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131503         * m4/fnmatch.m4: Likewise.
131504         * m4/getgroups.m4: Likewise.
131505         * m4/getline.m4: Likewise.
131506         * m4/lstat.m4: Likewise.
131507         * m4/malloc.m4: Likewise.
131508         * m4/memcmp.m4: Likewise.
131509         * m4/putenv.m4: Likewise.
131510         * m4/realloc.m4: Likewise.
131511         * m4/regex.m4: Likewise.
131512         * m4/stat.m4: Likewise.
131513         * m4/strftime.m4: Likewise.
131514         Suggestion from Alain Magloire.
131516         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131517         an argument.
131519         * m4/regex.m4: Add a run-time Test for proper operation of
131520         re_compile_pattern.
131522 1999-01-31  Jim Meyering  <meyering@ascend.com>
131524         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131526 1999-01-30  Jim Meyering  <meyering@ascend.com>
131528         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131530         * m4/jm-mktime.m4: Make this a wrapper around the official
131531         AM_FUNC_MKTIME rather than my private copy, now that the official one
131532         is up to date.
131533         * m4/mktime.m4: Remove file.
131535         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131536         * m4/uptime.m4: Likewise.
131537         * m4/uintmax_t.m4: Likewise.
131539 1999-01-28  Jim Meyering  <meyering@ascend.com>
131541         * m4/jm-macros.m4: Use jm_AFS.
131542         * m4/afs.m4: New file (from fileutils' configure.in).
131544         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131545         * m4/chown.m4: Likewise.
131546         * m4/d-ino.m4: Likewise.
131547         * m4/d-type.m4: Likewise.
131548         * m4/fnmatch.m4: Likewise.
131549         * m4/getgroups.m4: Likewise.
131550         * m4/gettext.m4: Likewise.
131551         * m4/jm-mktime.m4: Likewise.
131552         * m4/jm-winsz2.m4: Likewise.
131553         * m4/lcmessage.m4: Likewise.
131554         * m4/ls-mntd-fs.m4: Likewise.
131555         * m4/malloc.m4: Likewise.
131556         * m4/memcmp.m4: Likewise.
131557         * m4/putenv.m4: Likewise.
131558         * m4/realloc.m4: Likewise.
131559         * m4/st_mtim.m4: Likewise.
131560         * m4/strftime.m4: Likewise.
131562 1999-01-16  Jim Meyering  <meyering@ascend.com>
131564         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131565         (ARGMATCH_DIE_DECL): Define.
131567 1999-01-12  Jim Meyering  <meyering@ascend.com>
131569         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131570         Reported by Lars Hecking.
131572 1999-01-10  Jim Meyering  <meyering@ascend.com>
131574         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131575         gross kludge.
131576         * m4/inttypes_h.m4: Likewise.
131577         * m4/lstat.m4: Likewise.
131578         * m4/malloc.m4: Likewise.
131579         * m4/readdir.m4: Likewise.
131580         * m4/realloc.m4: Likewise.
131581         * m4/st_dm_mode.m4: Likewise.
131582         * m4/stat.m4: Likewise.
131583         * m4/utimbuf.m4: Likewise.
131584         * m4/utimes.m4: Likewise.
131586         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131587         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131588         comments in config.h.in are meaningful.
131590         * m4/jm-macros.m4: Require autoconf-2.13 here.
131592         * m4/regex.m4: By default, don't use the included regex.c on systems
131593         with glibc 2.  Suggestion from Uli Drepper.
131595 1999-01-02  Jim Meyering  <meyering@ascend.com>
131597         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131599 1998-12-18  Jim Meyering  <meyering@ascend.com>
131601         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131602         Based on a suggestion from Lars Hecking.
131604 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131606         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131608 1998-11-16  Jim Meyering  <meyering@ascend.com>
131610         * m4/lfs.m4: Double-quote the `uname...` expression.
131612 1998-11-14  Jim Meyering  <meyering@ascend.com>
131614         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131615         * m4/stat.m4: Likewise.
131617 1998-11-03  Jim Meyering  <meyering@ascend.com>
131619         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131620         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131622 1998-10-18  Jim Meyering  <meyering@ascend.com>
131624         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131626 1998-10-17  Jim Meyering  <meyering@ascend.com>
131628         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131629         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131630         calls for those previously hard-coded headers.  Instead, take a new
131631         parameter.
131632         (jm_CHECK_DECLARATIONS): Reflect interface change.
131633         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131634         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131636         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131638 1998-10-14  Jim Meyering  <meyering@ascend.com>
131640         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131641         instead of "TZ=America/Vancouver".  From Paul Eggert.
131643 1998-10-11  Jim Meyering  <meyering@ascend.com>
131645         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131646         This adds a test for a recently added compatibility fix for mktime.c.
131647         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131649 1998-09-27  Jim Meyering  <meyering@ascend.com>
131651         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131653         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131654         ../configure.in, including a change from Gordon Matzigkeit to allow
131655         cross-compiling for the Hurd.
131657         * m4/glibc.m4: New file/macro to test for the GNU C Library
131658         versions 1 and 2.  From Gordon Matzigkeit.
131659         Indent.
131661 1998-09-21  Jim Meyering  <meyering@ascend.com>
131663         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131665 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131667         Port nanosecond-resolution times to UnixWare 2.1.2 and
131668         pedantic Solaris 2.6.
131670         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131671         AC_STRUCT_ST_MTIM.
131672         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131673         Generate name of ns member, instead of just 1 or undef.
131674         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131676 1998-08-15  Jim Meyering  <meyering@ascend.com>
131678         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131679         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131680         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131681         instead of jm_TYPE_SSIZE_T.
131683 1998-08-12  Jim Meyering  <meyering@ascend.com>
131685         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131687 1998-08-02  Jim Meyering  <meyering@ascend.com>
131689         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131690         in acconfig.h manually.
131692 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131694         * m4/st_mtim.m4: New file.
131696 1998-07-28  Jim Meyering  <meyering@ascend.com>
131698         * m4/utimes.m4: Undef stat.
131700 1998-07-25  Jim Meyering  <meyering@ascend.com>
131702         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131703         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131705 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131707         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131708         uid and gid actually remain unchanged.
131710 1998-07-07  Jim Meyering  <meyering@ascend.com>
131712         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131714 1998-07-04  Jim Meyering  <meyering@ascend.com>
131716         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131717         to prove that this macro can be used in packages without regex.c.
131719 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131721         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131722         is to be used.
131724 1998-07-03  Jim Meyering  <meyering@ascend.com>
131726         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131728         * m4/gettext.m4: New file -- from gettext-0.10.35.
131729         * m4/lcmessage.m4: Likewise.
131730         * m4/progtest.m4: Likewise.
131732         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131733         * m4/jm-macros.m4: Require the new macro.
131735 1998-06-29  Jim Meyering  <meyering@ascend.com>
131737         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131738         for the definition of NGROUPS (used in a system header included
131739         by sys/mount.h).
131741 1998-06-28  Jim Meyering  <meyering@ascend.com>
131743         * m4/ls-mntd-fs.m4: New file.
131744         * m4/fstypename.m4: New file.
131746         * m4/jm-macros.m4: Require the new macro.
131747         * m4/jm-glibc-io.m4: New file.
131749 1998-05-19  Jim Meyering  <meyering@ascend.com>
131751         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131752         * m4/lchown.m4: New file.
131754         * m4/Makefile.am.in: New file.
131755         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131757 1998-05-14  Jim Meyering  <meyering@ascend.com>
131759         * m4/Makefile.am (EXTRA_DIST): Add them.
131760         * m4/jm-macros.m4: New file.
131761         * m4/utimbuf.m4: New file.
131763 1998-05-12  Jim Meyering  <meyering@ascend.com>
131765         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131767 1998-05-11  Jim Meyering  <meyering@ascend.com>
131769         * m4/isc-posix.m4: New file.
131771 1998-05-10  Jim Meyering  <meyering@ascend.com>
131773         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131775 1998-05-09  Jim Meyering  <meyering@ascend.com>
131777         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131778         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131779         with automake.
131781         * m4/ssize_t.m4: New file.
131782         * m4/mktime.m4: Remove file -- the new automake has this now.
131784 1998-04-26  Jim Meyering  <meyering@ascend.com>
131786         * m4/assert.m4: New file.
131787         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131789 1998-04-05  Jim Meyering  <meyering@ascend.com>
131791         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131792         (jm_PREREQ): Use it here.
131794 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
131796         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
131797         in acconfig.h.
131799 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
131801         * m4/prereq.m4: New file.
131802         * m4/error.m4: New file.
131803         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
131805 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
131807         * m4/getline.m4: Don't set am_cv_func_working_getline before the
131808         cache-check for the same variable -- that defeated the purpose of
131809         the test; the test program was never run.  This was a problem only
131810         on systems with losing getline functions -- HP-UX 10.20 is one.
131811         Reported by Bjorn Helgaas.
131813 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
131815         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
131817 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131819         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131821         * m4/const.m4: New file.  Use an initializer in this declaration
131822         typedef int charset[2]; const charset x;
131823         Reported by Bob Glickstein.
131825 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131827         * m4/chown.m4: Fix reversed types on -1 args to chown.
131828         From Kaveh Ghazi.
131830 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131832         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131833         Add lseek and memchr.
131835         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131836         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131837         have a 20-character limit on names.
131839 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131841         * m4/inttypes_h.m4: New file.
131842         * m4/uintmax_t.m4: New file.
131843         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131846         -----
131848         Local Variables:
131849         coding: utf-8
131850         End:
131852         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131854         Copying and distribution of this file, with or without
131855         modification, are permitted provided the copyright notice
131856         and this notice are preserved.